matrix-rust-sdk icon indicating copy to clipboard operation
matrix-rust-sdk copied to clipboard

Issues after updating the package dependency(matrix-rust-components-swift) to 25.7.2

Open AfnanAhmadiOSDev opened this issue 5 months ago • 3 comments

I keep getting the following output when fetching timeline events:

thread '' panicked at /Users/Doug/Developer/matrix-rust-sdk/crates/matrix-sdk-common/src/linked_chunk/as_vector.rs:498:21: The chunk is not found

More about the error: rustPanic("The chunk is not found")

Following code is the last line that runs before this: try await timeline!.paginateBackwards(numEvents: UInt16(messagesLimit))

AfnanAhmadiOSDev avatar Jul 16 '25 07:07 AfnanAhmadiOSDev

Seems that something unexpected is happening in this part of the code:

https://github.com/matrix-org/matrix-rust-sdk/blob/a8256813ae0364c4d8d19f1c40db2299bcd4c768/crates/matrix-sdk-common/src/linked_chunk/as_vector.rs#L494-L498

Do you happen to have some reproducer for this? Is it happening with a newly created database?

poljar avatar Jul 17 '25 14:07 poljar

Do you happen to have some reproducer for this? Is it happening with a newly created database?

I do not currently have a reproducer for this, sorry. As for the database, I tried it on an existing database. I just tried the update out of curiosity but it broke my working project so I had to go back to 25.2.19 which currently is working fine (mostly).

AfnanAhmadiOSDev avatar Jul 18 '25 04:07 AfnanAhmadiOSDev

Do you happen to have some reproducer for this? Is it happening with a newly created database?

I tried it on a empty database and this issue did not work, with a fresh DB everything worked fine.

AfnanAhmadiOSDev avatar Jul 29 '25 12:07 AfnanAhmadiOSDev