Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-25466

Tooltip crashes QtCreator on external display (MacOS)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • Qt Creator 4.15.1
    • Qt Creator 4.14.2, Qt Creator 4.15.0-beta1
    • All Other Issues
    • None
    • MacOS BigSur 11.1
      QtCreator (built from source, SHA 768d4321f9bd06b2947d745814bb571b8330b121, February-18 2021)
      Qt 5.15.3
    • macOS

    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

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

          Activity

            People

              con Eike Ziller
              vuokko Juha Vuolle
              Votes:
              3 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes