Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-1606

QListWidget crash when selecting multiple elements

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • None
    • 5.15.2
    • PySide
    • None
    • macOS

    Description

      • Using either Python 2 or Python 3
      • Install PySide2 with pip
      • Run script that creates a list list_pyside2_crash.py
      • Select multiple elements
      • If it did not crash at this point, drag the elements

      I only tested on Mac, but I believe Windows also has similar behaviour

      Python 2

      Process:               Python [76730]
      Path:                  /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
      Identifier:            org.python.python
      Version:               2.7.16 (2.7.16)
      Build Info:            python-136120002000000~41
      Code Type:             X86-64 (Native)
      Parent Process:        zsh [54376]
      Responsible:           Terminal [2661]
      User ID:               501
      
      PlugIn Path:             /Users/USER/Library/Python/2.7/lib/python/site-packages/shiboken2/libshiboken2-python2.7v.5.15.dylib
      PlugIn Identifier:       libshiboken2-python2.7v.5.15.dylib
      PlugIn Version:          ??? (0)
      
      Date/Time:             2021-06-23 11:08:24.890 -0400
      OS Version:            macOS 11.4 (20F71)
      Report Version:        12
      Bridge OS Version:     5.4 (18P4663)
      Anonymous UUID:        F819EF52-F686-51AA-A7D1-2A716B6E8A51
      
      
      Time Awake Since Boot: 2300000 seconds
      
      System Integrity Protection: enabled
      
      Crashed Thread:        0  Dispatch queue: com.apple.main-thread
      
      Exception Type:        EXC_CRASH (SIGABRT)
      Exception Codes:       0x0000000000000000, 0x0000000000000000
      Exception Note:        EXC_CORPSE_NOTIFY
      
      Application Specific Information:
      abort() called
      
      Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
      0   libsystem_kernel.dylib        	0x00007fff202f592e __pthread_kill + 10
      1   libsystem_pthread.dylib       	0x00007fff203245bd pthread_kill + 263
      2   libsystem_c.dylib             	0x00007fff20279411 abort + 120
      3   org.python.python             	0x000000010947610e Py_FatalError + 46
      4   org.python.python             	0x000000010947597f PyGILState_Release + 62
      5   libshiboken2-python2.7v.5.15.dylib	0x000000010995e47f Shiboken::GilState::~GilState() + 31
      6   QtWidgets.so                  	0x000000011e540fea QListWidgetWrapper::mouseMoveEvent(QMouseEvent*) + 442
      7   QtWidgets                     	0x000000011ed6ce27 QWidget::event(QEvent*) + 487
      8   QtWidgets                     	0x000000011ee1558d QFrame::event(QEvent*) + 45
      9   QtWidgets                     	0x000000011ef9eec9 QAbstractItemView::viewportEvent(QEvent*) + 1417
      10  QtCore                        	0x000000010a902ceb QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) + 155
      11  QtWidgets                     	0x000000011ed329d5 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 245
      12  QtWidgets                     	0x000000011ed35755 QApplication::notify(QObject*, QEvent*) + 6965
      13  QtCore                        	0x000000010a902a34 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 212
      14  QtWidgets                     	0x000000011ed33310 QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) + 896
      15  QtWidgets                     	0x000000011ed8c022 QWidgetWindow::handleMouseEvent(QMouseEvent*) + 3266
      16  QtWidgets                     	0x000000011ed8a6e9 QWidgetWindow::event(QEvent*) + 233
      17  QtWidgets                     	0x000000011ed329ea QApplicationPrivate::notify_helper(QObject*, QEvent*) + 266
      18  QtWidgets                     	0x000000011ed33e11 QApplication::notify(QObject*, QEvent*) + 497
      19  QtCore                        	0x000000010a902a34 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 212
      20  QtGui                         	0x000000011dbc4e2e QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) + 3534
      21  QtGui                         	0x000000011dbc51a9 QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) + 4425
      22  QtGui                         	0x000000011dba9d7b QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 219
      23  libqcocoa.dylib               	0x000000011f5ce260 QCocoaEventDispatcherPrivate::processPostedEvents() + 320
      24  libqcocoa.dylib               	0x000000011f5ce9c8 QCocoaEventDispatcherPrivate::postedEventsSourceCallback(void*) + 40
      25  com.apple.CoreFoundation      	0x00007fff2041d97c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
      26  com.apple.CoreFoundation      	0x00007fff2041d8e4 __CFRunLoopDoSource0 + 180
      27  com.apple.CoreFoundation      	0x00007fff2041d664 __CFRunLoopDoSources0 + 242
      28  com.apple.CoreFoundation      	0x00007fff2041c08c __CFRunLoopRun + 893
      29  com.apple.CoreFoundation      	0x00007fff2041b64c CFRunLoopRunSpecific + 563
      30  com.apple.HIToolbox           	0x00007fff28659ab3 RunCurrentEventLoopInMode + 292
      31  com.apple.HIToolbox           	0x00007fff286596e6 ReceiveNextEventCommon + 284
      32  com.apple.HIToolbox           	0x00007fff286595b3 _BlockUntilNextEventMatchingListInModeWithFilter + 70
      33  com.apple.AppKit              	0x00007fff22c1c6f2 _DPSNextEvent + 864
      34  com.apple.AppKit              	0x00007fff22c1aec5 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1364
      35  com.apple.AppKit              	0x00007fff22c0d239 -[NSApplication run] + 586
      36  libqcocoa.dylib               	0x000000011f5cd62f QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 2495
      37  QtCore                        	0x000000010a8feacf QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 431
      38  QtCore                        	0x000000010a903042 QCoreApplication::exec() + 130
      39  QtWidgets.so                  	0x000000011e2f0350 Sbk_QApplicationFunc_exec_(_object*) + 48
      40  org.python.python             	0x00000001094597ac PyEval_EvalFrameEx + 20888
      41  org.python.python             	0x0000000109454009 PyEval_EvalCodeEx + 533
      42  org.python.python             	0x0000000109453dee PyEval_EvalCode + 32
      43  org.python.python             	0x0000000109476e6c 0x1093d0000 + 683628
      44  org.python.python             	0x0000000109476f13 PyRun_FileExFlags + 130
      45  org.python.python             	0x0000000109476a99 PyRun_SimpleFileExFlags + 690
      46  org.python.python             	0x00000001094883dc Py_Main + 3208
      47  libdyld.dylib                 	0x00007fff2033ff5d start + 1
      

      Python 3

      Process:               Python [76808]
      Path:                  /usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/Resources/Python.app/Contents/MacOS/Python
      Identifier:            org.python.python
      Version:               3.8.5 (3.8.5)
      Code Type:             X86-64 (Native)
      Parent Process:        zsh [54376]
      Responsible:           Terminal [2661]
      User ID:               501
      
      Date/Time:             2021-06-23 11:11:39.364 -0400
      OS Version:            macOS 11.4 (20F71)
      Report Version:        12
      Bridge OS Version:     5.4 (18P4663)
      Anonymous UUID:        F819EF52-F686-51AA-A7D1-2A716B6E8A51
      
      
      Time Awake Since Boot: 2300000 seconds
      
      System Integrity Protection: enabled
      
      Crashed Thread:        0  Dispatch queue: com.apple.main-thread
      
      Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
      Exception Codes:       KERN_INVALID_ADDRESS at 0x00000000000000b8
      Exception Note:        EXC_CORPSE_NOTIFY
      
      Termination Signal:    Segmentation fault: 11
      Termination Reason:    Namespace SIGNAL, Code 0xb
      Terminating Process:   exc handler [76808]
      
      VM Regions Near 0xb8:
      --> 
          __TEXT                      109df7000-109df9000    [    8K] r-x/r-x SM=COW  /usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/Resources/Python.app/Contents/MacOS/Python
      
      Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
      0   org.python.python             	0x0000000109e54f3f tupledealloc + 60
      1   QtWidgets.abi3.so             	0x000000011f2a95e1 QListWidgetWrapper::mouseMoveEvent(QMouseEvent*) + 401
      2   QtWidgets                     	0x000000010e5e4e27 QWidget::event(QEvent*) + 487
      3   QtWidgets                     	0x000000010e68d58d QFrame::event(QEvent*) + 45
      4   QtWidgets                     	0x000000010e816ec9 QAbstractItemView::viewportEvent(QEvent*) + 1417
      5   QtCore                        	0x000000010ace7ceb QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) + 155
      6   QtWidgets                     	0x000000010e5aa9d5 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 245
      7   QtWidgets                     	0x000000010e5ad755 QApplication::notify(QObject*, QEvent*) + 6965
      8   QtCore                        	0x000000010ace7a34 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 212
      9   QtWidgets                     	0x000000010e5ab310 QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) + 896
      10  QtWidgets                     	0x000000010e604022 QWidgetWindow::handleMouseEvent(QMouseEvent*) + 3266
      11  QtWidgets                     	0x000000010e6026e9 QWidgetWindow::event(QEvent*) + 233
      12  QtWidgets                     	0x000000010e5aa9ea QApplicationPrivate::notify_helper(QObject*, QEvent*) + 266
      13  QtWidgets                     	0x000000010e5abe11 QApplication::notify(QObject*, QEvent*) + 497
      14  QtCore                        	0x000000010ace7a34 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 212
      15  QtGui                         	0x000000010ddcae2e QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) + 3534
      16  QtGui                         	0x000000010ddcb1a9 QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) + 4425
      17  QtGui                         	0x000000010ddafd7b QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 219
      18  libqcocoa.dylib               	0x000000011facd260 QCocoaEventDispatcherPrivate::processPostedEvents() + 320
      19  libqcocoa.dylib               	0x000000011facd9c8 QCocoaEventDispatcherPrivate::postedEventsSourceCallback(void*) + 40
      20  com.apple.CoreFoundation      	0x00007fff2041d97c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
      21  com.apple.CoreFoundation      	0x00007fff2041d8e4 __CFRunLoopDoSource0 + 180
      22  com.apple.CoreFoundation      	0x00007fff2041d664 __CFRunLoopDoSources0 + 242
      23  com.apple.CoreFoundation      	0x00007fff2041c08c __CFRunLoopRun + 893
      24  com.apple.CoreFoundation      	0x00007fff2041b64c CFRunLoopRunSpecific + 563
      25  com.apple.HIToolbox           	0x00007fff28659ab3 RunCurrentEventLoopInMode + 292
      26  com.apple.HIToolbox           	0x00007fff286596e6 ReceiveNextEventCommon + 284
      27  com.apple.HIToolbox           	0x00007fff286595b3 _BlockUntilNextEventMatchingListInModeWithFilter + 70
      28  com.apple.AppKit              	0x00007fff22c1c6f2 _DPSNextEvent + 864
      29  com.apple.AppKit              	0x00007fff22c1aec5 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1364
      30  com.apple.AppKit              	0x00007fff22c0d239 -[NSApplication run] + 586
      31  libqcocoa.dylib               	0x000000011facc62f QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 2495
      32  QtCore                        	0x000000010ace3acf QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 431
      33  QtCore                        	0x000000010ace8042 QCoreApplication::exec() + 130
      34  QtWidgets.abi3.so             	0x000000011f05b301 Sbk_QApplicationFunc_exec_(_object*) + 33
      35  org.python.python             	0x0000000109e474ff cfunction_vectorcall_NOARGS + 207
      36  org.python.python             	0x0000000109eb93a8 call_function + 346
      37  org.python.python             	0x0000000109eb5f91 _PyEval_EvalFrameDefault + 30081
      38  org.python.python             	0x0000000109eb9ed7 _PyEval_EvalCodeWithName + 1958
      39  org.python.python             	0x0000000109eae96d PyEval_EvalCode + 51
      40  org.python.python             	0x0000000109ee8021 run_eval_code_obj + 102
      41  org.python.python             	0x0000000109ee7473 run_mod + 82
      42  org.python.python             	0x0000000109ee6345 PyRun_FileExFlags + 160
      43  org.python.python             	0x0000000109ee5a29 PyRun_SimpleFileExFlags + 271
      44  org.python.python             	0x0000000109efd308 Py_RunMain + 1870
      45  org.python.python             	0x0000000109efd651 pymain_main + 308
      46  org.python.python             	0x0000000109efd69f Py_BytesMain + 42
      47  libdyld.dylib                 	0x00007fff2033ff5d start + 1
      

      Attachments

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

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            huelj Julien Huel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes