Open Bug 1895067 Opened 2 months ago Updated 16 days ago

Detaching a tab with canvas makes it completely blank for long period of time and meory rises continuously

Categories

(Core :: Graphics: Canvas2D, defect, P3)

defect

Tracking

()

Tracking Status
firefox-esr115 --- unaffected
firefox127 --- wontfix
firefox128 --- fix-optional
firefox129 --- fix-optional

People

(Reporter: mayankleoboy1, Unassigned)

References

(Regression, )

Details

(Keywords: regression)

Attachments

(2 files)

  1. Open about:addons in a tab.
  2. In another tab, Go to https://agezao.github.io/confetti-js/
  3. At the top, see the number of confetti to 8000
  4. Scroll down and click on the "Render" button
  5. Now detach this tab from the main window

AR: Once you detach the demo tab, it will stay blank for a long period of time, but the CPU/GPU continue to be used.
ER: Not so

Bisection:
This is the regression I got, but it is probably wrong.
Bug 1857618 - Ensure normal tasks get enough time to run, r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D193409

The actual regression may be due to the Canvas work done in Q4'23

Repros with both D2D-canvas and gpu-canvas

Attached file about:support
Summary: Detaching a tab with canvas makes it completely blank for long period of time → Detaching a tab with canvas makes it completely blank for long period of time (both D2d-Canvas and GPU-canvas)

I did a second bisection with gpu-canvas enabled, and this is the best regression range i got:

https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=e39cc33d235644207d14479a4f952740cca9387d&tochange=7bc9f9c659dd5c04c341cef4f898cb08574d9cdd

cc :smaug and :emilio as they have multiple bugs in this range.

bug 1857618 was a scheduling change, so that shouldn't matter here - or if it does, it hints that the issue is elsewhere.

Nothing in the range mentioned in comment 3 is really obvious. mozregression doesn't give you a better range?

Mayank, do you think you could try to capture this in a performance profile? Enable IPC profiling and whatever graphics related threads there are.

Flags: needinfo?(mayankleoboy1)

https://share.firefox.dev/3UK3pWq with IPC profiling.
(ni? you back just so that you dont miss my response.)

Flags: needinfo?(mayankleoboy1) → needinfo?(smaug)
Severity: -- → S3
Priority: -- → P3

I think I saw the issue once. It was a very short temporary issue.
I did see the following in the terminal though
Crash Annotation GraphicsCriticalError: |[C0][GFX1-]: Failed to connect WebRenderBridgeChild. isParent=false (t=37.3914) |[C1][GFX1-]: Failed to connect WebRenderBridgeChild. isParent=false (t=43.7548) |[C2][GFX1-]: Failed to connect WebRenderBridgeChild. isParent=false (t=53.7139) [GFX1-]: Failed to connect WebRenderBridgeChild. isParent=false

Tentatively moving to WebRender

Severity: S3 → --
Component: Graphics: Canvas2D → Graphics: WebRender
Flags: needinfo?(smaug)
Priority: P3 → --
Severity: -- → S3
Priority: -- → P3
Component: Graphics: WebRender → Graphics: Canvas2D
Keywords: regression
Regressed by: 1871467
Summary: Detaching a tab with canvas makes it completely blank for long period of time (both D2d-Canvas and GPU-canvas) → Detaching a tab with canvas makes it completely blank for long period of time and meory rises continuously

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

:lsalzman, since you are the author of the regressor, bug 1871467, could you take a look?

For more information, please visit BugBot documentation.

Flags: needinfo?(lsalzman)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: