Closed Bug 1774972 Opened 2 years ago Closed 2 years ago

On https://lab.hakim.se/linjer/#diagonal, zooming-out to 30% quickly increases the memory to 4GB+ and Firefox may crash

Categories

(Core :: Graphics: Canvas2D, defect)

Unspecified
Windows
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: mayankleoboy1, Unassigned)

References

(Blocks 1 open bug, )

Details

Attachments

(1 file)

enable gpu-canvas
Go to https://lab.hakim.se/linjer/#diagonal
Using the zoom button in the hanmurger menu, quickly zoom-out to 30%

AR: Memory quickly reaches 4GB+, and Firefox may crash.

Blocks: gpu-canvas

Normal Canvas : https://share.firefox.dev/3O3QBEh
Accelerated Canvas : https://share.firefox.dev/3mZX0EN

FWIW, the profile with gpu-canvas appears to be busier in the content-process compared to the unaccelerated-canvas profile

Or you can just go to https://lab.hakim.se/ticktock/ and click on the page a few times

Attached file about:Support (deleted) —

These pages are quite weird.. Sometimes they will OOM just by opening them in a tab. Other times, I need to zoom-out by 30% before they start to OOM.
This random behavior persists across new profiles and browser restarts
Edit: A nightly from January (with gpu-canvas enabled manually) also reproduces this behavior. This is strange because I am pretty sure i have tested this demo earlier and the bug didn't repro.

OS: Unspecified → Windows
Severity: -- → S3

Fixed by bug 1793769

Bug 1793769 - Avoid recreating the main DrawTargetWebgl SharedContext. r=aosmond

For canvas users that rapidly create and destroy canvases, we may end up creating
a new SharedContext (and hence ClientWebGLContext) if there are no more canvases
left between destruction and creation. To work around this, just keep alive the
SharedContext for the main thread (other threads are unfortunately a bit tricky
to support) so that canvas creation remains fast in this instance.

Differential Revision: https://phabricator.services.mozilla.com/D158904

2022-10-24T15:48:00.312000: DEBUG : Did not find a branch, checking all integration branches
2022-10-24T15:48:00.320000: INFO : The bisection is done.
2022-10-24T15:48:00.322000: INFO : Stopped

Status: NEW → RESOLVED
Closed: 2 years ago
Depends on: 1793769
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: