Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-44732

EnginioClient construction freezes GUI thread for up to 1 second

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Won't Do
    • Affects Version/s: 5.4.0
    • Fix Version/s: None
    • Component/s: (Inactive) Enginio
    • Labels:
      None
    • Environment:
      Ubuntu 14.10 x64, HTC One e801, Android 4.4, 5
    • Platform/s:
      Android

      Description

      I'm using Enginio from Qt Quick as follows:
      EnginioClient {
      id: enginioStorage
      identity: null
      backendId: "5472238ce5bde50e1502ec30"
      onError:

      { ... }

      onFinished:

      { ... }
      onSessionAuthenticated: { ... }

      onSessionAuthenticationError:

      { ... }

      }

      When I profile my app (on Android) I am seeing a very long (up to 1sec) construction of this object in GUI thread. This makes UI freeze.

      On other platforms initialization is also too long.

      The pause is caused by call to connectToHostEncrypted here:
      https://qt.gitorious.org/qt/qtenginio/source/6fb83a4538ce5cd336b9ef462cf0856fc5379fec:src/enginio_client/enginioclient.cpp#L682

      If you comment this line, object construction is very fast, but first usage of the constructed object introduces the same issue.

      It seems that this functionality must be moved to separate thread

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            nierob Nierob
            Reporter:
            korvin Stepan Prokipchyn
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes