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
432 stars 106 forks source link

Sent message which entirely vanished; no local, remote echo or send #3367

Open ara4n opened 1 month ago

ara4n commented 1 month ago

Steps to reproduce

  1. I was in https://matrix.to/#/%23element-x-ios:matrix.org
  2. Typed a msg (using normal composer; nothing special)
  3. Hit send
  4. No local echo
  5. No remote echo
  6. Checked in another client; the msg never sent.
  7. Msg not shown as failed.

See rageshake

Outcome

What did you expect?

reliable msg sending

What happened instead?

dropped msg

Your phone model

No response

Operating system version

No response

Application version

724

Homeserver

No response

Will you send logs?

Yes

pixlwave commented 1 month ago

Looks like something went wrong in the SDK:

2024-10-03T23:18:12.370302Z ERROR matrix_sdk_ffi::timeline: error when sending a message: database is locked | bindings/matrix-sdk-ffi/src/timeline/mod.rs:250 | spans: root
2024-10-03T23:18:12.376783Z ERROR elementx: Failed sending message with error: Generic(msg: "database is locked: Error code 5: The database file is locked") | TimelineProxy.swift:393 | spans: root
2024-10-03T23:18:12.377196Z ERROR elementx: Failed sending message with error: sdkError(MatrixRustSDK.ClientError.Generic(msg: "database is locked: Error code 5: The database file is locked")) | RoomTimelineController.swift:166 | spans: root
manuroe commented 1 month ago

Thanks @pixlwave for the pointer. @bnjbvr, any idea?

bnjbvr commented 1 month ago

Not really; asked in the Rust internal room.