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

Crash on window deactivate via QQuickPointerHandler::setExclusiveGrab on null event

    XMLWordPrintable

Details

    • Linux/Wayland, Linux/X11

    Description

      We received quite a few crash reports about this: https://crash-reports.kde.org/organizations/kde/issues/77440

      Backtrace goes like this:

      QPointerEvent::pointingDevice (qevent.cpp:332)
      QPointerEvent::exclusiveGrabber (qevent.cpp:354)+0x616b71
      QQuickPointerHandler::setExclusiveGrab (qquickpointerhandler.cpp:502)
      QQuickDeliveryAgentPrivate::onGrabChanged (qquickdeliveryagent.cpp:1866)
      ? (qobjectdefs_impl.h:486)
      doActivate<T> (qobject.cpp:4120)
      ? (qobjectdefs_impl.h:486)
      doActivate<T> (qobject.cpp:4120)
      QPointingDevice::grabChanged (moc_qpointingdevice.cpp:294)
      QPointingDevicePrivate::setExclusiveGrabber (qpointingdevice.cpp:516)
      QQuickDeliveryAgentPrivate::handleWindowDeactivate (qquickdeliveryagent.cpp:1416)
      

      handleWindowDeactivate does devPriv->setExclusiveGrabber(nullptr, epd.eventPoint, nullptr);. In the end QPointerEvent::pointingDevice will try to dereference this nullptr event.

      I didnt quite see how the QQuickDeliveryAgentPrivate::onGrabChanged -> QQuickPointerHandler::setExclusiveGrab works but my current theory is that QQuickTapHandler::onGrabChanged is happening which calls setPressed and the automatic crash reporting fails to resolve this overloaded method.

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            davidre David Redondo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes