Skip to content

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

@dbedoya

Description

@dbedoya

Steps to reproduce

  1. A user logs into 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

memory_error

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-PerformanceO-UncommonMost users are unlikely to come across this or unexpected workflowS-CriticalPrevents work, causes data loss and/or has no workaroundT-Defect

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions