-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Client very slow to restore session after Rust crypto v8 → v10 migration #26948
Comments
I get the same behaviour, and so does Valère. Investigating. |
The scheme upgrade in question only deletes the old object store, nothing else. A stackoverflow page suggests that you need to |
I waited instead of refreshing, and it finally completed: https://rageshakes.element.io/api/listing/2024-02-01/102737-F7T44FAH/logs-0000.log.gz
and after 2 hours??
|
Also it is now re-uploading all my keys to backup?
|
Since it eventually worked for @BillCarsonFr I changed the description of this PR to say it was very slow rather than failed. I have a client that I refreshed part-way, and it is now being very slow to start, so we will see whether it leaves people's clients in a broken state. @robintown were you able to use Element after refreshing? |
Yes, it worked eventually but it took a long time (over an hour?) |
I'm going to benchmark creating a lot of records and dropping the store, to see whether this is a general problem, or caused by a particular bug in our code. |
No, that client is still unable to restore the session |
@robintown please leave it running. After refresh, mine printed nothing for a long time, and then eventually it worked. (Took about 1-2 hours) |
I now strongly suspect this is Firefox-only. I am able to reproduce slowness to delete a large store with an index in Firefox, but it's fine in Chrome. |
This is a problem in Firefox, which I have documented here: https://www.artificialworlds.net/blog/2024/02/02/deleting-an-indexed-db-store-can-be-incredibly-slow-on-firefox/ I will log a bug against Firefox if one doesn't already exist. |
This PR: matrix-org/matrix-rust-sdk#3090 should speed things up by about 3 times on Firefox, but I think that is all we can do. |
Including getting the latest matrix-rust-sdk, providing: * [indexeddb: Clear the object store before deleting it #3090](matrix-org/matrix-rust-sdk#3090) which speeds up the schema upgrade v8 to v10 (see element-hq/element-web#26948 ).
Steps to reproduce
Outcome
What did you expect?
The migration should finish and I should be able to use my client again.
What happened instead?
After migrating all 80000-something sessions, it outputs a message to say it's now migrating the schema. At this point my CPU goes idle and no further interesting logs appear, so the client appears to be stuck on the loading screen. I refresh the page and the client now fails to start with an error in the console about failing to connect to IndexedDB.
Operating system
NixOS unstable
Browser information
Firefox 121.0.1
URL for webapp
develop.element.io
Application version
7c584df-react-a3a387a1dd8f-js-d178fbf9cdc3
Homeserver
Synapse 1.99.0
Will you send logs?
Yes
The text was updated successfully, but these errors were encountered: