cefclient does not start normally and crashes.
cefclient crashes after displaying the window and before the Google page is displayed.
This issue occurs in debug builds.
release build will boot successfully.
Below is the contents of debug.log.
- Code: Select all
[0616/182454.433:INFO:content_main_runner_impl.cc(1163)] Chrome is running in full browser mode.
[0616/182454.539:FATAL:thread_restrictions.cc(105)] Check failed: !*GetBlockingDisallowedTls(). Function marked as blocking was called from a scope that disallows blocking! If this task is running inside the ThreadPool, it needs to have MayBlock() in its TaskTraits. Otherwise, consider making this blocking work asynchronous or, as a last resort, you may use ScopedAllowBlocking (see its documentation for best practices).
g_blocking_disallowed 1 set by
Backtrace:
cef_time_delta [0x1409CE93+172947]
cef_string_utf16_to_upper [0x132594F1+275857]
cef_string_utf16_to_upper [0x132F519A+913978]
cef_string_utf16_to_upper [0x132F67B8+919640]
cef_zip_reader_create [0x10ED1218+20923048]
cef_zip_reader_create [0x106E8512+12629410]
cef_string_map_alloc [0x113BF2F7+4207671]
cef_zip_reader_create [0x10ED0BDD+20921453]
cef_zip_reader_create [0x10ED364B+20932315]
IsSandboxedProcess [0x14051494+6429668]
GetHandleVerifier [0x16183FA3+34324659]
cef_string_map_alloc [0x131AD832+35592562]
cef_string_map_alloc [0x131AF155+35598997]
cef_string_map_alloc [0x131AEB21+35597409]
cef_string_map_alloc [0x131AD446+35591558]
IsSandboxedProcess [0x1405054F+6425759]
IsSandboxedProcess [0x14050123+6424691]
cef_string_map_alloc [0x131D9ACB+35773451]
cef_string_map_alloc [0x131D9771+35772593]
cef_initialize [0x0FA416D4+180]
CefInitialize [0x00DD5209+409] (E:\projects_tfs\cef_binary\libcef_dll\wrapper\libcef_dll_wrapper.cc:102)
client::MainContextImpl::Initialize [0x00CBA7C8+600] (E:\projects_tfs\cef_binary\tests\cefclient\browser\main_context_impl.cc:250)
client::`anonymous namespace'::RunMain [0x00D6D37F+1135] (E:\projects_tfs\cef_binary\tests\cefclient\cefclient_win.cc:96)
wWinMain [0x00D6DD30+16] (E:\projects_tfs\cef_binary\tests\cefclient\cefclient_win.cc:133)
invoke_main [0x00FB527D+45] (D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:123)
__scrt_common_main_seh [0x00FB50D7+343] (D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288)
__scrt_common_main [0x00FB4F6D+13] (D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:331)
wWinMainCRTStartup [0x00FB52F8+8] (D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_wwinmain.cpp:17)
BaseThreadInitThunk [0x76756739+25]
RtlGetFullPathName_UEx [0x772D8FEF+1215]
RtlGetFullPathName_UEx [0x772D8FBD+1165]
When I link the CEF created by this distribution with my application, it prints the same message to debug.log and does not start.
Windows 11 Pro (21H2) Japanese
Visual Studio 2019 Version 16.11.16
Windows SDK Version 10.0.20348.0