element-hq / element-hq/element-web

Hang due to mutually referencing timeline loop

Open
#26,886 1 comment 0 reactions 0 assignees View on GitHub
A-Timeline O-Occasional S-Major T-Defect
Dominant language
TypeScript
Stars
13.5k
Forks
2.8k
PR merge metrics
PR metrics pending

Description

### Steps to reproduce

1. Open https://matrix.to/#/!QQpfJfZvqxbCfeDgCj:matrix.org/$QWpyPcVtOL6rNdO16dE5E1wZiVPoj5quHfRkMaGMqug?via=matrix.org&via=envs.net&via=beeper.com (TWIM room)
2. Possibly scroll down?
3. Client will hang.

### Outcome

Somehow we have ended up with two timelines that reference each other (each is the other's nextTimeline) so https://github.com/matrix-org/matrix-js-sdk/blob/develop/src/models/event-timeline-set.ts#L967 is looping forever.

### Operating system

_No response_

### Application version

_No response_

### How did you install the app?

_No response_

### Homeserver

_No response_

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