<?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>220637</bug_id>
          
          <creation_ts>2021-01-14 15:32:34 -0800</creation_ts>
          <short_desc>REGRESSION (r271472): [ Mac WK2 ] intersection-observer/target-deleted.html is timing out</short_desc>
          <delta_ts>2021-01-21 22:08:45 -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>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <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="Truitt Savell">tsavell</reporter>
          <assigned_to name="Tim Horton">thorton</assigned_to>
          <cc>ajuma</cc>
    
    <cc>cathiechen</cc>
    
    <cc>rniwa</cc>
    
    <cc>sabouhallawa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>thorton</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>1719726</commentid>
    <comment_count>0</comment_count>
    <who name="Truitt Savell">tsavell</who>
    <bug_when>2021-01-14 15:32:34 -0800</bug_when>
    <thetext>intersection-observer/target-deleted.html

This test is timing out constantly sense around r271473

History:
https://results.webkit.org/?suite=layout-tests&amp;test=intersection-observer%2Ftarget-deleted.html


I can reproduce this with command:
run-webkit-tests --iterations 2000 --exit-after-n-failures 1 --exit-after-n-crashes-or-timeouts 1 --debug-rwt-logging --no-retry --force --no-build -f intersection-observer/target-deleted.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1719727</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-01-14 15:32:49 -0800</bug_when>
    <thetext>&lt;rdar://problem/73220571&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1719738</commentid>
    <comment_count>2</comment_count>
    <who name="Truitt Savell">tsavell</who>
    <bug_when>2021-01-14 16:00:30 -0800</bug_when>
    <thetext>I was able to bisect this to r271471</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1719739</commentid>
    <comment_count>3</comment_count>
    <who name="Truitt Savell">tsavell</who>
    <bug_when>2021-01-14 16:01:05 -0800</bug_when>
    <thetext>(In reply to Truitt Savell from comment #2)
&gt; I was able to bisect this to r271471

r2714712 fails while r271471 passes actually. misstyped</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1719916</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2021-01-15 10:12:23 -0800</bug_when>
    <thetext>You mean https://trac.webkit.org/changeset/271472/webkit.

Seems pretty unlikely that&apos;s the cause.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1720328</commentid>
    <comment_count>5</comment_count>
    <who name="cathiechen">cathiechen</who>
    <bug_when>2021-01-18 04:24:04 -0800</bug_when>
    <thetext>Hmm, I can&apos;t reproduce it on Catalina debug wk2.
It seems specific to the release versions.
I&apos;ll try to build release locally.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1720820</commentid>
    <comment_count>6</comment_count>
    <who name="cathiechen">cathiechen</who>
    <bug_when>2021-01-19 23:45:54 -0800</bug_when>
    <thetext>(In reply to cathiechen from comment #5)
&gt; Hmm, I can&apos;t reproduce it on Catalina debug wk2.
&gt; It seems specific to the release versions.
&gt; I&apos;ll try to build release locally.

Tried the release version on macOS Catalina and Big Sur, but can&apos;t reproduce it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1721295</commentid>
    <comment_count>7</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2021-01-21 13:05:00 -0800</bug_when>
    <thetext>I can reproduce with Truitt&apos;s command.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1721300</commentid>
    <comment_count>8</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2021-01-21 13:07:56 -0800</bug_when>
    <thetext>Even a single iteration is sufficient (which is consistent with the bots, and will make debugging easier).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1721473</commentid>
    <comment_count>9</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2021-01-21 20:18:02 -0800</bug_when>
    <thetext>The observerShouldBeRemoved interval is firing forever, with 1 outstanding intersection observer live (i.e., the test is catching exactly the failure it was intended to fix...)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1721474</commentid>
    <comment_count>10</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2021-01-21 20:21:29 -0800</bug_when>
    <thetext>Nothing even remotely near the regression point makes any sense, so I&apos;m just going to see if I can debug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1721476</commentid>
    <comment_count>11</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2021-01-21 20:23:36 -0800</bug_when>
    <thetext>Test was introduced in https://trac.webkit.org/changeset/237880/webkit</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1721478</commentid>
    <comment_count>12</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2021-01-21 21:00:01 -0800</bug_when>
    <thetext>I think this is just a test depending on GC and the GC not happening (despite the attempt to force it). If I run the test with --no-timeout, it spins forever, UNTIL the instant I try to remote-web-inspect it, then suddenly the element is collected, the IntersectionObserver goes away, and the test completes...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1721479</commentid>
    <comment_count>13</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2021-01-21 21:00:45 -0800</bug_when>
    <thetext>Oh, try increasing the number of observers and check if any observer is collected? I suspect the test is buggy. Since we have a conservative GC, we can&apos;t guarantee all objects will be collected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1721480</commentid>
    <comment_count>14</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2021-01-21 21:09:26 -0800</bug_when>
    <thetext>Maybe the test needs to do something non-trivial in the loop to make gc() do something</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1721481</commentid>
    <comment_count>15</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2021-01-21 21:09:33 -0800</bug_when>
    <thetext>Wait, also, m_intersectionObservers is a Vector of WeakPtrs, and we&apos;re just getting its length... which won&apos;t decrease if one of the WeakPtrs gets zeroed, right? This is all a bit questionable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1721482</commentid>
    <comment_count>16</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2021-01-21 21:19:29 -0800</bug_when>
    <thetext>(In reply to Simon Fraser (smfr) from comment #14)
&gt; Maybe the test needs to do something non-trivial in the loop to make gc() do
&gt; something

It&apos;s never guaranteed that gc() will collect all garbage because we have a conservative GC. Some objects can be kept alive even if they&apos;re logically dead.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1721483</commentid>
    <comment_count>17</comment_count>
      <attachid>418108</attachid>
    <who name="Tim Horton">thorton</who>
    <bug_when>2021-01-21 21:21:48 -0800</bug_when>
    <thetext>Created attachment 418108
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1721487</commentid>
    <comment_count>18</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2021-01-21 22:08:25 -0800</bug_when>
    <thetext>Committed r271736: &lt;https://trac.webkit.org/changeset/271736&gt;

All reviewed patches have been landed. Closing bug and clearing flags on attachment 418108.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>418108</attachid>
            <date>2021-01-21 21:21:48 -0800</date>
            <delta_ts>2021-01-21 22:08:36 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-220637-20210121212147.patch</filename>
            <type>text/plain</type>
            <size>2189</size>
            <attacher name="Tim Horton">thorton</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjcxNzIyCmRpZmYgLS1naXQgYS9MYXlvdXRUZXN0cy9DaGFu
Z2VMb2cgYi9MYXlvdXRUZXN0cy9DaGFuZ2VMb2cKaW5kZXggNzM2Y2FjOTlmZjVmMTk4YjBiZjQ3
MjY3ZmU4N2NlOTA4YzA4MDlhOS4uOTE2YzcwNGJkODc1ZTEwNDQxYmNjMmRkZmM2ZDg1MDE3NGU2
OWRhZCAxMDA2NDQKLS0tIGEvTGF5b3V0VGVzdHMvQ2hhbmdlTG9nCisrKyBiL0xheW91dFRlc3Rz
L0NoYW5nZUxvZwpAQCAtMSwzICsxLDE5IEBACisyMDIxLTAxLTIxICBUaW0gSG9ydG9uICA8dGlt
b3RoeV9ob3J0b25AYXBwbGUuY29tPgorCisgICAgICAgIFJFR1JFU1NJT04gKHIyNzE0NzIpOiBb
IE1hYyBXSzIgXSBpbnRlcnNlY3Rpb24tb2JzZXJ2ZXIvdGFyZ2V0LWRlbGV0ZWQuaHRtbCBpcyB0
aW1pbmcgb3V0CisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3dfYnVnLmNnaT9p
ZD0yMjA2MzcKKyAgICAgICAgPHJkYXI6Ly9wcm9ibGVtLzczMjIwNTcxPgorCisgICAgICAgIFJl
dmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgICogaW50ZXJzZWN0aW9uLW9ic2Vy
dmVyL3RhcmdldC1kZWxldGVkLmh0bWw6CisgIC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0NzUgMTAwNjQ0Ci0tLSBhL0xheW91dFRlc3RzL2ludGVyc2VjdGlv
bi1vYnNlcnZlci90YXJnZXQtZGVsZXRlZC5odG1sCisrKyBiL0xheW91dFRlc3RzL2ludGVyc2Vj
dGlvbi1vYnNlcnZlci90YXJnZXQtZGVsZXRlZC5odG1sCkBAIC0xMSwxMyArMTEsMTUgQEAKICAg
ICBmdW5jdGlvbiBvYnNlcnZlclNob3VsZEJlUmVtb3ZlZCgpCiAgICAgewogICAgICAgICByZXR1
cm4gbmV3IFByb21pc2UoZnVuY3Rpb24ocmVzb2x2ZSkgewotICAgICAgICAgICAgaGFuZGxlID0g
c2V0SW50ZXJ2YWwoZnVuY3Rpb24oKSB7CisgICAgICAgICAgICBmdW5jdGlvbiB0ZXN0SWZSZW1v
dmVkKCkgewogICAgICAgICAgICAgICAgIGdjKCk7Ci0gICAgICAgICAgICAgICAgaWYgKGludGVy
bmFscyAmJiBpbnRlcm5hbHMubnVtYmVyT2ZJbnRlcnNlY3Rpb25PYnNlcnZlcnMoZG9jdW1lbnQp
ID09IDApIHsKLSAgICAgICAgICAgICAgICAgICAgY2xlYXJJbnRlcnZhbChoYW5kbGUpOworICAg
ICAgICAgICAgICAgIGlmIChpbnRlcm5hbHMgJiYgaW50ZXJuYWxzLm51bWJlck9mSW50ZXJzZWN0
aW9uT2JzZXJ2ZXJzKGRvY3VtZW50KSA9PSAwKQogICAgICAgICAgICAgICAgICAgICByZXNvbHZl
KCk7Ci0gICAgICAgICAgICAgICAgfQotICAgICAgICAgICAgfSwgMTApOworICAgICAgICAgICAg
ICAgIGVsc2UKKyAgICAgICAgICAgICAgICAgICAgcmVxdWVzdEFuaW1hdGlvbkZyYW1lKHRlc3RJ
ZlJlbW92ZWQpOworICAgICAgICAgICAgfQorCisgICAgICAgICAgICB0ZXN0SWZSZW1vdmVkKCk7
CiAgICAgICAgIH0pOwogICAgIH0KIAo=
</data>

          </attachment>
      

    </bug>

</bugzilla>