CEF app crashing after upgrading cef from 3396 build to 3578

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

CEF app crashing after upgrading cef from 3396 build to 3578

Postby Satrajit » Fri Jan 11, 2019 6:38 am

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?
Satrajit
Mentor
 
Posts: 87
Joined: Wed Jan 09, 2019 6:11 am

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

Postby magreenblatt » Fri Jan 11, 2019 8:00 am

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?
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

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

Postby Satrajit » Tue Jan 22, 2019 12:01 am

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.
Satrajit
Mentor
 
Posts: 87
Joined: Wed Jan 09, 2019 6:11 am

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

Postby Satrajit » Tue Jan 22, 2019 12:06 am

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]
Satrajit
Mentor
 
Posts: 87
Joined: Wed Jan 09, 2019 6:11 am

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

Postby magreenblatt » Tue Jan 22, 2019 4:49 am

magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

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

Postby Satrajit » Mon Feb 04, 2019 12:15 am

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.
Satrajit
Mentor
 
Posts: 87
Joined: Wed Jan 09, 2019 6:11 am


Return to CEF Discussion

Who is online

Users browsing this forum: No registered users and 15 guests