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

dockwidgets example crashes upon re-docking widget

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 5.3.1
    • 5.3.0
    • GUI: Window management
    • None
    • OS X 10.9
    • macOS

    Description

      Re-docking a QDockWidget often causes a crash in the 5.3.0 release on OS X.

      To reproduce:

      • Undock either of the docked widgets in the qtbase/examples/widgets/mainwindows/dockwidgets example by dragging or double-clicking the widget's titlebar.
      • Re-dock the widget by double-clicking its title bar.

      This almost always causes the application to crash within 10 attempts with one of the following reports:

      Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
      Exception Codes: EXC_I386_GPFLT
      
      Application Specific Information:
      objc_msgSend() selector name: mouseUp:
      
      
      Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
      0   libobjc.A.dylib               	0x00007fff8c73f091 objc_msgSend + 17
      1   libqcocoa.dylib               	0x0000000104e80559 -[QNSWindowHelper handleWindowEvent:] + 153
      2   com.apple.AppKit              	0x00007fff89a176e4 -[NSApplication sendEvent:] + 2021
      3   libqcocoa.dylib               	0x0000000104e95f6e -[QNSApplication sendEvent:] + 78
      4   com.apple.AppKit              	0x00007fff89867b89 -[NSApplication run] + 646
      5   libqcocoa.dylib               	0x0000000104e92724 QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 2404
      6   QtCore                        	0x0000000100e1190d QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 381
      7   QtCore                        	0x0000000100e14e47 QCoreApplication::exec() + 359
      8   dockwidgets                   	0x0000000100002eef main + 79
      9   dockwidgets                   	0x0000000100002e94 start + 52
      
      Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
      Exception Codes: EXC_I386_GPFLT
      
      Application Specific Information:
      objc_msgSend() selector name: mouseDragged:
      
      
      Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
      0   libobjc.A.dylib               	0x00007fff8c73f091 objc_msgSend + 17
      1   libqcocoa.dylib               	0x0000000104680577 -[QNSWindowHelper handleWindowEvent:] + 183
      2   com.apple.AppKit              	0x00007fff89a176e4 -[NSApplication sendEvent:] + 2021
      3   libqcocoa.dylib               	0x0000000104695f6e -[QNSApplication sendEvent:] + 78
      4   com.apple.AppKit              	0x00007fff89867b89 -[NSApplication run] + 646
      5   libqcocoa.dylib               	0x0000000104692724 QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 2404
      6   QtCore                        	0x0000000100e1190d QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 381
      7   QtCore                        	0x0000000100e14e47 QCoreApplication::exec() + 359
      8   dockwidgets                   	0x0000000100002eef main + 79
      9   dockwidgets                   	0x0000000100002e94 start + 52
      
      Exception Type:  EXC_BREAKPOINT (SIGTRAP)
      Exception Codes: 0x0000000000000002, 0x0000000000000000
      
      Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
      0   com.apple.CoreFoundation      	0x00007fff8cb297d3 getAtomTarget + 83
      1   com.apple.CoreFoundation      	0x00007fff8ca8426a ___forwarding___ + 618
      2   com.apple.CoreFoundation      	0x00007fff8ca83f78 _CF_forwarding_prep_0 + 120
      3   libqcocoa.dylib               	0x0000000104e80559 -[QNSWindowHelper handleWindowEvent:] + 153
      4   com.apple.AppKit              	0x00007fff89a176e4 -[NSApplication sendEvent:] + 2021
      5   libqcocoa.dylib               	0x0000000104e95f6e -[QNSApplication sendEvent:] + 78
      6   com.apple.AppKit              	0x00007fff89867b89 -[NSApplication run] + 646
      7   libqcocoa.dylib               	0x0000000104e92724 QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 2404
      8   QtCore                        	0x0000000100e1190d QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 381
      9   QtCore                        	0x0000000100e14e47 QCoreApplication::exec() + 359
      10  dockwidgets                   	0x0000000100002eef main + 79
      11  dockwidgets                   	0x0000000100002e94 start + 52
      

      These look similar to the crash from QTBUG-39026: Regression: Qt Creator spurious crash on "Add New Header File".

      Attachments

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

        Activity

          People

            dedietri Gabriel de Dietrich (drgvond)
            mkegan Melissa Egan
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes