cefclient crashes (CEF 103.0.4)

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

cefclient crashes (CEF 103.0.4)

Postby naoki5 » Thu Jun 16, 2022 4:37 am

I downloaded binary distribution (cef_binary_103.0.4+g3ae256f+chromium-103.0.5060.24_windows32_beta.tar.bz2) and built it with VS 2019.
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
naoki5
Expert
 
Posts: 105
Joined: Wed Jul 17, 2019 2:44 am

Re: cefclient crashes (CEF 103.0.4)

Postby magreenblatt » Thu Jun 16, 2022 4:58 am

Please download the debug symbols, extract the PDB next to libcef.dll, and post the symbolized call stack for the crash.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: cefclient crashes (CEF 103.0.4)

Postby naoki5 » Thu Jun 16, 2022 9:59 pm

This is call stack when cefclient crashes.
Code: Select all
    libcef.dll!logging::LogMessage::~LogMessage() 行 925   C++
    libcef.dll!logging::LogMessage::~LogMessage() 行 607   C++
    libcef.dll!logging::CheckError::~CheckError() 行 109   C++
    libcef.dll!base::internal::AssertBlockingAllowed() 行 112   C++
    libcef.dll!base::ScopedBlockingCall::ScopedBlockingCall(const base::Location & from_here, base::BlockingType blocking_type) 行 45   C++
    libcef.dll!base::`anonymous namespace'::LoadSystemLibraryHelper(const base::FilePath & library_path, base::NativeLibraryLoadError * error) 行 158   C++
    libcef.dll!base::LoadSystemLibrary(base::BasicStringPiece<wchar_t,std::__1::char_traits<wchar_t>> name, base::NativeLibraryLoadError * error) 行 224   C++
    libcef.dll!base::win::`anonymous namespace'::GetAzureADJoinStateStorage::<lambda_2>::operator()() 行 202   C++
    [インライン フレーム] libcef.dll!base::win::`anonymous namespace'::GetAzureADJoinStateStorage() 行 195   C++
    libcef.dll!base::win::IsJoinedToAzureAD() 行 649   C++
    libcef.dll!StubResolverConfigReader::ShouldDisableDohForManaged() 行 234   C++
    libcef.dll!StubResolverConfigReader::GetAndUpdateConfiguration(bool force_check_parental_controls_for_automatic_mode, bool record_metrics, bool update_network_service) 行 285   C++
    libcef.dll!StubResolverConfigReader::UpdateNetworkService(bool record_metrics) 行 213   C++
    libcef.dll!SystemNetworkContextManager::OnNetworkServiceCreated(network::mojom::NetworkService * network_service) 行 684   C++
    libcef.dll!AlloyContentBrowserClient::OnNetworkServiceCreated(network::mojom::NetworkService * network_service) 行 1275   C++
    libcef.dll!content::GetNetworkService() 行 599   C++
    libcef.dll!content::`anonymous namespace'::BindNetworkChangeManagerReceiver(mojo::PendingReceiver<network::mojom::NetworkChangeManager> receiver) 行 377   C++
    libcef.dll!base::internal::FunctorTraits<void (*)(mojo::PendingReceiver<media::mojom::AudioStreamFactory>),void>::Invoke<void (*const &)(mojo::PendingReceiver<media::mojom::AudioStreamFactory>),mojo::PendingReceiver<media::mojom::AudioStreamFactory>>(void(*)(mojo::PendingReceiver<media::mojom::AudioStreamFactory>) & function, mojo::PendingReceiver<media::mojom::AudioStreamFactory> && args) 行 436   C++
    [インライン フレーム] libcef.dll!base::internal::InvokeHelper<0,void>::MakeItSo(void(*)(mojo::PendingReceiver<audio::mojom::SystemInfo>) & functor, mojo::PendingReceiver<audio::mojom::SystemInfo> && args) 行 705   C++
    [インライン フレーム] libcef.dll!base::internal::Invoker<base::internal::BindState<void (*)(mojo::PendingReceiver<audio::mojom::SystemInfo>)>,void (mojo::PendingReceiver<audio::mojom::SystemInfo>)>::RunImpl(void(*)(mojo::PendingReceiver<audio::mojom::SystemInfo>) & functor, const std::__1::tuple<> & bound, std::__1::integer_sequence<unsigned int>, mojo::PendingReceiver<audio::mojom::SystemInfo> && unbound_args) 行 778   C++
    libcef.dll!base::internal::Invoker<base::internal::BindState<void (*)(mojo::PendingReceiver<audio::mojom::SystemInfo>)>,void (mojo::PendingReceiver<audio::mojom::SystemInfo>)>::Run(base::internal::BindStateBase * base, mojo::PendingReceiver<audio::mojom::SystemInfo> && unbound_args) 行 760   C++
    [インライン フレーム] libcef.dll!base::RepeatingCallback<void (mojo::PendingReceiver<network::mojom::NetworkChangeManager>)>::Run(mojo::PendingReceiver<network::mojom::NetworkChangeManager> args) 行 242   C++
    libcef.dll!network::NetworkConnectionTracker::Initialize() 行 172   C++
    libcef.dll!network::NetworkConnectionTracker::NetworkConnectionTracker(base::RepeatingCallback<void (mojo::PendingReceiver<network::mojom::NetworkChangeManager>)> callback) 行 52   C++
    libcef.dll!content::GetNetworkConnectionTracker() 行 631   C++
    libcef.dll!content::BackgroundSyncNetworkObserver::BackgroundSyncNetworkObserver(base::RepeatingCallback<void ()> connection_changed_callback) 行 34   C++
    libcef.dll!std::__1::make_unique<content::BackgroundSyncNetworkObserver,base::RepeatingCallback<void ()>>(base::RepeatingCallback<void ()> && __args) 行 725   C++
    libcef.dll!content::BackgroundSyncManager::BackgroundSyncManager(scoped_refptr<content::ServiceWorkerContextWrapper> service_worker_context, scoped_refptr<content::DevToolsBackgroundServicesContextImpl> devtools_context) 行 660   C++
    libcef.dll!content::BackgroundSyncManager::Create(scoped_refptr<content::ServiceWorkerContextWrapper> service_worker_context, scoped_refptr<content::DevToolsBackgroundServicesContextImpl> devtools_context) 行 384   C++
    libcef.dll!content::BackgroundSyncContextImpl::CreateBackgroundSyncManager(scoped_refptr<content::ServiceWorkerContextWrapper> service_worker_context, scoped_refptr<content::DevToolsBackgroundServicesContextImpl> devtools_context) 行 191   C++
    libcef.dll!content::BackgroundSyncContextImpl::Init(const scoped_refptr<content::ServiceWorkerContextWrapper> & service_worker_context, const scoped_refptr<content::DevToolsBackgroundServicesContextImpl> & devtools_context) 行 62   C++
    libcef.dll!content::StoragePartitionImpl::Initialize(content::StoragePartitionImpl * fallback_for_blob_urls) 行 1262   C++
    libcef.dll!content::StoragePartitionImplMap::Get(const content::StoragePartitionConfig & partition_config, bool can_create) 行 353   C++
    libcef.dll!content::BrowserContext::GetStoragePartition(const content::StoragePartitionConfig & storage_partition_config, bool can_create) 行 137   C++
    libcef.dll!content::BrowserContext::GetStoragePartition(content::SiteInstance * site_instance, bool can_create) 行 126   C++
    [インライン フレーム] libcef.dll!content::`anonymous namespace'::SpareRenderProcessHostManager::MaybeTakeSpareRenderProcessHost(content::BrowserContext * browser_context, content::SiteInstanceImpl * site_instance) 行 529   C++
    libcef.dll!content::RenderProcessHostImpl::GetProcessHostForSiteInstance(content::SiteInstanceImpl * site_instance) 行 4476   C++
    libcef.dll!content::SiteInstanceImpl::GetProcess() 行 321   C++
    libcef.dll!content::RenderFrameHostManager::CreateRenderFrameHost(content::RenderFrameHostManager::CreateFrameCase create_frame_case, content::SiteInstance * site_instance, int frame_routing_id, mojo::PendingAssociatedRemote<content::mojom::Frame> frame_remote, const base::TokenType<blink::LocalFrameTokenTypeMarker> & frame_token, bool renderer_initiated_creation, scoped_refptr<content::BrowsingContextState> browsing_context_state) 行 2655   C++
    libcef.dll!content::RenderFrameHostManager::InitRoot(content::SiteInstance * site_instance, bool renderer_initiated_creation, blink::FramePolicy initial_main_frame_policy, const std::__1::basic_string<char,std::__1::char_traits<char>,std::__1::allocator<char>> & name) 行 339   C++
    libcef.dll!content::FrameTree::Init(content::SiteInstance * main_frame_site_instance, bool renderer_initiated_creation, const std::__1::basic_string<char,std::__1::char_traits<char>,std::__1::allocator<char>> & main_frame_name, content::RenderFrameHostImpl * opener_for_origin, const blink::FramePolicy & frame_policy) 行 761   C++
    libcef.dll!content::WebContentsImpl::Init(const content::WebContents::CreateParams & params, blink::FramePolicy primary_main_frame_policy) 行 3029   C++
    libcef.dll!content::WebContentsImpl::CreateWithOpener(const content::WebContents::CreateParams & params, content::RenderFrameHostImpl * opener_rfh) 行 1139   C++
    libcef.dll!content::WebContentsImpl::Create(const content::WebContents::CreateParams & params) 行 565   C++
    libcef.dll!content::WebContents::Create(const content::WebContents::CreateParams & params) 行 560   C++
    libcef.dll!CefBrowserPlatformDelegateAlloy::CreateWebContents(CefBrowserCreateParams & create_params, bool & own_web_contents) 行 103   C++
    libcef.dll!AlloyBrowserHostImpl::Create(CefBrowserCreateParams & create_params) 行 112   C++
    libcef.dll!CefBrowserHostBase::Create(CefBrowserCreateParams & create_params) 行 172   C++
    libcef.dll!CefBrowserHost::CreateBrowserSync(const CefWindowInfo & windowInfo, scoped_refptr<CefClient> client, const CefStringBase<CefStringTraitsUTF16> & url, const CefStructBase<CefBrowserSettingsTraits> & settings, scoped_refptr<CefDictionaryValue> extra_info, scoped_refptr<CefRequestContext> request_context) 行 149   C++
    libcef.dll!`anonymous namespace'::CreateBrowserHelper::Run() 行 32   C++
    [インライン フレーム] libcef.dll!base::OnceCallback<void ()>::Run() 行 143   C++
    libcef.dll!base::TaskAnnotator::RunTaskImpl(base::PendingTask & pending_task) 行 135   C++
    [インライン フレーム] libcef.dll!base::TaskAnnotator::RunTask(perfetto::StaticString event_name, base::PendingTask & pending_task, base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl::<lambda_0> && args) 行 74   C++
    libcef.dll!base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWorkImpl(base::sequence_manager::LazyNow * continuation_lazy_now) 行 385   C++
    libcef.dll!base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::DoWork() 行 296   C++
    libcef.dll!base::MessagePumpForUI::DoRunLoop() 行 215   C++
    libcef.dll!base::MessagePumpWin::Run(base::MessagePump::Delegate * delegate) 行 79   C++
    libcef.dll!base::sequence_manager::internal::ThreadControllerWithMessagePumpImpl::Run(bool application_tasks_allowed, base::TimeDelta timeout) 行 500   C++
    libcef.dll!base::RunLoop::Run(const base::Location & location) 行 141   C++
    libcef.dll!CefMainRunner::RunMessageLoop() 行 282   C++
    libcef.dll!CefContext::RunMessageLoop() 行 370   C++
