<?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>235690</bug_id>
          
          <creation_ts>2022-01-26 23:21:42 -0800</creation_ts>
          <short_desc>ASSERTION FAILED: Unsafe to ref/deref from different threads RemoteImageBuffer -&gt; Pattern -&gt; NativeImage</short_desc>
          <delta_ts>2022-01-28 09:21:23 -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>Canvas</component>
          <version>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>235678</dup_id>
          
          <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="Kimmo Kinnunen">kkinnunen</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dino</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1834421</commentid>
    <comment_count>0</comment_count>
    <who name="Kimmo Kinnunen">kkinnunen</who>
    <bug_when>2022-01-26 23:21:42 -0800</bug_when>
    <thetext>ASSERT Unsafe to ref/deref from different threads RemoteImageBuffer -&gt; Pattern -&gt; NativeImage

fast/canvas/large-getImageData.html

https://ews-build.s3-us-west-2.amazonaws.com/macOS-AppleSilicon-Big-Sur-Debug-WK2-Tests-EWS/r450035-22236/results.html


No crash log found for GPUProcess:1688.

stdout:

stderr:
ASSERTION FAILED: Unsafe to ref/deref from different threads
m_isOwnedByMainThread == isMainThread()
/Volumes/Data/worker/macOS-AppleSilicon-Big-Sur-Debug-Build-EWS/build/WebKitBuild/Debug/usr/local/include/wtf/RefCounted.h(114) : void WTF::RefCountedBase::applyRefDerefThreadingCheck() const
1   0x13b6ec02c WTFCrash
2   0x119e4f770 WTF::RefCountedBase::applyRefDerefThreadingCheck() const
3   0x1164e64a0 WTF::RefCountedBase::derefBase() const
4   0x116326590 WTF::RefCounted&lt;WebCore::NativeImage, std::__1::default_delete&lt;WebCore::NativeImage&gt; &gt;::deref() const
5   0x117fb64a0 WTF::Ref&lt;WebCore::NativeImage, WTF::RawPtrTraits&lt;WebCore::NativeImage&gt; &gt;::~Ref()
6   0x117faace4 WTF::Ref&lt;WebCore::NativeImage, WTF::RawPtrTraits&lt;WebCore::NativeImage&gt; &gt;::~Ref()
7   0x11a97199c WebCore::Pattern::~Pattern()
8   0x11a971a10 WebCore::Pattern::~Pattern()
9   0x119b93cb8 std::__1::default_delete&lt;WebCore::Pattern&gt;::operator()(WebCore::Pattern*) const
10  0x119b93c28 WTF::RefCounted&lt;WebCore::Pattern, std::__1::default_delete&lt;WebCore::Pattern&gt; &gt;::deref() const
11  0x11a919c54 WTF::DefaultRefDerefTraits&lt;WebCore::Pattern&gt;::derefIfNotNull(WebCore::Pattern*)
12  0x11a919c0c WTF::RefPtr&lt;WebCore::Pattern, WTF::RawPtrTraits&lt;WebCore::Pattern&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::Pattern&gt; &gt;::~RefPtr()
13  0x11a8f9750 WTF::RefPtr&lt;WebCore::Pattern, WTF::RawPtrTraits&lt;WebCore::Pattern&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::Pattern&gt; &gt;::~RefPtr()
14  0x11a8f9cc0 WTF::RefPtr&lt;WebCore::Pattern, WTF::RawPtrTraits&lt;WebCore::Pattern&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::Pattern&gt; &gt;::operator=(WTF::RefPtr&lt;WebCore::Pattern, WTF::RawPtrTraits&lt;WebCore::Pattern&gt;, WTF::DefaultRefDerefTraits&lt;WebCore::Pattern&gt; &gt; const&amp;)
15  0x11a8f9b94 WebCore::GraphicsContextState::operator=(WebCore::GraphicsContextState const&amp;)
16  0x11a8fcc00 WebCore::GraphicsContext::restore()
17  0x11aa5ecb8 WebCore::GraphicsContextCG::restore()
18  0x101d0cc08 WebKit::RemoteImageBuffer&lt;WebKit::ImageBufferShareableMappedIOSurfaceBackend&gt;::~RemoteImageBuffer()
19  0x101d0af7c WebKit::RemoteImageBuffer&lt;WebKit::ImageBufferShareableMappedIOSurfaceBackend&gt;::~RemoteImageBuffer()
20  0x101d0afb0 WebKit::RemoteImageBuffer&lt;WebKit::ImageBufferShareableMappedIOSurfaceBackend&gt;::~RemoteImageBuffer()
21  0x101374c58 WTF::ThreadSafeRefCounted&lt;WebCore::ImageBuffer, (WTF::DestructionThread)1&gt;::deref() const::&apos;lambda&apos;()::operator()() const
22  0x101374b94 WTF::Detail::CallableWrapper&lt;WTF::ThreadSafeRefCounted&lt;WebCore::ImageBuffer, (WTF::DestructionThread)1&gt;::deref() const::&apos;lambda&apos;(), void&gt;::call()
23  0x13b7167dc WTF::Function&lt;void ()&gt;::operator()() const
24  0x13b7a76a4 WTF::RunLoop::performWork()
25  0x13b7ac470 WTF::RunLoop::performWork(void*)
26  0x1912f2ad4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
27  0x1912f2a20 __CFRunLoopDoSource0
28  0x1912f270c __CFRunLoopDoSources0
29  0x1912f1094 __CFRunLoopRun
30  0x1912f05e8 CFRunLoopRunSpecific
31  0x192099688 -[NSRunLoop(NSRunLoop) runMode:beforeDate:]
LEAK: 2 WebPageProxy</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1835007</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2022-01-28 09:21:23 -0800</bug_when>
    <thetext>

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

    </bug>

</bugzilla>