Closed Bug 1987462 Opened 11 months ago Closed 3 months ago

Crash in `wgpu_hal::dx12::command::impl$4::end_encoding`

Categories

(Core :: Graphics: WebGPU, defect, P1)

Firefox 143
x86_64
Windows
defect

Tracking

()

RESOLVED FIXED
Tracking Status
firefox-esr115 --- disabled
firefox-esr140 --- disabled
firefox149 --- wontfix
firefox150 --- wontfix
firefox151 --- fixed

People

(Reporter: rconde01, Unassigned)

References

Details

Crash Data

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:143.0) Gecko/20100101 Firefox/143.0

Steps to reproduce:

Actual results:

The tab crashes

Expected results:

The visualization updates

The Bugbug bot thinks this bug should belong to the 'Core::Graphics: WebGPU' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Graphics: WebGPU
Product: Firefox → Core

Seems like this may be Windows-specific; I was unable to reproduce on my Mac.

Is there a crash report in about:crashes?

OS: Unspecified → Windows
Hardware: Unspecified → x86_64

Yes - submitted:
Id before submitting: dccf3500-9bf9-4569-acaa-f4e8eea82cd1
Id after submitting: bp-93762c8d-eaa1-45ee-a783-3ddd50250908

Thanks. Based on the crash signature it could be https://github.com/gfx-rs/wgpu/issues/5285, but there isn't enough detail in the signature for me to be sure of that.

Crash Signature: [@ wgpu_hal::dx12::command::impl$4::end_encoding ]
Summary: Tab crashes when using WebGPU based website → Crash in `wgpu_hal::dx12::command::impl$4::end_encoding`
Severity: -- → S3

The bug has a crash signature, thus the bug will be considered confirmed.

Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P1

When I make a debug build of Firefox and use dxcpl.exe to force DX12 debug layers for it, I get these log messages diagnosing the crash:

D3D12 ERROR: ID3D12CommandList::ResourceBarrier: D3D12_RESOURCE_STATES has bits that mismatch support required from D3D12_RESOURCE_FLAGS. [ RESOURCE_MANIPULATION ERROR #524: RESOURCE_BARRIER_MISMATCHING_MISC_FLAGS]
<snip>
[GPU 163656: CanvasRenderer]: E/wgpu_hal::* [wgpu_hal::auxil::dxgi::result] GraphicsCommandList::close failed: The parameter is incorrect. (0x80070057)

…which is a spicy Windows-ey way of suggesting that we're not properly transitioning GPU resources used in render passes. Yikes!

Closing because no crashes reported for 12 weeks.

Status: NEW → RESOLVED
Closed: 7 months ago
Resolution: --- → WORKSFORME

As of 147.0b1 it still crashes in the same way

Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---

Thank you for checking and re-opening.

Assignee: nobody → egubler
Assignee: egubler → nobody

There is a fix in https://github.com/gfx-rs/wgpu/pull/9346, which will need to be merged to wgpu and then vendored into Firefox.

The fix has merged, so now we're Just™ waiting for a revendor.

Depends on: 2028585
No longer depends on: webgpu-update-wgpu
Status: REOPENED → RESOLVED
Closed: 7 months ago3 months ago
Resolution: --- → FIXED
QA Whiteboard: [qa-triage-done-c152/b151] [qa-ver-needed-c152/b151]
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.