[Bug]: Performance - High Memory usage causes MetaMask to crash
Describe the bug
I've encountered twice a browser crash while having MM full view and sidepanel opened. I also saw High Memory usage on the tab.
From AI, this seems to be what happened (though I'm not sure where the increase memory consumption is coming from, possibly because having the sidepanel opened increases memory usage from the tab?):
When a Chrome tab exceeds a specific memory limit (e.g., around 2.5GB to 4GB per tab in 64-bit systems, or when the overall system RAM is exhausted), the browser typically displays an "Aw, snap!" error message or becomes unresponsive, leading to a crash of that specific tab or the entire browser.
Expected behavior
No response
Screenshots/Recordings
https://github.com/user-attachments/assets/264ccda0-9ba3-4c9c-9e6a-358d5b038502
Steps to reproduce
Unsure on repro steps, it just seems the wallet to consume way more memory
Error messages or log output
Where was this bug found?
Internal release testing
Version
13.14.0
Build type
None
Browser
Chrome
Operating system
MacOS
Hardware wallet
No response
Additional context
No response
Severity
No response
Possibly related to #38847 for Firefox
@seaona have you encountered similar issues recently? There has been a memory leak fix mentioned above plus some other performance improvements, wondering if the situation has improved for you in this case