<?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>306993</bug_id>
          
          <creation_ts>2026-02-04 14:27:02 -0800</creation_ts>
          <short_desc>REGRESSION(306485@main): [GTK] Crashes or bad rendering with compositing mode disabled or with hardware acceleration disabled and softGL.</short_desc>
          <delta_ts>2026-04-20 05:04:07 -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>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=305391</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=307077</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=312769</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>305391</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Carlos Alberto Lopez Perez">clopez</reporter>
          <assigned_to name="Carlos Garcia Campos">cgarcia</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>cgarcia</cc>
    
    <cc>plampe</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2178076</commentid>
    <comment_count>0</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2026-02-04 14:27:02 -0800</bug_when>
    <thetext>There are several issues with 306485@main that causes crashes or bad renderings on WebKitGTK when not using the accelerated compositing mode.

Problems:

A) MiniBrowser Crash with env vars WEBKIT_DISABLE_DMABUF_RENDERER or WEBKIT_DISABLE_DMABUF_RENDERER

Enabling any of this two en vars will crash MiniBrowser

WEBKIT_DISABLE_COMPOSITING_MODE=1 Tools/Scripts/run-minibrowser --gtk
# crash

WEBKIT_DISABLE_DMABUF_RENDERER=1 Tools/Scripts/run-minibrowser --gtk
# crash



B) Bad rendering with WEBKIT_HARDWARE_ACCELERATION_POLICY_NEVER and softGL

To reproduce this do the following:

1) Apply this patch to MiniBrowser:

diff --git a/Tools/MiniBrowser/gtk/main.c b/Tools/MiniBrowser/gtk/main.c
index d3fbb968ee46..6fa773585ec5 100644
--- a/Tools/MiniBrowser/gtk/main.c
+++ b/Tools/MiniBrowser/gtk/main.c
@@ -1011,6 +1011,7 @@ int main(int argc, char *argv[])
     webkit_settings_set_enable_developer_extras(webkitSettings, TRUE);
     webkit_settings_set_enable_webgl(webkitSettings, TRUE);
     webkit_settings_set_enable_media_stream(webkitSettings, TRUE);
+    webkit_settings_set_hardware_acceleration_policy(webkitSettings, WEBKIT_HARDWARE_ACCELERATION_POLICY_NEVER);
 
     if (!addSettingsGroupToContext(context, webkitSettings))
         g_clear_object(&amp;webkitSettings);


2) Build GTK Release
3) Run the minibrowser like this

LIBGL_ALWAYS_SOFTWARE=1 Tools/Scripts/run-minibrowser --gtk  https://www.meneame.net

Instead of rendering the website it renders some rectangles (note: i&apos;m testing on X11). I see this:  https://people.igalia.com/clopez/bad_rendering_meneame_regression_306485.png

This bad rendering is also reproducible if you navigate a bit and go back and forward, but with this meneame website is 100% reproducible all the times (at least for me)

When the issue happens after pressing ongoing back and forth it prints lot of errors on stdout like this:

AcceleratedSurface was unable to construct a complete framebuffer
AcceleratedSurface was unable to construct a complete framebuffer


C) WebProcess crashes at termination

To reproduce this apply the same patch than B) (above) and run the minibrowser with softGL also

ulimit -c unlimited
LIBGL_ALWAYS_SOFTWARE=1 Tools/Scripts/run-minibrowser --gtk 

Then navigate a bit and you will see on the stdout of minibrowser this lines

