Details
Description
Note: this issue may be a duplicate of QTBUG-95459, but as the stacktrace is different, and the existing ticket is closed, I prefer to create a new one.
When I start the "Minimal WebEngine example" on Windows/Debug with Qt 6.2.0. beta3, the program crashes. The issue doesn't happen on release build (maybe because assertions are disabled).
The issue was reproduced on two distinct computers.
Same issue happens with other WebEngine examples (Google maps....)
This problem prevents me from launching my application in debug mode, because it starts with a web login.
Here is the stack trace:
qt.webenginecontext: GLImplementation: desktop Surface Type: OpenGL Surface Profile: CompatibilityProfile Surface Version: 4.6 Using Default SG Backend: yes Using Software Dynamic GL: no Using Angle: no Init Parameters: * application-name minimal * browser-subprocess-path C:\Qt\6.2.0\msvc2019_64\bin\QtWebEngineProcessd.exe * create-default-gl-context * disable-direct-composition * disable-es3-gl-context * disable-features DnsOverHttpsUpgrade,ConsolidatedMovementXY,InstalledApp,BackgroundFetch,WebOTP,WebPayments,WebUSB,PictureInPicture * disable-speech-api * enable-features TracingServiceInProcess * enable-threaded-compositing * gpu-preferences SAAAAAAAAADoAAAQAAAAAAAAAAAAAAAAAABgAAAAAAAoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB4AAAAAAAAAHgAAAAAAAAAKAAAAAQAAAAgAAAAAAAAACgAAAAAAAAAMAAAAAAAAAA4AAAAAAAAABAAAAAAAAAAAAAAAAUAAAAQAAAAAAAAAAAAAAAGAAAAEAAAAAAAAAABAAAABQAAABAAAAAAAAAAAQAAAAYAAAAIAAAAAAAAAAgAAAAAAAAA * in-process-gpu * use-gl desktop Received fatal exception EXCEPTION_BREAKPOINT Backtrace: `anonymous namespace'::InvalidParameter [0x00007FFF10FE4038+24] (C:\Users\qt\work\qt\qtwebengine\src\3rdparty\chromium\base\win\process_startup_helper.cc:26) invalid_parameter [0x00007FFF5899AF0F+207] std::_String_const_iterator<std::_String_val<std::_Simple_types<char> > >::operator* [0x00007FFF069FE772+450] (C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.28.29910\include\xstring:1858) std::_String_const_iterator<std::_String_val<std::_Simple_types<char> > >::operator-> [0x00007FFF0A2FFD03+19] (C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.28.29910\include\xstring:1867) base::to_address<std::_String_const_iterator<std::_String_val<std::_Simple_types<char> > > > [0x00007FFF0A2FD3B3+19] (C:\Users\qt\work\qt\qtwebengine\src\3rdparty\chromium\base\stl_util.h:158) base::MakeBasicStringPiece<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::_String_const_iterator<std::_String_val<std::_Simple_types<char> > > > [0x00007FFF0A2F6D8C+140] (C:\Users\qt\work\qt\qtwebengine\src\3rdparty\chromium\base\strings\string_util.h:92) base::MakeStringPiece<std::_String_const_iterator<std::_String_val<std::_Simple_types<char> > > > [0x00007FFF0A2F6E78+104] (C:\Users\qt\work\qt\qtwebengine\src\3rdparty\chromium\base\strings\string_util.h:99) net::HttpContentDisposition::ConsumeDispositionType [0x00007FFF1112E651+225] (C:\Users\qt\work\qt\qtwebengine\src\3rdparty\chromium\net\http\http_content_disposition.cc:348) net::HttpContentDisposition::Parse [0x00007FFF1113041F+399] (C:\Users\qt\work\qt\qtwebengine\src\3rdparty\chromium\net\http\http_content_disposition.cc:398) net::HttpContentDisposition::HttpContentDisposition [0x00007FFF1112E4AF+79] (C:\Users\qt\work\qt\qtwebengine\src\3rdparty\chromium\net\http\http_content_disposition.cc:340) blink::IsContentDispositionAttachment [0x00007FFF0E54AADC+116] blink::DocumentLoader::Archive [0x00007FFF1554827E+202] blink::FrameLoader::CommitNavigation [0x00007FFF1554B53C+532] blink::WebLocalFrameImpl::CommitNavigation [0x00007FFF152E7927+255] content::RenderFrameImpl::CommitNavigationWithParams [0x00007FFF1901E82F+2623] (C:\Users\qt\work\qt\qtwebengine\src\3rdparty\chromium\content\renderer\render_frame_impl.cc:3170) base::internal::FunctorTraits<void (__cdecl content::RenderFrameImpl::*)(mojo::StructPtr<content::mojom::CommonNavigationParams>,mojo::StructPtr<content::mojom::CommitNavigationParams>,std::unique_ptr<blink::PendingURLLoaderFactoryBundle,std::default_dele [0x00007FFF18FCE92C+620] (C:\Users\qt\work\qt\qtwebengine\src\3rdparty\chromium\base\bind_internal.h:499) base::internal::InvokeHelper<1,void>::MakeItSo<void (__cdecl content::RenderFrameImpl::*)(mojo::StructPtr<content::mojom::CommonNavigationParams>,mojo::StructPtr<content::mojom::CommitNavigationParams>,std::unique_ptr<blink::PendingURLLoaderFactoryBundle, [0x00007FFF18FD0C2B+411] (C:\Users\qt\work\qt\qtwebengine\src\3rdparty\chromium\base\bind_internal.h:660) ??@3952e2f8495355389f3570b6e6bfb06f@ [0x00007FFF19003DC6+502] (C:\Users\qt\work\qt\qtwebengine\src\3rdparty\chromium\base\bind_internal.h:714) base::internal::Invoker<base::internal::BindState<void (__cdecl content::RenderFrameImpl::*)(mojo::StructPtr<content::mojom::CommonNavigationParams>,mojo::StructPtr<content::mojom::CommitNavigationParams>,std::unique_ptr<blink::PendingURLLoaderFactoryBund [0x00007FFF190513B6+102] (C:\Users\qt\work\qt\qtwebengine\src\3rdparty\chromium\base\bind_internal.h:683) base::OnceCallback<void __cdecl(std::unique_ptr<blink::WebNavigationParams,std::default_delete<blink::WebNavigationParams> >)>::Run [0x00007FFF19050BCC+92] (C:\Users\qt\work\qt\qtwebengine\src\3rdparty\chromium\base\callback.h:101) content::RenderFrameImpl::CommitNavigation [0x00007FFF1901D7AE+5246] (C:\Users\qt\work\qt\qtwebengine\src\3rdparty\chromium\content\renderer\render_frame_impl.cc:3050) content::NavigationClient::CommitNavigation [0x00007FFF191DCACF+831] (C:\Users\qt\work\qt\qtwebengine\src\3rdparty\chromium\content\renderer\navigation_client.cc:47) content::mojom::NavigationClientStubDispatch::AcceptWithResponder [0x00007FFF0A419E5E+2318] (C:\Users\qt\work\qt\qtwebengine\src\core\Debug\gen\content\common\navigation_client.mojom.cc:1059) content::mojom::NavigationClientStub<mojo::RawPtrImplRefTraits<content::mojom::NavigationClient> >::AcceptWithResponder [0x00007FFF191DAAF7+135] (C:\Users\qt\work\qt\qtwebengine\src\core\Debug\gen\content\common\navigation_client.mojom.h:201) mojo::InterfaceEndpointClient::HandleValidatedMessage [0x00007FFF123B1838+920] (C:\Users\qt\work\qt\qtwebengine\src\3rdparty\chromium\mojo\public\cpp\bindings\lib\interface_endpoint_client.cc:526) mojo::InterfaceEndpointClient::HandleIncomingMessageThunk::Accept [0x00007FFF123B0B61+33] (C:\Users\qt\work\qt\qtwebengine\src\3rdparty\chromium\mojo\public\cpp\bindings\lib\interface_endpoint_client.cc:141) mojo::MessageDispatcher::Accept [0x00007FFF123C5468+312] (C:\Users\qt\work\qt\qtwebengine\src\3rdparty\chromium\mojo\public\cpp\bindings\lib\message_dispatcher.cc:43) mojo::InterfaceEndpointClient::HandleIncomingMessage [0x00007FFF123B1462+82] (C:\Users\qt\work\qt\qtwebengine\src\3rdparty\chromium\mojo\public\cpp\bindings\lib\interface_endpoint_client.cc:354) IPC::`anonymous namespace'::ChannelAssociatedGroupController::AcceptOnProxyThread [0x00007FFF128EDF7A+1258] (C:\Users\qt\work\qt\qtwebengine\src\3rdparty\chromium\ipc\ipc_mojo_bootstrap.cc:945) base::internal::FunctorTraits<void (__cdecl IPC::`anonymous namespace'::ChannelAssociatedGroupController::*)(mojo::Message),void>::Invoke<void (__cdecl IPC::`anonymous namespace'::ChannelAssociatedGroupController::*)(mojo::Message),scoped_refptr<IPC::`ano [0x00007FFF128E3A00+112] (C:\Users\qt\work\qt\qtwebengine\src\3rdparty\chromium\base\bind_internal.h:499) base::internal::InvokeHelper<0,void>::MakeItSo<void (__cdecl IPC::`anonymous namespace'::ChannelAssociatedGroupController::*)(mojo::Message),scoped_refptr<IPC::`anonymous namespace'::ChannelAssociatedGroupController>,mojo::Message> [0x00007FFF128E3F89+105] (C:\Users\qt\work\qt\qtwebengine\src\3rdparty\chromium\base\bind_internal.h:639) base::internal::Invoker<base::internal::BindState<void (__cdecl IPC::`anonymous namespace'::ChannelAssociatedGroupController::*)(mojo::Message),scoped_refptr<IPC::`anonymous namespace'::ChannelAssociatedGroupController>,mojo::Message>,void __cdecl(void)>: [0x00007FFF128E43E3+115] (C:\Users\qt\work\qt\qtwebengine\src\3rdparty\chromium\base\bind_internal.h:714) base::internal::Invoker<base::internal::BindState<void (__cdecl IPC::`anonymous namespace'::ChannelAssociatedGroupController::*)(mojo::Message),scoped_refptr<IPC::`anonymous namespace'::ChannelAssociatedGroupController>,mojo::Message>,void __cdecl(void)>: [0x00007FFF128F352D+77] (C:\Users\qt\work\qt\qtwebengine\src\3rdparty\chromium\base\bind_internal.h:683) base::OnceCallback<void __cdecl(void)>::Run [0x00007FFF067114CA+74] (C:\Users\qt\work\qt\qtwebengine\src\3rdparty\chromium\base\callback.h:101) base::TaskAnnotator::RunTask [0x00007FFF10D2855F+1247] (C:\Users\qt\work\qt\qtwebengine\src\3rdparty\chromium\base\task\common\task_annotator.cc:165) base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl [0x00007FFF1107C602+1538] (C:\Users\qt\work\qt\qtwebengine\src\3rdparty\chromium\base\task\sequence_manager\thread_controller_with_message_pump_impl.cc:352) base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork [0x00007FFF1107BCD3+115] (C:\Users\qt\work\qt\qtwebengine\src\3rdparty\chromium\base\task\sequence_manager\thread_controller_with_message_pump_impl.cc:266) base::MessagePumpDefault::Run [0x00007FFF10CF4173+67] (C:\Users\qt\work\qt\qtwebengine\src\3rdparty\chromium\base\message_loop\message_pump_default.cc:40) base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run [0x00007FFF1107EE03+787] (C:\Users\qt\work\qt\qtwebengine\src\3rdparty\chromium\base\task\sequence_manager\thread_controller_with_message_pump_impl.cc:463) base::RunLoop::Run [0x00007FFF10F4C103+643] (C:\Users\qt\work\qt\qtwebengine\src\3rdparty\chromium\base\run_loop.cc:135) content::RendererMain [0x00007FFF1904FA92+1570] (C:\Users\qt\work\qt\qtwebengine\src\3rdparty\chromium\content\renderer\renderer_main.cc:266) content::RunOtherNamedProcessTypeMain [0x00007FFF0F496B99+201] (C:\Users\qt\work\qt\qtwebengine\src\3rdparty\chromium\content\app\content_main_runner_impl.cc:616) content::ContentMainRunnerImpl::Run [0x00007FFF0F49607B+571] (C:\Users\qt\work\qt\qtwebengine\src\3rdparty\chromium\content\app\content_main_runner_impl.cc:957) content::RunContentProcess [0x00007FFF0F48FCAF+783] (C:\Users\qt\work\qt\qtwebengine\src\3rdparty\chromium\content\app\content_main.cc:374) content::ContentMain [0x00007FFF0F48A791+65] (C:\Users\qt\work\qt\qtwebengine\src\3rdparty\chromium\content\app\content_main.cc:400) QtWebEngineCore::processMain [0x00007FFF06814300+128] (C:\Users\qt\work\qt\qtwebengine\src\core\process_main.cpp:80) main [0x00007FF68702377F+463] (C:\Users\qt\work\qt\qtwebengine\src\process\main.cpp:128) WinMain [0x00007FF68761FCF0+272] (C:\Users\qt\work\qt\qtbase\src\entrypoint\qtentrypoint_win.cpp:97) invoke_main [0x00007FF687618DE2+50] (D:\a01\_work\26\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:107) __scrt_common_main_seh [0x00007FF687618C8E+302] (D:\a01\_work\26\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288) __scrt_common_main [0x00007FF687618B4E+14] (D:\a01\_work\26\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:331) WinMainCRTStartup [0x00007FF687618E7E+14] (D:\a01\_work\26\s\src\vctools\crt\vcstartup\src\startup\exe_winmain.cpp:17) BaseThreadInitThunk [0x00007FFFD4067034+20] RtlUserThreadStart [0x00007FFFD52E2651+33]