Bug 291322
Summary: | Web Inspector: InspectorCanvasAgent::didChangeCanvasMemory violates assertion | ||
---|---|---|---|
Product: | WebKit | Reporter: | Deleted User <deleted_user> |
Component: | Web Inspector | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | inspector-bugzilla-changes, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | Other | ||
Hardware: | All | ||
OS: | All | ||
See Also: | https://bugs.webkit.org/show_bug.cgi?id=290042 |
Deleted User
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/149393969>