<?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>284898</bug_id>
          
          <creation_ts>2024-12-18 13:17:11 -0800</creation_ts>
          <short_desc>REGRESSION (272231@main): [ macOS wk1 ] fonts tests following font-cache-memory-pressure-crash.html are a flaky failure</short_desc>
          <delta_ts>2026-01-05 11:44:35 -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>Text</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=273212</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Karl Rackler">rackler</reporter>
          <assigned_to name="Sam Sneddon [:gsnedders]">gsnedders</assigned_to>
          <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>fantasai.bugs</cc>
    
    <cc>jbedard</cc>
    
    <cc>repstein</cc>
    
    <cc>vitor.roriz</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2082761</commentid>
    <comment_count>0</comment_count>
    <who name="Karl Rackler">rackler</who>
    <bug_when>2024-12-18 13:17:11 -0800</bug_when>
    <thetext>Description:
fonts/font-weight-invalid-crash.html
fonts/ligature.html

The test fonts/font-cache-memory-pressure-crash.html , was introduced at https://commits.webkit.org/272231@main. This implementation corresponded with the onset of inconsistent test results, transitioning from consistent passes to frequent flaky failures.

This issue can be bisected to &lt;commit&gt; using the command: 
run-webkit-tests --debug -1 --no-retry --force --iterations=50 --clobber-old-results --child-processes 1 --test-list testlist-font-weight-invalid-crash.txt
run-webkit-tests --debug -1 --no-retry --force --iterations=50 --clobber-old-results --child-processes 1 --test-list testlist-ligature.txt

History:
https://results.webkit.org/?suite=layout-tests&amp;suite=layout-tests&amp;test=fonts%2Ffont-weight-invalid-crash.html&amp;test=fonts%2Fligature.html&amp;flavor=wk1&amp;recent=false

Diff:
fonts/font-weight-invalid-crash.html
-PASS
-
+Test passes if it doesn&apos;t crash.
+ï½•ï½Žï½„ï½…ï½†ï½‰ï½Žï½…ï½„

Image Diff:
fonts/ligature.html
On view layout test results it shows &apos;images diff (nan%)&apos; and both links open to 404 Not Found</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2082762</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-12-18 13:17:23 -0800</bug_when>
    <thetext>&lt;rdar://problem/141704928&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2082770</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-12-18 13:30:27 -0800</bug_when>
    <thetext>Test gardening commit 288036@main (2d6e67c75819): &lt;https://commits.webkit.org/288036@main&gt;

Reviewed commits have been landed. Closing PR #38155 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2082774</commentid>
    <comment_count>3</comment_count>
      <attachid>473598</attachid>
    <who name="Karl Rackler">rackler</who>
    <bug_when>2024-12-18 13:33:30 -0800</bug_when>
    <thetext>Created attachment 473598
testlist-font-weight-invalid-crash</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2082775</commentid>
    <comment_count>4</comment_count>
      <attachid>473599</attachid>
    <who name="Karl Rackler">rackler</who>
    <bug_when>2024-12-18 13:34:01 -0800</bug_when>
    <thetext>Created attachment 473599
testlist-ligature</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2085202</commentid>
    <comment_count>5</comment_count>
    <who name="Karl Rackler">rackler</who>
    <bug_when>2025-01-06 14:26:04 -0800</bug_when>
    <thetext>Reproduction:
This issue can be bisected to 272231@main using the command: 
run-webkit-tests --debug -1 --no-retry --force --iterations=50 --clobber-old-results --child-processes 1 --test-list testlist-font-weight-invalid-crash.txt
run-webkit-tests --debug -1 --no-retry --force --iterations=50 --clobber-old-results --child-processes 1 --test-list testlist-ligature.txt

Results:
fonts/ligature.html failed unexpectedly (reference didn&apos;t generate pixel results.)

Unexpected flakiness: text-only failures (1)
  fonts/font-weight-invalid-crash.html [ Failure Pass ]

