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

QApplication event loop lag on OS X

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: P2: Important P2: Important
    • None
    • 5.3.1, 5.3.2, 5.4.1
    • Core: Event loop
    • None
    • OS X 10.9 (Mavericks), OS X 10.10 (Yoseimte) running on MacBook Pro retina 8gb RAM and 16gb RAM
    • macOS

      Given a default hello world Qt Quick application, created with the wizard.
      We have a QTimer in a test class (see attached project) set to 1000ms interval.
      The timer is set to singleshot.
      We also have an QElapsedTimer.
      We start both timers from main.cpp (testclass.start()).
      The timeout signal of the QTimer is connected to a slot in the test class which prints a message with the elapsed() time from the QElapsedTimer and restarts the QTimer.
      After some time (eg. 20 to 120 seconds) we observe a delay of about 5-12 seconds measured by the QElapsedTimer. The whole event loop seems to be lagging.

      We could reproduce this behaviour on both Mavericks and Yosemite with Qt downloaded as binary package for mac os (64bit) from qt.io. We used 5.3.1, 5.3.2, and 5.4.1 all downloaded from qt.io as 64bit binary packages.

      The issue is NOT reproducible on Windows 7 (Qt 5.2.1-msvc2010) and Linux (64bit) with Qt 5.3.1 (64bit gcc)

      The issue is NOT reproducible on OS X when building as a console application using QCoreApplication (and not QApplication).

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

            sorvig Morten Sørvig
            tfl0pz ognyan nikolov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes