<?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>202229</bug_id>
          
          <creation_ts>2019-09-25 13:18:11 -0700</creation_ts>
          <short_desc>[GTK] CSS dark mode tests show spurious numbers</short_desc>
          <delta_ts>2022-01-02 19:45:53 -0800</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=216777</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alicia Boya García">aboya</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>clopez</cc>
    
    <cc>dpino</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1574184</commentid>
    <comment_count>0</comment_count>
    <who name="Alicia Boya García">aboya</who>
    <bug_when>2019-09-25 13:18:11 -0700</bug_when>
    <thetext>css-dark-mode/color-scheme-css.html
css-dark-mode/color-scheme-meta.html
css-dark-mode/older-syntax/supported-color-schemes-css.html
css-dark-mode/older-syntax/supported-color-schemes-meta.html

Failing since r249883:r249933

--- /home/slave/webkitgtk/gtk-linux-64-release-tests/build/layout-test-results/css-dark-mode/color-scheme-meta-expected.txt
+++ /home/slave/webkitgtk/gtk-linux-64-release-tests/build/layout-test-results/css-dark-mode/color-scheme-meta-actual.txt
@@ -5,15 +5,15 @@
 PASS Light color scheme enabled 
 PASS Color schemes changed to light and dark 
 PASS Element colors are correct in light color scheme with light and dark color scheme 
-PASS Dark color scheme enabled 
+PASS Dark color scheme enabled 2 
 PASS Element colors are correct in dark color scheme with light and dark color scheme 
-PASS Light color scheme enabled 
+PASS Light color scheme enabled 2 
 PASS Color schemes changed to dark 
 FAIL Element colors are correct in light color scheme with only dark color scheme assert_equals: expected &quot;rgb(255, 255, 255)&quot; but got &quot;rgb(0, 0, 0)&quot;
-PASS Dark color scheme enabled 
+PASS Dark color scheme enabled 3 
 PASS Element colors are correct in dark color scheme with only dark color scheme 
 PASS Color schemes changed to light and a bogus value 
-FAIL Element colors are correct in dark color scheme with only light color scheme assert_equals: expected &quot;rgb(0, 0, 0)&quot; but got &quot;rgb(255, 255, 255)&quot;
+FAIL Element colors are correct in dark color scheme with only light color scheme 2 assert_equals: expected &quot;rgb(0, 0, 0)&quot; but got &quot;rgb(255, 255, 255)&quot;
 PASS Color schemes changed to empty value 
 FAIL Element colors are correct in dark color scheme with implicit light color scheme assert_equals: expected &quot;rgb(0, 0, 0)&quot; but got &quot;rgb(255, 255, 255)&quot;
 PASS Color schemes changed to light,dark</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1700909</commentid>
    <comment_count>1</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2020-10-22 19:52:02 -0700</bug_when>
    <thetext>This test is crashing sometimes randomly. On the last 4000 runs it has crashed 26 times. The crash log points to something related with the graphics drivers.

Thread 1 (Thread 0x7fa7459ff700 (LWP 1814)):
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007fa7a09c4855 in __GI_abort () at abort.c:79
#2  0x00007fa7a09c4729 in __assert_fail_base (fmt=0x7fa7a0b320e8 &quot;%s%s%s:%u: %s%sAssertion `%s&apos; failed.\n%n&quot;, assertion=0x7fa737695c10 &quot;c != _SIMPLE_MTX_INVALID_VALUE&quot;, file=0x7fa737695caf &quot;../src/util/simple_mtx.h&quot;, line=89, function=&lt;optimized out&gt;) at assert.c:92
#3  0x00007fa7a09d3db6 in __GI___assert_fail (assertion=assertion@entry=0x7fa737695c10 &quot;c != _SIMPLE_MTX_INVALID_VALUE&quot;, file=file@entry=0x7fa737695caf &quot;../src/util/simple_mtx.h&quot;, line=line@entry=89, function=function@entry=0x7fa7376a2e90 &lt;__PRETTY_FUNCTION__.11&gt; &quot;simple_mtx_lock&quot;) at assert.c:101
#4  0x00007fa736874a35 in simple_mtx_lock (mtx=0x7fa6840eb910) at ../src/util/simple_mtx.h:83
#5  0x00007fa7368752fe in simple_mtx_lock (mtx=0x7fa6840eb910) at ../src/util/simple_mtx.h:94
#6  st_save_zombie_sampler_view (st=0x7fa6840ea0a0, view=&lt;optimized out&gt;) at ../src/mesa/state_tracker/st_context.c:315
#7  0x00007fa7368670bd in st_texture_release_all_sampler_views (st=st@entry=0x7fa730349c40, stObj=stObj@entry=0x7fa68433dd40) at ../src/mesa/state_tracker/st_sampler_view.c:233
#8  0x00007fa7368677bf in st_texture_release_all_sampler_views (stObj=0x7fa68433dd40, st=0x7fa730349c40) at ../src/mesa/state_tracker/st_sampler_view.c:221
#9  st_delete_texture_sampler_views (st=st@entry=0x7fa730349c40, stObj=stObj@entry=0x7fa68433dd40) at ../src/mesa/state_tracker/st_sampler_view.c:253
#10 0x00007fa7368566be in st_DeleteTextureObject (ctx=0x7fa7304b5560, texObj=0x7fa68433dd40) at ../src/mesa/state_tracker/st_cb_texture.c:193
#11 0x00007fa736a1d670 in _mesa_reference_texobj_ (ptr=ptr@entry=0x7fa7304c8c28, tex=tex@entry=0x7fa730ade450) at ../src/mesa/main/texobj.c:607
#12 0x00007fa736a1d9f8 in _mesa_reference_texobj (tex=0x7fa730ade450, ptr=0x7fa7304c8c28) at ../src/mesa/main/texobj.h:100
#13 bind_texture_object (ctx=0x7fa7304b5560, unit=2, texObj=0x7fa730ade450) at ../src/mesa/main/texobj.c:1691
#14 0x00007fa7aad160e6 in WebCore::BitmapTextureGL::updateContents(void const*, WebCore::IntRect const&amp;, WebCore::IntPoint const&amp;, int) () at /app/webkit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#15 0x00007fa7a93b67bc in WebCore::CoordinatedBackingStoreTile::swapBuffers(WebCore::TextureMapper&amp;) () at /app/webkit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#16 0x00007fa7a93b7875 in WebCore::CoordinatedBackingStore::commitTileOperations(WebCore::TextureMapper&amp;) () at /app/webkit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#17 0x00007fa7a8ebaea6 in WebKit::CoordinatedGraphicsScene::updateSceneState() () at /app/webkit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#18 0x00007fa7a8eb9662 in WebKit::CoordinatedGraphicsScene::paintToCurrentGLContext(WebCore::TransformationMatrix const&amp;, WebCore::FloatRect const&amp;, unsigned int) () at /app/webkit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#19 0x00007fa7a8ebd32b in WebKit::ThreadedCompositor::renderLayerTree() () at /app/webkit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#20 0x00007fa7a6459dac in WTF::RunLoop::TimerBase::TimerBase(WTF::RunLoop&amp;)::$_3::__invoke(void*) () at /app/webkit/WebKitBuild/Release/lib/libjavascriptcoregtk-4.0.so.18
#21 0x00007fa7a645920a in WTF::RunLoop::$_0::__invoke(_GSource*, int (*)(void*), void*) () at /app/webkit/WebKitBuild/Release/lib/libjavascriptcoregtk-4.0.so.18
#22 0x00007fa7a1e6704f in g_main_dispatch (context=0x7fa730000b60) at ../glib/gmain.c:3325
#23 g_main_context_dispatch (context=0x7fa730000b60) at ../glib/gmain.c:4016
#24 0x00007fa7a1e673f8 in g_main_context_iterate (context=0x7fa730000b60, block=block@entry=1, dispatch=dispatch@entry=1, self=&lt;optimized out&gt;) at ../glib/gmain.c:4092
#25 0x00007fa7a1e67713 in g_main_loop_run (loop=0x7fa730001480) at ../glib/gmain.c:4290
#26 0x00007fa7a64597ab in WTF::RunLoop::run() () at /app/webkit/WebKitBuild/Release/lib/libjavascriptcoregtk-4.0.so.18
#27 0x00007fa7a64009a0 in WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) () at /app/webkit/WebKitBuild/Release/lib/libjavascriptcoregtk-4.0.so.18
#28 0x00007fa7a645bf46 in WTF::wtfThreadEntryPoint(void*) () at /app/webkit/WebKitBuild/Release/lib/libjavascriptcoregtk-4.0.so.18
#29 0x00007fa7a2f5b4d2 in start_thread (arg=&lt;optimized out&gt;) at pthread_create.c:477
#30 0x00007fa7a0aa04d3 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

