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

[Reg 6.2.12 -> 6.5.5+] Crash when printing from Qt WebEngine

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • None
    • 6.5.5-1, 6.6.2, 6.7.0 RC2
    • WebEngine
    • None
    • Windows 10 22H2, MSVC 2019 x64

    Description

      Steps to reproduce

      1. Build and run the "WebEngine Widgets PrintMe Example" in Debug mode (https://doc.qt.io/qt-6/qtwebengine-webenginewidgets-printme-example.html )
      2. Press Ctrl+P

       

      Outcomes
      The app crashes with the following output:

      Received fatal exception EXCEPTION_BREAKPOINT
      Backtrace:
      	QWebEnginePage::setUrlRequestInterceptor [0x00007FFE6D3B3D08+276843548]
      	invalid_parameter [0x00007FFE9E0C7EC6+406]
      	invalid_parameter [0x00007FFE9E0C7D90+96]
      	QWebEnginePage::setUrlRequestInterceptor [0x00007FFE73BF9548+386180188]
      	QWebEnginePage::setUrlRequestInterceptor [0x00007FFE73BF8EBD+386178513]
      	QWebEnginePage::setUrlRequestInterceptor [0x00007FFE73BF8F1D+386178609]
      	QWebEnginePage::setUrlRequestInterceptor [0x00007FFE73BF8DF1+386178309]
      	QWebEnginePage::setUrlRequestInterceptor [0x00007FFE73BF910A+386179102]
      	QWebEnginePage::setUrlRequestInterceptor [0x00007FFE73BEAAD3+386120167]
      	QWebEnginePage::setUrlRequestInterceptor [0x00007FFE792C40A7+477188027]
      	QWebEnginePage::setUrlRequestInterceptor [0x00007FFE792C445B+477188975]
      	QWebEnginePage::setUrlRequestInterceptor [0x00007FFE792CA50C+477213728]
      	QWebEnginePage::setUrlRequestInterceptor [0x00007FFE792B666B+477132159]
      	QWebEnginePage::setUrlRequestInterceptor [0x00007FFE792B700C+477134624]
      	QWebEnginePage::setUrlRequestInterceptor [0x00007FFE792B83A0+477139636]
      	QWebEnginePage::setUrlRequestInterceptor [0x00007FFE792D14D6+477242346]
      	QWebEnginePage::setUrlRequestInterceptor [0x00007FFE5D413455+8799081]
      	QWebEnginePage::setUrlRequestInterceptor [0x00007FFE792C206E+477179778]
      	QWebEnginePage::setUrlRequestInterceptor [0x00007FFE792C3D1C+477187120]
      	QWebEnginePage::setUrlRequestInterceptor [0x00007FFE792CAE1B+477216047]
      	QWebEnginePage::setUrlRequestInterceptor [0x00007FFE792CE4A2+477230006]
      	QWebEnginePage::setUrlRequestInterceptor [0x00007FFE6CFFE02F+272953155]
      	QWebEnginePage::setUrlRequestInterceptor [0x00007FFE792BE8E5+477165561]
      	QWebEnginePage::setUrlRequestInterceptor [0x00007FFE6EC14D1A+302406702]
      	QWebEnginePage::setUrlRequestInterceptor [0x00007FFE6EC129D3+302397671]
      	QWebEnginePage::setUrlRequestInterceptor [0x00007FFE6EC551D8+302670060]
      	QWebEnginePage::setUrlRequestInterceptor [0x00007FFE6EC140E8+302403580]
      	QWebEnginePage::setUrlRequestInterceptor [0x00007FFE6F6ED0FF+313778195]
      	QWebEnginePage::setUrlRequestInterceptor [0x00007FFE6F6E112B+313729087]
      	QWebEnginePage::setUrlRequestInterceptor [0x00007FFE6F6E1845+313730905]
      	QWebEnginePage::setUrlRequestInterceptor [0x00007FFE6F6E1C80+313731988]
      	QWebEnginePage::setUrlRequestInterceptor [0x00007FFE6F6F2656+313800042]
      	QWebEnginePage::setUrlRequestInterceptor [0x00007FFE5D413455+8799081]
      	QWebEnginePage::setUrlRequestInterceptor [0x00007FFE6D1D47D7+274880235]
      	QWebEnginePage::setUrlRequestInterceptor [0x00007FFE6D35D217+276488491]
      	QWebEnginePage::setUrlRequestInterceptor [0x00007FFE6D370B55+276568681]
      	QWebEnginePage::setUrlRequestInterceptor [0x00007FFE6D36FA5F+276564339]
      	QWebEnginePage::setUrlRequestInterceptor [0x00007FFE6D11E5B6+274134218]
      	QWebEnginePage::setUrlRequestInterceptor [0x00007FFE6D37B458+276611948]
      	QWebEnginePage::setUrlRequestInterceptor [0x00007FFE6D30B4CD+276153313]
      	QWebEnginePage::setUrlRequestInterceptor [0x00007FFE73F5BBBD+389728977]
      	QWebEnginePage::setUrlRequestInterceptor [0x00007FFE6B71F3DC+246874864]
      	QWebEnginePage::setUrlRequestInterceptor [0x00007FFE6B71DFE0+246869748]
      	QWebEnginePage::setUrlRequestInterceptor [0x00007FFE6B717121+246841397]
      	QWebEnginePage::setUrlRequestInterceptor [0x00007FFE6B711D8D+246820001]
      	QWebEnginePage::setUrlRequestInterceptor [0x00007FFE5D494B4E+9329250]
      	TargetGetStockObject [0x00007FF7CA4B49A3+287008]
      	TargetGetStockObject [0x00007FF7CAC36FF7+8161140]
      	TargetGetStockObject [0x00007FF7CAC36DFE+8160635]
      	TargetGetStockObject [0x00007FF7CAC2E7A2+8126239]
      	TargetGetStockObject [0x00007FF7CAC2E64E+8125899]
      	TargetGetStockObject [0x00007FF7CAC2E50E+8125579]
      	TargetGetStockObject [0x00007FF7CAC2E83E+8126395]
      	BaseThreadInitThunk [0x00007FFF509D7344+20]
      	RtlUserThreadStart [0x00007FFF517A26B1+33]
      [33472:23964:0326/154355.401:INFO:web_contents_delegate_qt.cpp(279)] ProcessGone: 3 (-2147483645)
      [33472:23964:0326/154355.401:INFO:web_contents_delegate_qt.cpp(279)] ProcessGone: 3 (-2147483645)
      

       

      Notes
      With Qt 5.15.16 LTS and Qt 6.2.12 LTS, the example does not crash and the print succeeds (tested using "Microsoft Print to PDF"). However, the app does report "Invalid parameter passed to C runtime function." I'm not sure if this is related to the same crash or not.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-123755
          # Subject Branch Project Status CR V

          Activity

            People

              qt_webengine_team Qt WebEngine Team
              skoh-qt Sze Howe Koh
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes