<?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>208878</bug_id>
          
          <creation_ts>2020-03-10 13:02:03 -0700</creation_ts>
          <short_desc>[GPU Process] Font data is not decoded properly</short_desc>
          <delta_ts>2021-04-09 13:10:00 -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>Canvas</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>206118</dup_id>
          
          <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="Said Abou-Hallawa">sabouhallawa</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dino</cc>
    
    <cc>mmaxfield</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1628364</commentid>
    <comment_count>0</comment_count>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2020-03-10 13:02:03 -0700</bug_when>
    <thetext>Run the following command:

run-webkit-tests --debug --no-retry  --internal-feature RenderCanvasInGPUProcessEnabled fast/canvas/2d.text.draw.fill.maxWidth.gradient.html fast/canvas/2d.text.draw.fill.maxWidth.negative.html fast/canvas/2d.text.draw.fill.maxWidth.veryLarge.html fast/canvas/2d.text.draw.fill.maxWidth.verySmall.html fast/canvas/canvas-blending-text.html fast/canvas/canvas-composite-text-alpha.html fast/canvas/font-update.html

All the tests will fail with the following assertion:

stderr:
ARGUMENT BAD: font, font
platform/graphics/cocoa/FontPlatformDataCocoa.mm(44) : WebCore::FontPlatformData::FontPlatformData(CTFontRef, float, bool, bool, WebCore::FontOrientation, WebCore::FontWidthVariant, WebCore::TextRenderingMode)
1   0x135c39339 WTFCrash
2   0x11c4c5a0c WebCore::FontPlatformData::FontPlatformData(__CTFont const*, float, bool, bool, WebCore::FontOrientation, WebCore::FontWidthVariant, WebCore::TextRenderingMode)
3   0x10f5d6fb4 IPC::ArgumentCoder&lt;WebCore::FontHandle&gt;::decodePlatformData(IPC::Decoder&amp;, WebCore::FontHandle&amp;)
4   0x1105b11a7 IPC::ArgumentCoder&lt;WebCore::FontHandle&gt;::decode(IPC::Decoder&amp;, WebCore::FontHandle&amp;)
5   0x10f35058e IPC::Decoder&amp; IPC::Decoder::operator&gt;&gt;&lt;WebCore::FontHandle, (void*)0&gt;(WTF::Optional&lt;WebCore::FontHandle&gt;&amp;)
6   0x10f3320f9 WTF::Optional&lt;WTF::Ref&lt;WebCore::DisplayList::DrawGlyphs, WTF::DumbPtrTraits&lt;WebCore::DisplayList::DrawGlyphs&gt; &gt; &gt; WebCore::DisplayList::DrawGlyphs::decode&lt;IPC::Decoder&gt;(IPC::Decoder&amp;)
7   0x10f32dc4b WTF::Optional&lt;WTF::Ref&lt;WebCore::DisplayList::Item, WTF::DumbPtrTraits&lt;WebCore::DisplayList::Item&gt; &gt; &gt; WebCore::DisplayList::Item::decode&lt;IPC::Decoder&gt;(IPC::Decoder&amp;)
8   0x10f32d02f WTF::Optional&lt;WebCore::DisplayList::DisplayList&gt; WebCore::DisplayList::DisplayList::decode&lt;IPC::Decoder&gt;(IPC::Decoder&amp;)
9   0x10f32ce5c WTF::Optional&lt;WebCore::DisplayList::DisplayList&gt; IPC::ArgumentCoder&lt;WebCore::DisplayList::DisplayList&gt;::decode&lt;WebCore::DisplayList::DisplayList, (void*)0&gt;(IPC::Decoder&amp;)
10  0x10f32cbf4 IPC::Decoder&amp; IPC::Decoder::operator&gt;&gt;&lt;WebCore::DisplayList::DisplayList, (void*)0&gt;(WTF::Optional&lt;WebCore::DisplayList::DisplayList&gt;&amp;)
11  0x10f369633 IPC::TupleDecoderImpl&lt;WebCore::DisplayList::DisplayList, WTF::ObjectIdentifier&lt;WebKit::ImageBufferFlushIdentifierType&gt;, WTF::ObjectIdentifier&lt;WebKit::ImageBufferIdentifierType&gt; &gt;::decode(IPC::Decoder&amp;)
12  0x10f3695ec IPC::TupleDecoder&lt;3ul, WebCore::DisplayList::DisplayList, WTF::ObjectIdentifier&lt;WebKit::ImageBufferFlushIdentifierType&gt;, WTF::ObjectIdentifier&lt;WebKit::ImageBufferIdentifierType&gt; &gt;::decode(IPC::Decoder&amp;)
13  0x10f36948c IPC::ArgumentCoder&lt;std::__1::tuple&lt;WebCore::DisplayList::DisplayList, WTF::ObjectIdentifier&lt;WebKit::ImageBufferFlushIdentifierType&gt;, WTF::ObjectIdentifier&lt;WebKit::ImageBufferIdentifierType&gt; &gt; &gt;::decode(IPC::Decoder&amp;)
14  0x10f369264 IPC::Decoder&amp; IPC::Decoder::operator&gt;&gt;&lt;std::__1::tuple&lt;WebCore::DisplayList::DisplayList, WTF::ObjectIdentifier&lt;WebKit::ImageBufferFlushIdentifierType&gt;, WTF::ObjectIdentifier&lt;WebKit::ImageBufferIdentifierType&gt; &gt;, (void*)0&gt;(WTF::Optional&lt;std::__1::tuple&lt;WebCore::DisplayList::DisplayList, WTF::ObjectIdentifier&lt;WebKit::ImageBufferFlushIdentifierType&gt;, WTF::ObjectIdentifier&lt;WebKit::ImageBufferIdentifierType&gt; &gt; &gt;&amp;)
15  0x10f31ec11 void IPC::handleMessage&lt;Messages::RemoteRenderingBackendProxy::FlushImageBufferDrawingContextAndCommit, WebKit::RemoteRenderingBackendProxy, void (WebKit::RemoteRenderingBackendProxy::*)(WebCore::DisplayList::DisplayList const&amp;, WTF::ObjectIdentifier&lt;WebKit::ImageBufferFlushIdentifierType&gt;, WTF::ObjectIdentifier&lt;WebKit::ImageBufferIdentifierType&gt;)&gt;(IPC::Decoder&amp;, WebKit::RemoteRenderingBackendProxy*, void (WebKit::RemoteRenderingBackendProxy::*)(WebCore::DisplayList::DisplayList const&amp;, WTF::ObjectIdentifier&lt;WebKit::ImageBufferFlushIdentifierType&gt;, WTF::ObjectIdentifier&lt;WebKit::ImageBufferIdentifierType&gt;))
16  0x10f31e796 WebKit::RemoteRenderingBackendProxy::didReceiveMessage(IPC::Connection&amp;, IPC::Decoder&amp;)
17  0x10eef7adb IPC::MessageReceiverMap::dispatchMessage(IPC::Connection&amp;, IPC::Decoder&amp;)
18  0x10f37b8c6 WebKit::GPUConnectionToWebProcess::dispatchMessage(IPC::Connection&amp;, IPC::Decoder&amp;)
19  0x10f2859d0 WebKit::GPUConnectionToWebProcess::didReceiveMessage(IPC::Connection&amp;, IPC::Decoder&amp;)
20  0x10ee4d839 IPC::Connection::dispatchMessage(IPC::Decoder&amp;)
21  0x10ee4e192 IPC::Connection::dispatchMessage(std::__1::unique_ptr&lt;IPC::Decoder, std::__1::default_delete&lt;IPC::Decoder&gt; &gt;)
22  0x10ee4e840 IPC::Connection::dispatchOneIncomingMessage()
23  0x10ee6d19e IPC::Connection::enqueueIncomingMessage(std::__1::unique_ptr&lt;IPC::Decoder, std::__1::default_delete&lt;IPC::Decoder&gt; &gt;)::$_7::operator()()
24  0x10ee6d0ae WTF::Detail::CallableWrapper&lt;IPC::Connection::enqueueIncomingMessage(std::__1::unique_ptr&lt;IPC::Decoder, std::__1::default_delete&lt;IPC::Decoder&gt; &gt;)::$_7, void&gt;::call()
25  0x135c60342 WTF::Function&lt;void ()&gt;::operator()() const
26  0x135ccd348 WTF::RunLoop::performWork()
27  0x135ccdcf1 WTF::RunLoop::performWork(void*)
28  0x7fff354af342 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
29  0x7fff354af2e1 __CFRunLoopDoSource0
30  0x7fff354af0fb __CFRunLoopDoSources0
31  0x7fff354ade2a __CFRunLoopRun
LEAK: 1 WebPageProxy</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1628374</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-03-10 14:02:13 -0700</bug_when>
    <thetext>&lt;rdar://problem/60289716&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1748833</commentid>
    <comment_count>2</comment_count>
    <who name="Myles C. Maxfield">mmaxfield</who>
    <bug_when>2021-04-09 13:07:11 -0700</bug_when>
    <thetext>I think this is a dup of https://bugs.webkit.org/show_bug.cgi?id=206118</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1748835</commentid>
    <comment_count>3</comment_count>
    <who name="Myles C. Maxfield">mmaxfield</who>
    <bug_when>2021-04-09 13:10:00 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 206118 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>