Closed Bug 1933061 Opened 1 year ago Closed 1 year ago

[GPU-canvas] Rapid memory increase on a Playcanvas demo with deliberate injection of simple error

Categories

(Core :: Graphics: CanvasWebGL, defect)

defect

Tracking

()

RESOLVED WORKSFORME
Tracking Status
firefox-esr115 --- unaffected
firefox-esr128 --- wontfix
firefox132 --- wontfix
firefox133 --- wontfix
firefox134 --- wontfix
firefox135 --- wontfix
firefox136 --- wontfix

People

(Reporter: mayankleoboy1, Unassigned)

References

(Regression, )

Details

(Keywords: regression)

Attachments

(1 file)

Use default canvas on Win11 (this should be gpu-canvas as of today)
Go to https://pixijs.com/8.x/playground?exampleId=graphics.fillGradient
Let the page load/compile till the two ring-type things appear on the demo-pane
Scroll down the code area
Where it says tick += 0.025;
Change it to tick += 0.02--5;
Let the error message appear on the demo-pane

AR: The memory increases rapidly to about 17MB/second
ER: Not so

Note that the page has 2 memory leaks:

  1. The rapid 17mb/s memory leak occurring only with Firefox+gpu-canvas
  2. slower 2mb/s leak that sometimes occur with Firefox and sometimes with Chrome

Bisection for the first case:
Bug 1829026 - Handle KERN_ABORTED from semaphore_wait. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D195952

Attached file about:support —

Set release status flags based on info from the regressing bug 1829026

:lsalzman, since you are the author of the regressor, bug 1829026, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Flags: needinfo?(lsalzman)

Kelsey, it seems like this is rendering directly with WebGL via PixiJS without going through Canvas2D. Any idea where the memory usage is coming from in WebGL here?

Component: Graphics: Canvas2D → Graphics: CanvasWebGL
Flags: needinfo?(lsalzman) → needinfo?(jgilbert)
Severity: -- → S3

Set release status flags based on info from the regressing bug 1829026

Flags: needinfo?(jgilbert) → needinfo?(ahale)

(In reply to Mayank Bansal from comment #0)

Where it says tick += 0.025;
Change it to tick += 0.02--5;
Let the error message appear on the demo-pane

I don't see any code that looks like that in there, the closest similar code is container.rotation -= 0.01 * time.deltaTime;, perhaps this example changed since the bug was opened?

I tried adding --5 to that line but it didn't affect memory usage (either CPU or GPU side).

Flags: needinfo?(ahale) → needinfo?(mayankleoboy1)

i cant repro too.

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

Attachment

General

Creator:
Created:
Updated:
Size: