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

Calling QPrintDialog::exec() results in a crash

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P2: Important
    • None
    • 4.7.4, 4.8.0
    • GUI: Printing
    • None
    • Windows 7, 32 bits.

    Description

      It seems that under some circumstances, a call to QPrintDialog::exec() can result in a crash. I have not yet been able to create a small example, but in our application (that uses threading and openGL, but no ActiveX) it happens 100% of the time. When tracing the issue, the last call inside Qt is in qprintdialog_win.cpp line 253: the call to PrintDlgEx. I managed to get the following stacktrace:

      0 RpcpReportFatalError RPCRT4 0x765022d3
      1 RpcpRaiseException RPCRT4 0x764be10e
      2 RpcRaiseException RPCRT4 0x764be0d1
      3 ObjectStublessClient stblsclt.cxx 467 0x74d90531
      4 ObjectStubless stubless.asm 154 0x74c898ad
      5 CPrintDialog::CreatePrintBrowser COMDLG32 0x74a25f1e
      6 CPrintDialog::OnInitDialog COMDLG32 0x74a26ab5
      7 Print_InitDialog COMDLG32 0x74a269dc
      8 Print_GeneralDlgProc COMDLG32 0x74a2696a
      9 InternalCallWinProc USER32 0x7550c4e7
      10 UserCallDlgProcCheckWow USER32 0x75525855
      11 DefDlgProcWorker USER32 0x755259f3
      12 DefDlgProcW USER32 0x75525be3
      13 InternalCallWinProc USER32 0x7550c4e7
      14 UserCallWinProcCheckWow USER32 0x7550c5e7
      15 DispatchClientMessage USER32 0x75504f0e
      16 __fnDWORD USER32 0x75504f7d
      17 KiUserCallbackDispatcher ntdll 0x76de6fce
      18 NtUserMessageCall USER32 0x75504f51
      19 SendMessageWorker USER32 0x75500940
      20 InternalCreateDialog USER32 0x75524f6c
      21 CreateDialogIndirectParamAorW USER32 0x7552535a
      22 CreateDialogIndirectParamW USER32 0x7551ea2b
      23 _CreatePageDialog COMCTL32 0x6f514da0
      24 _CreatePage COMCTL32 0x6f514ee2
      25 PageChange COMCTL32 0x6f51732e
      26 InitPropSheetDlg COMCTL32 0x6f518ea5
      27 PropSheetDlgProc COMCTL32 0x6f51974b
      28 InternalCallWinProc USER32 0x7550c4e7
      29 UserCallDlgProcCheckWow USER32 0x75525855
      30 DefDlgProcWorker USER32 0x755259f3
      31 DefDlgProcW USER32 0x75525be3
      32 InternalCallWinProc USER32 0x7550c4e7
      33 UserCallWinProcCheckWow USER32 0x7550c5e7
      34 DispatchClientMessage USER32 0x75504f0e
      35 __fnDWORD USER32 0x75504f7d
      36 KiUserCallbackDispatcher ntdll 0x76de6fce
      37 NtUserMessageCall USER32 0x75504f51
      38 SendMessageWorker USER32 0x75500940
      39 InternalCreateDialog USER32 0x75524f6c
      40 CreateDialogIndirectParamAorW USER32 0x7552535a
      41 CreateDialogIndirectParamW USER32 0x7551ea2b
      42 _RealPropertySheet COMCTL32 0x6f519d77
      43 _PropertySheet COMCTL32 0x6f519fc5
      44 PropertySheetW COMCTL32 0x6f519fe0
      45 Print_InvokePropertySheets COMDLG32 0x74a24fea
      46 PrintDlgExX COMDLG32 0x74a24d53
      47 PrintDlgExW COMDLG32 0x74a24bc4
      48 ZN12QPrintDialog4execEv QtGuid4 0x27a6e8c
      49 ZN12QPrintDialog4execEv QtGuid4 0x27a6d38
      50 Cassinid 0x42b03a
      51 Cassinid 0x42df6b
      52 Cassinid 0x45ffb1
      53 ZN11QMetaObject8activateEP7QObjectPKS_iPPv QtCored4 0x6a22928b
      54 ZN7QAction9triggeredEb QtGuid4 0x22ff860
      55 ZN7QAction8activateENS_11ActionEventE QtGuid4 0x22fed35
      56 ZN7QAction7triggerEv QtGuid4 0x2a59949
      57 ZN11QToolButton14nextCheckStateEv QtGuid4 0x2773d67
      58 ZNK12QButtonGroup9checkedIdEv QtGuid4 0x269d8a6
      59 ZN15QAbstractButton17mouseReleaseEventEP11QMouseEvent QtGuid4 0x269eddd
      60 ZN11QToolButton17mouseReleaseEventEP11QMouseEvent QtGuid4 0x27728d4
      61 ZN7QWidget5eventEP6QEvent QtGuid4 0x23563de
      62 ZN15QAbstractButton5eventEP6QEvent QtGuid4 0x269ec68
      63 ZN11QToolButton5eventEP6QEvent QtGuid4 0x2773dc6
      64 ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent QtGuid4 0x230c020
      65 ZN12QApplication6notifyEP7QObjectP6QEvent QtGuid4 0x230a26a
      66 Cassinid 0x41478f
      67 ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent QtCored4 0x6a213252
      68 ZN16QAccessibleEvent8setValueERK7QString QtGuid4 0x29a0246
      69 ZN19QApplicationPrivate14sendMouseEventEP7QWidgetP11QMouseEventS1_S1_PS1_R8QPointerIS0_Eb QtGuid4 0x2308ad6
      70 ZN12QApplication16winMouseButtonUpEv QtGuid4 0x2373171
      71 ZN12QApplication8winFocusEP7QWidgetb QtGuid4 0x236df66
      72 InternalCallWinProc USER32 0x7550c4e7
      73 UserCallWinProcCheckWow USER32 0x7550c5e7
      74 DispatchMessageWorker USER32 0x7550cc19
      75 DispatchMessageW USER32 0x7550cc70
      76 ZN21QEventDispatcherWin3213processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE QtCored4 0x6a239cc6
      77 Z24qt_getRegisteredWndClassv QtGuid4 0x236ca06
      78 ZN10QEventLoop13processEventsE6QFlagsINS_17ProcessEventsFlagEE QtCored4 0x6a210e76
      79 ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE QtCored4 0x6a210fcc
      80 ZN16QCoreApplication4execEv QtCored4 0x6a21381c
      81 ZN12QApplication4execEv QtGuid4 0x230961a
      82 Cassinid 0x4029df
      83 Cassinid 0x4638a2
      84 Cassinid 0x4635c8
      85 Cassinid 0x40124b
      86 Cassinid 0x4012b8
      87 BaseThreadInitThunk kernel32 0x74bbed6c
      88 __RtlUserThreadStart ntdll 0x76e0377b
      89 _RtlUserThreadStart ntdll 0x76e0374e

      Attachments

        Issue Links

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

          Activity

            People

              johnlayt John Layt
              andre André Somers
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes