Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.8
-
None
-
-
2b0edab1f (dev), ab068c915 (6.7)
Description
Steps to reproduce:
- Using the WebEngine PrintMe example (with this fix already applied), click on the Print Now button to bring up the print preview window.
- Click on the landscape button
- Immediately after (before the preview has updated), click on one of the buttons that change the zoom factor, e.g. zoom in/out; fit width.
The result is an immediate crash in QPicture::play(), caused by an attempt to access the private class pointer which seems to already be deleted. Attached is the stack trace for the crash.
The issue is 100% reproducible, provided you click fast enough. If you instead wait for the preview to be redrawn in landscape, and then click the "fit window" button, the application will freeze instead.
Attachments
For Gerrit Dashboard: QTBUG-122916 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
544568,2 | Disable change orientation buttons in preview when they will not work | dev | qt/qtbase | Status: ABANDONED | 0 | 0 |
545422,6 | Fix print preview dialog crashes in printme example | dev | qt/qtwebengine | Status: MERGED | +2 | 0 |
555451,2 | Fix print preview dialog crashes in printme example | 6.7 | qt/qtwebengine | Status: MERGED | +2 | 0 |