Getting issue after upgraded cef 96

Having problems with building or using the CefSharp .NET binding? Ask your CEF-related questions here. Please ask general usage questions on StackOverflow.

Moderator: amaitland

Getting issue after upgraded cef 96

Postby a1dharm » Thu Feb 03, 2022 1:37 am

Hi @amaitland

As you suggested, we had upgraded with latest cef 96 version. after that some of the customer's systems getting issue after the upgradation of our app. The issue is when launching the app, the javascript does not rendering on the chromium browser.
Earlier i have also raised a ticket and bug for cef96 issue.
https://github.com/cefsharp/CefSharp/issues/3943 / https://github.com/cefsharp/CefSharp/issues/3944
and you had suggested the workaround browser.GetMainFrame().ExecuteJavaScriptAsync(jsscript); instead of browser.ExecuteScriptAsync(jsscript);
So is this code to causing the issue? or it any libraries related issue?

Also we have found some cef error logs when this issue is causing. i.e
[0131/143942.657:ERROR:angle_platform_impl.cc(44)] RendererVk.cpp:122 (VerifyExtensionsPresent): Extension not supported: VK_KHR_win32_surface
[0131/143942.657:ERROR:angle_platform_impl.cc(44)] Display.cpp:894 (initialize): ANGLE Display::initialize error 0: Internal Vulkan error (-7): A requested extension is not supported, in ../../third_party/angle/src/libANGLE/renderer/vulkan/RendererVk.cpp, initialize:1198.
[0131/143942.657:ERROR:gl_surface_egl.cc(782)] EGL Driver message (Critical) eglInitialize: Internal Vulkan error (-7): A requested extension is not supported, in ../../third_party/angle/src/libANGLE/renderer/vulkan/RendererVk.cpp, initialize:1198.
[0131/143942.657:ERROR:gl_surface_egl.cc(1382)] eglInitialize SwANGLE failed with error EGL_NOT_INITIALIZED
[0131/143942.657:ERROR:gl_initializer_win.cc(141)] GLSurfaceEGL::InitializeOneOff failed.
[0131/143942.664:ERROR:viz_main_impl.cc(161)] Exiting GPU process due to errors during initialization
[0131/143943.042:ERROR:gpu_init.cc(457)] Passthrough is not supported, GL is disabled, ANGLE is
[0131/144019.221:ERROR:angle_platform_impl.cc(44)] RendererVk.cpp:122 (VerifyExtensionsPresent): Extension not supported: VK_KHR_surface
[0131/144019.221:ERROR:angle_platform_impl.cc(44)] RendererVk.cpp:122 (VerifyExtensionsPresent): Extension not supported: VK_KHR_win32_surface
[0131/144019.221:ERROR:angle_platform_impl.cc(44)] Display.cpp:894 (initialize): ANGLE Display::initialize error 0: Internal Vulkan error (-7): A requested extension is not supported, in ../../third_party/angle/src/libANGLE/renderer/vulkan/RendererVk.cpp, initialize:1198.
[0131/144019.221:ERROR:gl_surface_egl.cc(782)] EGL Driver message (Critical) eglInitialize: Internal Vulkan error (-7): A requested extension is not supported, in ../../third_party/angle/src/libANGLE/renderer/vulkan/RendererVk.cpp, initialize:1198.
[0131/144019.221:ERROR:gl_surface_egl.cc(1382)] eglInitialize SwANGLE failed with error EGL_NOT_INITIALIZED
[0131/144019.221:ERROR:gl_initializer_win.cc(141)] GLSurfaceEGL::InitializeOneOff failed.
[0131/144019.229:ERROR:viz_main_impl.cc(161)] Exiting GPU process due to errors during initialization
[0131/144019.731:ERROR:gpu_init.cc(457)] Passthrough is not supported, GL is disabled, ANGLE is
[0131/144049.146:ERROR:angle_platform_impl.cc(44)] RendererVk.cpp:122 (VerifyExtensionsPresent): Extension not supported: VK_KHR_surface
[0131/144049.146:ERROR:angle_platform_impl.cc(44)] RendererVk.cpp:122 (VerifyExtensionsPresent): Extension not supported: VK_KHR_win32_surface
[0131/144049.147:ERROR:angle_platform_impl.cc(44)] Display.cpp:894 (initialize): ANGLE Display::initialize error 0: Internal Vulkan error (-7): A requested extension is not supported, in ../../third_party/angle/src/libANGLE/renderer/vulkan/RendererVk.cpp, initialize:1198.
[0131/144049.147:ERROR:gl_surface_egl.cc(782)] EGL Driver message (Critical) eglInitialize: Internal Vulkan error (-7): A requested extension is not supported, in ../../third_party/angle/src/libANGLE/renderer/vulkan/RendererVk.cpp, initialize:1198.
[0131/144049.147:ERROR:gl_surface_egl.cc(1382)] eglInitialize SwANGLE failed with error EGL_NOT_INITIALIZED
[0131/144049.147:ERROR:gl_initializer_win.cc(141)] GLSurfaceEGL::InitializeOneOff failed.
[0131/144049.154:ERROR:viz_main_impl.cc(161)] Exiting GPU process due to errors during initialization
[0131/144049.533:ERROR:gpu_init.cc(457)] Passthrough is not supported, GL is disabled, ANGLE is
[0131/144104.758:ERROR:angle_platform_impl.cc(44)] RendererVk.cpp:122 (VerifyExtensionsPresent): Extension not supported: VK_KHR_surface
[0131/144104.758:ERROR:angle_platform_impl.cc(44)] RendererVk.cpp:122 (VerifyExtensionsPresent): Extension not supported: VK_KHR_win32_surface
[0131/144104.758:ERROR:angle_platform_impl.cc(44)] Display.cpp:894 (initialize): ANGLE Display::initialize error 0: Internal Vulkan error (-7): A requested extension is not supported, in ../../third_party/angle/src/libANGLE/renderer/vulkan/RendererVk.cpp, initialize:1198.
[0131/144104.758:ERROR:gl_surface_egl.cc(782)] EGL Driver message (Critical) eglInitialize: Internal Vulkan error (-7): A requested extension is not supported, in ../../third_party/angle/src/libANGLE/renderer/vulkan/RendererVk.cpp, initialize:1198.
[0131/144104.758:ERROR:gl_surface_egl.cc(1382)] eglInitialize SwANGLE failed with error EGL_NOT_INITIALIZED
[0131/144104.758:ERROR:gl_initializer_win.cc(141)] GLSurfaceEGL::InitializeOneOff failed.
[0131/144104.765:ERROR:viz_main_impl.cc(161)] Exiting GPU process due to errors during initialization
[0131/144105.161:ERROR:gpu_init.cc(457)] Passthrough is not supported, GL is disabled, ANGLE is
[0131/144130.712:ERROR:angle_platform_impl.cc(44)] RendererVk.cpp:122 (VerifyExtensionsPresent): Extension not supported: VK_KHR_surface
[0131/144130.712:ERROR:angle_platform_impl.cc(44)] RendererVk.cpp:122 (VerifyExtensionsPresent): Extension not supported: VK_KHR_win32_surface
[0131/144130.712:ERROR:angle_platform_impl.cc(44)] Display.cpp:894 (initialize): ANGLE Display::initialize error 0: Internal Vulkan error (-7): A requested extension is not supported, in ../../third_party/angle/src/libANGLE/renderer/vulkan/RendererVk.cpp, initialize:1198.
[0131/144130.712:ERROR:gl_surface_egl.cc(782)] EGL Driver message (Critical) eglInitialize: Internal Vulkan error (-7): A requested extension is not supported, in ../../third_party/angle/src/libANGLE/renderer/vulkan/RendererVk.cpp, initialize:1198.
[0131/144130.712:ERROR:gl_surface_egl.cc(1382)] eglInitialize SwANGLE failed with error EGL_NOT_INITIALIZED
[0131/144130.712:ERROR:gl_initializer_win.cc(141)] GLSurfaceEGL::InitializeOneOff failed.
[0131/144130.720:ERROR:viz_main_impl.cc(161)] Exiting GPU process due to errors during initialization
[0131/144131.085:ERROR:gpu_init.cc(457)] Passthrough is not supported, GL is disabled, ANGLE is
[0131/144151.760:ERROR:angle_platform_impl.cc(44)] RendererVk.cpp:122 (VerifyExtensionsPresent): Extension not supported: VK_KHR_surface

Earlier our app was using cef 71 and now we upgraded with cef 96 version.
One more thing, customer confirmed, after the PC is rebooted the problem is resolved.But the customer is asking why reboot the PC, it wasn't before? And why on some systems only?
a1dharm
Techie
 
Posts: 24
Joined: Fri Oct 22, 2021 2:08 am

Re: Getting issue after upgraded cef 96

Postby amaitland » Thu Feb 03, 2022 1:55 am

Version 97.1.61 is the current supported version.

The JavaScript issues were fixed in version 97

As for the graphics issues make sure you are shipping the SwANGLE dlls see https://github.com/cefsharp/CefSharp/wi ... ibution%29 (I actually suggest shipping all resources, required and optional).

If the problem persists then try searching this forum for similar errors.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1290
Joined: Wed Jan 14, 2015 2:35 am

Re: Getting issue after upgraded cef 96

Postby a1dharm » Thu Jun 02, 2022 6:02 am

Hi @amaitland

Our several users has reported the our application unresponsive/ hang and CPU high +40%(some of system) after upgraded 96 version. I have checked in the log there is no error in our application log.
But We have noticed that event viewer logs and found that the below error, The all crashes site same log in the event viewer

Application: CefSharp.BrowserSubprocess.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Runtime.InteropServices.SEHException
at <Module>.CefExecuteProcess(CefMainArgs*, scoped_refptr<CefApp>*, Void*)
at CefSharp.BrowserSubprocess.SubProcess.Run()
at CefSharp.BrowserSubprocess.BrowserSubprocessExecutable.Main(System.Collections.Generic.IEnumerable`1<System.String>, CefSharp.RenderProcess.IRenderProcessHandler)
at CefSharp.BrowserSubprocess.Program.Main(System.String[])


-----------------

Faulting application name: CefSharp.BrowserSubprocess.exe, version: 96.0.180.0, time stamp: 0xc2db9434
Faulting module name: KERNELBASE.dll, version: 10.0.19041.1706, time stamp: 0x40a40d01
Exception code: 0xe0000008
Fault offset: 0x0012c3a2
Faulting process id: 0x6b68
Faulting application start time: 0x01d8743004e294df
Faulting application path: C:\Program Files (x86)\xxx\xxxxx\CefSharp.BrowserSubprocess.exe
Faulting module path: C:\WINDOWS\System32\KERNELBASE.dll
Report Id: 3608b60f-dbaa-4974-9771-07cfce0f8e6d
Faulting package full name:
Faulting package-relative application ID:

It is blocking and frequently reporting by our customers. Please look at this and suggest further action on this. It is on highest priority issue at our side.
a1dharm
Techie
 
Posts: 24
Joined: Fri Oct 22, 2021 2:08 am

Re: Getting issue after upgraded cef 96

Postby amaitland » Thu Jun 02, 2022 3:20 pm

https://github.com/cefsharp/CefSharp/wi ... ocess-dies

Enable crash reporting and get yourself a stack trace.

Priority support is available on a paid basis.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1290
Joined: Wed Jan 14, 2015 2:35 am

Re: Getting issue after upgraded cef 96

Postby amaitland » Thu Jun 02, 2022 7:34 pm

I'd also suggest upgrading to the current supported version (102 at time of writing).
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1290
Joined: Wed Jan 14, 2015 2:35 am

Re: Getting issue after upgraded cef 96

Postby a1dharm » Fri Jun 03, 2022 1:12 am

Hi @amaitland

Before writing my last comment, we had updated with cefsharp 100 version and we are trying this issue to reproduce.
At that time cefsharp v100 was available. So we had updated with latest.
Also I am trying to get the crash report.
Can you please suggest why the above exception(Exception Info: System.Runtime.InteropServices.SEHException) coming from the CefSharp.BrowserSubprocess.exe?
a1dharm
Techie
 
Posts: 24
Joined: Fri Oct 22, 2021 2:08 am

Re: Getting issue after upgraded cef 96

Postby a1dharm » Thu Jun 09, 2022 7:38 am

Hi @amaitland,

After upgrading with Cefsharp 100v. Users are still getting unresponsive issue on our application. The customer has windows 10 with build #19043? Did you get the chance to look why it happening here?
Is it related to chromium issue or libcef issue?
a1dharm
Techie
 
Posts: 24
Joined: Fri Oct 22, 2021 2:08 am

Re: Getting issue after upgraded cef 96

Postby amaitland » Thu Jun 09, 2022 3:02 pm

It's impossible to say without more information.

https://docs.microsoft.com/en-us/dotnet ... ew=net-6.0

You need to get a crash dump and from that load the libcef.dll.pdb and get a stack trace.

If you require priority support then I'm happy to provide that on a paid basis.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1290
Joined: Wed Jan 14, 2015 2:35 am

Re: Getting issue after upgraded cef 96

Postby a1dharm » Fri Jun 17, 2022 9:43 am

Hi @amaitland

We got the libcef.dll.pdb and crash dump. but it is larger then allowing size to upload here. So where we will to upload those files. Is there any location?
a1dharm
Techie
 
Posts: 24
Joined: Fri Oct 22, 2021 2:08 am

Re: Getting issue after upgraded cef 96

Postby amaitland » Fri Jun 17, 2022 2:03 pm

Open the crash dump and get a stack trace.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1290
Joined: Wed Jan 14, 2015 2:35 am

Next

Return to CefSharp Forum

Who is online

Users browsing this forum: No registered users and 1 guest