<?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>235277</bug_id>
          
          <creation_ts>2022-01-16 02:04:45 -0800</creation_ts>
          <short_desc>[Debug][WPE] imported/w3c/web-platform-tests/html/canvas/offscreen/text/2d.text.drawing.style.measure.rtl.text.worker.html is crashing</short_desc>
          <delta_ts>2022-01-16 07:23:13 -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>Text</component>
          <version>WebKit Nightly Build</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=219283</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Diego Pino">dpino</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>clord</cc>
    
    <cc>darin</cc>
    
    <cc>mmaxfield</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1831294</commentid>
    <comment_count>0</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2022-01-16 02:04:45 -0800</bug_when>
    <thetext>It seems this test has been crashing in Debug since long time ago:

https://results.webkit.org/?suite=layout-tests&amp;test=imported%2Fw3c%2Fweb-platform-tests%2Fhtml%2Fcanvas%2Foffscreen%2Ftext%2F2d.text.drawing.style.measure.rtl.text.worker.html&amp;platform=WPE

Crash:

STDERR: ASSERTION FAILED: isMainThread()
STDERR: /app/webkit/Source/WebCore/platform/graphics/Font.cpp(676) : bool WebCore::Font::canRenderCombiningCharacterSequence(const UChar*, size_t) const
STDERR: 1   0x7f99ac067861 WTFCrash

Thread 1 (Thread 0x7f988b1ff640 (LWP 51810)):
#0  0x00007f99ac067866 in WTFCrash () at /app/webkit/WebKitBuild/Debug/lib/libWPEWebKit-1.1.so.0
#1  0x00007f99a8d85a14 in std::numeric_limits&lt;unsigned int&gt;::max() () at /app/webkit/WebKitBuild/Debug/lib/libWPEWebKit-1.1.so.0
#2  0x00007f99af18756a in WebCore::Font::canRenderCombiningCharacterSequence(char16_t const*, unsigned long) const () at /app/webkit/WebKitBuild/Debug/lib/libWPEWebKit-1.1.so.0
#3  0x00007f99b00c0d34 in WebCore::FontCascade::fontForCombiningCharacterSequence(char16_t const*, unsigned long) const () at /app/webkit/WebKitBuild/Debug/lib/libWPEWebKit-1.1.so.0
#4  0x00007f99af1183a1 in WebCore::ComplexTextController::collectComplexTextRuns() () at /app/webkit/WebKitBuild/Debug/lib/libWPEWebKit-1.1.so.0
#5  0x00007f99af116de3 in WebCore::ComplexTextController::ComplexTextController(WebCore::FontCascade const&amp;, WebCore::TextRun const&amp;, bool, WTF::HashSet&lt;WebCore::Font const*, WTF::DefaultHash&lt;WebCore::Font const*&gt;, WTF::HashTraits&lt;WebCore::Font const*&gt;, WTF::HashTableTraits&gt;*, bool) () at /app/webkit/WebKitBuild/Debug/lib/libWPEW
#6  0x00007f99af1b6451 in WebCore::FontCascade::floatWidthForComplexText(WebCore::TextRun const&amp;, WTF::HashSet&lt;WebCore::Font const*, WTF::DefaultHash&lt;WebCore::Font const*&gt;, WTF::HashTraits&lt;WebCore::Font const*&gt;, WTF::HashTableTraits&gt;*, WebCore::GlyphOverflow*) const () at /app/webkit/WebKitBuild/Debug/lib/libWPEWebKit-1.1.so.0
#7  0x00007f99af1b2717 in WebCore::FontCascade::width(WebCore::TextRun const&amp;, WTF::HashSet&lt;WebCore::Font const*, WTF::DefaultHash&lt;WebCore::Font const*&gt;, WTF::HashTraits&lt;WebCore::Font const*&gt;, WTF::HashTableTraits&gt;*, WebCore::GlyphOverflow*) const () at /app/webkit/WebKitBuild/Debug/lib/libWPEWebKit-1.1.so.0
#8  0x00007f99ae8325fa in WebCore::CanvasRenderingContext2DBase::FontProxy::width(WebCore::TextRun const&amp;, WebCore::GlyphOverflow*) const () at /app/webkit/WebKitBuild/Debug/lib/libWPEWebKit-1.1.so.0
#9  0x00007f99ae83dc38 in WebCore::CanvasRenderingContext2DBase::measureTextInternal(WebCore::TextRun const&amp;) () at /app/webkit/WebKitBuild/Debug/lib/libWPEWebKit-1.1.so.0
#10 0x00007f99ae83db80 in WebCore::CanvasRenderingContext2DBase::measureTextInternal(WTF::String const&amp;) () at /app/webkit/WebKitBuild/Debug/lib/libWPEWebKit-1.1.so.0
#11 0x00007f99ae862552 in WebCore::OffscreenCanvasRenderingContext2D::measureText(WTF::String const&amp;) () at /app/webkit/WebKitBuild/Debug/lib/libWPEWebKit-1.1.so.0
#12 0x00007f99acccf1dd in WebCore::jsOffscreenCanvasRenderingContext2DPrototypeFunction_measureTextBody(JSC::JSGlobalObject*, JSC::CallFrame*, WebCore::JSOffscreenCanvasRenderingContext2D*) () at /app/webkit/WebKitBuild/Debug/lib/libWPEWebKit-1.1.so.0
#13 0x00007f99acce1cff in long WebCore::IDLOperation&lt;WebCore::JSOffscreenCanvasRenderingContext2D&gt;::call&lt;&amp;WebCore::jsOffscreenCanvasRenderingContext2DPrototypeFunction_measureTextBody, (WebCore::CastedThisErrorBehavior)0&gt;(JSC::JSGlobalObject&amp;, JSC::CallFrame&amp;, char const*) () at /app/webkit/WebKitBuild/Debug/lib/libWPEWebKit-1.1.
#14 0x00007f99acccf28f in WebCore::jsOffscreenCanvasRenderingContext2DPrototypeFunction_measureText(JSC::JSGlobalObject*, JSC::CallFrame*) () at /app/webkit/WebKitBuild/Debug/lib/libWPEWebKit-1.1.so.0
#15 0x00007f9961d9ca78 in  ()
#16 0x00007f988b1fe180 in  ()
#17 0x00007f99ac1a8da0 in op_call_slow_return_location () at /app/webkit/WebKitBuild/Debug/lib/libWPEWebKit-1.1.so.0
#18 0x0000000000000000 in  ()</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>