NEW 291322
Web Inspector: InspectorCanvasAgent::didChangeCanvasMemory violates assertion
https://bugs.webkit.org/show_bug.cgi?id=291322
Summary Web Inspector: InspectorCanvasAgent::didChangeCanvasMemory violates assertion
Deleted User
Reported 2025-04-09 09:29:41 PDT
STR: 1. Download https://github.com/WebKit/WebKit/pull/42688/files#diff-569aa52dd7b76b7c6aa31cc120f8ec75356e60777ab397ea10aca371cde4b597. 2. Open it with GTK's MiniBrowser with a debug build. 3. Open the Graphics tab of Web Inspector. 4. Attach gdb to the WebKitWebProcess. 5. Reload the MiniBrowsers tab. 6. Click on the canvas in the Graphics tab of Web inspector. Backtrace: ``` Thread 1 "WebKitWebProces" received signal SIGSEGV, Segmentation fault. WTFCrash () at /host/home/mirko/work/code/WebKit/Source/WTF/wtf/Assertions.cpp:367 367 *(int *)(uintptr_t)0xbbadbeef = 0; (gdb) bt #0 WTFCrash () at /host/home/mirko/work/code/WebKit/Source/WTF/wtf/Assertions.cpp:367 #1 0x0000736c4970967f in WTFCrashWithInfo () at /host/home/mirko/work/code/WebKit/WebKitBuild/GTK/Debug/WTF/Headers/wtf/Assertions.h:931 #2 0x0000736c506d3fbd in WebCore::InspectorCanvasAgent::didChangeCanvasMemory (this=0x736c1a0e4340, context=...) at /host/home/mirko/work/code/WebKit/Source/WebCore/inspector/agents/InspectorCanvasAgent.cpp:376 #3 0x0000736c5062496a in WebCore::InspectorInstrumentation::didChangeCanvasMemoryImpl (instrumentingAgents=..., context=...) at /host/home/mirko/work/code/WebKit/Source/WebCore/inspector/InspectorInstrumentation.cpp:1118 #4 0x0000736c5016b01b in WebCore::InspectorInstrumentation::didChangeCanvasMemory (context=...) at /host/home/mirko/work/code/WebKit/Source/WebCore/inspector/InspectorInstrumentation.h:1494 #5 0x0000736c5016c9b9 in WebCore::CanvasBase::setImageBuffer (this=0x736b8a008ef8, buffer=...) at /host/home/mirko/work/code/WebKit/Source/WebCore/html/CanvasBase.cpp:274 #6 0x0000736c501d86e6 in WebCore::HTMLCanvasElement::setImageBufferAndMarkDirty (this=0x736b8a008e30, buffer=...) at /host/home/mirko/work/code/WebKit/Source/WebCore/html/HTMLCanvasElement.cpp:902 #7 0x0000736c5042788b in WebCore::PlaceholderRenderingContext::setPlaceholderBuffer (this=0x736b8a006050, buffer=...) at /host/home/mirko/work/code/WebKit/Source/WebCore/html/canvas/PlaceholderRenderingContext.cpp:114 #8 0x0000736c5042731b in operator() (__closure=0x736c1a372d48) at /host/home/mirko/work/code/WebKit/Source/WebCore/html/canvas/PlaceholderRenderingContext.cpp:73 #9 0x0000736c504640a2 in WTF::Detail::CallableWrapper<WebCore::PlaceholderRenderingContextSource::setPlaceholderBuffer(WebCore::ImageBuffer&)::<lambda()>, void>::call(void) ``` Violated assertion: https://searchfox.org/wubkat/rev/95b8a67e3715e5f442cadaf3532e007c8c7d2603/Source/WebCore/inspector/agents/InspectorCanvasAgent.cpp#376
Attachments
Radar WebKit Bug Importer
Comment 1 2025-04-16 09:30:13 PDT
Note You need to log in before you can comment on or make changes to this bug.