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

Crash dynamic_casting QObject* originating from Qt5WebEngineCore

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 5.9.7, 5.12.1
    • Fix Version/s: 5.12.3, 5.14.0 Alpha
    • Component/s: WebEngine
    • Labels:
      None
    • Environment:
    • Platform/s:
      Linux/X11, Windows
    • Commits:
      1f77d4709946511b919810354f19875824399096 (qt/qtwebengine/5.12)

      Description

      The application crashes when dynamic_casting eventFilter()'s first parameter 'QObject obj' to a QWidget. qobject_casting works.

      The crash happens while eventFilter() is called with an obj originating from Qt5WebEngineCored, see attached screenshot.

      A minimal application which reproduces the crash is attached.

       

      PS: There is the class MessagePumpForUIQt which inherits QObject, but has no Q_OBJECT-Macro.

        Attachments

          Issue Links

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

            Activity

              People

              • Assignee:
                qt_webengine_team Qt WebEngine Team
                Reporter:
                qv Adi T
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes