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

Unable to restore session #27666

Closed
florianduros opened this issue Jul 3, 2024 · 5 comments · Fixed by matrix-org/matrix-js-sdk#4298
Closed

Unable to restore session #27666

florianduros opened this issue Jul 3, 2024 · 5 comments · Fixed by matrix-org/matrix-js-sdk#4298
Labels
A-E2EE A-Element-R Issues affecting the port of Element's crypto layer to Rust O-Occasional Affects or can be seen by some users regularly or most users rarely S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect X-Release-Blocker

Comments

@florianduros
Copy link
Member

florianduros commented Jul 3, 2024

Steps to reproduce

Refreshed develop and went against:

image

Error in console

Warning! Not using an encryption key for rust crypto store.
...
Unable to load session Error: Error: invalid type: string "8", expected u64
    at module.exports.__wbindgen_error_new (index.js:9754:1)
    at matrix_sdk_crypto_wasm.wasm.<wasm_bindgen::JsError as core::convert::From<E>>::from::h8775e916ccaf4e7e (matrix_sdk_crypto_wasm.wasm-0173b296:0x2bbcb7)
    at matrix_sdk_crypto_wasm.wasm.matrix_sdk_crypto_wasm::machine::OlmMachine::init_helper::{{closure}}::h89bc52bc32d75063 (matrix_sdk_crypto_wasm.wasm-0173b296:0x3f5f6)
    at matrix_sdk_crypto_wasm.wasm.wasm_bindgen_futures::future_to_promise::{{closure}}::{{closure}}::h7e45e671070e31cd (matrix_sdk_crypto_wasm.wasm-0173b296:0x1143f8)
    at matrix_sdk_crypto_wasm.wasm.wasm_bindgen_futures::queue::Queue::new::{{closure}}::h8ef579ea9b649d7d (matrix_sdk_crypto_wasm.wasm-0173b296:0x39387d)
    at matrix_sdk_crypto_wasm.wasm.wasm_bindgen::convert::closures::invoke1_mut::hd46bf1dda4ab89c1 (matrix_sdk_crypto_wasm.wasm-0173b296:0x3a319b)
    at __wbg_adapter_65 (index.js:278:1)
    at real (index.js:220:1)

Operating system

No response

Application version

develop

How did you install the app?

No response

Homeserver

No response

Will you send logs?

Yes

@florianduros florianduros added T-Defect A-E2EE A-Element-R Issues affecting the port of Element's crypto layer to Rust 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 Jul 3, 2024
@dosubot dosubot bot added the S-Critical Prevents work, causes data loss and/or has no workaround label Jul 3, 2024
@florianduros florianduros removed the S-Critical Prevents work, causes data loss and/or has no workaround label Jul 3, 2024
@richvdh
Copy link
Member

richvdh commented Jul 3, 2024

This happens when (for historical reasons) the indexeddb cryptostore is unencrypted.

@richvdh richvdh added X-Release-Blocker O-Occasional Affects or can be seen by some users regularly or most users rarely and removed O-Uncommon Most users are unlikely to come across this or unexpected workflow labels Jul 3, 2024
@richvdh
Copy link
Member

richvdh commented Jul 3, 2024

Introduced by matrix-org/matrix-rust-sdk#3645

@t3chguy
Copy link
Member

t3chguy commented Jul 3, 2024

@richvdh given that PR is only 3h old, are you sure it blocks the current release cycle rather than the next?

@richvdh
Copy link
Member

richvdh commented Jul 3, 2024

yes. It was backported into the current release: matrix-org/matrix-js-sdk#4297

@t3chguy
Copy link
Member

t3chguy commented Jul 3, 2024

Thanks for clarifying

richvdh added a commit to matrix-org/matrix-js-sdk that referenced this issue Jul 3, 2024
github-merge-queue bot pushed a commit to matrix-org/matrix-js-sdk that referenced this issue Jul 3, 2024
RiotRobot pushed a commit to matrix-org/matrix-js-sdk that referenced this issue Jul 3, 2024
t3chguy pushed a commit to matrix-org/matrix-js-sdk that referenced this issue Jul 3, 2024
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
Fixes element-hq/element-web#27666
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-E2EE A-Element-R Issues affecting the port of Element's crypto layer to Rust O-Occasional Affects or can be seen by some users regularly or most users rarely S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect X-Release-Blocker
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants