Details
-
Bug
-
Resolution: Done
-
P2: Important
-
Qt Creator 4.14.2, Qt Creator 4.15.0-beta1
-
None
-
MacOS BigSur 11.1
QtCreator (built from source, SHA 768d4321f9bd06b2947d745814bb571b8330b121, February-18 2021)
Qt 5.15.3
Description
The QtCreator regularly crashes on MacOS (BigSur 11.1).
I haven't yet found a way to reproduce the crash in a fast way, but the crash occurs reliably every day after long computer hibernation.
The setup:
- MacBook with an external display
- External display has QtCreator running
- Lock the computer and turn off the external display
- Wait for x hours (the evening/night in my case)
- Unlock / turn the computer and display back on
With those steps, the QtCreator still running on the external display, the context-menu location (right-click of the mouse) will be all over the place. When the QtCreator is in this state, if I hover the mouse over some code as in to invoke a tooltip, the QtCreator will crash. Otherwise the QtCreator kind of works as normal, but once you invoke a tooltip, a crash happens.
I know it is difficult to debug this before we can find a way to reproduce this faster than waiting x hours. I am happy to help and I am keeping my eye open for this crash.
I've logged the most recent segmentation faults in the past days, and it seems in most cases the crash is in QScreen::availableGeometry(). Seems as if the "d->" would be gone or something.
Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000008 Exception Note: EXC_CORPSE_NOTIFY Termination Signal: Segmentation fault: 11 Termination Reason: Namespace SIGNAL, Code 0xb Terminating Process: exc handler [68073] VM Regions Near 0x8: --> __TEXT 1068c7000-1068e7000 [ 128K] r-x/r-x SM=COW /Users/*/Qt Creator.app/Contents/MacOS/Qt Creator Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 org.qt-project.QtGui 0x0000000107a6b9e4 QScreen::availableGeometry() const + 4 1 libUtils_debug.4.14.82.dylib 0x0000000106c211c2 Utils::Internal::TextTip::configure(QPoint const&) + 274 (tips.cpp:209) 2 libUtils_debug.4.14.82.dylib 0x0000000106c1d962 Utils::ToolTip::setUp(QPoint const&, QWidget*, QRect const&) + 66 (tooltip.cpp:234) 3 libUtils_debug.4.14.82.dylib 0x0000000106c1ca95 Utils::ToolTip::showInternal(QPoint const&, QVariant const&, int, QWidget*, QVariant const&, QRect const&) + 629 (tooltip.cpp:336) 4 libUtils_debug.4.14.82.dylib 0x0000000106c1c499 Utils::ToolTip::show(QPoint const&, QString const&, Qt::TextFormat, QWidget*, QVariant const&, QRect const&) + 233 (tooltip.cpp:97) 5 libTextEditor_debug.dylib 0x000000010e94d939 TextEditor::BaseHoverHandler::operateTooltip(TextEditor::TextEditorWidget*, QPoint const&) + 553 (basehoverhandler.cpp:157) 6 libClangCodeModel_debug.dylib 0x0000000118e5ea9f ClangCodeModel::Internal::ClangHoverHandler::operateTooltip(TextEditor::TextEditorWidget*, QPoint const&) + 159 (clanghoverhandler.cpp:216) 7 libTextEditor_debug.dylib 0x000000010e94cdb9 TextEditor::BaseHoverHandler::showToolTip(TextEditor::TextEditorWidget*, QPoint const&) + 41 (basehoverhandler.cpp:41) 8 libTextEditor_debug.dylib 0x000000010e7d512f TextEditor::Internal::HoverHandlerRunner::onHandlerFinished(int, int, int) + 431 (texteditor.cpp:377) 9 libTextEditor_debug.dylib 0x000000010e7d4f77 TextEditor::Internal::HoverHandlerRunner::checkNext()::'lambda'(int)::operator()(int) const + 39 (texteditor.cpp:351)
Attachments
Issue Links
- relates to
-
QTCREATORBUG-25382 Qt Creator crashes with SIGSEGV when tooltip is displayed with Wayland
- Closed
-
QTCREATORBUG-25393 SIGSEV on QScreen::availableGeometry
- Closed
-
QTCREATORBUG-25471 With multiscreen setup, the popup windows & tooltips are shown on the incorrect screen
- Closed
- replaces
-
QTCREATORBUG-25393 SIGSEV on QScreen::availableGeometry
- Closed
-
QTCREATORBUG-25629 spontaneous segv crashes on macOS
- Closed
-
QTCREATORBUG-25772 Utils::ToolTip::setUp() does not check if QGuiApplication::screenAt() returns nullptr
- Closed
For Gerrit Dashboard: QTCREATORBUG-25466 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
350827,2 | Fix another unguarded access to a QScreen | 4.15 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |