element-hq / element-hq/element-web

Screen freezes when browsing over the chats. Tab memory reaches 5GB

Open
#27,434 1 comment 0 reactions 0 assignees View on GitHub
A-Performance O-Uncommon S-Critical T-Defect
Dominant language
TypeScript
Stars
13.5k
Forks
2.8k
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

1. A user logs into [app.element.io](https://app.element.io/) using a self hosted synapse server. Currently the user is in 490 chats but he has a long history of joining and leaving thousands of chats. The message history varies from chat to chat. It can be from some days to several months.
2. After clicking around 30 ~ 40 chats from the Element chat list, without scrolling in the chat history, the Element tab freezes and no longer responds to clicks.
3. When checking the tab memory usage we see more than 4GB.
4. When checking the browser console we see that the script not always stops in the same line.
5. Sometimes the debugger pauses the script but other times the screen just freezes and no action from the debugger is detected.
6. About 1 ~ 2 minutes later the screen goes white and displays an error code `SIGILL`
7. It's a repetitive behavior that happens every time the user logs in. We can provide a test user if you want to reproduce the issue in this particular environment.

![freezed_screen](https://github.com/element-hq/element-web/assets/9664330/fd84b2de-161c-4798-9113-a48e2f688299)

![memory_error](https://github.com/element-hq/element-web/assets/9664330/bc76e80d-aa78-49bd-9576-e90cd09d1c16)

### Outcome

#### What did you expect?
The expected behavior is that the user can navigate through the chats no matter how many chats he has, without getting a freezed or error screen.

#### What happened instead?
The screen freezes and no longer responds to clicks, and then it goes white with error code `SIGILL`

### Operating system

Ubuntu 22.04.4 LTS

### Browser information

Google Chrome Version 124.0.6367.118 (Official Build) (64-bit)

### URL for webapp

https://app.element.io/

### Application version

Versión de Element: 1.11.65 Crypto version: Rust SDK 0.7.0 (61b175b), Vodozemac 0.5.1

### Homeserver

Self hosted docker image matrixdotorg/synapse:v1.81.0

### Will you send logs?

No

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.