[Bug]: Memory leak in Firefox
Describe the bug
I’m affected by a severe memory leak in Firefox.
- MetaMask (13.11.2)
- Firefox (latest stable 146.0)
- Linux Mint 21.3
- Only a few tabs open(max 5 tabs)
- Browser uptime < 10h
The Firefox Extensions process grows up to ~5 GB RAM with high CPU usage, and memory never gets released. It looks like MetaMask keeps allocating memory in Firefox and does not release it, even when no dApps are open.
Expected behavior
No response
Screenshots/Recordings
I’ve attached screenshots from:
- Firefox Task Manager (about:processes)
- Firefox memory report (about:memory)
Steps to reproduce
- Use the browser normally (no special actions required).
- No dApps need to be open.
- Only a few regular tabs are open.
- Leave Firefox running for several hours (less than 24h is enough).
- Open about:processes and about:memory.
Error messages or log output
Where was this bug found?
Live version (from official store)
Version
13.11.2
Build type
None
Browser
Firefox
Operating system
Linux
Hardware wallet
No response
Additional context
No response
Severity
No response
I can confirm this on Zen browser which is based on firefox. Metamask eats around 5-6 GB of ram after a few minutes and then seems to stay there. Browser becomes unresponsive and after a while the extension cannot be opened anymore and new pages cannot be loaded. If i manually kill the extension helper process the browser resumes functionality as normal. This has been happening for a couple of weeks but it might have started before
Thank you for bringing this to our attention. The team will look into it.
I can report the exact same behavior - newest Firefox build on MacOS Sequoia (ARM).
I have to kill the extensions process in Firefox hourly due to this. It seems to creep up particularly bad when I'm doing dev on a large React project using WAGMI for RPC calls.
6GB on the spot every single time I have to kill it.
First sign of it eating RAM is the authentication mechanism (using SIWE) stops working and the React site crawls to a halt.
As soon as I kill the extensions process everything goes back to normal.
This makes zen and I think every FIrefox based browser unusable after 10-20 minutes, even if the extension has not been opened. I would move this up a sev
This issue affects me as well. Hope a fix could be proposed and merged soon.
Thank you for the detailed report! A fix is in progress here: https://github.com/MetaMask/snaps/pull/3796