Page 1 of 1

Failed to launch GPU process.

PostPosted: Mon Oct 22, 2018 4:33 am
by alexzhang
I am working with Cef build cef_binary_3.3497.1840.gcd24143_windows32.
when I run the cefclient,the GPU process keeps crashing showing:

Code: Select all
[1022/165344.478:ERROR:browser_gpu_channel_host_factory.cc(132)] Failed to launch GPU process.
[1022/165344.480:ERROR:gpu_process_transport_factory.cc(1017)] Lost UI shared context.


What could be the cause of this failure?
Are there more logs somewhere from chromium or cef that could provide a little more info for debugging?

Re: Failed to launch GPU process.

PostPosted: Mon Oct 22, 2018 9:58 am
by magreenblatt
What windows version are you using? Are you running in a VM?

See https://chromium.googlesource.com/chrom ... ed_code.md and https://www.chromium.org/developers/how ... on-windows for GPU debugging tips. To get symbolized stack traces you can download symbols from the same place you got the binary distribution.

Re: Failed to launch GPU process.

PostPosted: Mon Oct 22, 2018 11:46 am
by ndesktop
Usual causes are:

- compatibility manifest missing:
Code: Select all
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
   <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
      <application>
         <!-- Windows 7 -->
         <supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
         <!-- Windows 8 -->
         <supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>
         <!-- Windows 8.1 -->
         <supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
         <!-- Windows 10 -->
         <supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/>         
      </application>
   </compatibility>
</assembly>

- missing GL libs
- on linux export BROWSER=google-chrome[-stable]

Re: Failed to launch GPU process.

PostPosted: Mon Oct 22, 2018 9:23 pm
by alexzhang
magreenblatt wrote:What windows version are you using? Are you running in a VM?

See https://chromium.googlesource.com/chrom ... ed_code.md and https://www.chromium.org/developers/how ... on-windows for GPU debugging tips. To get symbolized stack traces you can download symbols from the same place you got the binary distribution.


I run the cefclient in a PC ,using windows 10.I get Embedded Framework from http://opensource.spotify.com/cefbuilds ... s32_builds, and the code from https://gitlab.com/xiliumhq/chromiumemb ... /tree/3497

Re: Failed to launch GPU process.

PostPosted: Mon Oct 22, 2018 10:07 pm
by alexzhang
ndesktop wrote:Usual causes are:

- compatibility manifest missing:
Code: Select all
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
   <compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
      <application>
         <!-- Windows 7 -->
         <supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
         <!-- Windows 8 -->
         <supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>
         <!-- Windows 8.1 -->
         <supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
         <!-- Windows 10 -->
         <supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/>         
      </application>
   </compatibility>
</assembly>

- missing GL libs
- on linux export BROWSER=google-chrome[-stable]


I try to add a manifest file, and GL libs: libEGL,libGLESv2,still not working.the GPU process keeps crashing showing:
Code: Select all
[1023/110138.136:ERROR:gpu_process_host.cc(575)] !GpuDataManagerImpl::GpuProcessStartAllowed()
[1023/110138.137:ERROR:gpu_process_host.cc(575)] !GpuDataManagerImpl::GpuProcessStartAllowed()
[1023/110138.137:ERROR:browser_gpu_channel_host_factory.cc(132)] Failed to launch GPU process.
[1023/110138.137:ERROR:gpu_process_transport_factory.cc(652)] Switching to software compositing.
[1023/110138.137:ERROR:gpu_process_transport_factory.cc(1017)] Lost UI shared context.

Re: Failed to launch GPU process.

PostPosted: Tue Oct 23, 2018 12:24 am
by fddima
Lol.

Where you add manifest? All applications (cefclient & cefglue demo already has embedded manifests).

What it you added libEGL? You should use all files and libraries from binary package. Read readmes, they describe which files needed.

First, you should get worked cefclient. Try debug build, it may hasmore meaningful errors.

Re: Failed to launch GPU process.

PostPosted: Tue Oct 23, 2018 1:06 am
by ndesktop
Run from console with --enable-logging --v=1 to get verbose messages.