<?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>250318</bug_id>
          
          <creation_ts>2023-01-09 05:10:54 -0800</creation_ts>
          <short_desc>SHOULD NEVER BE REACHED in IPC::StreamClientConnection::trySendDestinationIDIfNeeded</short_desc>
          <delta_ts>2023-02-22 04:22:29 -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>WebKit2</component>
          <version>Safari Technology Preview</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=248929</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=250386</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="Kimmo Kinnunen">kkinnunen</reporter>
          <assigned_to name="Kimmo Kinnunen">kkinnunen</assigned_to>
          <cc>kkinnunen</cc>
    
    <cc>seokho</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1924058</commentid>
    <comment_count>0</comment_count>
    <who name="Kimmo Kinnunen">kkinnunen</who>
    <bug_when>2023-01-09 05:10:54 -0800</bug_when>
    <thetext>SHOULD NEVER BE REACHED in IPC::StreamClientConnection::trySendDestinationIDIfNeeded

https://build.webkit.org/results/Apple-Ventura-Debug-WK2-GPUProcess-Tests/257729@main%20(600)/results.html
https://build.webkit.org/results/Apple-Ventura-Debug-WK2-GPUProcess-Tests/258556@main%20(823)/results.html


SHOULD NEVER BE REACHED
/Volumes/Data/worker/Apple-Ventura-Debug-Build/build/Source/WebKit/Platform/IPC/StreamClientConnection.h(273) : bool IPC::StreamClientConnection::trySendDestinationIDIfNeeded(uint64_t, IPC::Timeout)
1   0x5283f9c69 WTFCrash
2   0x512e3842b WTFCrashWithInfo(int, char const*, char const*, int)
3   0x5146bb77c IPC::StreamClientConnection::trySendDestinationIDIfNeeded(unsigned long long, IPC::Timeout)
4   0x514eb42c6 bool IPC::StreamClientConnection::send&lt;Messages::RemoteDisplayListRecorder::Save, WebCore::RenderingResourceIdentifierType&gt;(Messages::RemoteDisplayListRecorder::Save&amp;&amp;, WTF::ObjectIdentifier&lt;WebCore::RenderingResourceIdentifierType&gt;, IPC::Timeout)
5   0x514e519b9 void WebKit::RemoteDisplayListRecorderProxy::send&lt;Messages::RemoteDisplayListRecorder::Save&gt;(Messages::RemoteDisplayListRecorder::Save&amp;&amp;)
6   0x514e518c1 WebKit::RemoteDisplayListRecorderProxy::recordSave()
7   0x4f05c9af6 WebCore::DisplayList::Recorder::save()
8   0x513b7a046 WebCore::GraphicsContextStateSaver::GraphicsContextStateSaver(WebCore::GraphicsContext&amp;, bool)
9   0x513b64d3c WebCore::GraphicsContextStateSaver::GraphicsContextStateSaver(WebCore::GraphicsContext&amp;, bool)
10  0x513b641a0 WebKit::RemoteLayerBackingStore::drawInContext(WebCore::GraphicsContext&amp;)
11  0x513b64152 WebKit::RemoteLayerBackingStore::paintContents()
12  0x513b666f2 WebKit::RemoteLayerBackingStoreCollection::paintReachableBackingStoreContents()
13  0x5148779ee WebKit::RemoteLayerTreeContext::buildTransaction(WebKit::RemoteLayerTreeTransaction&amp;, WebCore::PlatformCALayer&amp;)
14  0x5135087b5 WebKit::RemoteLayerTreeDrawingArea::updateRendering()
15  0x51350a774 WebKit::RemoteLayerTreeDrawingArea::forceRepaint()
16  0x51568c3f2 WebKit::WebPage::forceRepaintWithoutCallback()
17  0x51514546d WKBundlePageForceRepaint
18  0x4e8e3b6e5 WTR::InjectedBundlePage::dump()
19  0x4e8e3fa38 WTR::dumpAfterWaitAttributeIsRemoved(OpaqueWKBundlePage const*)
20  0x4e8e3af3f WTR::InjectedBundlePage::frameDidChangeLocation(OpaqueWKBundleFrame const*)
21  0x4e8e39192 WTR::InjectedBundlePage::didFinishLoadForFrame(OpaqueWKBundleFrame const*)
22  0x4e8e37df5 WTR::InjectedBundlePage::didFinishLoadForFrame(OpaqueWKBundlePage const*, OpaqueWKBundleFrame const*, void const**, void const*)
23  0x515134633 WebKit::InjectedBundlePageLoaderClient::didFinishLoadForFrame(WebKit::WebPage&amp;, WebKit::WebFrame&amp;, WTF::RefPtr&lt;API::Object, WTF::RawPtrTraits&lt;API::Object&gt;, WTF::DefaultRefDerefTraits&lt;API::Object&gt; &gt;&amp;)
24  0x515327b47 WebKit::WebFrameLoaderClient::dispatchDidFinishLoad()
25  0x4efb70035 WebCore::FrameLoader::checkLoadCompleteForThisFrame()
26  0x4efb615c4 WebCore::FrameLoader::checkLoadComplete()
27  0x4efaf0daf WebCore::DocumentLoader::finishedLoading()
28  0x4efaf078f WebCore::DocumentLoader::notifyFinished(WebCore::CachedResource&amp;, WebCore::NetworkLoadMetrics const&amp;)
29  0x4efcd1f58 WebCore::CachedResource::checkNotify(WebCore::NetworkLoadMetrics const&amp;)
30  0x4efccd094 WebCore::CachedResource::finishLoading(WebCore::FragmentedSharedBuffer const*, WebCore::NetworkLoadMetrics const&amp;)
31  0x4efcccd58 WebCore::CachedRawResource::finishLoading(WebCore::FragmentedSharedBuffer const*, WebCore::NetworkLoadMetrics const&amp;)
com.apple.WebKit.WebContent.Development terminated (pid 64385) for reason: crash
LEAK: 1 WebPageProxy</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1924059</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-01-09 05:11:20 -0800</bug_when>
    <thetext>&lt;rdar://problem/104027243&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1924197</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2023-01-09 15:59:54 -0800</bug_when>
    <thetext>Happens when running layout tests with `--use-gpu-process --remote-layer-tree`</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1924492</commentid>
    <comment_count>3</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2023-01-10 09:37:33 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/8463</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1925002</commentid>
    <comment_count>4</comment_count>
    <who name="Kimmo Kinnunen">kkinnunen</who>
    <bug_when>2023-01-11 23:35:13 -0800</bug_when>
    <thetext>This bug is about fixing this:
&gt; https://build.webkit.org/results/Apple-Ventura-Debug-WK2-GPUProcess-Tests/257729@main%20(600)/results.html

This bug is due to minimum message size being defined as too small. It is supposed to be minimum of &quot;SetStreamDestinationID&quot; message, sizeof(MessageName) + sizeof(uint64_t) == 12. However, the message format is actually { MessageName, 6 bytes padding, uint64_t } due to uint64_t alignment needs.

&gt; https://build.webkit.org/results/Apple-Ventura-Debug-WK2-GPUProcess-Tests/258556@main%20(823)/results.html

Bug 250386 fixed the above, e.g. using UInt128 as message destination id caused increased amount of these assertions.

Will post a change for this shortly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1926249</commentid>
    <comment_count>5</comment_count>
    <who name="Kimmo Kinnunen">kkinnunen</who>
    <bug_when>2023-01-18 06:24:04 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/8762</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1926541</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-01-19 00:02:03 -0800</bug_when>
    <thetext>Committed 259069@main (da8b5ed3e46e): &lt;https://commits.webkit.org/259069@main&gt;

Reviewed commits have been landed. Closing PR #8762 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1926612</commentid>
    <comment_count>7</comment_count>
    <who name="Kimmo Kinnunen">kkinnunen</who>
    <bug_when>2023-01-19 08:04:42 -0800</bug_when>
    <thetext>*** Bug 250062 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1935806</commentid>
    <comment_count>8</comment_count>
    <who name="Kimmo Kinnunen">kkinnunen</who>
    <bug_when>2023-02-22 04:22:29 -0800</bug_when>
    <thetext>This should now be testable in the public iOS 16.4 beta.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>