<?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>229740</bug_id>
          
          <creation_ts>2021-08-31 14:42:45 -0700</creation_ts>
          <short_desc>REGRESSION(r281439)[GTK] fast/box-shadow/box-shadow-huge-area-crash.html is flaky fail / crash</short_desc>
          <delta_ts>2023-02-27 07:03:10 -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=228893</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="Carlos Alberto Lopez Perez">clopez</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>cgarcia</cc>
    
    <cc>vitaly</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1789100</commentid>
    <comment_count>0</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2021-08-31 14:42:45 -0700</bug_when>
    <thetext>Since r281439 the test fast/box-shadow/box-shadow-huge-area-crash.html fails on GTK the 99% of the times and the other 1% it crashes.

On WPE it passes fine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1789102</commentid>
    <comment_count>1</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2021-08-31 14:45:01 -0700</bug_when>
    <thetext>This is the diff for when it fails https://people.igalia.com/clopez/wkbug/229740/layout-test-results/results.html

I don&apos;t have info for when it crashes. On the gtk-release bot it crashed 2 times since r281439 but no backtraces were generated. See https://build.webkit.org/#/builders/57/builds/3420 and https://build.webkit.org/#/builders/57/builds/3395

On the GTK debug bot it has not crashed so far and I have been unable to make it crash locally.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1789113</commentid>
    <comment_count>2</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2021-08-31 14:59:54 -0700</bug_when>
    <thetext>Expectations updated on r281824</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1789224</commentid>
    <comment_count>3</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2021-08-31 23:34:48 -0700</bug_when>
    <thetext>(In reply to Carlos Alberto Lopez Perez from comment #0)
&gt; Since r281439 the test fast/box-shadow/box-shadow-huge-area-crash.html fails
&gt; on GTK the 99% of the times and the other 1% it crashes.
&gt; 
&gt; On WPE it passes fine.

This is weird, because the change in r281439 is the same for GTK and WPE ports...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1936148</commentid>
    <comment_count>4</comment_count>
    <who name="Vitaly Dyackhov">vitaly</who>
    <bug_when>2023-02-23 06:16:35 -0800</bug_when>
    <thetext>OK, I think I figured this one out. The cause of this issue is `hb_position_t` aka `int32_t`. This type is used to represent advances and offset of a glyph in `hb_buffer`. Its format is 16.16, i.e. 16 bits for the integer part and 16 bits for the fractional precision part. See https://github.com/harfbuzz/harfbuzz/issues/2714 for details. But it is *singed* and the first bit is the sign bit. That means the maximum advance and offset value is 2^15 and not 2^16. This limits the maximum advance and offset value to `std::numeric_limits&lt;short&gt;::max()` i.e 32767.

We use HarfBuzz to measure text size only when the complex text code path is taken. Until 259842@main WPE port used the simple code path when possible. This explains why the issue was reproducible only on GTK port.

PR is coming :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1936176</commentid>
    <comment_count>5</comment_count>
    <who name="Vitaly Dyackhov">vitaly</who>
    <bug_when>2023-02-23 07:22:36 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/10583</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1937003</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-02-27 07:03:02 -0800</bug_when>
    <thetext>Committed 260882@main (1516848f1a90): &lt;https://commits.webkit.org/260882@main&gt;

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

    </bug>

</bugzilla>