Bug 235690

Summary: ASSERTION FAILED: Unsafe to ref/deref from different threads RemoteImageBuffer -> Pattern -> NativeImage
Product: WebKit Reporter: Kimmo Kinnunen <kkinnunen>
Component: CanvasAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: dino
Priority: P2    
Version: Other   
Hardware: Unspecified   
OS: Unspecified   

Kimmo Kinnunen
Reported 2022-01-26 23:21:42 PST
ASSERT Unsafe to ref/deref from different threads RemoteImageBuffer -> Pattern -> 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<WebCore::NativeImage, std::__1::default_delete<WebCore::NativeImage> >::deref() const 5 0x117fb64a0 WTF::Ref<WebCore::NativeImage, WTF::RawPtrTraits<WebCore::NativeImage> >::~Ref() 6 0x117faace4 WTF::Ref<WebCore::NativeImage, WTF::RawPtrTraits<WebCore::NativeImage> >::~Ref() 7 0x11a97199c WebCore::Pattern::~Pattern() 8 0x11a971a10 WebCore::Pattern::~Pattern() 9 0x119b93cb8 std::__1::default_delete<WebCore::Pattern>::operator()(WebCore::Pattern*) const 10 0x119b93c28 WTF::RefCounted<WebCore::Pattern, std::__1::default_delete<WebCore::Pattern> >::deref() const 11 0x11a919c54 WTF::DefaultRefDerefTraits<WebCore::Pattern>::derefIfNotNull(WebCore::Pattern*) 12 0x11a919c0c WTF::RefPtr<WebCore::Pattern, WTF::RawPtrTraits<WebCore::Pattern>, WTF::DefaultRefDerefTraits<WebCore::Pattern> >::~RefPtr() 13 0x11a8f9750 WTF::RefPtr<WebCore::Pattern, WTF::RawPtrTraits<WebCore::Pattern>, WTF::DefaultRefDerefTraits<WebCore::Pattern> >::~RefPtr() 14 0x11a8f9cc0 WTF::RefPtr<WebCore::Pattern, WTF::RawPtrTraits<WebCore::Pattern>, WTF::DefaultRefDerefTraits<WebCore::Pattern> >::operator=(WTF::RefPtr<WebCore::Pattern, WTF::RawPtrTraits<WebCore::Pattern>, WTF::DefaultRefDerefTraits<WebCore::Pattern> > const&) 15 0x11a8f9b94 WebCore::GraphicsContextState::operator=(WebCore::GraphicsContextState const&) 16 0x11a8fcc00 WebCore::GraphicsContext::restore() 17 0x11aa5ecb8 WebCore::GraphicsContextCG::restore() 18 0x101d0cc08 WebKit::RemoteImageBuffer<WebKit::ImageBufferShareableMappedIOSurfaceBackend>::~RemoteImageBuffer() 19 0x101d0af7c WebKit::RemoteImageBuffer<WebKit::ImageBufferShareableMappedIOSurfaceBackend>::~RemoteImageBuffer() 20 0x101d0afb0 WebKit::RemoteImageBuffer<WebKit::ImageBufferShareableMappedIOSurfaceBackend>::~RemoteImageBuffer() 21 0x101374c58 WTF::ThreadSafeRefCounted<WebCore::ImageBuffer, (WTF::DestructionThread)1>::deref() const::'lambda'()::operator()() const 22 0x101374b94 WTF::Detail::CallableWrapper<WTF::ThreadSafeRefCounted<WebCore::ImageBuffer, (WTF::DestructionThread)1>::deref() const::'lambda'(), void>::call() 23 0x13b7167dc WTF::Function<void ()>::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
Attachments
Alexey Proskuryakov
Comment 1 2022-01-28 09:21:23 PST
*** This bug has been marked as a duplicate of bug 235678 ***
Note You need to log in before you can comment on or make changes to this bug.