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

Print preview: crash when pressing a resize button

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P1: Critical P1: Critical
    • 6.7.1, 6.8.0 FF
    • 6.8
    • GUI: Printing
    • None
    • Windows
    • 2b0edab1f (dev), ab068c915 (6.7)

      Steps to reproduce:

      1. Using the WebEngine PrintMe example (with this fix already applied), click on the Print Now button to bring up the print preview window.
      2. Click on the landscape button
      3. 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.

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

            Unassigned Unassigned
            kchehlarski Kaloyan Chehlarski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes