Closed Bug 1657375 Opened 4 years ago Closed 3 years ago

Crash in [@ mozilla::ClientWebGLContext::CreateHostContext] with OffscreenCanvas

Categories

(Core :: Graphics: CanvasWebGL, defect, P5)

defect

Tracking

()

RESOLVED FIXED
96 Branch
Tracking Status
firefox-esr91 --- wontfix
firefox94 --- wontfix
firefox95 --- wontfix
firefox96 --- fixed

People

(Reporter: sg, Assigned: aosmond)

References

(Blocks 1 open bug)

Details

(Keywords: crash)

Crash Data

Attachments

(2 files)

This bug is for crash report bp-68c1f19f-baf1-4867-8484-389150200805.

Top 10 frames of crashing thread:

0 xul.dll mozilla::ClientWebGLContext::CreateHostContext dom/canvas/ClientWebGLContext.cpp:628
1 xul.dll mozilla::ClientWebGLContext::SetDimensions dom/canvas/ClientWebGLContext.cpp:618
2 xul.dll mozilla::dom::CanvasRenderingContextHelper::UpdateContext dom/canvas/CanvasRenderingContextHelper.cpp:240
3 xul.dll mozilla::dom::CanvasRenderingContextHelper::GetContext dom/canvas/CanvasRenderingContextHelper.cpp:192
4 xul.dll mozilla::dom::OffscreenCanvas::GetContext dom/canvas/OffscreenCanvas.cpp:111
5 xul.dll mozilla::dom::OffscreenCanvas_Binding::getContext dom/bindings/OffscreenCanvasBinding.cpp:208
6 xul.dll mozilla::dom::binding_detail::GenericMethod<mozilla::dom::binding_detail::NormalThisPolicy, mozilla::dom::binding_detail::ThrowExceptions> dom/bindings/BindingUtils.cpp:3219
7 xul.dll js::InternalCallOrConstruct js/src/vm/Interpreter.cpp:576
8 xul.dll Interpret js/src/vm/Interpreter.cpp:3298
9 xul.dll js::InternalCallOrConstruct js/src/vm/Interpreter.cpp:611

The crash reports indicate a nullptr access. At least in one crash I inspected with Visual Studio, the specific reason was: this->mCanvasElement.mRawPtr was nullptr.

The severity field is not set for this bug.
:jgilbert, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(jgilbert)
Flags: needinfo?(jgilbert)
Summary: Crash in [@ mozilla::ClientWebGLContext::CreateHostContext] → Crash in [@ mozilla::ClientWebGLContext::CreateHostContext] with OffscreenCanvas
Severity: -- → S4
Priority: -- → P5

That looks like a different issue. Can you file a new bug? I would like a repro case to debug it.

Flags: needinfo?(mozilla)

That looks like a different issue. Can you file a new bug? I would like a repro case to debug it.

I'll see if they have more information. Most of their crashes have just been random in their environment.

Flags: needinfo?(mozilla)
See Also: → 1716634

Seems like there is a bug report for a problem I'm hitting.

I'm trying to visit fiverr.com to diagnose a bug with my extension. But upon loading it will give me these exact crashes.
I first thought it was due to me already opening the dev tools before the site could be loaded. But just opening fiverr.com is enough to hit this bug after ~10 seconds of hovering over the nav buttons and scrolling trough the site. I will attach my about:support data, if it might help.

Relevant crash reports:
https://crash-stats.mozilla.org/report/index/f77a8a35-216e-46cc-93bc-82daf0210925
https://crash-stats.mozilla.org/report/index/03152cd6-a363-46fc-a67b-b7ae90210925
https://crash-stats.mozilla.org/report/index/0fd35db7-eab0-4c38-947e-ad2750210925
https://crash-stats.mozilla.org/report/index/84950fd9-5eb1-488e-afc5-534710210925
https://crash-stats.mozilla.org/report/index/3db569c6-ac75-4c9e-b009-cb2450210925
https://crash-stats.mozilla.org/report/index/d28cc091-ae70-4088-8b5e-b1b980210925

Attached file about:support data

We cannot access ClientWebGLContext::mCanvasElement or its associated
nsIPrincipal off the main thread. We use the hash value of the principal
to limit how many WebGL contexts a single domain can create. We can
compute this when the worker is initialized for OffscreenCanvas worker
instances.

Assignee: nobody → aosmond
Status: NEW → ASSIGNED
OS: Windows 10 → All
Hardware: Unspecified → All
Attachment #9246021 - Attachment description: Bug 1657375 - Pre-caculate the principal hash value for OffscreenCanvas on worker threads. → Bug 1657375 - Cache the principal hash value for OffscreenCanvas on worker threads.
Blocks: 1735937
Blocks: 1740313
Pushed by aosmond@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d9efa80409ee
Cache the principal hash value for OffscreenCanvas on worker threads. r=dom-worker-reviewers,asuth,smaug
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 96 Branch
Regressions: 1755580
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: