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

Crash (SIGSEGV) in QPlatformWindow::window() when pressed on Qt::ToolTip window border

    XMLWordPrintable

Details

    • macOS
    • fc049052812bfa0b63af1f3c5fcadf1eb582e775 (qt/qtbase/5.12)

    Description

      I have a Qt::ToolTip window which should show in a specific place, similar to Qt Creator's LocatorPopup. ( when you pressed cmd + k).

      But the app receives SIGSEGV while trying to access QPlatformWindow::window() in qnsview_mouse.mm:

      QRegion mask = m_platformWindow->window()->mask(); 
      

      To reproduce this (in my case), a user should press on a specific place on the border of windows near Qt::ToolTip window border. See videos.

      The issue not happened if I changed Qt::ToolTip to Qt::Popup. But this is not an option for me. 

      Attached example and videos. (with Qt Creator steps and crash report)

      Attachments

        For Gerrit Dashboard: QTBUG-77348
        # Subject Branch Project Status CR V

        Activity

          People

            tpochep Timur Pocheptsov
            pavloshyba Pavlo Shyba
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes