element-hq / element-hq/element-web

timeline scroll issues again

Open
#26,760 2 comments 1 reaction 0 assignees View on GitHub
A-Timeline-Jumpy-Scroll 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. go into #foundation-office:matrix.org
2. jump to around https://matrix.to/#/!dSMpkVKGgQHlgBDSpo:matrix.org/$a34e4zp5TIkHnjIK7-XTIEbxYGR2QRhAWPcsh5ta3mg?via=matrix.org&via=element.io&via=envs.net
3. try to scroll down
4. refuses to scroll down and jumps back up

=====================================

1. try to scroll up much past https://matrix.to/#/!dSMpkVKGgQHlgBDSpo:matrix.org/$SQDCDjnsnOEWQjT5-mGEgwqQi55pqnZLrjQuumoNlew?via=matrix.org&via=element.io&via=envs.net
2. element hangs and crashes
![image](https://github.com/element-hq/element-web/assets/94018608/9083c2c2-7d3b-418b-84ef-2132aaa8af24)

### Outcome

#### What did you expect?

to be able to scroll the room timeline

#### What happened instead?

element either bugs out or hangs and crashes, appears to be some sort of ram leak

see a lot of spam of
```
FetchHttpApi: <-- GET https://matrix.envs.net/_matrix/client/v3/sync?filter=xxx&timeout=xxx&set_presence=xxx&since=xxx [517ms 200] rageshake.ts:74:16
```
and some
```
=$8q-fYysMuJ2gDBRiMx08ULIIlkdGS9BfCkgijCHU9SY that does not belong in timeline=!dSMpkVKGgQHlgBDSpo:matrix.org:2023-12-14T00:11:52.611Z timelineSet(threadId=undefined) rageshake.ts:74:16
Already have timeline for $qIctvOIk-sQQb20P-edKKW7g_o8OEULZECAmqm2Pue4 - joining timeline !dSMpkVKGgQHlgBDSpo:matrix.org:2023-12-14T00:11:52.611Z to !dSMpkVKGgQHlgBDSpo:matrix.org:2023-12-14T00:10:43.319Z rageshake.ts:74:16
```
![image](https://github.com/element-hq/element-web/assets/94018608/f607940c-85bd-435d-8acc-872ef49b103e)

in browser console

I'll try to send a /rageshake of the bug i get scrolling down into the affected area of the timeline, however i cannot send one of the hang and crash because it hangs the entire firefox tab and even operating the firefox console is impossible

screen recording: https://youtu.be/Kh36kpZC8wA

### Operating system

Fedora Linux 38 (KDE Plasma) x86_64

### Browser information

Mozilla Firefox version 120.0.1 (64 bit)

### URL for webapp

app.element.io

### Application version

Element version: 1.11.51 Crypto version: Olm 3.2.15

### Homeserver

envs.net

### Will you send logs?

Yes
```[tasklist]
### Tasks
```

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.