element-hq / element-hq/element-web

Element struggled to zoom into a large PNG attachment, and ultimately crashed

Open
#32,207 4 comments 0 reactions 0 assignees View on GitHub
A-Electron A-Media T-Defect
Dominant language
TypeScript
Stars
13.5k
Forks
2.8k
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

1. Open a particularly large PNG attachment.
2. See a low-resolution preview. Try to zoom in to 1:1 scale.
3. Element stutters, then crashes.

In this case, large means:

- `PNG image data, 32768 x 15694, 8-bit/color RGBA, non-interlaced`, 4.2 MB

### Outcome

#### What did you expect?

Zoom into 1:1 scale without stuttering.

#### What happened instead?

Stuttered and crashed.

### Operating system

Fedora 36

### Application version

Element version: 1.10.15 Olm version: 3.2.8

### How did you install the app?

Flatpak, https://flathub.org/apps/details/im.riot.Riot . I know this isn't supported but am reporting for completeness.

### Homeserver

matrix.org

### 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.