<?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>231117</bug_id>
          
          <creation_ts>2021-10-02 01:17:29 -0700</creation_ts>
          <short_desc>ASSERT(!resources.get(key)) in MemoryCache::revalidationSucceeded</short_desc>
          <delta_ts>2021-10-04 10:38:54 -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>Page Loading</component>
          <version>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=141110</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="Jean-Yves Avenard [:jya]">jean-yves.avenard</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>achristensen</cc>
    
    <cc>ap</cc>
    
    <cc>beidson</cc>
    
    <cc>koivisto</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>youennf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1799716</commentid>
    <comment_count>0</comment_count>
    <who name="Jean-Yves Avenard [:jya]">jean-yves.avenard</who>
    <bug_when>2021-10-02 01:17:29 -0700</bug_when>
    <thetext>STR: 
1- In a debug build, open Paramount+ and start playing a movie such as the historical documentary about Ron Burgundy https://www.paramountplus.com/movies/anchorman-the-legend-of-ron-burgundy/mdAfXe4Sow6aUj51PTldodHHY4VXF7Pg/
2- Click on full screen button
3- Once in full screen, wait a few seconds and exit full screen
4- Repeat

What happens:
You will hit the assertion
ASSERT(!resources.get(key))

stack trace:


(lldb) bt
* thread #1, queue = &apos;com.apple.main-thread&apos;, stop reason = EXC_BAD_ACCESS (code=1, address=0xbbadbeef)
    frame #0: 0x0000000404765bee JavaScriptCore`::WTFCrash() at Assertions.cpp:321:35
    frame #1: 0x000000041637544b WebCore`WTFCrashWithInfo((null)=151, (null)=&quot;./loader/cache/MemoryCache.cpp&quot;, (null)=&quot;void WebCore::MemoryCache::revalidationSucceeded(WebCore::CachedResource &amp;, const WebCore::ResourceResponse &amp;)&quot;, (null)=1918) at Assertions.h:703:5
  * frame #2: 0x0000000419f710f0 WebCore`WebCore::MemoryCache::revalidationSucceeded(this=0x000000041d123ae8, revalidatingResource=0x000000040ca45400, response=0x00007ff7b7e6b5b8) at MemoryCache.cpp:151:5
    frame #3: 0x0000000419eba41c WebCore`WebCore::SubresourceLoader::didReceiveResponse(this=0x0000000400974d80, response=0x00007ff7b7e6bc80, policyCompletionHandler=0x00007ff7b7e6ba98)&gt;&amp;&amp;) at SubresourceLoader.cpp:419:38
    frame #4: 0x00000003ec5d38f5 WebKit`WebKit::WebResourceLoader::didReceiveResponse(this=0x0000000403d268a0, response=0x00007ff7b7e6bc80, needsContinueDidReceiveResponseMessage=false) at WebResourceLoader.cpp:189:19
    frame #5: 0x00000003ecc80b18 WebKit`void IPC::callMemberFunctionImpl&lt;WebKit::WebResourceLoader, void (WebKit::WebResourceLoader::*)(WebCore::ResourceResponse const&amp;, bool), std::__1::tuple&lt;WebCore::ResourceResponse, bool&gt;, 0ul, 1ul&gt;(object=0x0000000403d268a0, function=80 33 5d ec 03 00 00 00 00 00 00 00 00 00 00 00, args=size=2, (null)=std::__1::index_sequence&lt;0UL, 1UL&gt; @ 0x00007ff7b7e6bbb8)(WebCore::ResourceResponse const&amp;, bool), std::__1::tuple&lt;WebCore::ResourceResponse, bool&gt;&amp;&amp;, std::__1::integer_sequence&lt;unsigned long, 0ul, 1ul&gt;) at HandleMessage.h:125:5
    frame #6: 0x00000003ecc80a4d WebKit`void IPC::callMemberFunction&lt;WebKit::WebResourceLoader, void (WebKit::WebResourceLoader::*)(WebCore::ResourceResponse const&amp;, bool), std::__1::tuple&lt;WebCore::ResourceResponse, bool&gt;, std::__1::integer_sequence&lt;unsigned long, 0ul, 1ul&gt; &gt;(args=size=2, object=0x0000000403d268a0, function=80 33 5d ec 03 00 00 00 00 00 00 00 00 00 00 00)(WebCore::ResourceResponse const&amp;, bool)) at HandleMessage.h:131:5
    frame #7: 0x00000003ecc7e3a0 WebKit`void IPC::handleMessage&lt;Messages::WebResourceLoader::DidReceiveResponse, WebKit::WebResourceLoader, void (WebKit::WebResourceLoader::*)(WebCore::ResourceResponse const&amp;, bool)&gt;(connection=0x00000003d86dc300, decoder=0x00000004017ece58, object=0x0000000403d268a0, function=80 33 5d ec 03 00 00 00 00 00 00 00 00 00 00 00)(WebCore::ResourceResponse const&amp;, bool)) at HandleMessage.h:202:5
    frame #8: 0x00000003ecc7dc88 WebKit`WebKit::WebResourceLoader::didReceiveWebResourceLoaderMessage(this=0x0000000403d268a0, connection=0x00000003d86dc300, decoder=0x00000004017ece58) at WebResourceLoaderMessageReceiver.cpp:52:16
    frame #9: 0x00000003ec58f1ef WebKit`WebKit::NetworkProcessConnection::didReceiveMessage(this=0x00000003d86e82a0, connection=0x00000003d86dc300, decoder=0x00000004017ece58) at NetworkProcessConnection.cpp:96:32
    frame #10: 0x00000003ea6b6b2e WebKit`IPC::Connection::dispatchMessage(this=0x00000003d86dc300, decoder=0x00000004017ece58) at Connection.cpp:1058:14
    frame #11: 0x00000003ea6b72d2 WebKit`IPC::Connection::dispatchMessage(this=0x00000003d86dc300, message=IPC::Decoder @ 0x00000004017ece58) at Connection.cpp:1103:9
    frame #12: 0x00000003ea6b789d WebKit`IPC::Connection::dispatchOneIncomingMessage(this=0x00000003d86dc300) at Connection.cpp:1172:5
    frame #13: 0x00000003ea6d7305 WebKit`IPC::Connection::enqueueIncomingMessage(this=0x00000003e5553698)::$_12::operator()() at Connection.cpp:1027:28
    frame #14: 0x00000003ea6d7219 WebKit`WTF::Detail::CallableWrapper&lt;IPC::Connection::enqueueIncomingMessage(std::__1::unique_ptr&lt;IPC::Decoder, std::__1::default_delete&lt;IPC::Decoder&gt; &gt;)::$_12, void&gt;::call(this=0x00000003e5553690) at Function.h:53:39
    frame #15: 0x000000040478ec32 JavaScriptCore`WTF::Function&lt;void ()&gt;::operator(this=0x00007ff7b7e6c220)() const at Function.h:82:35
    frame #16: 0x000000040480c7ce JavaScriptCore`WTF::RunLoop::performWork(this=0x00000003d86fc080) at RunLoop.cpp:133:9
    frame #17: 0x000000040481009e JavaScriptCore`WTF::RunLoop::performWork(context=0x00000003d86fc080) at RunLoopCF.cpp:46:37
    frame #18: 0x00007ff80a92884d CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    frame #19: 0x00007ff80a9287b5 CoreFoundation`__CFRunLoopDoSource0 + 180
    frame #20: 0x00007ff80a928534 CoreFoundation`__CFRunLoopDoSources0 + 242
    frame #21: 0x00007ff80a926f6b CoreFoundation`__CFRunLoopRun + 893
    frame #22: 0x00007ff80a92652d CoreFoundation`CFRunLoopRunSpecific + 563
    frame #23: 0x00007ff80b78d2ae Foundation`-[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 216
    frame #24: 0x00007ff80b8175f3 Foundation`-[NSRunLoop(NSRunLoop) run] + 76
    frame #25: 0x00007ff80a5af233 libxpc.dylib`_xpc_objc_main + 825
    frame #26: 0x00007ff80a5aec22 libxpc.dylib`xpc_main + 99
    frame #27: 0x00000003eb54e53a WebKit`WebKit::XPCServiceMain((null)=1, (null)=0x00007ff7b7e6d530) at XPCServiceMain.mm:223:5
    frame #28: 0x00000003ecd1d8ab WebKit`WKXPCServiceMain(argc=1, argv=0x00007ff7b7e6d530) at WKMain.mm:34:12
    frame #29: 0x0000000108095ea2 com.apple.WebKit.WebContent.Development`main(argc=1, argv=0x00007ff7b7e6d530) at AuxiliaryProcessMain.cpp:30:12
    frame #30: 0x0000000115d764d5 dyld`start + 421


Can always reproduce, typically within 30s.

For going full screen to work properly, the fix in bug 231005 is required.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1799717</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-10-02 01:17:51 -0700</bug_when>
    <thetext>&lt;rdar://problem/83794817&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>