element-hq / element-hq/element-web

Freeze/crash to WSOD only when loading 1 specific chat

Open
#32,161 1 comment 0 reactions 0 assignees View on GitHub
A-Electron A-Room-View A-Voice-Messages O-Uncommon S-Major T-Defect
Dominant language
TypeScript
Stars
13.5k
Forks
2.8k
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

**Repro 100%, in general:**
1. Select the conversation with someone I sent 11 VMs to.
2. The application initially remains fine, and the conversation itself loads, but then, after a few seconds, the entire application only displays as a White Screen of Death (only window bar at top not affected).
3. (!!) Can prevent issue from occurring, 100%, by NOT keeping the conversation in question selected, for too long,
4. When I do keep the conversation highlighted too long, about 5-10 seconds, I can 100% repro the WSOD.

![image](https://github.com/vector-im/element-web/assets/91429759/3f5111cc-9dfd-4283-8d90-a56c241318c0)

**Initial analysis:**
- No idea where logs are, if any. Let me know how to find/send, if you need/want.
- Console output:
_Switching to room id !VAoLLnYopWIORPwRtU:matrix.org at event undefined
rageshake.ts:74 RVS update: !VAoLLnYopWIORPwRtU:matrix.org undefined loading? false joining? false initial? true shouldPeek? true
rageshake.ts:74 Returning cached capabilities
rageshake.ts:74 returning explicit theme: dark
rageshake.ts:74 newscreen room/!VAoLLnYopWIORPwRtU:matrix.org
rageshake.ts:74 [!VAoLLnYopWIORPwRtU:matrix.org] Current version: 10
rageshake.ts:74 [!VAoLLnYopWIORPwRtU:matrix.org] Version capability: {default: '10', available: {…}, org.matrix.msc3244.room_capabilities: {…}}
rageshake.ts:74 checkForPreJoinUISI: did not find pre-join UISI
rageshake.ts:74 checkForPreJoinUISI: did not find pre-join UISI_
- When white screen occurs, 'DevTools disconnected'. Network error, actually (point to some other cause than the frontend which I suspected)??
- Also grabbed HAR file, but not sending any of that (for now) due to potential privacy concerns. Please let me know what you need, or ideally what I can look for, within the file, myself.

**(!!) Emerged since (due to??) latest desktop update (8 June 2023, for me anyway, now on Element version: 1.11.33 Olm version: 3.2.14),
No issue with this on previous version (VMs were created on Desktop too, before the aforementioend upgrade).**

Tested once more: white-out after about 5 seconds, seemingly JUST after it finishes loading all of the VMs.

Two issues that may, qiute possibly among others, be related (for example):: vector-im/element-web#22477 & vector-im/element-desktop#672, _though these are certainly not the same (exact cause)_.

### Outcome

#### Expected: Conversation loads and does not crash the application

#### Actual: Application crash to White Screen of Death

### Operating system

Windows 10

### Application version

1.11.33

### How did you install the app?

In-app update

### Homeserver

matrix.org

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