Details
-
Bug
-
Resolution: Out of scope
-
P1: Critical
-
None
-
Qt Creator 4.5.0
-
None
-
OSX 10.12.6
Description
I just had a segfault when I started Qt Creator opened a project and quickly went to Right Click->Refactor->...
Then it crashed with the following backtrace. It isn't easy to reproduce but maybe there's something obvious in the code? At the very least you can add a null check. Must be this line:
https://code.woboq.org/qt5/qtbase/src/widgets/widgets/qmenu.cpp.html#754
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 org.qt-project.QtWidgets 0x0000000108e478f6 QMenuSloppyState::setSubMenuPopup(QRect const&, QAction*, QMenu*) + 166 1 org.qt-project.QtWidgets 0x0000000108e46d8e QMenu::internalDelayedPopup() + 1086 2 org.qt-project.QtCore 0x000000010998eb16 QObject::event(QEvent*) + 102 3 org.qt-project.QtWidgets 0x0000000108cfdb1d QWidget::event(QEvent*) + 5117 4 org.qt-project.QtWidgets 0x0000000108e4ef92 QMenu::event(QEvent*) + 1106 5 org.qt-project.QtWidgets 0x0000000108cc39a2 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 306 6 org.qt-project.QtWidgets 0x0000000108cc4cbf QApplication::notify(QObject*, QEvent*) + 383 7 org.qt-project.QtCore 0x000000010996597f QCoreApplication::notifyInternal2(QObject*, QEvent*) + 159 8 org.qt-project.QtCore 0x00000001099bc87a QTimerInfoList::activateTimers() + 890 9 libqcocoa.dylib 0x000000010a340bc2 QCocoaEventDispatcherPrivate::activateTimersSourceCallback(void*) + 18 10 com.apple.CoreFoundation 0x00007fffa368c321 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17 11 com.apple.CoreFoundation 0x00007fffa366d197 __CFRunLoopDoSources0 + 423 12 com.apple.CoreFoundation 0x00007fffa366c716 __CFRunLoopRun + 934 13 com.apple.CoreFoundation 0x00007fffa366c114 CFRunLoopRunSpecific + 420 14 com.apple.HIToolbox 0x00007fffa2bccebc RunCurrentEventLoopInMode + 240 15 com.apple.HIToolbox 0x00007fffa2bccbf9 ReceiveNextEventCommon + 184 16 com.apple.HIToolbox 0x00007fffa2bccb26 _BlockUntilNextEventMatchingListInModeWithFilter + 71 17 com.apple.AppKit 0x00007fffa1163a54 _DPSNextEvent + 1120 18 com.apple.AppKit 0x00007fffa18df7ee -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2796 19 com.apple.AppKit 0x00007fffa11583db -[NSApplication run] + 926 20 libqcocoa.dylib 0x000000010a34189d QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 2397 21 org.qt-project.QtCore 0x0000000109961502 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 418 22 org.qt-project.QtWidgets 0x0000000108e4d14b QMenu::exec(QPoint const&, QAction*) + 107 23 libCppEditor.dylib 0x0000000110f69e7d CppEditor::Internal::CppEditorWidget::contextMenuEvent(QContextMenuEvent*) + 781 24 org.qt-project.QtWidgets 0x0000000108cfce3f QWidget::event(QEvent*) + 1823 25 org.qt-project.QtWidgets 0x0000000108da6b8d QFrame::event(QEvent*) + 45 26 org.qt-project.QtWidgets 0x0000000108db0929 QAbstractScrollArea::viewportEvent(QEvent*) + 57 27 libTextEditor.dylib 0x000000010ff8d619 TextEditor::TextEditorWidget::viewportEvent(QEvent*) + 617 28 org.qt-project.QtWidgets 0x0000000108db1524 QAbstractScrollAreaFilter::eventFilter(QObject*, QEvent*) + 36 29 org.qt-project.QtCore 0x0000000109965c62 QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) + 210 30 org.qt-project.QtWidgets 0x0000000108cc398d QApplicationPrivate::notify_helper(QObject*, QEvent*) + 285 31 org.qt-project.QtWidgets 0x0000000108cc5ccc QApplication::notify(QObject*, QEvent*) + 4492 32 org.qt-project.QtCore 0x000000010996597f QCoreApplication::notifyInternal2(QObject*, QEvent*) + 159 33 org.qt-project.QtWidgets 0x0000000108d1dce9 QWidgetWindow::handleMouseEvent(QMouseEvent*) + 3497 34 org.qt-project.QtWidgets 0x0000000108d1c300 QWidgetWindow::event(QEvent*) + 224 35 org.qt-project.QtWidgets 0x0000000108cc39a2 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 306 36 org.qt-project.QtWidgets 0x0000000108cc4cbf QApplication::notify(QObject*, QEvent*) + 383 37 org.qt-project.QtCore 0x000000010996597f QCoreApplication::notifyInternal2(QObject*, QEvent*) + 159 38 org.qt-project.QtGui 0x000000010927d44c QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) + 2956 39 org.qt-project.QtGui 0x0000000109264b5b QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 155 40 libqcocoa.dylib 0x000000010a342aa1 QCocoaEventDispatcherPrivate::postedEventsSourceCallback(void*) + 33 41 com.apple.CoreFoundation 0x00007fffa368c321 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17 42 com.apple.CoreFoundation 0x00007fffa366d21d __CFRunLoopDoSources0 + 557 43 com.apple.CoreFoundation 0x00007fffa366c716 __CFRunLoopRun + 934 44 com.apple.CoreFoundation 0x00007fffa366c114 CFRunLoopRunSpecific + 420 45 com.apple.HIToolbox 0x00007fffa2bccebc RunCurrentEventLoopInMode + 240 46 com.apple.HIToolbox 0x00007fffa2bccbf9 ReceiveNextEventCommon + 184 47 com.apple.HIToolbox 0x00007fffa2bccb26 _BlockUntilNextEventMatchingListInModeWithFilter + 71 48 com.apple.AppKit 0x00007fffa1163a54 _DPSNextEvent + 1120 49 com.apple.AppKit 0x00007fffa18df7ee -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2796 50 com.apple.AppKit 0x00007fffa11583db -[NSApplication run] + 926 51 libqcocoa.dylib 0x000000010a34189d QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 2397 52 org.qt-project.QtCore 0x0000000109961502 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 418 53 org.qt-project.QtCore 0x0000000109966092 QCoreApplication::exec() + 402 54 org.qt-project.qtcreator 0x0000000108a305e1 main + 16145 55 libdyld.dylib 0x00007fffb8df2235 start + 1
Attachments
Issue Links
- is duplicated by
-
QTCREATORBUG-19495 Intermittent "Rename symbol under cursor" segfault
- Closed
- resulted in
-
QTBUG-66093 Crash in QMenuSloppyState::setSubMenuPopup
- Closed