How to disable Vulkan GL

Having problems with building or using the JCEF Java binding? Ask your questions here.

How to disable Vulkan GL

Postby Adriaanse » Mon Apr 11, 2022 7:36 am

Testing the most recent build of JCEF on CentOS 7 I run into problems with a VirtualBox VM that is apparantly not supported by the new 3D framework Vulkan (error messages given below)

To my surprise I can install Chromium on the same VM and it just works, opening chrome://gpu I find that this has disabled Vulkan so this looks like a solution !

I find some posts in the CEF forum about Vulkan and swiftshader, but in case of JCEF, is there a supported way I can disable Vulkan ? WebGL is not relevant to our application.

Note: the error I get running the included sample app using Java-11 is this:

0410/132624.413222:ERROR:viz_main_impl.cc(188)] Exiting GPU process due to errors during initialization
[0410/132624.908216:ERROR:viz_main_impl.cc(188)] Exiting GPU process due to errors during initialization
[0410/132624.982189:ERROR:angle_platform_impl.cc(44)] Display.cpp:966 (initialize): ANGLE Display::initialize error 0: Internal Vulkan error (-3): Initialization of an object could not be completed for implementation-specific reasons, in ../../third_party/angle/src/libANGLE/renderer/vulkan/RendererVk.cpp, initialize:1271.
[0410/132624.983925:ERROR:gl_surface_egl.cc(808)] EGL Driver message (Critical) eglInitialize: Internal Vulkan error (-3): Initialization of an object could not be completed for implementation-specific reasons, in ../../third_party/angle/src/libANGLE/renderer/vulkan/RendererVk.cpp, initialize:1271.
[0410/132624.984046:ERROR:gl_surface_egl.cc(1430)] eglInitialize SwANGLE failed with error EGL_NOT_INITIALIZED
[0410/132624.985140:ERROR:gl_ozone_egl.cc(20)] GLSurfaceEGL::InitializeOneOff failed.
[0410/132624.993104:ERROR:viz_main_impl.cc(188)] Exiting GPU process due to errors during initialization
[0410/132625.030960:ERROR:gpu_init.cc(446)] Passthrough is not supported, GL is disabled, ANGLE is
BrowserFrame.onAfterCreated id=1


installing Vulkan, the vulkaninfo command says:

==========
VULKANINFO
==========

Vulkan Instance Version: 1.1.97

/builddir/build/BUILD/Vulkan-Tools-sdk-1.1.97.0/vulkaninfo/vulkaninfo.c:3847: failed with VK_ERROR_INITIALIZATION_FAILED
Adriaanse
Techie
 
Posts: 31
Joined: Fri Nov 16, 2018 9:21 am

Re: How to disable Vulkan GL

Postby magreenblatt » Mon Apr 11, 2022 11:11 am

Try running with “--use-gl=angle --use-angle=swiftshader” on the command-line. See here (“Testing with Chrome” section near the end).
magreenblatt
Site Admin
 
Posts: 12383
Joined: Fri May 29, 2009 6:57 pm

Re: How to disable Vulkan GL

Postby Adriaanse » Mon Apr 11, 2022 2:02 pm

Wow, thanks again for the fast response, this helped me a lot - indirectly;

Passing on these parameters to the run.sh sample script, at some point I got different error messages pointing out to me that the permissions on the swiftshader libraries were blocking me, sorry, my bad. After fixing that it works without any special command line arguments, including WebGL. so the current release still works on CentOS7, if you compile on CentOS7 that is...

Sorry for my clumsiness and thanks again for your quick help ! It got me to this error message helping me fix it.
Adriaanse
Techie
 
Posts: 31
Joined: Fri Nov 16, 2018 9:21 am


Return to JCEF Forum

Who is online

Users browsing this forum: No registered users and 16 guests