Memory leak in browser when opening a large mailbox that has not been opened before
Open
Nobody has claimed this yet.
1. to develop
bug
- Dominant language
- JavaScript
- Stars
- 1k
- Forks
- 348
- Avg merge
- 12h 28m
- Merged PRs (30d)
- 91
Description
Steps to reproduce
- Go to mail
- Navigate to a mailbox (with more than 1.5k emails) that has not been opened at all or opened a long time ago
Expected behavior
Open the mailbox. Wait for the sync and show messages. Memory could go up but should be released after a while.
Actual behavior
the tab or chrome will eventually stop responding eating away at 2.5gb or ram
Mail app version
1.13.3
Mailserver or service
Dovecot
Operating system
Debian 11
PHP engine version
PHP 8.0
Web server
Nginx
Database
MariaDB
Additional info
Using google chrome Version 102.0.5005.61 (Official Build) (64-bit)




Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue in Chrome using the listed steps with a mailbox containing more than 1.5k emails, then observe memory use during synchronization. Done means the mailbox opens and syncs while the tab remains responsive and memory is released after the operation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100