Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App got completely stuck sending messages #1353

Closed
ara4n opened this issue Jul 18, 2023 · 4 comments
Closed

App got completely stuck sending messages #1353

ara4n opened this issue Jul 18, 2023 · 4 comments
Assignees
Labels
A-E2EE Encryption O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Critical Prevents work, causes data loss and/or has no workaround T-Defect X-Needs-Rust This issue needs a Rust SDK change. It must have a link to a Rust SDK issue

Comments

@ara4n
Copy link
Member

ara4n commented Jul 18, 2023

Steps to reproduce

I've had two instances today of trying to send messages into (different) rooms, where sending got completely wedged.

Looks like the E2EE sync loop is getting stuck somehow, perhaps calling /keys/query on a device whose server is down, or a bug in rust-sdk-crypto grinding to a halt.

Outcome

What did you expect?

E2EE that works, and messages whose sending don't get stuck solid.

What happened instead?

Stuck send msgs, which i can't recover from.

Your phone model

No response

Operating system version

No response

Application version

292

Homeserver

No response

Will you send logs?

Yes

@ara4n ara4n added the T-Defect label Jul 18, 2023
@manuroe
Copy link
Member

manuroe commented Jul 18, 2023

@bnjbvr can you have a look at those logs, please? Kegan's analysis on the last rageshake is interesting.

@kittykat kittykat added A-E2EE Encryption X-Needs-Rust This issue needs a Rust SDK change. It must have a link to a Rust SDK issue S-Critical Prevents work, causes data loss and/or has no workaround O-Uncommon Most users are unlikely to come across this or unexpected workflow Z-Schedule labels Jul 19, 2023
@bnjbvr
Copy link
Member

bnjbvr commented Jul 20, 2023

Looking.

@bnjbvr
Copy link
Member

bnjbvr commented Jul 28, 2023

4/6 of the above crash reports include the following panic in Rust code:

2023-07-27_161951-ZBIH5VQT/console.3_1.log
258:thread 'tokio-runtime-worker' panicked at 'Session wasn't created nor shared', /Users/mauroromito/Documents/Xworkspace/matrix-rust-sdk/crates/matrix-sdk-crypto/src/session_manager/group_sessions.rs:205:50
260:2023-07-27T00:07:33.309181Z ERROR root:send_queued_messages{room_id="XXX:matrix.org"}: matrix_sdk_ui::timeline::queue: crates/matrix-sdk-ui/src/timeline/queue.rs:144: Message-sending task failed: task 283504 panicked

This seems to match the symptoms (not being able to send messages). @poljar and I debugged this, and we think it's caused by a combination of two issues:

My hope is that, despite the panic not appearing in the two other rageshakes, this is the same issue, or that the second PR will make it a non-issue.

Assuming the fixes go in quickly today, we can consider whether to close this issue in a week or so, if there are no new instances of this problem after the fix is in.

@bnjbvr
Copy link
Member

bnjbvr commented Aug 5, 2023

I claim this has been fixed by the two PRs mentioned in the previous comment. If new issues appear, we can fix them later.

@bnjbvr bnjbvr closed this as completed Aug 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-E2EE Encryption O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Critical Prevents work, causes data loss and/or has no workaround T-Defect X-Needs-Rust This issue needs a Rust SDK change. It must have a link to a Rust SDK issue
Projects
None yet
Development

No branches or pull requests

4 participants