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

QTreeView with QSortFilterProxyModel and OS X + Accessibility causes crash

    XMLWordPrintable

Details

    • macOS
    • bd591064be388216f91d48522b3bdbc1be93bb92

    Description

      Moving this from QTCREATORBUG-15760:

      Steps to reproduce:
      1) Have Qt Creator 3.6+ built with Qt 5.6.0 or latest 5.6.1 from git.
      2) Open project (sample project on which I tested qtwebengine/tests/auto/widgets/qwebenginehistory/qwebenginehistory.pro).

      3) In menu go to Tools -> C++ -> Inspect C++ Code Model.
      4) Close the window.
      5) Repeat step 3 -> crash with assert.

      Stack trace:

      1  QSortFilterProxyModelPrivate::index_to_iterator(QModelIndex const&) const     qsortfilterproxymodel.cpp     187  0x1026e52d8    
      2  QSortFilterProxyModel::parent(QModelIndex const&) const                       qsortfilterproxymodel.cpp     1890 0x1026e0bc2    
      3  QModelIndex::parent() const                                                   qabstractitemmodel.h          411  0x10070da6a    
      4  QTreeView::isIndexHidden(QModelIndex const&) const                            qtreeview.cpp                 3044 0x100941ac2    
      5  QTreeView::visualRect(QModelIndex const&) const                               qtreeview.cpp                 1106 0x100936ef8    
      6  QAccessibleTableCell::rect() const                                            itemviews.cpp                 1057 0x1008cae22    
      7  QAccessibleTableCell::state() const                                           itemviews.cpp                 1024 0x1008cab15    
      8  QCocoaAccessible::hasValueAttribute(QAccessibleInterface *)                   qcocoaaccessibility.mm        342  0x10a16f3c4    
      9  -[QMacAccessibilityElement accessibilityAttributeNames]                       qcocoaaccessibilityelement.mm 199  0x10a16a727    
      10 NSAccessibilityEntryPointAttributeNames                                                                          0x7fff8dab5e1a 
      11 -[NSObject(NSAccessibilityInternal) _accessibilityAttributeNamesClientError:]                                    0x7fff8dd24552 
      12 CopyAttributeNames                                                                                               0x7fff8dd27976 
      13 _AXXMIGCopyAttributeNames                                                                                        0x7fff98cc723b 
      14 _XCopyAttributeNames                                                                                             0x7fff98cd0823 
      15 mshMIGPerform                                                                                                    0x7fff98cab012 
      16 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__                                                       0x7fff90eff019 
      17 __CFRunLoopDoSource1                                                                                             0x7fff90efef89 
      18 __CFRunLoopRun                                                                                                   0x7fff90ef69bb 
      19 CFRunLoopRunSpecific                                                                                             0x7fff90ef5ed8 
      20 RunCurrentEventLoopInMode                                                                                        0x7fff8bb00935 
      21 ReceiveNextEventCommon                                                                                           0x7fff8bb0076f 
      22 _BlockUntilNextEventMatchingListInModeWithFilter                                                                 0x7fff8bb005af 
      23 _DPSNextEvent                                                                                                    0x7fff8d8f0efa 
      24 -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:]                                           0x7fff8d8f032a 
      25 -[NSApplication run]                                                                                             0x7fff8d8e4e84 
      26 QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)   qcocoaeventdispatcher.mm      416  0x10a14d081    
      27 QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)              qeventloop.cpp                128  0x102726b54    
      28 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)                       qeventloop.cpp                204  0x102726d6b    
      29 QCoreApplication::exec()                                                      qcoreapplication.cpp          1285 0x10272c172    
      30 QGuiApplication::exec()                                                       qguiapplication.cpp           1607 0x101371a86    
      31 QApplication::exec()                                                          qapplication.cpp              2979 0x100586599    
      32 main                                                                          main.cpp                      527  0x10000c48e    
      33 start                                                                                                            0x1000053f4    
      

      QObject parent of QTreeView at stack function 4 QTreeView::isIndexHidden
      is a CppEditor::Internal::FilterableView object, if that helps.

      Patch from QTBUG-49907 doesn't seem to help.

      Attachments

        Issue Links

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

          Activity

            People

              andysh Andy Shaw
              alexandru.croitor Alexandru Croitor
              Votes:
              3 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes