element-hq / element-hq/element-web
element-web runs into issues on multiple different device types due to excessive memory usage
- Dominant language
- TypeScript
- Stars
- 13.5k
- Forks
- 2.8k
- PR merge metrics
- PR metrics pending
Description
### Steps to reproduce
1. Use either a device with little memory (I used a 3GB RAM ARM64 device, the PinePhone Allwinner 3GB variant) or a more regular device with more memory where the browser is configured to unload tabs that go completely out of control on memory (I used a Skylake x64 laptop with 16GB RAM for this one)
2. Make sure earlyoom or some similar service is active so you won't hang your entire device
3. element-web tab keeps crashing because it uses too much memory and gets shot down by earlyoom (little memory device scenario) or keeps getting unloaded by the browser for being so excessive in use (regular device scenario)
Since telegram-desktop works perfectly fine and Discord web even on the small device crashes way more rarely even though I'm in probably 2x-5x the chat rooms on Discord to Element, this doesn't look reasonable in comparison to competitors.
### Outcome
#### What did you expect?
Works
#### What happened instead?
Constantly runs into notable issues due to runaway excessive memory use
### Operating system
postmarketOS (based on Alpine Linux) for the small device, Fedora Linux for regular device
### Browser information
Firefox ESR 91.13.0esr for little memory device, Firefox 111.0b8 with `browser.tab.unloadOnLowMemory` set to true on regular device
### URL for webapp
app.element.io
### Application version
crashes too early to reasonably check on little memory device, 1.11.24 on regular device
### Homeserver
matrix.org
### Will you send logs?
No
Contributor guide
Assessment
This issue has not been assessed yet.