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

Crash on QCocoaScreen::isOnline() when calling CGDisplayIsOnline

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Fixed
    • Affects Version/s: 5.14.2, 5.15.1, 6.2.4
    • Fix Version/s: 5.15.11, 6.2.6, 6.4.0 Beta1
    • Component/s: QPA
    • Labels:
      None
    • Environment:
      macOS 10.14.6, macOS 10.15.4, macOS 12.3, macOS 12.3.1
    • Platform/s:
      macOS
    • Commits:
      e801b72e09 (qt/qtbase/6.3) a7020580e1 (qt/qtbase/6.4) e801b72e09 (qt/tqtc-qtbase/6.3) a7020580e1 (qt/tqtc-qtbase/6.4) a03e9505fd (qt/tqtc-qtbase/5.15) c50353cbb3 (qt/tqtc-qtbase/6.2)

      Description

      EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000010

      Crashed: CrBrowserMain
      0  libqcocoa.dylib                0x11484a30c QCocoaScreen::updateScreens() + 668 (qcocoascreen.mm:668)
      1  libqcocoa.dylib                0x11484a611 QCocoaScreen::updateScreensIfNeeded() + 156 (qcocoascreen.mm:156)
      2  libqcocoa.dylib                0x11484ecfb QCocoaScreen::initializeScreens()::$_0::__invoke(unsigned int, unsigned int, void*) + 81 (qcocoascreen.mm:81)
      3  SkyLight                       0x7fff677a8368 displayConfigFinalizedProc + 259
      4  SkyLight                       0x7fff6779df8f CGSPostLocalNotification + 430
      5  SkyLight                       0x7fff6779d9cc (anonymous namespace)::notify_datagram_handler(unsigned int, CGSDatagramType, void*, unsigned long, void*) + 98
      6  SkyLight                       0x7fff677a1ba2 CGSDatagramReadStream::dispatch_next_main_queue_datagram() + 242
      7  SkyLight                       0x7fff679d28da ___ZN21CGSDatagramReadStream35dispatch_main_queue_datagrams_asyncEP16dispatch_queue_sPS__block_invoke + 54
      8  libdispatch.dylib              0x7fff7253a6c4 _dispatch_call_block_and_release + 12
      9  libdispatch.dylib              0x7fff7253b658 _dispatch_client_callout + 8
      10 libdispatch.dylib              0x7fff72546cab _dispatch_main_queue_callback_4CF + 936
      11 CoreFoundation                 0x7fff385d8f11 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
      12 CoreFoundation                 0x7fff38598d17 __CFRunLoopRun + 2028
      13 CoreFoundation                 0x7fff38597ece CFRunLoopRunSpecific + 462
      14 HIToolbox                      0x7fff371c6abd RunCurrentEventLoopInMode + 292
      15 HIToolbox                      0x7fff371c67d5 ReceiveNextEventCommon + 584
      16 HIToolbox                      0x7fff371c6579 _BlockUntilNextEventMatchingListInModeWithFilter + 64
      17 AppKit                         0x7fff3580e829 _DPSNextEvent + 883
      18 AppKit                         0x7fff3580d070 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1352
      19 AppKit                         0x7fff357fed7e -[NSApplication run] + 658
      20 libqcocoa.dylib                0x114875618 QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 560 (qobject_p.h:560)
      21 QtCore                         0x11280966f QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 926 (atomic:926)
      22 QtCore                         0x11280db42 QCoreApplication::exec() + 1383 (qcoreapplication.cpp:1383)
      

      I see such crashes in Fibric/Firbase Crashlitics on users side.
      Sorry I have no more details, steps or reproducible example

        Attachments

        1. screenshot-1.png
          screenshot-1.png
          46 kB
        2. screenshot-2.png
          screenshot-2.png
          21 kB

          Issue Links

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

            Activity

              People

              Assignee:
              vestbo Tor Arne Vestbø
              Reporter:
              studiosus Vladimir Belyavsky
              PM Owner:
              Veli-Pekka Heinonen Veli-Pekka Heinonen
              Votes:
              2 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: