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

Qt 5 Mac: Crash/Exception within QCocoaEventDispatcher::processEvents

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.2.0
    • Core: Event loop
    • None
    • Mac OS X 10.8.4, XCode 5
    • macOS

      When performing a mouse drag upon a widget, my application often gets objective C exceptions or a crash.
      It appears to be with the mouse handling code, and from the backtrace I can see perhaps the wrong object is being sent a message.

      I'm either getting an exception:

      2014-01-09 11:24:26.546 ApplicationName[11817:303] -[NSImage set]: unrecognized selector sent to instance 0x1a70b180
      	0   CoreFoundation                      0x95bf6e8b __raiseError + 219
      	1   libobjc.A.dylib                     0x90c2452e objc_exception_throw + 230
      	2   CoreFoundation                      0x95bfaafd -[NSObject(NSObject) doesNotRecognizeSelector:] + 253
      	3   CoreFoundation                      0x95b42e87 ___forwarding___ + 487
      	4   CoreFoundation                      0x95b42c32 _CF_forwarding_prep_0 + 50
      	5   libqcocoa.dylib                     0x04f11b5b -[QNSView cursorUpdate:] + 43
      	6   AppKit                              0x974d2230 -[NSWindow sendEvent:] + 9287
      	7   libqcocoa.dylib                     0x04f0be9a -[QNSWindow sendEvent:] + 58
      	8   AppKit                              0x972ac8f7 handleCursorRect + 212
      	9   AppKit                              0x974cd9e6 -[NSApplication sendEvent:] + 8589
      	10  libqcocoa.dylib                     0x04f1e0cb -[QNSApplication sendEvent:] + 91
      	11  AppKit                              0x973e662c -[NSApplication run] + 951
      	12  libqcocoa.dylib                     0x04f1a542 _ZN21QCocoaEventDispatcher13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE + 2274
      	13  QtCore                              0x0485b2d1 _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE + 401
      	14  QtCore                              0x0485e266 _ZN16QCoreApplication4execEv + 342
      	15  ApplicationName                     0x0032b869 main_internal + 1577
              ....
      

      Or a crash:

      * thread #1: tid = 0xdebe, 0x90c18a87 libobjc.A.dylib`objc_msgSend + 23, queue = 'com.apple.main-thread, stop reason = EXC_BAD_ACCESS (code=1, address=0xb1a676a2)
          frame #0: 0x90c18a87 libobjc.A.dylib`objc_msgSend + 23
          frame #1: 0x04f11b5b libqcocoa.dylib`-[QNSView cursorUpdate:] + 43
          frame #2: 0x974d2230 AppKit`-[NSWindow sendEvent:] + 9287
          frame #3: 0x04f0be9a libqcocoa.dylib`-[QNSWindow sendEvent:] + 58
          frame #4: 0x972ac8f7 AppKit`handleCursorRect + 212
          frame #5: 0x974cd9e6 AppKit`-[NSApplication sendEvent:] + 8589
          frame #6: 0x04f1e0cb libqcocoa.dylib`-[QNSApplication sendEvent:] + 91
          frame #7: 0x973e662c AppKit`-[NSApplication run] + 951
          frame #8: 0x04f1a542 libqcocoa.dylib`QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 2274
          frame #9: 0x0485b2d1 QtCore`QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 401
          frame #10: 0x0485e266 QtCore`QCoreApplication::exec() + 342
          ....
      

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

            thiago Thiago Macieira
            lmartinking Lucas Martin-King
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes