Getting issue after upgraded cef 96
Posted: 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?
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?