https://build.webkit.org/results/GTK-Linux-64-bit-Release-Tests/r268900%20(16593)/css-dark-mode/older-syntax/supported-color-schemes-css-crash-log.txt</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1700928</commentid>
    <comment_count>2</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2020-10-22 22:55:49 -0700</bug_when>
    <thetext>(In reply to Carlos Alberto Lopez Perez from comment #1)
&gt; This test is crashing sometimes randomly. On the last 4000 runs it has
&gt; crashed 26 times. The crash log points to something related with the
&gt; graphics drivers.
&gt; 
&gt; Thread 1 (Thread 0x7fa7459ff700 (LWP 1814)):
&gt; #0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
&gt; #1  0x00007fa7a09c4855 in __GI_abort () at abort.c:79
&gt; #2  0x00007fa7a09c4729 in __assert_fail_base (fmt=0x7fa7a0b320e8 &quot;%s%s%s:%u:
&gt; %s%sAssertion `%s&apos; failed.\n%n&quot;, assertion=0x7fa737695c10 &quot;c !=
&gt; _SIMPLE_MTX_INVALID_VALUE&quot;, file=0x7fa737695caf &quot;../src/util/simple_mtx.h&quot;,
&gt; line=89, function=&lt;optimized out&gt;) at assert.c:92
&gt; #3  0x00007fa7a09d3db6 in __GI___assert_fail
&gt; (assertion=assertion@entry=0x7fa737695c10 &quot;c != _SIMPLE_MTX_INVALID_VALUE&quot;,
&gt; file=file@entry=0x7fa737695caf &quot;../src/util/simple_mtx.h&quot;,
&gt; line=line@entry=89, function=function@entry=0x7fa7376a2e90
&gt; &lt;__PRETTY_FUNCTION__.11&gt; &quot;simple_mtx_lock&quot;) at assert.c:101
&gt; #4  0x00007fa736874a35 in simple_mtx_lock (mtx=0x7fa6840eb910) at
&gt; ../src/util/simple_mtx.h:83
&gt; #5  0x00007fa7368752fe in simple_mtx_lock (mtx=0x7fa6840eb910) at
&gt; ../src/util/simple_mtx.h:94
&gt; #6  st_save_zombie_sampler_view (st=0x7fa6840ea0a0, view=&lt;optimized out&gt;) at
&gt; ../src/mesa/state_tracker/st_context.c:315
&gt; #7  0x00007fa7368670bd in st_texture_release_all_sampler_views
&gt; (st=st@entry=0x7fa730349c40, stObj=stObj@entry=0x7fa68433dd40) at
&gt; ../src/mesa/state_tracker/st_sampler_view.c:233
&gt; #8  0x00007fa7368677bf in st_texture_release_all_sampler_views
&gt; (stObj=0x7fa68433dd40, st=0x7fa730349c40) at
&gt; ../src/mesa/state_tracker/st_sampler_view.c:221
&gt; #9  st_delete_texture_sampler_views (st=st@entry=0x7fa730349c40,
&gt; stObj=stObj@entry=0x7fa68433dd40) at
&gt; ../src/mesa/state_tracker/st_sampler_view.c:253
&gt; #10 0x00007fa7368566be in st_DeleteTextureObject (ctx=0x7fa7304b5560,
&gt; texObj=0x7fa68433dd40) at ../src/mesa/state_tracker/st_cb_texture.c:193
&gt; #11 0x00007fa736a1d670 in _mesa_reference_texobj_
&gt; (ptr=ptr@entry=0x7fa7304c8c28, tex=tex@entry=0x7fa730ade450) at
&gt; ../src/mesa/main/texobj.c:607
&gt; #12 0x00007fa736a1d9f8 in _mesa_reference_texobj (tex=0x7fa730ade450,
&gt; ptr=0x7fa7304c8c28) at ../src/mesa/main/texobj.h:100
&gt; #13 bind_texture_object (ctx=0x7fa7304b5560, unit=2, texObj=0x7fa730ade450)
&gt; at ../src/mesa/main/texobj.c:1691
&gt; #14 0x00007fa7aad160e6 in WebCore::BitmapTextureGL::updateContents(void
&gt; const*, WebCore::IntRect const&amp;, WebCore::IntPoint const&amp;, int) () at
&gt; /app/webkit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
&gt; #15 0x00007fa7a93b67bc in
&gt; WebCore::CoordinatedBackingStoreTile::swapBuffers(WebCore::TextureMapper&amp;)
&gt; () at /app/webkit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
&gt; #16 0x00007fa7a93b7875 in
&gt; WebCore::CoordinatedBackingStore::commitTileOperations(WebCore::
&gt; TextureMapper&amp;) () at
&gt; /app/webkit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
&gt; #17 0x00007fa7a8ebaea6 in
&gt; WebKit::CoordinatedGraphicsScene::updateSceneState() () at
&gt; /app/webkit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
&gt; #18 0x00007fa7a8eb9662 in
&gt; WebKit::CoordinatedGraphicsScene::paintToCurrentGLContext(WebCore::
&gt; TransformationMatrix const&amp;, WebCore::FloatRect const&amp;, unsigned int) () at
&gt; /app/webkit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
&gt; #19 0x00007fa7a8ebd32b in WebKit::ThreadedCompositor::renderLayerTree() ()
&gt; at /app/webkit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
&gt; #20 0x00007fa7a6459dac in
&gt; WTF::RunLoop::TimerBase::TimerBase(WTF::RunLoop&amp;)::$_3::__invoke(void*) ()
&gt; at /app/webkit/WebKitBuild/Release/lib/libjavascriptcoregtk-4.0.so.18
&gt; #21 0x00007fa7a645920a in WTF::RunLoop::$_0::__invoke(_GSource*, int
&gt; (*)(void*), void*) () at
&gt; /app/webkit/WebKitBuild/Release/lib/libjavascriptcoregtk-4.0.so.18
&gt; #22 0x00007fa7a1e6704f in g_main_dispatch (context=0x7fa730000b60) at
&gt; ../glib/gmain.c:3325
&gt; #23 g_main_context_dispatch (context=0x7fa730000b60) at ../glib/gmain.c:4016
&gt; #24 0x00007fa7a1e673f8 in g_main_context_iterate (context=0x7fa730000b60,
&gt; block=block@entry=1, dispatch=dispatch@entry=1, self=&lt;optimized out&gt;) at
&gt; ../glib/gmain.c:4092
&gt; #25 0x00007fa7a1e67713 in g_main_loop_run (loop=0x7fa730001480) at
&gt; ../glib/gmain.c:4290
&gt; #26 0x00007fa7a64597ab in WTF::RunLoop::run() () at
&gt; /app/webkit/WebKitBuild/Release/lib/libjavascriptcoregtk-4.0.so.18
&gt; #27 0x00007fa7a64009a0 in
&gt; WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) () at
&gt; /app/webkit/WebKitBuild/Release/lib/libjavascriptcoregtk-4.0.so.18
&gt; #28 0x00007fa7a645bf46 in WTF::wtfThreadEntryPoint(void*) () at
&gt; /app/webkit/WebKitBuild/Release/lib/libjavascriptcoregtk-4.0.so.18
&gt; #29 0x00007fa7a2f5b4d2 in start_thread (arg=&lt;optimized out&gt;) at
&gt; pthread_create.c:477
&gt; #30 0x00007fa7a0aa04d3 in clone () at
&gt; ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
&gt; 
&gt; https://build.webkit.org/results/GTK-Linux-64-bit-Release-Tests/
&gt; r268900%20(16593)/css-dark-mode/older-syntax/supported-color-schemes-css-
&gt; crash-log.txt

Crashes with a stacktrace like this started happening after the Flatpak SDK 0.3 upgrade. We&apos;re tracking down crashes with this error (&quot;c != _SIMPLE_MTX_INVALID_VALUE&quot;) under bug https://bugs.webkit.org/show_bug.cgi?id=216777.

The error seems to be due to a regression in Mesa (https://gitlab.freedesktop.org/mesa/mesa/blob/master/docs/relnotes/20.1.8.rst). The current Flatpak SDK uses Mesa 20.1.5 (https://github.com/WebKit/webkit/blob/master/Tools/buildstream/elements/sdk/mesa.bst), although it cherry-picks the patch that in theory fixes this regression (https://github.com/WebKit/webkit/blob/master/Tools/buildstream/patches/mesa/0003-mesa-st-release-debug_output-after-destroying-the-co.patch). However, the issue is still happening.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1827611</commentid>
    <comment_count>3</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2022-01-02 19:45:49 -0800</bug_when>
    <thetext>This test(s) has been passing constantly for the last 4000 revisions. Test expectations updated in r287508. There are no more test failures filed under this bug. Closing bug.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>