Page 1 of 2

Upgrading from 3729 to 4430 (helper crashing on startup)

PostPosted: Thu Jul 29, 2021 8:09 am
by Fallen
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?

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

PostPosted: Thu Jul 29, 2021 10:04 am
by magreenblatt
Yes, there have been changes. See posts to the cef-announce mailing list.

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

PostPosted: Mon Aug 09, 2021 3:56 am
by Fallen
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

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

PostPosted: Mon Aug 09, 2021 10:31 am
by magreenblatt
What GN_DEFINES are you using? If you're making a build for distribution see here.

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

PostPosted: Mon Aug 09, 2021 4:00 pm
by Fallen
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"

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

PostPosted: Mon Aug 09, 2021 4:16 pm
by magreenblatt
Did your build generate a "chromium/src/out/Release_GN_x64_sandbox" directory?

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

PostPosted: Tue Aug 10, 2021 1:13 am
by ndesktop
** deleted

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

PostPosted: Tue Aug 10, 2021 3:45 am
by Fallen
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?

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

PostPosted: Tue Aug 10, 2021 9:35 am
by magreenblatt
It does not require the sandbox-distrib parameter

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

PostPosted: Fri Aug 13, 2021 7:07 am
by Fallen
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.