[Webkit-unassigned] [Bug 244705] New: [WebCore][GLX] ASSERTION FAILED: windowConfig lead to WebProcess CRASHED

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 1 23:51:32 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=244705

            Bug ID: 244705
           Summary: [WebCore][GLX] ASSERTION FAILED: windowConfig lead to
                    WebProcess CRASHED
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: Major
          Priority: P2
         Component: WebCore Misc.
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: vulbugs at gmail.com

Ubuntu22.04.1 laptop + Nvida GA106M [GeForce RTX 3060 Mobile]

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

Default Debug GTK Build ,For development builds:

Tools/gtk/install-dependencies
Tools/Scripts/update-webkitgtk-libs
Tools/Scripts/build-webkit --gtk --debug

Tools/Scripts/run-minibrowser --gtk --debug

Gtk-Message: 22:52:56.196: Failed to load module "canberra-gtk-module"
Gtk-Message: 22:52:56.198: Failed to load module "canberra-gtk-module"
Gtk-Message: 22:52:56.968: Failed to load module "canberra-gtk-module"
Gtk-Message: 22:52:56.968: Failed to load module "canberra-gtk-module"
libEGL warning: DRI2: failed to authenticate
ASSERTION FAILED: windowConfig
/app/webkit/Source/WebCore/platform/graphics/glx/GLContextGLX.cpp(150) : static std::unique_ptr<GLContextGLX> WebCore::GLContextGLX::createWindowContext(GLNativeWindowType, WebCore::PlatformDisplay &, GLXContext)
1   0x7fe553b7e2f9 WTFCrash
2   0x7fe55ad1ad8b /app/webkit/WebKitBuild/Debug/lib/libwebkit2gtk-4.1.so.0(+0x5aecd8b) [0x7fe55ad1ad8b]
3   0x7fe5602f38a4 /app/webkit/WebKitBuild/Debug/lib/libwebkit2gtk-4.1.so.0(+0xb0c58a4) [0x7fe5602f38a4]
4   0x7fe5602f44e7 /app/webkit/WebKitBuild/Debug/lib/libwebkit2gtk-4.1.so.0(+0xb0c64e7) [0x7fe5602f44e7]
5   0x7fe56021d335 WebCore::GLContext::createContextForWindow(unsigned long, WebCore::PlatformDisplay*)
6   0x7fe55baf564a /app/webkit/WebKitBuild/Debug/lib/libwebkit2gtk-4.1.so.0(+0x68c764a) [0x7fe55baf564a]
7   0x7fe55bafca32 /app/webkit/WebKitBuild/Debug/lib/libwebkit2gtk-4.1.so.0(+0x68cea32) [0x7fe55bafca32]
8   0x7fe55bafc999 /app/webkit/WebKitBuild/Debug/lib/libwebkit2gtk-4.1.so.0(+0x68ce999) [0x7fe55bafc999]
9   0x7fe55ada1d22 /app/webkit/WebKitBuild/Debug/lib/libwebkit2gtk-4.1.so.0(+0x5b73d22) [0x7fe55ada1d22]
10  0x7fe55bafc1c0 /app/webkit/WebKitBuild/Debug/lib/libwebkit2gtk-4.1.so.0(+0x68ce1c0) [0x7fe55bafc1c0]
11  0x7fe55bafc179 /app/webkit/WebKitBuild/Debug/lib/libwebkit2gtk-4.1.so.0(+0x68ce179) [0x7fe55bafc179]
12  0x7fe5527e0842 /app/webkit/WebKitBuild/Debug/lib/libjavascriptcoregtk-4.1.so.0(+0x22a4842) [0x7fe5527e0842]
13  0x7fe553e1560e /app/webkit/WebKitBuild/Debug/lib/libjavascriptcoregtk-4.1.so.0(+0x38d960e) [0x7fe553e1560e]
14  0x7fe553eca489 /app/webkit/WebKitBuild/Debug/lib/libjavascriptcoregtk-4.1.so.0(+0x398e489) [0x7fe553eca489]
15  0x7fe553eca465 /app/webkit/WebKitBuild/Debug/lib/libjavascriptcoregtk-4.1.so.0(+0x398e465) [0x7fe553eca465]
16  0x7fe553eca419 /app/webkit/WebKitBuild/Debug/lib/libjavascriptcoregtk-4.1.so.0(+0x398e419) [0x7fe553eca419]
17  0x7fe553ec9615 /app/webkit/WebKitBuild/Debug/lib/libjavascriptcoregtk-4.1.so.0(+0x398d615) [0x7fe553ec9615]
18  0x7fe54e159294 g_main_context_dispatch
19  0x7fe54e159638 /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x58638) [0x7fe54e159638]
20  0x7fe54e159943 g_main_loop_run
21  0x7fe553ec9b98 WTF::RunLoop::run()
22  0x7fe55baf6bb4 /app/webkit/WebKitBuild/Debug/lib/libwebkit2gtk-4.1.so.0(+0x68c8bb4) [0x7fe55baf6bb4]
23  0x7fe55baf6b59 /app/webkit/WebKitBuild/Debug/lib/libwebkit2gtk-4.1.so.0(+0x68c8b59) [0x7fe55baf6b59]
24  0x7fe5527e0842 /app/webkit/WebKitBuild/Debug/lib/libjavascriptcoregtk-4.1.so.0(+0x22a4842) [0x7fe5527e0842]
25  0x7fe553e20638 /app/webkit/WebKitBuild/Debug/lib/libjavascriptcoregtk-4.1.so.0(+0x38e4638) [0x7fe553e20638]
26  0x7fe553ed6b95 /app/webkit/WebKitBuild/Debug/lib/libjavascriptcoregtk-4.1.so.0(+0x399ab95) [0x7fe553ed6b95]
27  0x7fe54e0e83ba /usr/lib/x86_64-linux-gnu/libpthread.so.0(+0x83ba) [0x7fe54e0e83ba]
28  0x7fe54db7f7a3 clone

** (MiniBrowser:17): WARNING **: 22:52:57.334: WebProcess CRASHED


---
std::unique_ptr<GLContextGLX> GLContextGLX::createWindowContext(GLNativeWindowType window, PlatformDisplay& platformDisplay, GLXContext sharingContext)
{
    // In order to create the GLContext, we need to select a GLXFBConfig that has depth and stencil
    // buffers that is compatible with the Visual used to create the window. To do this, we request
    // all the GLXFBConfigs that have the features we need and compare their XVisualInfo to check whether
    // they are compatible with the window one. Then we try to create the GLContext with each of those
    // configs until we succeed, and finally fallback to the window config if nothing else works.
    Display* display = downcast<PlatformDisplayX11>(platformDisplay).native();
    XWindowAttributes attributes;
    if (!XGetWindowAttributes(display, static_cast<Window>(window), &attributes))
        return nullptr;

    XVisualInfo visualInfo;
    visualInfo.visualid = XVisualIDFromVisual(attributes.visual);

    int numConfigs = 0;
    GLXFBConfig windowConfig = nullptr;
    XUniquePtr<GLXFBConfig> configs(glXGetFBConfigs(display, DefaultScreen(display), &numConfigs));//<---
    for (int i = 0; i < numConfigs; i++) {
        XUniquePtr<XVisualInfo> glxVisualInfo(glXGetVisualFromFBConfig(display, configs.get()[i]));
        if (!glxVisualInfo)
            continue;
        if (glxVisualInfo.get()->visualid == visualInfo.visualid) {
            windowConfig = configs.get()[i];
            break;
        }
    }
    ASSERT(windowConfig);

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220902/232d1b55/attachment.htm>


More information about the webkit-unassigned mailing list