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

[macOS] Qt warning "main thread missed N update(s) from display link during update request delivery "

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 6.5.2
    • QPA
    • None
    • macOS

    Description

      I just enabled output for all Qt warnings in my app (QT_LOGGING_RULES="*.warning=true"),
      in order to collect more info for QTBUG-108175 and some other issues.

      After that I started to notice new warnings on the app start, like so

      main thread missed 13 update(s) from display link during update request delivery 
      

      It's printed on QCocoaScreen::deliverUpdateRequests().

      ...
              if (pauseUpdates) {
                  // Pause the display link if there are no pending update requests
                  qCDebug(lcQpaScreenUpdates) << "Stopping display link for" << this;
                  CVDisplayLinkStop(m_displayLink);
              }
      
              if (const int missedUpdates = m_pendingUpdates.fetchAndStoreRelaxed(0) - pendingUpdates) {
                  qCWarning(lcQpaScreenUpdates) << "main thread missed" << missedUpdates
                      << "update(s) from display link during update request delivery";
              }
      ...
      

      Attachments

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

        Activity

          People

            vestbo Tor Arne Vestbø
            studiosus Vladimir Belyavsky
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes