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

Application crashes if delete QPrintPreviewDialog with opened QPrintDialog

    XMLWordPrintable

    Details

    • Platform/s:
      Windows

      Description

      I have a QDialog located on heap that opens QPrintPreviewDialog on heap too. If i open QPrintDialog from QPrintPreviewDialog and than call deleteLater() from QDialog application crashes with segmentation fault.

      example.txt contains simple way to reproduce it.

      StackTrace:

      1 QWidget::testAttribute_helper qwidget.cpp 11475 0x813ca2
      2 QWidget::testAttribute qwidget.h 869 0x9cdf29
      3 QDialog::setVisible qdialog.cpp 760 0x9cdf29
      4 QPrintDialogPrivate::openWindowsPrintDialogModally qprintdialog_win.cpp 270 0x6a75ddcf
      5 QPrintDialog::exec qprintdialog_win.cpp 213 0x6a75def9
      6 QPrintPreviewDialogPrivate::_q_print qprintpreviewdialog.cpp 595 0x6a7602b6
      7 QPrintPreviewDialog::qt_static_metacall moc_qprintpreviewdialog.cpp 121 0x6a764b10
      8 QMetaObject::activate qobject.cpp 3793 0x6b9411d8
      9 QMetaObject::activate qobject.cpp 3646 0x6b9414f6
      10 QAction::triggered moc_qaction.cpp 380 0x7e1457
      11 QAction::activate qaction.cpp 1166 0x7e44ba
      12 QAction::trigger qaction.h 187 0x9b4fed
      13 QToolButton::nextCheckState qtoolbutton.cpp 985 0x9b4fed
      14 QAbstractButtonPrivate::click qabstractbutton.cpp 397 0x8d24f9
      15 QAbstractButton::mouseReleaseEvent qabstractbutton.cpp 1011 0x8d2821
      16 QToolButton::mouseReleaseEvent qtoolbutton.cpp 622 0x9b4f8e
      17 QWidget::event qwidget.cpp 8937 0x82a18e
      18 QAbstractButton::event qabstractbutton.cpp 968 0x8d39dc
      19 QToolButton::event qtoolbutton.cpp 1001 0x9b5078
      20 QApplicationPrivate::notify_helper qapplication.cpp 3736 0x7e818e

        Attachments

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

          Activity

            People

            Assignee:
            thiago Thiago Macieira
            Reporter:
            vlad.yareschenko Vlad Yareschenko
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes