Page 1 of 1

CEF app crashing after upgrading cef from 3396 build to 3578

PostPosted: Fri Jan 11, 2019 6:38 am
by Satrajit
CEF app crashing after upgrading cef from 3396 build to 3578

There are certain changes in linking in the latest CEF version for MAC.
in windows the app is not crashing, but it crashes in MAC.

Used the guidelines given here for new build of cef.
https://bitbucket.org/chromiumembedded/ ... cv2sandbox

note: with 3396 it was working fine. But with 3578 it is failing during runtime and giving segmentation fault.
Changes made are as suggested by @Marshall Greenblatt in the above bug.

I have even built the new cefsimple. The cefsimple helper app with the cefsimple crashes giving segmentation fault when only log is put. Even after removing the log its there.
The segmentation fault is really intermittent.

Can anyone pls help?
Have anyone faced this issue in MAC with the latest cef builds?

Re: CEF app crashing after upgrading cef from 3396 build to

PostPosted: Fri Jan 11, 2019 8:00 am
by magreenblatt
Satrajit wrote:The segmentation fault is really intermittent.

What macOS version? What steps tend to reproduce the crash? What is the symbolized call stack for the crash?

Re: CEF app crashing after upgrading cef from 3396 build to

PostPosted: Tue Jan 22, 2019 12:01 am
by Satrajit
MACOS sierra ( 10.13.6 ).
With the new cef builds updated the helper and main classes accordingly and made the makefiles similar to the cefsimple app.
also checked with otool to check the dependencies.
In the new version I find CEf is not linked dynamically so the @rpath entry for the CEF framework is not there.

Can't figure it out where it is going wrong or what extra should be done for MAC, as its running fine in Windows.

Re: CEF app crashing after upgrading cef from 3396 build to

PostPosted: Tue Jan 22, 2019 12:06 am
by Satrajit
My application is getting build properly, but crashes at runtime.

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY

Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [0]

Re: CEF app crashing after upgrading cef from 3396 build to

PostPosted: Tue Jan 22, 2019 4:49 am
by magreenblatt

Re: CEF app crashing after upgrading cef from 3396 build to

PostPosted: Mon Feb 04, 2019 12:15 am
by Satrajit
Thanks. Got it.

In my code I had some static initializations done which had references to cefstring (libcef), but libcef is getting loaded in main and the static initializations are done before main. This led to the segmentation fault.
Refactored the code and it worked.