>   cefclient.exe!CefRunMessageLoop() 行 132   C++
    cefclient.exe!client::MainMessageLoopStd::Run() 行 15   C++
    cefclient.exe!client::`anonymous namespace'::RunMain(HINSTANCE__ * hInstance, int nCmdShow) 行 111   C++
    cefclient.exe!wWinMain(HINSTANCE__ * hInstance, HINSTANCE__ * hPrevInstance, wchar_t * lpCmdLine, int nCmdShow) 行 133   C++
    [外部コード]   
    kernel32.dll![下のフレームは間違っているか、または見つかりません。kernel32.dll に対して読み込まれたシンボルはありません]   不明
naoki5
Expert
 
Posts: 105
Joined: Wed Jul 17, 2019 2:44 am

Re: cefclient crashes (CEF 103.0.4)

Postby magreenblatt » Fri Jun 17, 2022 4:23 am

Thanks, filed as https://bitbucket.org/chromiumembedded/cef/issues/3342

Does the crash reproduce with any other machines on the same network? Do you have a Windows 10 machine, or a non-Japanese language Windows install?
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: cefclient crashes (CEF 103.0.4)

Postby naoki5 » Fri Jun 17, 2022 5:06 am

The crash was also reproduced on other machines on the same network.
That machine is Windows 10.

I do not have non-Japanese language Windows machine.
I changed the system locale to "English (US)" to try it out, but the crash reproduces.

I have found that after repeated attempts to activate it, it will occasionally start.
However, it crashes at a fairly high rate.
naoki5
Expert
 
Posts: 105
Joined: Wed Jul 17, 2019 2:44 am

Re: cefclient crashes (CEF 103.0.4)

Postby magreenblatt » Fri Jun 17, 2022 5:19 am

Thanks. Can you confirm that the crash occurs with M101: https://cef-builds.spotifycdn.com/index ... dows32:101.
But not with M100: https://cef-builds.spotifycdn.com/index ... dows32:100.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: cefclient crashes (CEF 103.0.4)

Postby naoki5 » Mon Jun 20, 2022 3:25 am

I built M101 (101.0.18) and checked it, but the crash does not occur.

I have used the following versions of CEF in my application so far.
No crashes have occurred in either version.

102.0.10
102.0.9
101.0.18
101.0.15
100.0.23
100.0.14
100.0.12

When I tried M103, it crashed.
naoki5
Expert
 
Posts: 105
Joined: Wed Jul 17, 2019 2:44 am

Re: cefclient crashes (CEF 103.0.4)

Postby magreenblatt » Mon Jun 20, 2022 3:52 am

Thanks for the info. Were you testing Debug builds in all the above cases?
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: cefclient crashes (CEF 103.0.4)

Postby naoki5 » Mon Jun 20, 2022 4:20 am

All tested with debug builds.
I use debug builds while developing my application.
naoki5
Expert
 
Posts: 105
Joined: Wed Jul 17, 2019 2:44 am

Re: cefclient crashes (CEF 103.0.4)

Postby samohtt » Mon Jun 20, 2022 5:18 am

I can confirm, that cefclient crashes with Beta 103.0.6+ge38efd5+chromium-103.0.5060.53 when starting the debug build in Visual Studio (2022) under Windows 10.
Tested with the stable release version of 102.0.10+gf249b2e+chromium-102.0.5005.115 without problems (exactly the same environment).
samohtt
Techie
 
Posts: 20
Joined: Tue Jul 24, 2018 11:32 am

Next

Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 22 guests