element-hq / element-x-ios

Next generation Matrix client for iOS built with SwiftUI on top of matrix-rust-sdk.
https://element.io/labs/element-x
GNU Affero General Public License v3.0
435 stars 106 forks source link

Room timelines can sometimes get stuck #2914

Open Kimiblock opened 5 months ago

Kimiblock commented 5 months ago

Steps to reproduce

  1. Open the app
  2. Navigate for a while
  3. Send a message and realize the timeline has been frozen

Outcome

What did you expect?

Working timeline

What happened instead?

Frozen timeline

Your phone model

iPhone 13

Operating system version

iOS 17

Application version

Version: 1.6.8 (107)

Homeserver

moechat.kimiblock.top Synapse 1.110.0rc1

Will you send logs?

Yes

Kimiblock commented 5 months ago

Here’s a video

https://github.com/element-hq/element-x-ios/assets/61745317/0326bc6d-1a95-4680-8af1-6360f2689c11

stefanceriu commented 5 months ago

Most likely cause by https://github.com/matrix-org/matrix-rust-sdk/pull/3501, can you please check on the newly released 1.6.9?

Kimiblock commented 5 months ago

Indeed better, though slowdowns when opening the room still happens

-- Sincerely, Kimiblock

stefanceriu commented 5 months ago

Thanks for checking. Loading initial items on opening rooms has been addressed here and deadlocks have been fixed so I will close this issue.

Kimiblock commented 5 months ago

Thanks for checking. Loading initial items on opening rooms has been addressed here and deadlocks have been fixed so I will close this issue.

Is that a dead link?

stefanceriu commented 5 months ago

Oh sorry, I had a typo, edited now.

Kimiblock commented 5 months ago

https://github.com/element-hq/element-x-ios/assets/61745317/68cef0bb-c493-4203-99b3-68dfd6c74476

It still occurs to me, 1.6.11

Maybe I should reopen this

mblackshaw commented 5 months ago

We're seeing this super often on 1.6.9 too.

pixlwave commented 5 months ago

RPReplay_Final1718812948.mp4

It still occurs to me, 1.6.11

Maybe I should reopen this

In this video, if you were to have waited longer would the message have appeared in the timeline? If that's true, next it this happens could you add a screenshot which includes the scroll bar?

I believe this might be an instance of the timeline having far too many items loaded (given how long it takes to open the room again) so simply being slow. One trigger for this was fixed in #2969 although there's still another potential way this can happen (albeit more slowly).

Kimiblock commented 5 months ago

Will try. I’m a little sick recently.

-- Sincerely, Kimiblock

mblackshaw commented 5 months ago

FWIW this has been much better with 1.6.11. I don't think I've seen it once.

Kimiblock commented 4 months ago

Seen this again

IMG_7792