Bug 254277 - [ macOS Debug ] ASSERTION FAILED: !hasPendingFlush() on 2x imported/w3c/web-platform-tests/html/canvas/offscreen/ tests, flakily
Summary: [ macOS Debug ] ASSERTION FAILED: !hasPendingFlush() on 2x imported/w3c/web-p...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-03-22 10:30 PDT by Bri Harris
Modified: 2023-03-22 16:34 PDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bri Harris 2023-03-22 10:30:30 PDT
The follow 2 imported/w3c/web-platform-tests/html/canvas/offscreen/ tests:

imported/w3c/web-platform-tests/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.radial.inside3.worker.html
imported/w3c/web-platform-tests/html/canvas/offscreen/path-objects/2d.path.roundrect.2.radii.2.double.worker.html

are flaky crashes on macOS Debug running on Intel only. 

HISTORY:

https://results.webkit.org/?suite=layout-tests&suite=layout-tests&test=imported%2Fw3c%2Fweb-platform-tests%2Fhtml%2Fcanvas%2Foffscreen%2Ffill-and-stroke-styles%2F2d.gradient.radial.inside3.worker.html&test=imported%2Fw3c%2Fweb-platform-tests%2Fhtml%2Fcanvas%2Foffscreen%2Fpath-objects%2F2d.path.roundrect.2.radii.2.double.worker.html

CRASH LOG / STDERR TEXT:

ASSERTION FAILED: !hasPendingFlush()
/Volumes/Data/worker/Apple-Ventura-Debug-Build/build/Source/WebKit/WebProcess/GPU/graphics/RemoteImageBufferProxy.cpp(334) : void WebKit::RemoteImageBufferProxy::prepareForBackingStoreChange()
1   0x563cade79 WTFCrash
2   0x54d40682b WTFCrashWithInfo(int, char const*, char const*, int)
3   0x54f6952e0 WebKit::RemoteImageBufferProxy::prepareForBackingStoreChange()
4   0x54f6970d4 WebKit::RemoteImageBufferProxy::sinkIntoSerializedImageBuffer()
5   0x528601731 WebCore::ImageBuffer::sinkIntoSerializedImageBuffer(WTF::RefPtr<WebCore::ImageBuffer, WTF::RawPtrTraits<WebCore::ImageBuffer>, WTF::DefaultRefDerefTraits<WebCore::ImageBuffer> >&&)
6   0x5277174a3 WebCore::OffscreenCanvas::commitToPlaceholderCanvas()
7   0x527729304 WebCore::OffscreenCanvas::scheduleCommitToPlaceholderCanvas()::$_2::operator()(WebCore::ScriptExecutionContext&) const
8   0x527729251 WTF::Detail::CallableWrapper<WebCore::OffscreenCanvas::scheduleCommitToPlaceholderCanvas()::$_2, void, WebCore::ScriptExecutionContext&>::call(WebCore::ScriptExecutionContext&)
9   0x5263592a7 WTF::Function<void (WebCore::ScriptExecutionContext&)>::operator()(WebCore::ScriptExecutionContext&) const
10  0x526349d7d WebCore::ScriptExecutionContext::Task::performTask(WebCore::ScriptExecutionContext&)
11  0x5296b53cd WebCore::WorkerDedicatedRunLoop::Task::performTask(WebCore::WorkerOrWorkletGlobalScope*)
12  0x5296b48a1 WebCore::WorkerDedicatedRunLoop::runInMode(WebCore::WorkerOrWorkletGlobalScope*, WebCore::ModePredicate const&)
13  0x5296b2e95 WebCore::WorkerDedicatedRunLoop::run(WebCore::WorkerOrWorkletGlobalScope*)
14  0x5296b2e34 WebCore::WorkerOrWorkletThread::runEventLoop()
15  0x5296b3213 WebCore::WorkerOrWorkletThread::workerOrWorkletThread()
16  0x5296de8c8 WebCore::WorkerThread::createThread()::$_17::operator()() const
17  0x5296de869 WTF::Detail::CallableWrapper<WebCore::WorkerThread::createThread()::$_17, void>::call()
18  0x563cde082 WTF::Function<void ()>::operator()() const
19  0x563dd4d18 WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*)
20  0x563de2255 WTF::wtfThreadEntryPoint(void*)
21  0x7ff805e1f259 _pthread_start
22  0x7ff805e1ac7b thread_start
com.apple.WebKit.WebContent.Development terminated (pid 33280) for reason: crash
LEAK: 1 WebPageProxy
Comment 1 Bri Harris 2023-03-22 10:31:36 PDT
I was able to replicate this crash on Ventura ToT running on Intel as follows:

run-webkit-tests imported/w3c/web-platform-tests/html/canvas/offscreen/fill-and-stroke-styles/2d.gradient.radial.inside3.worker.html imported/w3c/web-platform-tests/html/canvas/offscreen/path-objects/2d.path.roundrect.2.radii.2.double.worker.html
Comment 2 Radar WebKit Bug Importer 2023-03-22 10:31:52 PDT
<rdar://problem/107063975>