element-hq / element-hq/element-web

Element freezes or crashes when too many voice messages are in a chat

Open
#26,239 22 comments 15 reactions 0 assignees View on GitHub
A-Voice-Messages O-Occasional S-Critical T-Defect
Dominant language
TypeScript
Stars
13.5k
Forks
2.8k
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

1. Create an encrypted chat with a few voice messages. I am not sure how many it takes but I guess 30+ is a good start. Each of them should have a length of more than one minute (I use a WhatsApp bridged chat)
2. Open the chat on Element Desktop
3. The app tries to fetch all voice messages and starts to lag (no or slow UI interaction) or crashes with a white screen
4. Reopen Element (and try to open another chat as fast as possible to prevent another crash)

### Outcome

#### What did you expect?
The chat should be responsive and render only voice messages that are on-screen

#### What happened instead?
Slow chat loading and an app crash

### Operating system

macOS (13.4 Macbook Air M2)

### Application version

Element version: 1.11.34 Olm version: 3.2.14

### How did you install the app?

Element Website

### Homeserver

Synapse 1.86.0

### Will you send logs?

Yes

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.