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

Opening a modal dialog in QItemDelegate::editorEvent crashes on Mac.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • Some future release
    • 4.6.3
    • Widgets: Itemviews
    • None
    • Mac OS X - Carbon specific
    • macOS

    Description

      if you open up a modal dialog in the QItemDelegate::editorEvent function you will get a crash on Mac.

      Please use the attached example to reproduce.

      steps:
      1) Run The sample application
      2) Click on the table item labled "Click Here"
      3) Again Click on the tableitem labled "Again click here"
      --> A file open doalog will open
      4) Click "Cancel" button on file open dialog
      ------> CRASH

      Parent: WindowServer [414]
      
      Version: ??? (???)
      
      PID: 19337
      Thread: 0
      
      Exception: EXC_BAD_ACCESS (0x0001)
      Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x000000ff
      
      Thread 0 Crashed:
      0 QtGui 0x0152fd04 QAbstractItemView::edit(QModelIndex const&, QAbstractItemView::EditTrigger, QEvent*) + 144
      1 QtGui 0x01529971 QAbstractItemView::mousePressEvent(QMouseEvent*) + 631
      2 QtGui 0x010ca373 QWidget::event(QEvent*) + 4327
      3 QtGui 0x014130ff QFrame::event(QEvent*) + 33
      4 QtGui 0x014a175e QAbstractScrollArea::viewportEvent(QEvent*) + 38
      5 QtGui 0x0152c491 QAbstractItemView::viewportEvent(QEvent*) + 1677
      6 QtGui 0x017223f4 QAbstractScrollAreaFilter::eventFilter(QObject*, QEvent*) + 48
      7 QtCore 0x0041d38a QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) + 138
      8 QtGui 0x01072d8c QApplicationPrivate::notify_helper(QObject*, QEvent*) + 132
      9 QtGui 0x0107a9b3 QApplication::notify(QObject*, QEvent*) + 2737
      10 QtCore 0x0041d22d QCoreApplication::notifyInternal(QObject*, QEvent*) + 99
      11 QtGui 0x0101613f QApplicationPrivate::globalEventProcessor(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 6675
      12 com.apple.HIToolbox 0x92df84d7 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1093
      13 com.apple.HIToolbox 0x92df7b7c SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 304
      14 com.apple.HIToolbox 0x92dfef7c SendEventToEventTarget + 56
      15 QtGui
      

      Attachments

        1. ctablewidget.zip
          2 kB
          Martin Petersson
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            stephen.kelly Stephen Kelly (Unused account) (Inactive)
            xcm Martin Petersson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes