App is crashing daily due to memory usage #25423
Labels
A-Memory
Memory leaks, leak hunting tools
A-Performance
O-Uncommon
Most users are unlikely to come across this or unexpected workflow
S-Major
Severely degrades major functionality or product features, with no satisfactory workaround
T-Defect
Steps to reproduce
I am making assumptions about the cause here, but here is the pattern for me:
Outcome
What did you expect?
Not crashing.
What happened instead?
Blank screen after 6-8 hours of using the app. Sometimes as few as 2-4 hours. Appears to be related to how many rooms I click through to read messages in. Most of those rooms (90%) are encrypted with plenty of devices, however I only speak in about a dozen of them.
I'm in 3678 rooms (3399 visible) as of writing.
Unfortunately, getting a memory profile is difficult because the act of doing so often pushes the VM over the limit and crashes due to OOM. By the time I can get a profile after startup, the process is dangerously close to crashing while it tries to interpret the profile it just took.
The memory behaviour is a relatively steep cliff at startup: the OS reports Element using 2.6gb with only 60 seconds of uptime, but it still takes several hours for it to finally fill the gap to the point where it can crash due to memory pressure. Meanwhile, it takes 15-20 minutes for my CPU fan to stop spinning after startup, which I believe is the "decrypt all the rooms" loop running.
Operating system
Windows 11
Application version
Element Nightly version: 0.0.1-nightly.2023052201 Olm version: 3.2.14
How did you install the app?
The Internet
Homeserver
t2l.io
Will you send logs?
Yes
The text was updated successfully, but these errors were encountered: