Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.8.0, 5.9.0
-
macOS 10.12
-
-
c1ead32a84db96fd1b48e47d81511adf64cfe410
Description
[macOS]: When triggering a pan gesture and then deleting the widget that it is intended for can cause a crash. What happens is that it will delete the widget the gesture has started the timer for, yet the timer is not removed and therefore it ends up crashing when it tries to deliver it.
This happens on macOS as it uses QMacPanGestureRecognizer. When it starts a gesture it has a QBasicTimer which is set to the widget as the target to timeout in 300 ms. If the widget is deleted before this timer fires it can crash due to the fact that the target is no longer valid.
Attachments
For Gerrit Dashboard: QTBUG-60404 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
198262,2 | Do not use target object for timer in QMacPanGestureRecognizer::recognize | 5.9 | qt/qtbase | Status: DEFERRED | -1 | 0 |
227331,8 | Fix crash in QMacPanGestureRecognizer | 5.11 | qt/qtbase | Status: MERGED | +2 | 0 |