Very high memory usage of GPU Process after watching many HTML5 movies on Firefox, even after closing them all
Categories
(Core :: Graphics, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr52 | --- | unaffected |
firefox-esr60 | --- | wontfix |
firefox-esr68 | --- | wontfix |
firefox-esr78 | --- | wontfix |
firefox54 | --- | unaffected |
firefox55 | --- | unaffected |
firefox56 | --- | wontfix |
firefox57 | --- | wontfix |
firefox58 | --- | wontfix |
firefox59 | --- | wontfix |
firefox60 | --- | wontfix |
firefox61 | --- | wontfix |
firefox62 | --- | wontfix |
firefox63 | --- | wontfix |
firefox64 | --- | wontfix |
firefox65 | --- | wontfix |
firefox66 | --- | wontfix |
firefox67 | --- | wontfix |
firefox67.0.1 | --- | wontfix |
firefox68 | --- | wontfix |
firefox69 | --- | wontfix |
firefox70 | --- | wontfix |
firefox71 | --- | wontfix |
firefox72 | --- | wontfix |
firefox73 | --- | wontfix |
firefox74 | --- | wontfix |
firefox75 | --- | wontfix |
firefox76 | --- | wontfix |
firefox77 | --- | wontfix |
firefox78 | --- | wontfix |
firefox79 | --- | wontfix |
firefox80 | --- | wontfix |
firefox81 | --- | wontfix |
firefox82 | --- | wontfix |
firefox83 | --- | wontfix |
firefox84 | --- | wontfix |
People
(Reporter: Virtual, Unassigned)
References
(Blocks 1 open bug)
Details
(5 keywords, Whiteboard: [MemShrink:P2] [media-memory])
User Story
Regression range Good: https://ftp.mozilla.org/pub/firefox/nightly/2017/07/2017-07-21-03-02-04-mozilla-central/ Bad: https://ftp.mozilla.org/pub/firefox/nightly/2017/07/2017-07-22-07-26-31-mozilla-central/ Regression range pushlog: https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=0faada5c2f308f101ab7c54a87b3dce80b97d0e3&tochange=7ce557b85b611536b69539a7c18d4834ffc92eea Could be caused by one of these bugs: Bug 1366694 - Enable Windows level 3 content process sandbox by default on Nightly. Bug 1377280 - Enable keyboard APZ on nightly Bug 1351148 - Add an event queue to nsThread for input events and annotate input IPC messages to use it ============================================================================================== STR 1. Create clean new fresh Firefox profile without any addons (extensions, plugins, themes, etc.) 2. Install uBlock Orgin 3. In uBlock Orgin Dashboard, in 3rd-party filters tab, enable all filters in category: - uBlock - Ads filters (exept EayList without element hiding rules) - Privacy - Malware domains - Social - Multipuropse - in Regions, languages category enable only: -- EU: Prebake - Filter Obtrusive Cookie Notices -- POL: polskie filtry do Adblocka i uBlocka -- POL: polskie filtry do uBlocka uzupelnienie 4. Apply changes, Purge all caches and Update now 5. Restart Firefox 6. Open about:memory and create memory report 7. Open YouTube Trending ( https://www.youtube.com/feed/trending ) 8. Open about 20-30 tabs in background (could be more depending on your avaiable memory, just do notexeed 90% of your memory, to prevent Firefox duping memory cache to disc cache, which slow down everything later) 9. Open about:memory and close all other tabs 10. Create memory report 11. Wait about 1min 12. Create memory report again 23% of all 4GB RAM used with Firefox on start - first memory report ~90% of all 4GB RAM used with Firefox on browsing session ~80% of all 4GB RAM used with Firefox on end browsing session - second & third memory report 44% of all 4GB RAM used with Firefox on end browsing session with waiting 1 min - fourth memory report If I will browse for more then 30min, this 44% of all memory used with Firefox on end browsing session will be more and more, this doesn't happen with older Firefox versions, where all useless memory is dumped into oblivion, not bloating browser and whole memory.
Attachments
(2 files, 15 obsolete files)
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Updated•7 years ago
|
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Comment 5•7 years ago
|
||
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Comment 6•7 years ago
|
||
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Updated•7 years ago
|
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Updated•7 years ago
|
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Comment 7•7 years ago
|
||
Comment 10•7 years ago
|
||
Comment 11•7 years ago
|
||
Comment 12•7 years ago
|
||
Comment 13•7 years ago
|
||
Comment 14•7 years ago
|
||
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Comment 15•7 years ago
|
||
Comment 16•7 years ago
|
||
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Comment 17•7 years ago
|
||
Comment 18•7 years ago
|
||
Comment 19•7 years ago
|
||
Comment 20•7 years ago
|
||
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Comment 21•7 years ago
|
||
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Updated•7 years ago
|
Comment 22•7 years ago
|
||
Comment 23•7 years ago
|
||
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Comment 24•7 years ago
|
||
Comment 25•7 years ago
|
||
Comment 26•7 years ago
|
||
Comment 27•7 years ago
|
||
Comment 28•7 years ago
|
||
Comment 29•7 years ago
|
||
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Comment 30•7 years ago
|
||
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Updated•7 years ago
|
Comment 31•7 years ago
|
||
Comment 32•7 years ago
|
||
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Comment 33•7 years ago
|
||
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Updated•7 years ago
|
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Updated•7 years ago
|
Comment 34•7 years ago
|
||
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Comment 36•7 years ago
|
||
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Updated•7 years ago
|
Comment 37•7 years ago
|
||
Comment 38•7 years ago
|
||
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Updated•7 years ago
|
Comment 39•7 years ago
|
||
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Comment 40•7 years ago
|
||
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Updated•7 years ago
|
Comment 41•7 years ago
|
||
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Comment 42•7 years ago
|
||
Comment 43•7 years ago
|
||
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Comment 44•7 years ago
|
||
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Comment 48•7 years ago
|
||
Comment 49•7 years ago
|
||
Comment 50•7 years ago
|
||
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Comment 51•7 years ago
|
||
Updated•7 years ago
|
Comment 52•7 years ago
|
||
Comment 53•7 years ago
|
||
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Comment 54•7 years ago
|
||
Comment 55•7 years ago
|
||
Updated•7 years ago
|
Updated•7 years ago
|
Comment 57•7 years ago
|
||
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Updated•7 years ago
|
Comment 58•7 years ago
|
||
Updated•7 years ago
|
Comment 59•7 years ago
|
||
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Updated•7 years ago
|
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Comment 60•7 years ago
|
||
Comment 61•7 years ago
|
||
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Updated•7 years ago
|
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Updated•7 years ago
|
Updated•7 years ago
|
Comment 62•7 years ago
|
||
Comment 63•7 years ago
|
||
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Updated•7 years ago
|
Comment 64•7 years ago
|
||
Comment 65•7 years ago
|
||
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Updated•7 years ago
|
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Updated•7 years ago
|
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Updated•7 years ago
|
Updated•6 years ago
|
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Updated•6 years ago
|
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Updated•6 years ago
|
Updated•6 years ago
|
Comment 66•6 years ago
|
||
Comment 68•6 years ago
|
||
Bulk change for all regression bugs with status-firefox67 as 'fix-optional' to be marked 'affected' for status-firefox68.
Comment 69•6 years ago
|
||
Closing as incomplete - it's rather unclear if this is still happening, if it was a fubar by Netflix since fixed, or if other changes have mooted the bug. If anyone see this sort of thing, please file a new bug and See Also this bug. Thanks!
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Comment 70•6 years ago
|
||
I'm reopening this bug, as it's still reproducible for me even in latest Mozilla Firefox Nightly 68.0a1 (2019-05-08).
Comment 71•6 years ago
|
||
I have this bug too but cannot produce any reliable profile with Gecko Profiler.
As a workaround, I had to toggle "media.hardware-video-decoding.enabled" pref to false.
My specs are : i5-8400, nvidia GTX 1060 on Windows 10 1903.
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Updated•6 years ago
|
Comment 72•6 years ago
|
||
I can confirm this bug.
Play a lot of HTML5 videos, then close all tabs, look in the task manager, use of VRAM/RAM will be extremely high, although all tabs are closed.
This will not be cleared until the browser is closed.
Specs:
Firefox v.: 66.0.5 - x64, Nightly 68.0a1 - x64
├─ Flash player is not installed.
├─ No addons installed.
├─ All settings is DEFAULT. (clean browser)
└─ Hardware Acceleration: enabled
OS: Windows 10, v. 1903, build 18362.113 - x64, v1809
Nvidia Driver v.: 430.64
GPU: GTX 680 - 2 GB
If you disable hardware acceleration, everything is good.
I assume that the problem is in firefox and possibly in the driver nvidia.
Microsoft Edge 44.18362.1.0 - doesn't have that problem.
Microsoft Edge (Chromium) 76.0.159.0 - doesn't have that problem.
:Ъ
Comment 73•6 years ago
|
||
Found a workaround without disabling hardware acceleration, but you have to disable Electrolysis - (Multiprocess)
- Open new tab with url: about:config and press enter
- Find browser.tabs.remote.autostart and toggle to FALSE
During the time of more than one hour of active viewing of YouTube, Vimeo and Twitch, as well as surfing, the load of VRAM has not increased by more than 0.6 GB, and the RAM is ~ 1.3 GB.
After closing all tabs (except one blank), wihtout closing Firefox, VRAM: 0.4 GB, RAM: 0.6 GB, then about:memory and Minimize memory usage, RAM: ~0.5 GB.
Comment 74•6 years ago
|
||
(In reply to nyz from comment #73)
Found a workaround without disabling hardware acceleration, but you have to disable Electrolysis - (Multiprocess)
Since disabling multiprocess is too generalistic, can you test with my solution posted above ? (it doesn't need to disable multiprocess)
I think the problem is in the way that Firefox communicate with the graphics card driver when decoding videos since the problem don't happen in other browsers (Edge, Chrome) but only on Gecko-based browsers (Firefox, Palemoon, Basilisk, etc... )
Comment 75•5 years ago
|
||
Coming back with good news,
It seems that .145 Cumulative update for Windows 10 1903 (available in Insider Slow Ring and Release Preview for now) has fixed my memory leak when viewing video with "media.hardware-video-decoding.enabled" in its default state.
Need more tests to confirm this...
Comment 76•5 years ago
|
||
1for-matik: it seems that .145 Cumulative update for Windows 10 1903
I can confirm .145 fixes this issue.
Update KB4497935 For Windows 10 (1903) (build 18362.145)
Download KB4497935 - x64 (64 bit OS)
Download KB4497935 - x86 (32 bit OS)
Download KB4497935 - ARM64
How to install .cab?
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Comment 77•5 years ago
|
||
It's fixed probably only for Windows 10, not for Windows 7 and Windows 8.1.
Updated•5 years ago
|
Comment 78•5 years ago
|
||
Windows 7 x64, FF 70.0.1 x64, ATI Radeon 4770.
Just had a nervous breakdown because of another lagging session…
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Updated•5 years ago
|
Comment 79•5 years ago
|
||
(In reply to Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.) from comment #44)
- Create clean new fresh Firefox profile without any addons (extensions,
plugins, themes, etc.)- Install uBlock Orgin
- In uBlock Orgin Dashboard, in 3rd-party filters tab, enable all filters
in category:
- uBlock
- Ads filters (exept EayList without element hiding rules)
- Privacy
- Malware domains
- Social
- Multipuropse
- in Regions, languages category enable only:
-- EU: Prebake - Filter Obtrusive Cookie Notices
-- POL: polskie filtry do Adblocka i uBlocka
-- POL: polskie filtry do uBlocka uzupelnienie
- Apply changes, Purge all caches and Update now
- Restart Firefox
- Open about:memory and create memory report
- Open YouTube Trending ( https://www.youtube.com/feed/trending )
- Open about 20-30 tabs in background (could be more depending on your
avaiable memory, just do notexeed 90% of your memory, to prevent Firefox
duping memory cache to disc cache, which slow down everything later)- Open about:memory and close all other tabs
- Create memory report
- Wait about 1min
- Create memory report again
23% of all 4GB RAM used with Firefox on start - first memory report
~90% of all 4GB RAM used with Firefox on browsing session
~80% of all 4GB RAM used with Firefox on end browsing session - second &
third memory report
44% of all 4GB RAM used with Firefox on end browsing session with waiting 1
min - fourth memory reportIf I will browse for more then 30min, this 44% of all memory used with
Firefox on end browsing session will be more and more, this doesn't happen
with older Firefox versions, where all useless memory is dumped into
oblivion, not bloating browser and whole memory.
I do not know how to confirm these results. How exactly do you verify them?
Furthermore, this bug appears to have a regression range provided already. The "regressionwindow-wanted" tag should be removed. Is the regression range provided incorrect?
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Comment 80•5 years ago
•
|
||
(In reply to Bodea Daniel [:danibodea] from comment #79)
I do not know how to confirm these results. How exactly do you verify them?
You can compare results before and after long session browsing in Task Manager and see how many % of memory Mozilla Firefox is using. Substitute for this could be using external software named Process Explorer. Showing and saving memory reports in about:memory for Mozilla Firefox developers for deep analyzing is next step.
(In reply to Bodea Daniel [:danibodea] from comment #79)
Furthermore, this bug appears to have a regression range provided already. The "regressionwindow-wanted" tag should be removed. Is the regression range provided incorrect?
Yes, regression range is provided, but it's kinda vast and broad. It's still not known which patch from which bug caused this bug from that regression range. That's why "regressionwindow-wanted" tag isn't removed.
Comment 81•5 years ago
|
||
Unfortunately, mozregression does not provide any builds in the regression windows provided (Unable to find enough data to bisect.), so I cannot use mozregression to find the exact push that introduced the memory issue.
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Updated•5 years ago
|
Updated•5 years ago
|
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Updated•5 years ago
|
Comment 82•5 years ago
|
||
I'm still having this issue with Firefox 75 in Linux: heap-unclassified can take several GBs after a few days, even after freeing gc & cc.
Disabling hardware acceleration is the only way I found to workaround this (aside of disabling ublock origin).
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Updated•5 years ago
|
Comment 83•5 years ago
|
||
This might be related considering i have a shit ton of tabs and many are from youtube: https://bugzilla.mozilla.org/show_bug.cgi?id=1628425
Comment 84•5 years ago
|
||
Wrong link i meant this: https://bugzilla.mozilla.org/show_bug.cgi?id=1629649
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Comment 85•4 years ago
|
||
Memory report after very long movies session. With 2 tabs (about:memory+Bugzilla) in 1 window. Others windows and tabs were closed and All 3 Free memory options (GC+CC+Minimize memory usage) were used.
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Comment 86•4 years ago
|
||
Memory report after very long movies session. With 1 tab (about:memory) in 1 window. Others windows and tabs were closed and All 3 Free memory options (GC+CC+Minimize memory usage) were used.
After Bugzilla tab was closed and having only about:memory tab opened, memory usage goes to sane level.
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Comment 90•4 years ago
|
||
Requesting memory report analysis.
Thank you very much in advance!
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Updated•4 years ago
|
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Updated•4 years ago
|
Comment 91•4 years ago
|
||
I'm honestly pretty rubbish at reading memory reports. Hopefully erahm or mccr8 can derive meaning from them. Clearing needinfo.
Comment 92•4 years ago
|
||
I see this in the GPU process:
2,178.05 MB ── resident
2,150.48 MB ── resident-unique
There's nothing else in there that looks particularly high. Maybe this is something like the graphics drivers using this process to store textures or something. I don't know much about how GPU memory works.
Comment 93•4 years ago
|
||
S1 or S2 bugs need an assignee - could you find someone for this bug?
Moving this based on comment 92 to see if gfx expertise can help debug. Jessie, do you know anyone who would be suitable to investigate?
Comment 95•4 years ago
|
||
Seems like this bug has been bounced around for quite a bit.
Virtual_ManPL, since you seem to be consistently able to reproduce, I'd be curious to know if using WebRender changes anything or not. I didn't notice any mention of trying it above (but there is a long thread here, apologies if I have missed anything). It would just be interesting to know if that makes a difference.
Updated•4 years ago
|
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Comment 96•4 years ago
|
||
FYI - I was busy last week and I will report back on end of this week in weekend.
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Comment 97•4 years ago
|
||
I tested WebRender and bug happens also with WebRender, except that WebRender is still more bugged than Direct3D 11 (Advanced Layers) Compositing.
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Updated•4 years ago
|
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Updated•4 years ago
|
Comment 98•4 years ago
|
||
Just to confirm - you are seeing this on Win7, is that correct? There's just a long history here so I want to make sure I am not off base.
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Comment 99•4 years ago
|
||
Yes, I'm seeing this issue on Windows 7, but there are comments here and in duplicated bugs, that it's also happening on Windows 10, and unfortunately there is no any workarounds to purge memory usage to sane levels (except closing Mozilla Firefox browser, but in most cases it's not possible due to still ongoing browsing session, so it's hardly workaround, that's why I changed Severity back to S2, as it was before).
Comment 100•4 years ago
|
||
I am experiencing this problem in Arch Linux. By the way, I wanted to provide an update: disabling hardware acceleration and setting process limit to 1 didn't completely eradicate the problem, but it absolutely helps in the sense that instead of having to restart Firefox every two days I can go for almost a month without memory issues. I have memory reports displaying high heap-unclassified (+2gb iirc) for both default and customized settings if anyone is interested.
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Updated•4 years ago
|
Virtual_ManPL [:Virtual] 🇵🇱 - (please needinfo? me - so I will see your comment/reply/question/etc.)
Reporter
|
||
Updated•4 years ago
|
Comment 101•4 years ago
|
||
I'm experiencing similar problem. The GPU process is not releasing RAM to the system. The problem is more severe when i try to watch HTML5 video on Youtube and i switch 4 - 5 videos in rapid succesion. The GPU process skyrockets and even when i closte the tab where the video was played the GPU process is still using approx 1 GB of RAM. I have tried to start Firefox without extensions (i use 1. uBlock Origin) and even tried to update my GPU drivers. The last thing i have tried is to perform clean instalation of Firefox and even then the problem with GPU process not releasing memory prevails.
Also i have discovered that on a multiple GPU systems (systems Equiped with Nvidia Optimus technology) there is a problem with Firefox not switching the GPU in the event of change by user (for example some laptops are designed to switch the OS to the low power GPU), the Firefox is still using the dedicated GPU and is passin thru the image using dwm.exe (Desktop Window Manager) and causing it to consume memory. If this happend only once during switch it would be ok but the Firefox is causing the dwm.exe to consume memory with each HTML5 wideo playback or even with each switch of the tabs in the open window.
Comment 103•3 years ago
|
||
This bug has been open a long time and there's a bunch of different reporters and likely a bunch of different problems. I think the best way to make progress is for those who can reproduce this file new bugs (ideally with clear steps to reproduce). That way we can triage the individual problems and hopefully fix some of them. If you do file a new bug, please add a note here so that others can find it.
Updated•3 years ago
|
Comment 104•3 years ago
|
||
The severity field for this bug is relatively low, S4. However, the bug has 5 duplicates, 13 votes and 58 CCs.
:bhood, could you consider increasing the bug severity?
For more information, please visit auto_nag documentation.
Updated•3 years ago
|
Updated•3 years ago
|
Comment 105•2 years ago
|
||
Hello
I have this problem.
My Firefox version is 91.10.0esr.
I use Debian 11 Bullseye.
My GPU is a GeForce GTX 1060 3GB.
The Nvidia driver version is 460.91.03.
I use nvidia-smi to observe GPU memory usage.
This page alone uses 100-140MB of GPU memory. If I open a tab, memory usage does not increase.
If I open a new window, GPU memory usage increases by 65-70MB.
Should I create a new bug report?
Comment 106•2 years ago
|
||
Yes, I think it would be best to launch a new report instead of necro'ing this one. Thanks a bunch, Johan.
Comment 107•2 years ago
|
||
I got the same issue, but only noticed it yesterday for the first time. My laptop suddenly got really hot (like 90C), initially I just suspected that it was a hot day and it was not cooling well. Eventually, I noticed that my ram usage was off the charts (Like 92% of 32GB being used.) I couldn't track down an exact reason in Task Manager (Windows) as the highest using process was Firefox and it was only consuming like 5GB of ram which seemed reasonable given the amount of tabs I had open at the time (10 - 20 tabs). I did eventually suspect that Firefox was the cause though. I opened Task Manager (Firefox) and noticed that GPU was using 18GB of ram.
I wasn't really sure what the cause may be, but my searches led me to believe that Firefox isn't clearing GPU memory after closing video tabs. Today I tried to reprod the issue and basically opening a couple of YouTube tabs (like let's say I had like 10 videos open throughout the day) and then watched some and closing them throughout the day and that ends up with like 6GB of VRAM being used (yesterday when I first experienced this I got like 18GB.) This is obviously rediculous given that I have only one YouTube tab open and like 9 other tabs - I'm not a tab hoarder and close things when I don't need it. Garbage collection in about:memory also doesn't seem to make Firefox clear the GPU memory at all. The only way to fix it is close and restart firefox.
This needs to get investigated and fixed ASAP...
Comment 108•2 years ago
|
||
I am encountering the same problem as above, mostly when PC comes from hibernation, the total used memory is huge (6GB of GPU). In my case helps close and open Firefox again.
Comment 109•5 months ago
|
||
This issue is still actual.
I'm using Win10 and latest (126) version of Firefox on AMD GPU.
All watched youtube videos rise GPU memory usage and only Firefox restart releases it.
Comment 110•5 months ago
|
||
Revertron, please file a new bug report.
Comment 111•5 months ago
|
||
Even by me. 5G GPU Memory Usage after certain time is no problem. Version 126.0 . is there any better way what eats it than about:processes where I see only the summary?
Comment 112•5 months ago
|
||
(In reply to zetka from comment #111)
Even by me. 5G GPU Memory Usage after certain time is no problem. Version 126.0 . is there any better way what eats it than about:processes where I see only the summary?
Go to about:memory and click on measure.
Comment 113•5 months ago
|
||
I might have just figured it out. The issue seems to be caused by the third party modules (see 'about:third-party') injected most likely by your GPU drivers (I have a Radeon GPU, so don't know how it is for Nvidia users). I was having the same issue with memory where the GPU process would literally take 50GB thus making things slow and after some time it would cause my browser to stop responding for a second, displaying only white and then coming back with the GPU process taking normal quantities of memory though it would go back to the same big value after some time again, so I blocked one of those modules (I blocked 'amdxx64.dll' and haven't tested other ones, so see for yourself), which resulted in the GPU process not taking more than 300MB (my guess would be that this is normal). I'm not fully sure, but this might be because after loading a new video the old one doesn't free the memory from the previous one therefore causing the 'leak', (I have only tested Youtube but my guess is that it's similar on other websites) and even if you restart the tab (either by pressing F5, Ctrl + R, or by closing the tab and opening a new one) it wouldn't work as other mentioned it. I have little experience on this topic and was basing on some other bug reports and posts about similar issues, so correct me if I'm wrong.
Comment 114•5 months ago
|
||
(In reply to blogamesau from comment #113)
I blocked 'amdxx64.dll' and haven't tested other ones...
How did you do that? I want to try this too.
Comment 115•5 months ago
|
||
(In reply to Revertron from comment #114)
(In reply to blogamesau from comment #113)
I blocked 'amdxx64.dll' and haven't tested other ones...
How did you do that? I want to try this too.
Go to about:third-party and click the button next to the copy raw data (I can't check right now but I think the button should say 'Request system data' or something similar to that) then you should be able to block the module. Not sure if it work with the module that I blocked so see for yourself.
Comment 116•5 months ago
|
||
(In reply to blogamesau from comment #115)
Not sure if it work with the module that I blocked so see for yourself.
The interesting this is - when I block this DLL the GPU process doesn't leak so much VRAM, but Google Maps aren't working, there is a black frame instead of actual map.
Comment 117•5 months ago
|
||
(In reply to Revertron from comment #116)
(In reply to blogamesau from comment #115)
Not sure if it work with the module that I blocked so see for yourself.
The interesting this is - when I block this DLL the GPU process doesn't leak so much VRAM, but Google Maps aren't working, there is a black frame instead of actual map.
Well, I guess that GMaps could be using it for rendering. I will see into that later since I don't have access to my PC right now. Well, you could try disabling another module instead of this one.
Comment 118•5 months ago
|
||
FWIW, amdxx64.dll is the AMD graphics driver. If you block that, hardware acceleration will not work.
Comment 119•5 months ago
|
||
Not just hardware acceleration, it's the usermode driver. It's already a miracle firefox can work if somehow you blacklist it.
*If any* you might try to disable video layers.acceleration, layers.gpu-process or media.hardware-video-decoding? Or enable gfx.webrender.software.
Comment 120•5 months ago
|
||
(In reply to mirh from comment #119)
Not just hardware acceleration, it's the usermode driver. It's already a miracle firefox can work if somehow you blacklist it.
*If any* you might try to disable video layers.acceleration, layers.gpu-process or media.hardware-video-decoding? Or enable gfx.webrender.software.
So I tried this and none of those options worked, and yes I unblocked the module.
Comment 121•5 months ago
|
||
(In reply to mirh from comment #119)
Not just hardware acceleration, it's the usermode driver. It's already a miracle firefox can work if somehow you blacklist it.
*If any* you might try to disable video layers.acceleration, layers.gpu-process or media.hardware-video-decoding? Or enable gfx.webrender.software.
Sorry, maybe I didn't understood this very well, but it seem like just disabling hardware acceleration in the browser's settings does the job and even google maps work without a problem.
Comment 122•5 months ago
|
||
I think the last comments look like this bug : https://bugzilla.mozilla.org/show_bug.cgi?id=1897006
Comment 123•5 months ago
|
||
Firefox 126.0 (Build ID 20240509170740) mozilla-MSIX Windows 11
AMD Ryzen 7 PRO 6850U with Radeon Graphics
Firefox open for a while, browsing, watching videos when computer goes
"You're running low on disk space"
gpu process sitting at over 20GB reserved memory -> about:memory screenshot
Comment 124•4 months ago
|
||
This bug has become a dumping ground for misc. reports of excessive memory use. Per Jeff's suggestion we've been asking people to file separate bugs on specific issues. Maybe it would be best to resolve this bug out as invalid at this point so it's not a distraction?
Comment 125•4 months ago
|
||
Closing as invalid. If you're still seeing issues please file a new bug and feel free to post a note about it here.
Comment 126•4 months ago
|
||
For reporting memory leaks in an immediately-actionable way, I've created bug 1902566 with troubleshooting instructions for collecting the information and repro steps we need to resolve these issues.
Updated•4 months ago
|
Description
•