<?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>221989</bug_id>
          
          <creation_ts>2021-02-16 12:55:24 -0800</creation_ts>
          <short_desc>[ BigSur Debug Wk 2 ] ASSERT NOT REACHED in WebCore::DisplayList::PaintFrameForMedia::apply</short_desc>
          <delta_ts>2021-03-02 17:13:00 -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>Media</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=222633</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="Robert Jenner">jenner</reporter>
          <assigned_to name="Peng Liu">peng.liu6</assigned_to>
          <cc>amir_mark</cc>
    
    <cc>jer.noble</cc>
    
    <cc>peng.liu6</cc>
    
    <cc>sabouhallawa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1729879</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Jenner">jenner</who>
    <bug_when>2021-02-16 12:55:24 -0800</bug_when>
    <thetext>imported/w3c/web-platform-tests/html/editing/editing-0/contenteditable/selection-in-contentEditable-at-turning-designMode-on-off.tentative.html

is flakey crashing in BigSur Debug in Wk 2. 

HISTORY URL:
https://results.webkit.org/?suite=layout-tests&amp;test=imported%2Fw3c%2Fweb-platform-tests%2Fhtml%2Fediting%2Fediting-0%2Fcontenteditable%2Fselection-in-contentEditable-at-turning-designMode-on-off.tentative.html&amp;platform=mac

CRASH LOG TEXT:
No crash log found for GPUProcess:10707.

stdout:

stderr:
SHOULD NEVER BE REACHED
./platform/graphics/displaylists/DisplayListItems.cpp(817) : void WebCore::DisplayList::PaintFrameForMedia::apply(WebCore::GraphicsContext &amp;) const
1   0x13c59ea49 WTFCrash
2   0x11e96af2b WTFCrashWithInfo(int, char const*, char const*, int)
3   0x122f27783 WebCore::DisplayList::PaintFrameForMedia::apply(WebCore::GraphicsContext&amp;) const
4   0x122f1024e WebCore::DisplayList::ItemHandle::apply(WebCore::GraphicsContext&amp;)
5   0x122f3304b WebCore::DisplayList::Replayer::applyItem(WebCore::DisplayList::ItemHandle)
6   0x122f33b34 WebCore::DisplayList::Replayer::replay(WebCore::FloatRect const&amp;, bool)
7   0x10ff01b93 WebKit::RemoteRenderingBackend::submit(WebCore::DisplayList::DisplayList const&amp;, WebCore::ImageBuffer&amp;)
8   0x10ff01eda WebKit::RemoteRenderingBackend::nextDestinationImageBufferAfterApplyingDisplayLists(WebCore::ImageBuffer&amp;, unsigned long, WebKit::DisplayListReaderHandle&amp;, WebKit::GPUProcessWakeupReason)
9   0x10ff01700 WebKit::RemoteRenderingBackend::wakeUpAndApplyDisplayList(WebKit::GPUProcessWakeupMessageArguments const&amp;)
10  0x10fec4760 void IPC::callMemberFunctionImpl&lt;WebKit::RemoteRenderingBackend, void (WebKit::RemoteRenderingBackend::*)(WebKit::GPUProcessWakeupMessageArguments const&amp;), std::__1::tuple&lt;WebKit::GPUProcessWakeupMessageArguments&gt;, 0ul&gt;(WebKit::RemoteRenderingBackend*, void (WebKit::RemoteRenderingBackend::*)(WebKit::GPUProcessWakeupMessageArguments const&amp;), std::__1::tuple&lt;WebKit::GPUProcessWakeupMessageArguments&gt;&amp;&amp;, std::__1::integer_sequence&lt;unsigned long, 0ul&gt;)
11  0x10fec3d30 void IPC::callMemberFunction&lt;WebKit::RemoteRenderingBackend, void (WebKit::RemoteRenderingBackend::*)(WebKit::GPUProcessWakeupMessageArguments const&amp;), std::__1::tuple&lt;WebKit::GPUProcessWakeupMessageArguments&gt;, std::__1::integer_sequence&lt;unsigned long, 0ul&gt; &gt;(std::__1::tuple&lt;WebKit::GPUProcessWakeupMessageArguments&gt;&amp;&amp;, WebKit::RemoteRenderingBackend*, void (WebKit::RemoteRenderingBackend::*)(WebKit::GPUProcessWakeupMessageArguments const&amp;))
12  0x10fea6776 void IPC::handleMessage&lt;Messages::RemoteRenderingBackend::WakeUpAndApplyDisplayList, WebKit::RemoteRenderingBackend, void (WebKit::RemoteRenderingBackend::*)(WebKit::GPUProcessWakeupMessageArguments const&amp;)&gt;(IPC::Decoder&amp;, WebKit::RemoteRenderingBackend*, void (WebKit::RemoteRenderingBackend::*)(WebKit::GPUProcessWakeupMessageArguments const&amp;))
13  0x10fea63aa WebKit::RemoteRenderingBackend::didReceiveMessage(IPC::Connection&amp;, IPC::Decoder&amp;)
14  0x10f4f1135 IPC::Connection::dispatchWorkQueueMessageReceiverMessage(IPC::Connection::WorkQueueMessageReceiver&amp;, IPC::Decoder&amp;)
15  0x10f51a87a IPC::Connection::dispatchMessageToWorkQueueReceiver(std::__1::unique_ptr&lt;IPC::Decoder, std::__1::default_delete&lt;IPC::Decoder&gt; &gt;&amp;)::$_10::operator()()
16  0x10f51a74e WTF::Detail::CallableWrapper&lt;IPC::Connection::dispatchMessageToWorkQueueReceiver(std::__1::unique_ptr&lt;IPC::Decoder, std::__1::default_delete&lt;IPC::Decoder&gt; &gt;&amp;)::$_10, void&gt;::call()
17  0x13c5ca332 WTF::Function&lt;void ()&gt;::operator()() const
18  0x13c6ee8de WTF::WorkQueue::dispatch(WTF::Function&lt;void ()&gt;&amp;&amp;)::$_0::operator()() const
19  0x13c6eeae2 WTF::BlockPtr&lt;void ()&gt; WTF::BlockPtr&lt;void ()&gt;::fromCallable&lt;WTF::WorkQueue::dispatch(WTF::Function&lt;void ()&gt;&amp;&amp;)::$_0&gt;(WTF::WorkQueue::dispatch(WTF::Function&lt;void ()&gt;&amp;&amp;)::$_0)::&apos;lambda&apos;(void*)::operator()(void*) const
20  0x13c6eeab5 WTF::BlockPtr&lt;void ()&gt; WTF::BlockPtr&lt;void ()&gt;::fromCallable&lt;WTF::WorkQueue::dispatch(WTF::Function&lt;void ()&gt;&amp;&amp;)::$_0&gt;(WTF::WorkQueue::dispatch(WTF::Function&lt;void ()&gt;&amp;&amp;)::$_0)::&apos;lambda&apos;(void*)::__invoke(void*)
21  0x7fff201bc5dd _dispatch_call_block_and_release
22  0x7fff201bd7c7 _dispatch_client_callout
23  0x7fff201c35fe _dispatch_lane_serial_drain
24  0x7fff201c40cb _dispatch_lane_invoke
25  0x7fff201cdc5d _dispatch_workloop_worker_thread
26  0x7fff20365499 _pthread_wqthread
27  0x7fff20364467 start_wqthread
LEAK: 1 WebPageProxy</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1729880</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-02-16 12:55:45 -0800</bug_when>
    <thetext>&lt;rdar://problem/74403030&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1729892</commentid>
    <comment_count>2</comment_count>
    <who name="Robert Jenner">jenner</who>
    <bug_when>2021-02-16 13:16:38 -0800</bug_when>
    <thetext>Was not able to duplicate due to crashing being very flakey. The first reported crash occurred at r272861, but changes appear unrelated to the flakey failing test. 

Starting on Chris who added the test at r264038.
CHANGESET URL:
https://trac.webkit.org/changeset/264038/webkit</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1730022</commentid>
    <comment_count>3</comment_count>
    <who name="Wenson Hsieh">wenson_hsieh</who>
    <bug_when>2021-02-16 16:44:22 -0800</bug_when>
    <thetext>This might imply that we&apos;re unable to map to a MediaPlayer here:

bool RemoteRenderingBackend::applyMediaItem(DisplayList::ItemHandle item, GraphicsContext&amp; context)

    ...

    auto&amp; mediaItem = item.get&lt;DisplayList::PaintFrameForMedia&gt;();
    auto player = m_gpuConnectionToWebProcess-&gt;remoteMediaPlayerManagerProxy().mediaPlayer(mediaItem.identifier());
    if (!player)
        return false;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1731715</commentid>
    <comment_count>4</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2021-02-19 18:30:12 -0800</bug_when>
    <thetext>*** Bug 222178 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1731812</commentid>
    <comment_count>5</comment_count>
    <who name="Peng Liu">peng.liu6</who>
    <bug_when>2021-02-20 11:06:41 -0800</bug_when>
    <thetext>(In reply to Wenson Hsieh from comment #3)
&gt; This might imply that we&apos;re unable to map to a MediaPlayer here:
&gt; 
&gt; bool RemoteRenderingBackend::applyMediaItem(DisplayList::ItemHandle item,
&gt; GraphicsContext&amp; context)
&gt; 
&gt;     ...
&gt; 
&gt;     auto&amp; mediaItem = item.get&lt;DisplayList::PaintFrameForMedia&gt;();
&gt;     auto player =
&gt; m_gpuConnectionToWebProcess-&gt;remoteMediaPlayerManagerProxy().
&gt; mediaPlayer(mediaItem.identifier());
&gt;     if (!player)
&gt;         return false;

I think we can just return true here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1731813</commentid>
    <comment_count>6</comment_count>
      <attachid>421093</attachid>
    <who name="Peng Liu">peng.liu6</who>
    <bug_when>2021-02-20 11:10:13 -0800</bug_when>
    <thetext>Created attachment 421093
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1734536</commentid>
    <comment_count>7</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2021-03-01 12:10:40 -0800</bug_when>
    <thetext>Can we get this reviewed/landed?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1735100</commentid>
    <comment_count>8</comment_count>
      <attachid>421093</attachid>
    <who name="Jer Noble">jer.noble</who>
    <bug_when>2021-03-02 16:08:45 -0800</bug_when>
    <thetext>Comment on attachment 421093
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=421093&amp;action=review

&gt; Source/WebKit/GPUProcess/graphics/RemoteRenderingBackend.cpp:126
&gt; -        return false;
&gt; +        return true;

Nit: Can we add a WTFLogAlways() (or equivalent) with the mediaItem.identifier() to track this exceptional case?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1735116</commentid>
    <comment_count>9</comment_count>
      <attachid>421093</attachid>
    <who name="Peng Liu">peng.liu6</who>
    <bug_when>2021-03-02 16:22:40 -0800</bug_when>
    <thetext>Comment on attachment 421093
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=421093&amp;action=review

&gt;&gt; Source/WebKit/GPUProcess/graphics/RemoteRenderingBackend.cpp:126
&gt;&gt; +        return true;
&gt; 
&gt; Nit: Can we add a WTFLogAlways() (or equivalent) with the mediaItem.identifier() to track this exceptional case?

Filed bug 222633 to fix that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1735125</commentid>
    <comment_count>10</comment_count>
      <attachid>421093</attachid>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2021-03-02 16:39:13 -0800</bug_when>
    <thetext>Comment on attachment 421093
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=421093&amp;action=review

&gt;&gt;&gt; Source/WebKit/GPUProcess/graphics/RemoteRenderingBackend.cpp:126
&gt;&gt;&gt; +        return true;
&gt;&gt; 
&gt;&gt; Nit: Can we add a WTFLogAlways() (or equivalent) with the mediaItem.identifier() to track this exceptional case?
&gt; 
&gt; Filed bug 222633 to fix that.

I think this will look better if we write it like this:

    if (auto player = m_gpuConnectionToWebProcess-&gt;remoteMediaPlayerManagerProxy().mediaPlayer(mediaItem.identifier()))
        context.paintFrameForMedia(*player, mediaItem.destination());
    return true;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1735135</commentid>
    <comment_count>11</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2021-03-02 17:12:58 -0800</bug_when>
    <thetext>Committed r273775: &lt;https://commits.webkit.org/r273775&gt;

All reviewed patches have been landed. Closing bug and clearing flags on attachment 421093.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>421093</attachid>
            <date>2021-02-20 11:10:13 -0800</date>
            <delta_ts>2021-03-02 17:12:59 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-221989-20210220111013.patch</filename>
            <type>text/plain</type>
            <size>1809</size>
            <attacher name="Peng Liu">peng.liu6</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjczMjAyCmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViS2l0L0No
YW5nZUxvZyBiL1NvdXJjZS9XZWJLaXQvQ2hhbmdlTG9nCmluZGV4IGFiYmQyNDRlMDA0YzIyOGYx
NzRiZGUwMGVmODI0ZTM3NDQ3NDliZmMuLmUwZGFlMzMxZGFmODNiYWZmMTQzOTM4MmM2NzM2MDJj
YjlkYzg4MzcgMTAwNjQ0Ci0tLSBhL1NvdXJjZS9XZWJLaXQvQ2hhbmdlTG9nCisrKyBiL1NvdXJj
ZS9XZWJLaXQvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTggQEAKKzIwMjEtMDItMjAgIFBlbmcgTGl1
ICA8cGVuZy5saXU2QGFwcGxlLmNvbT4KKworICAgICAgICBbIEJpZ1N1ciBEZWJ1ZyBXayAyIF0g
QVNTRVJUIE5PVCBSRUFDSEVEIGluIFdlYkNvcmU6OkRpc3BsYXlMaXN0OjpQYWludEZyYW1lRm9y
TWVkaWE6OmFwcGx5CisgICAgICAgIGh0dHBzOi8vYnVncy53ZWJraXQub3JnL3Nob3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