element-hq / element-web

A glossy Matrix collaboration client for the web.
https://element.io
GNU Affero General Public License v3.0
10.99k stars 1.95k forks source link

Session restore failed due to failure when migrating from legacy crypto #27877

Open BuZZ-dEE opened 1 month ago

BuZZ-dEE commented 1 month ago

Steps to reproduce

Only opened https://app.element.io/#/room/#thisweekinmatrix:matrix.org

Outcome

What did you expect?

To see my chats and rooms

What happened instead?

grafik

Operating system

Arch Linux

Browser information

Firefox 128.0.3 (64-Bit)

URL for webapp

app.element.io

Application version

No response

Homeserver

No response

Will you send logs?

Yes

t3chguy commented 1 month ago

Duplicate of https://github.com/element-hq/element-desktop/issues/1816

richvdh commented 1 month ago

Error message is:

2024-07-30T11:29:18.424Z D Migrating batch of 50 megolm sessions
2024-07-30T11:29:18.425Z E Unable to load session Failed decoding Curve25519 key from base64: Invalid number of bytes for Curve25519, expected 32, got 0.
./node_modules/@matrix-org/matrix-sdk-crypto-wasm/pkg/index.js/A.exports.__wbindgen_error_new@https://app.element.io/bundles/acaf93297a5a35ea8349/7490.js:1:105187
matrix_sdk_crypto_wasm.wasm.<wasm_bindgen::JsError as core::convert::From<E>>::from::h44c786280bbf62b7@https://app.element.io/bundles/acaf93297a5a35ea8349/7490.js line 1 > WebAssembly.instantiate:wasm-function[2672]:0x2b24da
matrix_sdk_crypto_wasm.wasm.<core::iter::adapters::GenericShunt<I,R> as core::iter::traits::iterator::Iterator>::next::h0308c7132cef312c@https://app.element.io/bundles/acaf93297a5a35ea8349/7490.js line 1 > WebAssembly.instantiate:wasm-function[3250]:0x2e20c9
matrix_sdk_crypto_wasm.wasm.wasm_bindgen_futures::future_to_promise::{{closure}}::{{closure}}::h0f29619810d23dda@https://app.element.io/bundles/acaf93297a5a35ea8349/7490.js line 1 > WebAssembly.instantiate:wasm-function[322]:0xaf80c
matrix_sdk_crypto_wasm.wasm.wasm_bindgen_futures::queue::Queue::new::{{closure}}::h8ef579ea9b649d7d@https://app.element.io/bundles/acaf93297a5a35ea8349/7490.js line 1 > WebAssembly.instantiate:wasm-function[7248]:0x381963
matrix_sdk_crypto_wasm.wasm.wasm_bindgen::convert::closures::invoke1_mut::hd46bf1dda4ab89c1@https://app.element.io/bundles/acaf93297a5a35ea8349/7490.js line 1 > WebAssembly.instantiate:wasm-function[8453]:0x392f3e
p@https://app.element.io/bundles/acaf93297a5a35ea8349/7490.js:1:3400
E@https://app.element.io/bundles/acaf93297a5a35ea8349/7490.js:1:2422

Not a duplicate of element-hq/element-desktop#1816.