metamask-extension icon indicating copy to clipboard operation
metamask-extension copied to clipboard

[Bug]: Memory leak in Firefox

Open madest92 opened this issue 11 months ago • 6 comments

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)
Image Image Image

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

madest92 avatar Dec 15 '25 00:12 madest92

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

giacomocatelan avatar Dec 16 '25 11:12 giacomocatelan

Thank you for bringing this to our attention. The team will look into it.

Lansky825 avatar Dec 17 '25 09:12 Lansky825

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.

HayesData avatar Dec 18 '25 05:12 HayesData

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

giacomocatelan avatar Dec 24 '25 20:12 giacomocatelan

This issue affects me as well. Hope a fix could be proposed and merged soon.

t4rf9 avatar Jan 02 '26 17:01 t4rf9

Thank you for the detailed report! A fix is in progress here: https://github.com/MetaMask/snaps/pull/3796

FrederikBolding avatar Jan 09 '26 14:01 FrederikBolding