<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>189179</bug_id>
          
          <creation_ts>2018-08-30 20:15:40 -0700</creation_ts>
          <short_desc>[GTK] GLContextGLX::createWindowContext should cope when no config is found</short_desc>
          <delta_ts>2018-09-10 17:25:26 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Daniel Drake">drake</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>magomez</cc>
    
    <cc>mcatanzaro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1455522</commentid>
    <comment_count>0</comment_count>
    <who name="Daniel Drake">drake</who>
    <bug_when>2018-08-30 20:15:40 -0700</bug_when>
    <thetext>We are seeing a crash on Intel GeminiLake platforms where the web process crashes with:

(WebKitWebProcess:5058): Gdk-ERROR **: The program &apos;WebKitWebProcess&apos; received an X Window System error.
This probably reflects a bug in the program.
The error was &apos;GLXBadFBConfig&apos;.
  (Details: serial 202 error_code 178 request_code 155 (GLX) minor_code 34)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the GDK_SYNCHRONIZE environment
   variable to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

Tracing through, this happens because WebKit is calling glXCreateContextAttribsARB() with a NULL GLXFBConfig. This causes glvnd to raise an X error.

Why was GLContextGLX::createWindowContext unable to find a usable FBConfig? I don&apos;t fully understand the situation; I&apos;ve provided some detail on it here:
https://lists.freedesktop.org/archives/xorg-devel/2018-August/057477.html

Regardless of that, it seems like webkit should probably do something better than it currently does (crash) when no config is found, e.g. fall back on non-composited gfx codepath?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1457413</commentid>
    <comment_count>1</comment_count>
    <who name="Daniel Drake">drake</who>
    <bug_when>2018-09-06 21:46:40 -0700</bug_when>
    <thetext>Actually according to Jasper, webkit crashing is appropriate here, since the lack of appropriate FBConfig implies something wrong at the system level.
https://lists.freedesktop.org/archives/xorg-devel/2018-September/057535.html

Feel free to close as invalid if you agree!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1458333</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2018-09-10 17:25:26 -0700</bug_when>
    <thetext>Oh, so Jasper is still around.

OK then!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>