Upgrading from 3729 to 4430 (helper crashing on startup)

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.

Upgrading from 3729 to 4430 (helper crashing on startup)

Postby Fallen » Thu Jul 29, 2021 8:09 am

Hello,

I'm having problems with running newer CEF on macOS (I'm on 11.5) with Xcode 12.5, basically when I try to run the app I get:
Code: Select all
[0729/141448.487041:WARNING:gpu_process_host.cc(1296)] The GPU process has crashed 9 time(s)
[0729/141448.487101:FATAL:gpu_data_manager_impl_private.cc(415)] GPU process isn't usable. Goodbye.


On Windows everything runs fine but we use views instead of browsers since they were not supported on macOS.
Was there any particular changes that we need to implement that can cause this?
Fallen
Techie
 
Posts: 39
Joined: Wed Jan 29, 2014 11:38 am

Re: Upgrading from 3729 to 4430 (helper crashing on startup)

Postby magreenblatt » Thu Jul 29, 2021 10:04 am

Yes, there have been changes. See posts to the cef-announce mailing list.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Upgrading from 3729 to 4430 (helper crashing on startup)

Postby Fallen » Mon Aug 09, 2021 3:56 am

magreenblatt wrote:Yes, there have been changes. See posts to the cef-announce mailing list.

Thanks, so definitely I was missing additional Helpers and loading CEF on runtime. However I noticed I'm missing cef_sandbox.a in my CEF build.

Can you tell me if I'm using correct command to build CEF:
Code: Select all
python automate-git.py --download-dir=chromium_git --depot-tools-dir=depot_tools --branch="4430" --no-update --force-build --force-distrib --no-debug-build --minimal-distrib --verbose-build --x64-build


Do I need to add --sandbox-distrib?
Because with this parameter added to the above I'm getting this error:
Code: Select all
Traceback (most recent call last):
  File "make_distrib.py", line 666, in <module>
    create_readme()
  File "make_distrib.py", line 119, in create_readme
    mode_data = get_readme_component(mode)
  File "make_distrib.py", line 112, in get_readme_component
    raise Exception('Readme component not found: ' + name)
Exception: Readme component not found: sandbox
Fallen
Techie
 
Posts: 39
Joined: Wed Jan 29, 2014 11:38 am

Re: Upgrading from 3729 to 4430 (helper crashing on startup)

Postby magreenblatt » Mon Aug 09, 2021 10:31 am

What GN_DEFINES are you using? If you're making a build for distribution see here.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Upgrading from 3729 to 4430 (helper crashing on startup)

Postby Fallen » Mon Aug 09, 2021 4:00 pm

magreenblatt wrote:What GN_DEFINES are you using? If you're making a build for distribution see here.

Code: Select all
"is_official_build=true proprietary_codecs=true ffmpeg_branding=Chrome use_thin_lto=false"
Fallen
Techie
 
Posts: 39
Joined: Wed Jan 29, 2014 11:38 am

Re: Upgrading from 3729 to 4430 (helper crashing on startup)

Postby magreenblatt » Mon Aug 09, 2021 4:16 pm

Did your build generate a "chromium/src/out/Release_GN_x64_sandbox" directory?
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Upgrading from 3729 to 4430 (helper crashing on startup)

Postby ndesktop » Tue Aug 10, 2021 1:13 am

** deleted
Last edited by ndesktop on Fri Aug 13, 2021 9:32 am, edited 1 time in total.
ndesktop
Master
 
Posts: 750
Joined: Thu Dec 03, 2015 10:10 am

Re: Upgrading from 3729 to 4430 (helper crashing on startup)

Postby Fallen » Tue Aug 10, 2021 3:45 am

magreenblatt wrote:Did your build generate a "chromium/src/out/Release_GN_x64_sandbox" directory?


Not sure about that, it was a few days ago. My app doesn't really need a sandbox as it is distributed outside the App Store, nevertheless sandbox is a requirement in Helper so I would like to build the library. Wanted to confirm if cef_sandbox.a is built by default or it requires --sandbox-distrib parameter?
Fallen
Techie
 
Posts: 39
Joined: Wed Jan 29, 2014 11:38 am

Re: Upgrading from 3729 to 4430 (helper crashing on startup)

Postby magreenblatt » Tue Aug 10, 2021 9:35 am

It does not require the sandbox-distrib parameter
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Upgrading from 3729 to 4430 (helper crashing on startup)

Postby Fallen » Fri Aug 13, 2021 7:07 am

magreenblatt wrote:It does not require the sandbox-distrib parameter

Thanks, managed to build everything. Just one more comment, cef_sandbox.a should really be named libcef_sandbox.a. We’re using Conan package manager for our project and we typically link with -lcef_sandbox providing library search paths as well. Unfortunately GCC and CLANG will search for libcef_sandbox.a in that case. I see that libcef_dll_wrapper.a is named correctly and working out of the box with -lcef_dll_wrapper.
Fallen
Techie
 
Posts: 39
Joined: Wed Jan 29, 2014 11:38 am

Next

Return to Support Forum

Who is online

Users browsing this forum: No registered users and 31 guests