Crash during CefInitialize in CEF 133

Do not post support requests, bug reports or feature requests. Discuss CEF here. Non-CEF related discussion goes in General Discussion!

Crash during CefInitialize in CEF 133

Postby ninad3d » Tue Apr 29, 2025 4:01 am

Hello everyone,

I'm building Chromium using CEF version 133 on:-
OS: Ubuntu 22.04.5 LTS

The build completes successfully. However, when I try to launch the browser, it crashes during the `CefInitialize` call.
I’ve attached the `update.sh` and `create.sh` scripts I’m using for reference.
[img]
update.sh.png
[/img]
[img]
create.sh.png
[/img]

The crash occurs inside `ContentMainRunnerImpl::Shutdown()` at the line `delegate_->ProcessExiting()`.
It appears that `delegate_` might be invalid or already destroyed, resulting in a segmentation fault.
attached GDB call stack of the crash.
[img]
gdb_call_stack.png
[/img]

Has anyone encountered a similar issue or could provide guidance on how to resolve this?

Thanks in advance!
Attachments
update.sh.png
update.sh.png (19.5 KiB) Viewed 123409 times
create.sh.png
create.sh.png (12.57 KiB) Viewed 123409 times
gdb_call_stack.png
gdb backtrace
gdb_call_stack.png (86.35 KiB) Viewed 123409 times
ninad3d
Techie
 
Posts: 24
Joined: Wed Mar 04, 2020 12:20 am

Re: Crash during CefInitialize in CEF 133

Postby ndesktop » Tue Apr 29, 2025 6:39 am

+1 I am encountering the same crash/callstack on Windows as well.
ndesktop
Master
 
Posts: 937
Joined: Thu Dec 03, 2015 10:10 am

Re: Crash during CefInitialize in CEF 133

Postby ninad3d » Wed Apr 30, 2025 12:48 am

I've tried CEF versions 133, 134, and 135, and the issue occurs in all of them.
@ndesktop Did you try any workaround? Or know any version where this crash doesn't happen?
ninad3d
Techie
 
Posts: 24
Joined: Wed Mar 04, 2020 12:20 am

Re: Crash during CefInitialize in CEF 133

Postby ndesktop » Wed Apr 30, 2025 4:37 am

I do not have yet an explanation. I never reproduced it myself, only crash dump reports coming from the market.
ndesktop
Master
 
Posts: 937
Joined: Thu Dec 03, 2015 10:10 am

Re: Crash during CefInitialize in CEF 133

Postby magreenblatt » Wed Apr 30, 2025 8:44 am

From the callstack it looks like a crash when CefInitialize fails. Maybe try debugging the 2nd launch of cefclient with the same cache path (it forwards the launch to the 1st instance and exits early).
magreenblatt
Site Admin
 
Posts: 13059
Joined: Fri May 29, 2009 6:57 pm

Re: Crash during CefInitialize in CEF 133

Postby ndesktop » Thu May 01, 2025 2:53 am

Yes. I'd say two things here:
1. CefInitialize should not crash if fails;
2. CefInitialize fails prime suspect might be a second instance and some kind of crash due to pointing to the same cache/root location.
ndesktop
Master
 
Posts: 937
Joined: Thu Dec 03, 2015 10:10 am


Return to CEF Discussion

Who is online

Users browsing this forum: No registered users and 58 guests