cefsimple can not load libGLESv2.so, permission denied

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.

cefsimple can not load libGLESv2.so, permission denied

Postby JokerLD » Tue Mar 30, 2021 10:49 pm

Hi all, I have been used cef for a while, but since the beginning, I have never managed to start the gpu process.
It always shows that

[0331/034300.805859:ERROR:gl_implementation.cc(282)] Failed to load /mnt/cef_demo/cef_demo1/build/MyTarget/Release/libGLESv2.so: /mnt/cef_demo/cef_demo1/build/MyTarget/Release/libGLESv2.so: cannot open shared object file: Permission denied
[0331/034300.809462:ERROR:viz_main_impl.cc(150)] Exiting GPU process due to errors during initialization

And I have already ensure these libs located in the right place and make them all 777 permission.
My workspace:
Inside docker container Ubuntun 18.04
the cef was downloaded from https://cef-builds.spotifycdn.com/index.html#linux64
version 01/23/2021 - 87.1.14+ga29e9a3+chromium-87.0.4280.141 / Chromium 87.0.4280.141STABLE

start with MyTarget/Release/cefsimple off-screen-rendering-enabled --disable-dev-shm-usage
JokerLD
Newbie
 
Posts: 3
Joined: Tue Mar 30, 2021 10:12 pm

Re: cefsimple can not load libGLESv2.so, permission denied

Postby JokerLD » Wed Mar 31, 2021 9:36 pm

After I dig into chromium's code I find that the chromium use dlopen() in linux to load libGLESv2.so and libEGL.so, and I tried in my application to preload these libs use dlopen before starting cef.
And it works, that's really strange. Counld someone help me explain the reason?
JokerLD
Newbie
 
Posts: 3
Joined: Tue Mar 30, 2021 10:12 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 35 guests