Closed Bug 1879692 Opened 1 year ago Closed 1 year ago

[WebGPU] 3 different crashes on a babylon.js demo (https://playground.babylonjs.com/#BCU1XR#0)

Categories

(Core :: Graphics: WebGPU, defect)

defect

Tracking

()

RESOLVED FIXED
125 Branch
Tracking Status
firefox-esr115 --- disabled
firefox123 --- disabled
firefox124 --- disabled
firefox125 --- fixed

People

(Reporter: mayankleoboy1, Assigned: ErichDonGubler)

References

(Blocks 1 open bug, )

Details

(Keywords: crash)

Crash Data

Attachments

(8 files)

Use latest Nightly and enable webgpu
Go to https://playground.babylonjs.com/#BCU1XR#0
From the top-right, choose ""WEBGPU"

STR1
On the bar at the top, the "TS" should be in red. Click on it.
AR: https://crash-stats.mozilla.org/report/index/3b2398c2-001c-4e2b-8f3c-448e50240210
STR2
Click on the triangle "Run" button (maybe press multiple times)
AR: https://crash-stats.mozilla.org/report/index/83fafeea-31fa-4f2b-b206-80a3f0240210#tab-bugzilla , https://crash-stats.mozilla.org/report/index/2c5cef1a-0474-4ffc-8354-338db0240210#tab-bugzilla

Attached file about:support
Crash Signature: [@ mozilla::webgpu::ReadbackPresentCallback ] → [@ mozilla::webgpu::ReadbackPresentCallback ] [@ mozilla::webgpu::RenderPipeline::GetBindGroupLayout ]
See Also: → 1877472
Summary: [WebGPU] crash on a babylon.js demo (https://playground.babylonjs.com/#BCU1XR#0) → [WebGPU] 2 different crashes on a babylon.js demo (https://playground.babylonjs.com/#BCU1XR#0)
Crash Signature: [@ mozilla::webgpu::ReadbackPresentCallback ] [@ mozilla::webgpu::RenderPipeline::GetBindGroupLayout ] → [@ mozilla::webgpu::ReadbackPresentCallback ] [@ mozilla::webgpu::RenderPipeline::GetBindGroupLayout ] [@ mozilla::webgpu::Queue::CopyExternalImageToTexture ]
Summary: [WebGPU] 2 different crashes on a babylon.js demo (https://playground.babylonjs.com/#BCU1XR#0) → [WebGPU] 3 different crashes on a babylon.js demo (https://playground.babylonjs.com/#BCU1XR#0)
Keywords: crash
Severity: -- → S3
See Also: → 1879694
Flags: needinfo?(egubler)

I can reproduce this issue, and believe I've identified a fix. Will file a patch.

Flags: needinfo?(egubler)

N.B. that I was only able to reproduce the mozilla::webgpu::ReadbackPresentCallback case. This seems to be the only crash signature associated with this bug within the last week.

Assignee: nobody → egubler
Status: NEW → ASSIGNED
Attachment #9389582 - Attachment description: Bug 1879692: refactor(webgpu): coerce valid. errors to internal in readback presentation r=#webgpu-reviewers! → Bug 1879692: fix(webgpu): coerce valid. errors to internal in readback presentation r=#webgpu-reviewers!
Attachment #9389579 - Attachment description: WIP: Bug 1879692: refactor(webgpu): s/PresentationData*/RefPtr<PresentationData> r=#webgpu-reviewers! → Bug 1879692: refactor(webgpu): s/PresentationData*/RefPtr<PresentationData> r=#webgpu-reviewers!
Attachment #9389580 - Attachment description: WIP: Bug 1879692: chore(webgpu): remove `PresentationData::mBuffersLock` r=#webgpu-reviewers! → Bug 1879692: chore(webgpu): remove `PresentationData::mBuffersLock` r=#webgpu-reviewers!,sotaro
See Also: → 1883999
Pushed by egubler@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/dfdc46044141 fix(webgpu): coerce valid. errors to internal in readback presentation r=webgpu-reviewers,nical https://hg.mozilla.org/integration/autoland/rev/43e49edbfc56 refactor(webgpu): always print WGPU errors in readback presentation r=webgpu-reviewers,nical https://hg.mozilla.org/integration/autoland/rev/19dc0337595b fix(webgpu): bail readback presentation if `get_mapped_range` fails r=webgpu-reviewers,nical https://hg.mozilla.org/integration/autoland/rev/4cc186ae41cf refactor(webgpu): clarify internal-ness of WGPU error logs in readback presentation r=webgpu-reviewers,nical

Mayank, can you confirm that this issue is fixed? I have some lagging patches I'd like to land before closing, but the actual OP issue should be fixed by now.

Flags: needinfo?(mayankleoboy1)
Pushed by egubler@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b8cb47c02569 refactor(webgpu): s/PresentationData*/RefPtr<PresentationData> r=webgpu-reviewers,nical https://hg.mozilla.org/integration/autoland/rev/b1f772cac771 chore(webgpu): remove `PresentationData::mBuffersLock` r=webgpu-reviewers,jimb https://hg.mozilla.org/integration/autoland/rev/511dfc6ab20f typo: s/aquires/acquires/ in `Mutex.h` r=webgpu-reviewers,nical

(In reply to Erich Gubler [:ErichDonGubler] from comment #13)

Mayank, can you confirm that this issue is fixed? I have some lagging patches I'd like to land before closing, but the actual OP issue should be fixed by now.

I no longer get crashes. Thanks!

Flags: needinfo?(mayankleoboy1)
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 125 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: