Exiting GPU process due to errors during initialization

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.

Exiting GPU process due to errors during initialization

Postby chayal » Sat Jan 15, 2022 12:49 pm

Hi,
I am using CEF3 in my mfc application. I am facing following errors in logs:



[i][i][i]0115/152651.090:VERBOSE1:dispatcher.cc(434)] Num tracked contexts: 1
[0115/152651.135:INFO:cpu_info.cc(53)] Available number of cores: 4
[0115/152651.268:VERBOSE1:gpu_init.cc(381)] [color=#FFFF00]gl::init::InitializeStaticGLBindingsOneOff failed

[0115/152651.277:ERROR:viz_main_impl.cc(162)] Exiting GPU process due to errors during initialization
[0115/152651.401:VERBOSE1:gpu_init.cc(381)] gl::init::InitializeStaticGLBindingsOneOff failed
[0115/152651.412:ERROR:viz_main_impl.cc(162)] Exiting GPU process due to errors during initialization
[0115/152651.539:ERROR:gpu_init.cc(441)] Passthrough is not supported, GL is disabled
[0115/152654.699:VERBOSE1:network_delegate.cc(32)] NetworkDelegate::NotifyBeforeURLRequest: https://libertymutual-prod.adobecqms.ne ... fault.html
[0115/152737.877:VERBOSE1:media_stream_manager.cc(705)] RFAOSF::Core() [process_id=5, frame_id=1]
[0115/152737.880:VERBOSE1:document.cc(3712)] Document::DispatchUnloadEvents() URL = <null>
[0115/152737.880:VERBOSE1:document.cc(3792)] Actually dispatching an UnloadEvent: URL = <null>
[0115/152737.887:VERBOSE1:media_stream_manager.cc(705)] RFAOSF::Core() [process_id=5, frame_id=1]
[0115/152737.896:VERBOSE1:script_context.cc(189)] Created context:[/color]

Behavior: I am able to send the Post request but not able to render the html page.

I am launching CEF in using sub process and has set multi_threaded_message_loop as true. If I try to open another browser in the same application in the ongoing session, I am able to create a new browser and render the HTML page.
The above observation was on remote machine which did not have GPU.
If I try to run the MFC application on my laptop which has integrated GPU, I do not see this issue.
Do I need to pass some command line option or there is some other issue.

I really need help on this. Thanks in advance!
chayal
Techie
 
Posts: 25
Joined: Sat Oct 02, 2021 4:50 pm

Re: Exiting GPU process due to errors during initialization

Postby magreenblatt » Sat Jan 15, 2022 4:30 pm

What CEF version? See the README.txt file for binaries that are required to support software rendering, and make sure that you are including them with your application.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Exiting GPU process due to errors during initialization

Postby chayal » Sun Jan 16, 2022 12:07 pm

CEf version is cef_binary_92.0.27+g274abcf+chromium-92.0.4515.159_windows32.tar
I have added following files in the bin dir along with my main executable:
D3DCompiler_43.dll*
cef.pak
cef_extensions.pak
chrome_100_percent.pak
chrome_200_percent.pak
chrome_elf.dll*
d3dcompiler_47.dll*
icudt.dll*
icudtl.dat
libEGL.dll*
libGLESv2.dll*
libcef.dll*
resources.pak
v8_context_snapshot.bin
CefSimple.exe(sub process to launch CEF).


My program earlier used to work. It is showing this weird behavior now. Is it somehow related to GPU or CPU consumption.
chayal
Techie
 
Posts: 25
Joined: Sat Oct 02, 2021 4:50 pm

Re: Exiting GPU process due to errors during initialization

Postby magreenblatt » Sun Jan 16, 2022 1:04 pm

You also need the swiftshader directory. These files are required for software rendering when the GPU is absent or blacklisted.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Exiting GPU process due to errors during initialization

Postby chayal » Sun Jan 16, 2022 1:08 pm

I don't understand. I have already added libEGL.dll and libGLESv2.dll (which are present in swiftshader dir). Do I need to exclusively keep them in swiftshader dir.
chayal
Techie
 
Posts: 25
Joined: Sat Oct 02, 2021 4:50 pm

Re: Exiting GPU process due to errors during initialization

Postby magreenblatt » Sun Jan 16, 2022 1:41 pm

chayal wrote:I don't understand. I have already added libEGL.dll and libGLESv2.dll (which are present in swiftshader dir). Do I need to exclusively keep them in swiftshader dir.

There are two different versions of those files (inside and outside the swiftshader directory). You need both versions in the correct location.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

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