ERROR:browser_gpu_channel_host_factory.cc(154)] Failed to la

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.

ERROR:browser_gpu_channel_host_factory.cc(154)] Failed to la

Postby coater » Fri May 07, 2021 4:30 am

after building and run cefclient.exe, errors appeared in bebug.log. If I only replace libcef.dll from https://cef-builds.spotifycdn.com/ everything will be ok!
Here is my libcef.dll:
https://www.dropbox.com/s/7lqhb6sk9r5rq ... f.dll?dl=0
Code: Select all
[0507/171354.066:WARNING:gpu_process_host.cc(1296)] The GPU process has crashed 1 time(s)
[0507/171354.129:WARNING:gpu_process_host.cc(1296)] The GPU process has crashed 2 time(s)
[0507/171354.333:WARNING:gpu_process_host.cc(1296)] The GPU process has crashed 3 time(s)
[0507/171354.395:WARNING:gpu_process_host.cc(1296)] The GPU process has crashed 4 time(s)
[0507/171354.475:WARNING:gpu_process_host.cc(1296)] The GPU process has crashed 5 time(s)
[0507/171354.555:WARNING:gpu_process_host.cc(1296)] The GPU process has crashed 6 time(s)
[0507/171354.557:ERROR:browser_gpu_channel_host_factory.cc(154)] Failed to launch GPU process.



Code: Select all
Visual Studio 2019
Windows   SDK   10.0.19041.685
followed by https://bitbucket.org/chromiumembedded/cef/wiki/MasterBuildQuickStart.md
add set GN_DEFINES=is_official_build=true proprietary_codecs=true ffmpeg_branding=Chrome


Code: Select all
Edition   Windows 10 Pro
Version   20H2
Installed on   ‎5/‎6/‎2021
OS build   19042.928
Experience   Windows Feature Experience Pack 120.2212.551.0
Processor   Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz   2.40 GHz
Installed RAM   8.00 GB (7.88 GB usable)
System type   64-bit operating system, x64-based processor

update.bat
Code: Select all
set GN_DEFINES=is_official_build=true proprietary_codecs=true ffmpeg_branding=Chrome
::# Use vs2017 or vs2019 as appropriate.
set GN_ARGUMENTS=--ide=vs2019 --sln=cef --filters=//cef/*
python ..\automate\automate-git.py --download-dir=E:\code\chromium_git --branch=4430 --depot-tools-dir=E:\code\depot_tools --no-distrib --no-build


create.bat
Code: Select all
set GN_DEFINES=is_official_build=true proprietary_codecs=true ffmpeg_branding=Chrome
::# Use vs2017 or vs2019 as appropriate.
set GN_ARGUMENTS=--ide=vs2019 --sln=cef --filters=//cef/*
call cef_create_projects.bat


build
Code: Select all
cd E:\code\chromium_git\chromium\src
E:
ninja -C out\Release_GN_x86 cef
coater
Newbie
 
Posts: 6
Joined: Fri May 07, 2021 3:04 am

Re: ERROR:browser_gpu_channel_host_factory.cc(154)] Failed t

Postby ndesktop » Fri May 07, 2021 12:09 pm

Is it working if you launch your application with --no-sandbox?
ndesktop
Master
 
Posts: 750
Joined: Thu Dec 03, 2015 10:10 am

Re: ERROR:browser_gpu_channel_host_factory.cc(154)] Failed t

Postby coater » Fri May 07, 2021 7:27 pm

Yes, It works. Why this happened? Thank you!

I found my problem is like this in the web. https://bitbucket.org/chromiumembedded/cef/issues/3101/cefclientexe-cannot-start-on-branch-4430
I am using the way that add use_thin_lto=false to GN_DEFINES to rebuild cef project.
coater
Newbie
 
Posts: 6
Joined: Fri May 07, 2021 3:04 am

Re: ERROR:browser_gpu_channel_host_factory.cc(154)] Failed t

Postby ndesktop » Sat May 08, 2021 1:51 am

Yes, use_thin_lto=false did it for me, too. Not sure whay this happens, I am suspecting (without evidence) some form of linker/sandbox mismatch.
ndesktop
Master
 
Posts: 750
Joined: Thu Dec 03, 2015 10:10 am

Re: ERROR:browser_gpu_channel_host_factory.cc(154)] Failed t

Postby coater » Sat May 08, 2021 1:52 am

update.bat
Code: Select all
set GN_DEFINES=is_official_build=true proprietary_codecs=true ffmpeg_branding=Chrome  use_thin_lto=false
::# Use vs2017 or vs2019 as appropriate.
set GN_ARGUMENTS=--ide=vs2019 --sln=cef --filters=//cef/*
python ..\automate\automate-git.py --download-dir=E:\code\chromium_git --branch=4430 --depot-tools-dir=E:\code\depot_tools --no-distrib --no-build

create.bat
Code: Select all
set GN_DEFINES=is_official_build=true proprietary_codecs=true ffmpeg_branding=Chrome  use_thin_lto=false
::# Use vs2017 or vs2019 as appropriate.
set GN_ARGUMENTS=--ide=vs2019 --sln=cef --filters=//cef/*
call cef_create_projects.bat

use_thin_lto=false was added, then run update.bat and create.bat and rebuild cef.
cefclient can be run correctlly!

But now there is a problem. Running update.bat cannot update cef3 from 90.6.4 to 90.6.5. Which variable I should add to update it?
May I use --force-cef-update --no-chromium-update in update.bat and run it to do this? (added after python ..\automate\automate-git.py --download-dir=E:\code\chromium_git --branch=4430 --depot-tools-dir=E:\code\depot_tools)?

I cannot find version info such as 90.6.4 or 90.6.5 in the building dirctory of code\chromium_git\chromium\src\out, where can I find it?
So I can find the version before building and build proper version.
Thank you very much!
coater
Newbie
 
Posts: 6
Joined: Fri May 07, 2021 3:04 am

Re: ERROR:browser_gpu_channel_host_factory.cc(154)] Failed t

Postby ndesktop » Sun May 09, 2021 12:17 pm

--force-cef-update --no-chromium-update might lead to incompatibilities.
Maybe rerun cef_create_projects is needed after an update.bat?
ndesktop
Master
 
Posts: 750
Joined: Thu Dec 03, 2015 10:10 am

Re: ERROR:browser_gpu_channel_host_factory.cc(154)] Failed t

Postby coater » Wed May 12, 2021 2:25 am

ndesktop wrote:--force-cef-update --no-chromium-update might lead to incompatibilities.
Maybe rerun cef_create_projects is needed after an update.bat?


Thank you!

I run update.bat just before the time of cef3 updated from 90.6.4 to 90.6.5. Then, I run the create.bat next day. I found My libcef.dll version is 90.6.4 . So I open cef3 site and found it is updated. So I run update.bat and create.bat again. But I found that after building My libcef.dll version is still 90.6.4.
coater
Newbie
 
Posts: 6
Joined: Fri May 07, 2021 3:04 am


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 31 guests