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

EnginioClient construction freezes GUI thread for up to 1 second

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P3: Somewhat important
    • None
    • 5.4.0
    • (Inactive) Enginio
    • None
    • Ubuntu 14.10 x64, HTC One e801, Android 4.4, 5
    • 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

            nierob Nierob
            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