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 consumes lots of CPU and logs "failed to read or write to the crypto store" every 20 seconds #26703

Closed
robintown opened this issue Dec 5, 2023 · 2 comments
Labels
A-E2EE-Key-Backup A-Element-R Issues affecting the port of Element's crypto layer to Rust O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect Z-Labs

Comments

@robintown
Copy link
Member

robintown commented Dec 5, 2023

Steps to reproduce

  1. Start Element, using Rust crypto
  2. Leave it idling

Outcome

What did you expect?

The app should not cause my fan to spin while idle.

What happened instead?

Every 20 seconds, my fan spins up and an error is logged in the console: "Backup: Error processing backup request for rust crypto-sdk Error: failed to read or write to the crypto store DomException UnknownError (0): The operation failed for reasons unrelated to the database itself and not covered by any other error code." Presumably these are connected?

Operating system

NixOS unstable

Browser information

Firefox 120.0

URL for webapp

develop.element.io

Application version

Element version: 31ce458-react-fb1a97be3228-js-23ad637aadda
Crypto version: Rust SDK 0.6.0 (8931d87), Vodozemac 0.5.0

Homeserver

Synapse 1.95.1

Will you send logs?

Yes

@robintown robintown changed the title App consumes lots of CPU and spits out "failed to read or write to the crypto store" every 20 seconds App consumes lots of CPU and logs "failed to read or write to the crypto store" every 20 seconds Dec 5, 2023
@robintown robintown added A-E2EE-Key-Backup A-Element-R Issues affecting the port of Element's crypto layer to Rust labels Dec 5, 2023
@github-actions github-actions bot added the Z-Labs label Dec 5, 2023
@robintown
Copy link
Member Author

Some further information: this only started a few days ago, after my client performed some sort of migration related to crypto keys. The first time the migration happened, I thought my client was frozen so I closed the tab in the middle of the operation (could it be related?). The second time I checked the console to see what was happening, and allowed the migration to complete.

@florianduros florianduros added S-Major Severely degrades major functionality or product features, with no satisfactory workaround O-Uncommon Most users are unlikely to come across this or unexpected workflow labels Dec 6, 2023
@richvdh
Copy link
Member

richvdh commented Dec 6, 2023

The migration will have been the (first) fix to #26488. Per that issue, it turns out that there is still more work to do.

Closing as a duplicate of #26488. Thanks for the report though!

@richvdh richvdh closed this as completed Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-E2EE-Key-Backup A-Element-R Issues affecting the port of Element's crypto layer to Rust O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect Z-Labs
Projects
None yet
Development

No branches or pull requests

3 participants