FATAL error when shutting down CefApp (application crash)

Having problems with building or using the JCEF Java binding? Ask your questions here.

FATAL error when shutting down CefApp (application crash)

Postby sfd » Thu Aug 10, 2023 7:21 am

We are encountering an issue when shutting down our application and JCEF on Linux.
We see the following error message in the terminal:

Code: Select all
[0810/112257.170509:FATAL:window_observer.cc(14)] Check failed: !IsInObserverList().
#0 0x7fafbb036709 (/home/../jcef/linux/libcef.so+0x51b0708)
#1 0x7fafbaf9cb43 (/home/../jcef/linux/libcef.so+0x5116b42)
#2 0x7fafbafae815 (/home/../jcef/linux/libcef.so+0x5128814)
#3 0x7fafbc72e7cb (/home/../jcef/linux/libcef.so+0x68a87ca)
#4 0x7fafbd4b248b (/home/../jcef/linux/libcef.so+0x762c48a)
#5 0x7fafbd4b24be (/home/../jcef/linux/libcef.so+0x762c4bd)
#6 0x7fafbd4b23f6 (/home/../jcef/linux/libcef.so+0x762c3f5)
#7 0x7fafbaf99075 (/home/../jcef/linux/libcef.so+0x5113074)
#8 0x7fafbaf3ed6a (/home/../jcef/linux/libcef.so+0x50b8d69)
#9 0x7fafbb0478ee (/home/../jcef/linux/libcef.so+0x51c18ed)
#10 0x7fb052adf1ca start_thread
#11 0x7fb052547e73 __GI___clone

Aborted (core dumped)


The FATAL error make the JVM crash and thus our own shutdown logic is not always being run.

We have debugged the JCEF code and can conclude that the error happens when we call CefApp.getInstance().dispose(). Specifically when CefApp.this.N_Shutdown() is being invoked.

We have been searching the forum and old issues for similar issues without much luck. The only one that sounds related is https://github.com/chromiumembedded/cef/issues/2831. However the fix should be included in the version we are using. It could also be related to https://github.com/chromiumembedded/java-cef/issues/382.

CEF version: 81.0.4044.113

Any ideas or comments that could help us progress this issue is greatly appreciated. Thanks :-)
sfd
Newbie
 
Posts: 5
Joined: Tue Dec 01, 2020 1:59 am

Re: FATAL error when shutting down CefApp (application crash

Postby magreenblatt » Thu Aug 10, 2023 8:45 am

Can you post a symbolized stack trace for the crash?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: FATAL error when shutting down CefApp (application crash

Postby sfd » Fri Aug 11, 2023 2:10 am

magreenblatt wrote:Can you post a symbolized stack trace for the crash?

Thank you for the quick reply. Any chance you could give some pointers on how to create the symbolized stacktrace on Linux?

For Windows builds I can see there is a debug/release symbols build, but for Linux this doesn't exist.
sfd
Newbie
 
Posts: 5
Joined: Tue Dec 01, 2020 1:59 am

Re: FATAL error when shutting down CefApp (application crash

Postby magreenblatt » Fri Aug 11, 2023 9:22 am

Debug symbols for linux should be available in libcef.so (unless you ran strip on the binary). You might need to run your application using gdb to see the stack trace.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: FATAL error when shutting down CefApp (application crash

Postby sfd » Mon Aug 14, 2023 8:26 am

I can see we stripped it back when we build it :(
I will continue to investigate and reach out when I have more details. Thanks for your help so far.
sfd
Newbie
 
Posts: 5
Joined: Tue Dec 01, 2020 1:59 am


Return to JCEF Forum

Who is online

Users browsing this forum: No registered users and 137 guests