Closed Bug 1578310 Opened 5 years ago Closed 5 years ago

The configuration WebRender + CoreAnimation leaks IOSurfaces

Categories

(Core :: Graphics: WebRender, defect)

All
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla71
Tracking Status
thunderbird_esr60 --- unaffected
thunderbird_esr68 --- unaffected
firefox-esr60 --- unaffected
firefox-esr68 --- unaffected
firefox69 --- unaffected
firefox70 --- unaffected
firefox71 --- disabled

People

(Reporter: mstange, Assigned: mstange)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

Steps to reproduce:

  1. Run Firefox with WebRender enabled and open a window.
  2. Run ioclasscount | grep 'IOSurface =' in Terminal.
  3. Slowly resize your Firefox window back and forth for about 10 seconds.
  4. Run ioclasscount | grep 'IOSurface =' again and compare the numbers.

Expected results:
The count should be about equal, maybe increased by 1 or 2, definitely not more than 5.

Actual results:
The count has increased by about 600.

I've confirmed that this is a regression from bug 1578099. Which is good because that means it's not in 70, only in 71.

This bug can cause the system to run out of memory pretty quickly. This was reported in https://twitter.com/simevidas/status/1168562779780984833.

I had accidentally flipped things around so that the framebuffers were only
deleted when a registry was set.

I've found the bug but it's not clear to me why non-WebRender doesn't hit it.

Pushed by mstange@themasta.com: https://hg.mozilla.org/integration/autoland/rev/265d2b7becd4 Delete framebuffers for deleted IOSurfaces. r=mattwoodrow
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla71
Blocks: 1578376
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: