GPU memory leak with canvas and WebRender
Categories
(Core :: Graphics: WebRender, defect, P2)
Tracking
()
People
(Reporter: loic.yhuel, Unassigned)
References
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0
Steps to reproduce:
With WebRender enabled, load any page with a canvas rendering frames, for example :
- http://www.blobsallad.se/ (slow leak)
- https://blog.ja-ke.tech/2019/02/24/openwrt-collectd-influx.html (huge leak)
I'm using Nightly with an NVIDIA GTX 970, 430.86 driver, Windows 10 1903.
Actual results:
The system Commit charge and Physical memory (until Windows memory compression is triggered) increase continuously.
The dedicated GPU memory on the GPU process seems to follow the same increase (but it periodically decreases as the dedicated memory is limited), and its handle count increases.
Switching to another tab pauses the leak.
Closing the tab doesn't free the memory, but killing the GPU process does.
Comment 1•6 years ago
|
||
Loïc, can you check if the problem is addressed on latest nightly?
| Reporter | ||
Comment 2•6 years ago
|
||
The leak seems fixed.
But both pages are broken : the canvas is only updated on screen if there is something else which changes on the page, if something is redrawn in the Firefox interface, or when scrolling.
I still see CPU and GPU usage, and the performance tab in the inspector still shows requestAnimationFrame or setTimeout events, so I assume the canvas is drawn but it doesn't trigger the composition.
Comment 3•6 years ago
|
||
(In reply to Loïc Yhuel from comment #2)
But both pages are broken : the canvas is only updated on screen if there is something else which changes on the page, if something is redrawn in the Firefox interface, or when scrolling.
Thanks for the confirmation!
Hmm, I could not reproduce it on my laptop. I wonder if Bug 1559284 might be related.
Comment 4•6 years ago
|
||
(In reply to Sotaro Ikeda [:sotaro] from comment #3)
(In reply to Loïc Yhuel from comment #2)
But both pages are broken : the canvas is only updated on screen if there is something else which changes on the page, if something is redrawn in the Firefox interface, or when scrolling.
I succeeded to reproduce it with local build. When I locally backed out Bug 1558106, the problem was addressed. Then it seems dup of Bug 1559284.
Comment 5•6 years ago
|
||
GPU memory leak with canvas and WebRender
(In reply to Loïc Yhuel from comment #2)
The leak seems fixed.
Description
•