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

Testing giving QWidgets a second finger alone crashes Qt

    XMLWordPrintable

Details

    Description

      QtWebEngine had tests doing the following

      QTest::touchEvent(target, s_touchDevice).press(1, tapCoords, target);
      QTest::touchEvent(target, s_touchDevice).stationary(1); QTest::touchEvent(target, s_touchDevice).release(1, tapCoords, target);

      Which causes a crash under QMutableEventPoint::setTimestamp(const ulong t) 

      Before the line 

      QEventPointPrivate *pd = QPointingDevicePrivate::get(
      const_cast<QPointingDevice *>(d->device))->pointById(id())->eventPoint.d;  

      d is valid, but after that line it is suddenly 0, and causes a crash when state() is tested.

       

      Replacing the finger id 1 with 0 in the QtWebEngine tests fixed the issue, but means the test ABI changed dangerously.

       

      Attachments

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

        Activity

          People

            srutledg Shawn Rutledge
            allan.jensen Allan Sandfeld Jensen
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes