Closed Bug 1867679 Opened 1 year ago Closed 1 year ago

Crash in [@ nsGlobalWindowInner::GetConsole] from webgpu::reportCompilationMessagesToConsole on a worker thread

Categories

(Core :: Graphics: WebGPU, defect)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1902117

People

(Reporter: mccr8, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: crash)

Crash Data

Crash report: https://crash-stats.mozilla.org/report/index/ba53aa6c-68aa-4c12-9f3a-3a2f20231129

Reason: EXC_BAD_ACCESS / KERN_INVALID_ADDRESS

Top 10 frames of crashing thread:

0  XUL  RefPtr<mozilla::dom::Console>::operator! const  mfbt/RefPtr.h:350
0  XUL  nsGlobalWindowInner::GetConsole  dom/base/nsGlobalWindowInner.cpp:7285
1  XUL  mozilla::webgpu::reportCompilationMessagesToConsole  dom/webgpu/ipc/WebGPUChild.cpp:689
2  XUL  mozilla::webgpu::WebGPUChild::DeviceCreateShaderModule const  dom/webgpu/ipc/WebGPUChild.cpp:822
2  XUL  mozilla::MozPromise<nsTArray<mozilla::webgpu::WebGPUCompilationMessage>, mozilla::ipc::ResponseRejectReason, true>::InvokeMethod<mozilla::webgpu::WebGPUChild::DeviceCreateShaderModule  xpcom/threads/MozPromise.h:654
2  XUL  mozilla::MozPromise<nsTArray<mozilla::webgpu::WebGPUCompilationMessage>, mozilla::ipc::ResponseRejectReason, true>::InvokeCallbackMethod<false, mozilla::webgpu::WebGPUChild::DeviceCreateShaderModule  xpcom/threads/MozPromise.h:685
2  XUL  mozilla::MozPromise<nsTArray<mozilla::webgpu::WebGPUCompilationMessage>, mozilla::ipc::ResponseRejectReason, true>::ThenValue<mozilla::webgpu::WebGPUChild::DeviceCreateShaderModule  xpcom/threads/MozPromise.h:870
3  XUL  mozilla::MozPromise<nsTArray<mozilla::webgpu::WebGPUCompilationMessage>, mozilla::ipc::ResponseRejectReason, true>::ThenValueBase::ResolveOrRejectRunnable::Run  xpcom/threads/MozPromise.h:490
4  XUL  mozilla::SimpleTaskQueue::DrainTasks  xpcom/threads/TaskDispatcher.h:44
4  XUL  nsThread::DrainDirectTasks  xpcom/threads/nsThread.cpp:1396

This is a very low volume null deref crash. webgpu::reportCompilationMessagesToConsole is trying to turn the global into an inner window, but we're on a worker thread, so it isn't a DOM window and we get null. I'm not sure what the right way to do console stuff from a worker is so you could ask a worker person.

low volume webgpu crash.

Blocks: webgpu-v1
Severity: -- → S3
Status: NEW → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1902117
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.