WebKitWebProcess: ../src/dispatch_common.c:872: epoxy_get_proc_address: Assertion `0 &amp;&amp; &quot;Couldn&apos;t find current GLX or EGL context.\n&quot;&apos; failed.
WebKitWebProcess: ../src/dispatch_common.c:872: epoxy_get_proc_address: Assertion `0 &amp;&amp; &quot;Couldn&apos;t find current GLX or EGL context.\n&quot;&apos; failed.
WebKitWebProcess: ../src/dispatch_common.c:872: epoxy_get_proc_address: Assertion `0 &amp;&amp; &quot;Couldn&apos;t find current GLX or EGL context.\n&quot;&apos; failed.

And on coredumpctl you will see coredumps for WebKitWebProcess  when the WebProcess is closed to use a new one (due to PSON)

Another way to reproduce this is to launch the minibrowser in this URL and close it in just 1-2 seconds after the animation loads

LIBGL_ALWAYS_SOFTWARE=1 Tools/Scripts/run-minibrowser --gtk https://webglsamples.org/aquarium/aquarium.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2178089</commentid>
    <comment_count>1</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2026-02-04 14:47:52 -0800</bug_when>
    <thetext>BTW, I double-checked that nothing of this happens if I revert 306485@main locally.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2178269</commentid>
    <comment_count>2</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2026-02-04 22:35:35 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/57933</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2178270</commentid>
    <comment_count>3</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2026-02-04 22:40:04 -0800</bug_when>
    <thetext>(In reply to Carlos Alberto Lopez Perez from comment #0)
&gt; There are several issues with 306485@main that causes crashes or bad
&gt; renderings on WebKitGTK when not using the accelerated compositing mode.

Thanks for reporting!

&gt; Problems:
&gt; 
&gt; A) MiniBrowser Crash with env vars WEBKIT_DISABLE_DMABUF_RENDERER or
&gt; WEBKIT_DISABLE_DMABUF_RENDERER
&gt; 
&gt; Enabling any of this two en vars will crash MiniBrowser
&gt; 
&gt; WEBKIT_DISABLE_COMPOSITING_MODE=1 Tools/Scripts/run-minibrowser --gtk
&gt; # crash
&gt; 
&gt; WEBKIT_DISABLE_DMABUF_RENDERER=1 Tools/Scripts/run-minibrowser --gtk
&gt; # crash
&gt; 

This should be fixed by PR 57933.

&gt; 
&gt; B) Bad rendering with WEBKIT_HARDWARE_ACCELERATION_POLICY_NEVER and softGL
&gt; 
&gt; To reproduce this do the following:
&gt; 
&gt; 1) Apply this patch to MiniBrowser:
&gt; 
&gt; diff --git a/Tools/MiniBrowser/gtk/main.c b/Tools/MiniBrowser/gtk/main.c
&gt; index d3fbb968ee46..6fa773585ec5 100644
&gt; --- a/Tools/MiniBrowser/gtk/main.c
&gt; +++ b/Tools/MiniBrowser/gtk/main.c
&gt; @@ -1011,6 +1011,7 @@ int main(int argc, char *argv[])
&gt;      webkit_settings_set_enable_developer_extras(webkitSettings, TRUE);
&gt;      webkit_settings_set_enable_webgl(webkitSettings, TRUE);
&gt;      webkit_settings_set_enable_media_stream(webkitSettings, TRUE);
&gt; +    webkit_settings_set_hardware_acceleration_policy(webkitSettings,
&gt; WEBKIT_HARDWARE_ACCELERATION_POLICY_NEVER);
&gt;  
&gt;      if (!addSettingsGroupToContext(context, webkitSettings))
&gt;          g_clear_object(&amp;webkitSettings);

PR 57933 adds support for passing --hardware-acceleration-policy=always|never to MiniBrowser.

&gt; 
&gt; 2) Build GTK Release
&gt; 3) Run the minibrowser like this
&gt; 
&gt; LIBGL_ALWAYS_SOFTWARE=1 Tools/Scripts/run-minibrowser --gtk 
&gt; https://www.meneame.net
&gt; 
&gt; Instead of rendering the website it renders some rectangles (note: i&apos;m
&gt; testing on X11). I see this: 
&gt; https://people.igalia.com/clopez/bad_rendering_meneame_regression_306485.png

I can&apos;t reproduce this with PR 57933 on wayland, I haven&apos;t tried X11, open a new report for this if it still happens on X11.

&gt; This bad rendering is also reproducible if you navigate a bit and go back
&gt; and forward, but with this meneame website is 100% reproducible all the
&gt; times (at least for me)
&gt; 
&gt; When the issue happens after pressing ongoing back and forth it prints lot
&gt; of errors on stdout like this:
&gt; 
&gt; AcceleratedSurface was unable to construct a complete framebuffer
&gt; AcceleratedSurface was unable to construct a complete framebuffer
&gt; 
&gt; 
&gt; C) WebProcess crashes at termination
&gt; 
&gt; To reproduce this apply the same patch than B) (above) and run the
&gt; minibrowser with softGL also
&gt; 
&gt; ulimit -c unlimited
&gt; LIBGL_ALWAYS_SOFTWARE=1 Tools/Scripts/run-minibrowser --gtk 
&gt; 
&gt; Then navigate a bit and you will see on the stdout of minibrowser this lines
&gt; 
&gt; WebKitWebProcess: ../src/dispatch_common.c:872: epoxy_get_proc_address:
&gt; Assertion `0 &amp;&amp; &quot;Couldn&apos;t find current GLX or EGL context.\n&quot;&apos; failed.
&gt; WebKitWebProcess: ../src/dispatch_common.c:872: epoxy_get_proc_address:
&gt; Assertion `0 &amp;&amp; &quot;Couldn&apos;t find current GLX or EGL context.\n&quot;&apos; failed.
&gt; WebKitWebProcess: ../src/dispatch_common.c:872: epoxy_get_proc_address:
&gt; Assertion `0 &amp;&amp; &quot;Couldn&apos;t find current GLX or EGL context.\n&quot;&apos; failed.
&gt; 
&gt; And on coredumpctl you will see coredumps for WebKitWebProcess  when the
&gt; WebProcess is closed to use a new one (due to PSON)
&gt; 
&gt; Another way to reproduce this is to launch the minibrowser in this URL and
&gt; close it in just 1-2 seconds after the animation loads
&gt; 
&gt; LIBGL_ALWAYS_SOFTWARE=1 Tools/Scripts/run-minibrowser --gtk
&gt; https://webglsamples.org/aquarium/aquarium.html

I think I fixed this crash already in https://commits.webkit.org/306709@main</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2178291</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-02-05 00:49:38 -0800</bug_when>
    <thetext>Committed 306842@main (1050700930f6): &lt;https://commits.webkit.org/306842@main&gt;

Reviewed commits have been landed. Closing PR #57933 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>