<?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>237535</bug_id>
          
          <creation_ts>2022-03-07 08:48:11 -0800</creation_ts>
          <short_desc>[GTK] Crash at startup when glGetString(GL_VERSION) returns empty string</short_desc>
          <delta_ts>2022-03-21 07:08:47 -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>Other</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          <see_also>https://bugzilla.redhat.com/show_bug.cgi?id=2061188</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="XoD">xoddark</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aperez</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>mcatanzaro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1848772</commentid>
    <comment_count>0</comment_count>
    <who name="XoD">xoddark</who>
    <bug_when>2022-03-07 08:48:11 -0800</bug_when>
    <thetext>Since some day (with an update ?), application than use Webkit2gtk3.so crash at start.

Application are Geary, Gnome-Web(Epiphany), Gnome-Builder

It crash in WebKit::AcceleratedBackingStoreWayland::checkRequirements, and more precisely in GLContext::version() because ::glGetString(GL_VERSION) return an empty string, (or 0).
But I don&apos;t understand why since the initialization of the GL context by EGL seems to have gone well. In any case, a context has been created .

I don&apos;t know how to investigate more to understand and fix the problem.

Related crash report :
https://retrace.fedoraproject.org/faf/reports/361918/
And bug :
https://bugzilla.redhat.com/show_bug.cgi?id=2061188

Setup: Fedora 35 up-to-date</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1848842</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2022-03-07 11:08:31 -0800</bug_when>
    <thetext>One more note from the downstream bug:

&quot;&quot;&quot;
I do additional debug (with gdb) :
in tryInitializeEGL GLContext::createOffscreenContext seems to initialize correctly the context.
eglContext-&gt;makeContextCurrent seems also work correctly.

But call to GLContext::current()-&gt;version() always fail.

I don&apos;t kow how to continue debug to have more informations. I have tried to step into ::glGetString(GL_VERSION), but gdb don&apos;t allow me to do this.
&quot;&quot;&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1849028</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2022-03-07 16:38:47 -0800</bug_when>
    <thetext>Can you tell us exactly which WebKitGTK version you are using?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1849150</commentid>
    <comment_count>3</comment_count>
    <who name="XoD">xoddark</who>
    <bug_when>2022-03-08 01:03:57 -0800</bug_when>
    <thetext>sure, dnf info say :
Nom          : webkit2gtk3
Version      : 2.34.6
Publication  : 1.fc35
Architecture : x86_64
Source       : webkit2gtk3-2.34.6-1.fc35.src.rpm</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1853171</commentid>
    <comment_count>4</comment_count>
    <who name="XoD">xoddark</who>
    <bug_when>2022-03-21 06:33:12 -0700</bug_when>
    <thetext>I don&apos;t know why, but the problem was caused by a local build of mesa (installed in ~/.local/).
When I have removed it, problem was fixed.

I let you decide, if it&apos;s useful to keep this bug to improve management of this type of problem.

Thank you and sorry.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1853174</commentid>
    <comment_count>5</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2022-03-21 06:49:15 -0700</bug_when>
    <thetext>(In reply to XoD from comment #4)
&gt; I don&apos;t know why, but the problem was caused by a local build of mesa
&gt; (installed in ~/.local/).
&gt; When I have removed it, problem was fixed.
&gt; 
&gt; I let you decide, if it&apos;s useful to keep this bug to improve management of
&gt; this type of problem.

Thanks for letting us now. I will close this bug as WORKSFORME because
I couldn&apos;t reproduce it, and as you mention it does look like some issue
on your system. If anybody else bumps into this again we can always reopen
the bug later.

&gt; Thank you and sorry.

No problem at all! =)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1853176</commentid>
    <comment_count>6</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2022-03-21 07:08:47 -0700</bug_when>
    <thetext>(In reply to XoD from comment #4)
&gt; I don&apos;t know why, but the problem was caused by a local build of mesa
&gt; (installed in ~/.local/).

For future reference, this is the sort of thing you should suspect when dealing with graphics issues. :P</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>