<?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>206627</bug_id>
          
          <creation_ts>2020-01-22 16:12:04 -0800</creation_ts>
          <short_desc>REGRESSION [ Mac wk2 ] Tests are jetsamming: Unable to shrink memory footprint of process below the kill thresold [sic]</short_desc>
          <delta_ts>2021-04-02 22:10:27 -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>SVG</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=206770</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=224144</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="Jacob Uphoff">jacob_uphoff</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>cdumez</cc>
    
    <cc>sabouhallawa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1609832</commentid>
    <comment_count>0</comment_count>
    <who name="Jacob Uphoff">jacob_uphoff</who>
    <bug_when>2020-01-22 16:12:04 -0800</bug_when>
    <thetext>svg/custom/conditional-processing-2.html is flaky crashing and this started around commit 254816

This crash is happening on Mojave wk2

I did not try to reproduce

History:
https://results.webkit.org/?suite=layout-tests&amp;test=svg%2Fcustom%2Fconditional-processing-2.html

Crasher:

No crash log found for WebKitTestRunner:11765.

stdout:
layer at (0,0) size 800x600
  RenderView at (0,0) size 800x600
layer at (0,0) size 800x162
  RenderBlock {HTML} at (0,0) size 800x162
    RenderBody {BODY} at (8,16) size 784x138
      RenderBlock {P} at (0,0) size 784x18
        RenderText {#text} at (0,0) size 329x18
          text run at (0,0) width 329: &quot;This test passes if four green squares are displayed:&quot;
      RenderBlock (anonymous) at (0,34) size 784x104
        RenderSVGRoot {svg} at (8,50) size 100x100
          RenderSVGForeignObject {foreignObject} at (0,0) size 100x100
            RenderBlock {SPAN} at (0,0) size 100x100 [bgcolor=#008000]
            RenderText {#text} at (0,0) size 0x0
        RenderText {#text} at (100,86) size 4x18
          text run at (100,86) width 4: &quot; &quot;
        RenderSVGRoot {svg} at (112,50) size 100x100
          RenderSVGForeignObject {foreignObject} at (0,0) size 100x100
            RenderMathMLMath {math} at (0,0) size 100x100
              RenderMathMLSpace {mspace} at (0,0) size 100x100 [bgcolor=#008000]
            RenderText {#text} at (0,0) size 0x0
        RenderText {#text} at (204,86) size 4x18
          text run at (204,86) width 4: &quot; &quot;
        RenderSVGRoot {svg} at (216,50) size 100x100
          RenderSVGForeignObject {foreignObject} at (0,0) size 100x100
            RenderBlock {SPAN} at (0,0) size 100x100
              RenderMathMLMath {math} at (0,0) size 100x100
                RenderMathMLSpace {mspace} at (0,0) size 100x100 [bgcolor=#008000]
              RenderText {#text} at (0,0) size 0x0
            RenderText {#text} at (0,0) size 0x0
        RenderText {#text} at (308,86) size 4x18
          text run at (308,86) width 4: &quot; &quot;
        RenderText {#text} at (0,0) size 0x0
        RenderSVGRoot {svg} at (320,50) size 100x100
          RenderSVGRect {rect} at (320,50) size 100x100 [fill={[type=SOLID] [color=#008000]}] [x=0.00] [y=0.00] [width=100.00] [height=100.00]
        RenderText {#text} at (0,0) size 0x0

stderr:
Unable to shrink memory footprint of process (4150 MB) below the kill thresold (4096 MB). Killed
#CRASHED - com.apple.WebKit.WebContent.Development (pid 19092)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1609834</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-01-22 16:12:40 -0800</bug_when>
    <thetext>&lt;rdar://problem/58815277&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1612300</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2020-01-28 18:53:16 -0800</bug_when>
    <thetext>This only seemed to happen once.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1612486</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2020-01-29 08:53:25 -0800</bug_when>
    <thetext>Looking just a little bit deeper, no, it&apos;s happening all the time, just on different test. This is the most recent test run at the moment:

https://build.webkit.org/builders/Apple-Catalina-Release-WK2-Tests/builds/2521/steps/layout-test/logs/stdio

07:24:09.704 87914 worker/5 svg/custom/inline-style-overrides-markers-expected.svg crashed, (stderr lines):
07:24:09.704 87914   Unable to shrink memory footprint of process (4322 MB) below the kill thresold (4096 MB). Killed
07:24:09.704 87914   #CRASHED - com.apple.WebKit.WebContent.Development (pid 96223)
07:24:09.706 87856 [52288/52814] svg/custom/inline-style-overrides-markers.svg failed unexpectedly (WebKitTestRunner crashed [pid=95002])</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1612587</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2020-01-29 11:34:14 -0800</bug_when>
    <thetext>Maybe we can dump a memgraph when this happens?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1612689</commentid>
    <comment_count>5</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2020-01-29 14:37:07 -0800</bug_when>
    <thetext>*** Bug 206937 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1612718</commentid>
    <comment_count>6</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2020-01-29 15:09:24 -0800</bug_when>
    <thetext>&gt; Maybe we can dump a memgraph when this happens?

I don&apos;t think that we can take a memgraph after the process gets jetsammed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1612736</commentid>
    <comment_count>7</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2020-01-29 15:38:43 -0800</bug_when>
    <thetext>If ChromeClient implements didExceedBackgroundResourceLimitWhileInForeground, then we IPC the UI process which can kill the web process if it wants to.

So in WTR, we could register this handler (avoiding the instant kill in webcontent), and log something which triggers webkitpy to take a memgraph.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1614903</commentid>
    <comment_count>8</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2020-02-04 19:23:23 -0800</bug_when>
    <thetext>Since this jetsam was reproducible by running Web SQL tests, and those tests were being run on the same worker as the blamed SVG tests, I skipped storage/websql tests for iOS and macOS WK2 with https://trac.webkit.org/changeset/255783/webkit</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>