Unexpected flakiness: image-only failures (1)
  fonts/ligature.html [ ImageOnlyFailure Pass ]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2090075</commentid>
    <comment_count>6</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2025-01-27 18:15:40 -0800</bug_when>
    <thetext>(In reply to Karl Rackler from comment #0)
&gt; Diff:
&gt; fonts/font-weight-invalid-crash.html
&gt; -PASS
&gt; -
&gt; +Test passes if it doesn&apos;t crash.
&gt; +ï½•ï½Žï½„ï½…ï½†ï½‰ï½Žï½…ï½„

This unexpected output is that of fonts/font-cache-memory-pressure-crash.html; the new test added in 272231@main, and fonts/font-weight-invalid-crash.html is the immediately following test. This feels very much like DRT is giving unexpected output and/or the driver is returning the wrong data.

&gt; Image Diff:
&gt; fonts/ligature.html
&gt; On view layout test results it shows &apos;images diff (nan%)&apos; and both links
&gt; open to 404 Not Found

Especially with the 404, this seems like a no-output-image case (which was fixed in bug 273212).

To be clear, as to ordering, we&apos;re running:

Tests to skip (1)
fonts/font-fallback-prefers-pictographs.html  [&apos;SKIP&apos;] LayoutTests/platform/mac-wk1/TestExpectations:2913 webkit.org/b/273279 fonts/font-fallback-prefers-pictographs.html [ Skip ]

Tests to run (14)
fonts/cursive.html                            [&apos;PASS&apos;]  
fonts/default.html                            [&apos;PASS&apos;]  
fonts/fantasy.html                            [&apos;PASS&apos;]  
fonts/font-cache-crash.html                   [&apos;PASS&apos;]  
fonts/font-cache-memory-pressure-crash.html   [&apos;PASS&apos;]  
fonts/font-weight-invalid-crash.html          [&apos;PASS&apos;, &apos;FAIL&apos;] LayoutTests/platform/mac-wk1/TestExpectations:3012 webkit.org/b/284898 [ Ventura+ ] fonts/font-weight-invalid-crash.html [ Pass Failure ]
fonts/ligature.html                           [&apos;PASS&apos;, &apos;FAIL&apos;, &apos;IMAGE&apos;] LayoutTests/platform/mac-wk1/TestExpectations:3013 webkit.org/b/284898 [ Ventura+ ] fonts/ligature.html [ Pass Failure ImageOnlyFailure ]
fonts/monospace.html                          [&apos;PASS&apos;]  
fonts/sans-serif.html                         [&apos;PASS&apos;]  
fonts/serif.html                              [&apos;PASS&apos;]  
fonts/unicode-character-font-crash.html       [&apos;PASS&apos;]  
fonts/use-typo-metrics-1.html                 [&apos;PASS&apos;]  
fonts/use-typo-metrics-2.html                 [&apos;PASS&apos;]  
fonts/valid-standard-font.html                [&apos;PASS&apos;]  

So these are three adjacent tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2091545</commentid>
    <comment_count>7</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2025-02-03 11:34:37 -0800</bug_when>
    <thetext>I wrote this on Slack a week ago, but:

&gt; I think someone needs to go check what DRT is actually passing to the driver next, probably looking at the value of what test ends up with in run_test in Tools/Scripts/webkitpy/port/test.py, checking what output we&apos;re getting for what test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2141064</commentid>
    <comment_count>8</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2025-09-04 16:12:56 -0700</bug_when>
    <thetext>*** Bug 273279 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2141069</commentid>
    <comment_count>9</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2025-09-04 16:18:27 -0700</bug_when>
    <thetext>https://github.com/WebKit/WebKit/pull/49978 (from bug 298004) shows this up again, with whatever follows fonts/font-cache-memory-pressure-crash.html crashing with &quot;test sequence mismatch&quot; (including itself, if run with --iterations=N).

Let&apos;s re-garden these so we skip the test causing the flakiness, not mark all those that follow as flaky.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2141074</commentid>
    <comment_count>10</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2025-09-04 16:31:28 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/50329</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2141321</commentid>
    <comment_count>11</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-09-05 14:32:59 -0700</bug_when>
    <thetext>Test gardening commit 299644@main (8e9862298f6f): &lt;https://commits.webkit.org/299644@main&gt;

Reviewed commits have been landed. Closing PR #50329 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2169436</commentid>
    <comment_count>12</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2026-01-05 11:44:35 -0800</bug_when>
    <thetext>Closing bug to match associated radar</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>473598</attachid>
            <date>2024-12-18 13:33:30 -0800</date>
            <delta_ts>2024-12-18 13:33:30 -0800</delta_ts>
            <desc>testlist-font-weight-invalid-crash</desc>
            <filename>testlist-font-weight-invalid-crash.txt</filename>
            <type>text/plain</type>
            <size>80</size>
            <attacher name="Karl Rackler">rackler</attacher>
            
              <data encoding="base64">Zm9udHMvZm9udC1jYWNoZS1tZW1vcnktcHJlc3N1cmUtY3Jhc2guaHRtbApmb250cy9mb250LXdl
aWdodC1pbnZhbGlkLWNyYXNoLmh0bWw=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>473599</attachid>
            <date>2024-12-18 13:34:01 -0800</date>
            <delta_ts>2024-12-18 13:34:01 -0800</delta_ts>
            <desc>testlist-ligature</desc>
            <filename>testlist-ligature.txt</filename>
            <type>text/plain</type>
            <size>100</size>
            <attacher name="Karl Rackler">rackler</attacher>
            
              <data encoding="base64">Zm9udHMvZm9udC1jYWNoZS1tZW1vcnktcHJlc3N1cmUtY3Jhc2guaHRtbApmb250cy9mb250LXdl
aWdodC1pbnZhbGlkLWNyYXNoLmh0bWwKZm9udHMvbGlnYXR1cmUuaHRtbA==
</data>

          </attachment>
      

    </bug>

</bugzilla>