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

Error: Expect an UserId instance, received P instead #2

Open
abyxcos opened this issue May 7, 2023 · 3 comments
Open

Error: Expect an UserId instance, received P instead #2

abyxcos opened this issue May 7, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@abyxcos
Copy link

abyxcos commented May 7, 2023

[Error] Error: Expect an `UserId` instance, received `P` instead
(anonymous function) — vendor-6dbf17ae.js:60134:54597
wasm-stub
<?>.wasm-function[882]
<?>.wasm-function[4103]
<?>.wasm-function[610]
wasm-stub
rI — vendor-6dbf17ae.js:60134:14300
(anonymous function) — client-4506e41d.js:1:28123

	(anonymous function) (client-4506e41d.js:1:18597)

This also occurs in updateTrackedUsers, and pops up multiple times during sync (usually a few minutes apart).

@abyxcos
Copy link
Author

abyxcos commented May 7, 2023

[Error] Error: Expect an `UserId` instance, received `P` instead
(anonymous function) — vendor-6dbf17ae.js:60134:54597
wasm-stub
<?>.wasm-function[882]
<?>.wasm-function[4103]
<?>.wasm-function[898]
wasm-stub
getMissingSessions — vendor-6dbf17ae.js:60134:29567
(anonymous function) — client-4506e41d.js:1:20222
shareKeys — client-4506e41d.js:1:20517
(anonymous function) — client-4506e41d.js:1:19734

	(anonymous function) (client-4506e41d.js:1:18597)
[Error] Error: Expect an `UserId` instance, received `P` instead
(anonymous function) — vendor-6dbf17ae.js:60134:54597
wasm-stub
<?>.wasm-function[882]
<?>.wasm-function[4103]
<?>.wasm-function[897]
wasm-stub
updateTrackedUsers — vendor-6dbf17ae.js:60134:26729
(anonymous function) — client-4506e41d.js:1:32712

	(anonymous function) (client-4506e41d.js:1:18597)

@MTRNord MTRNord self-assigned this May 7, 2023
@MTRNord MTRNord added the bug Something isn't working label May 7, 2023
@MTRNord
Copy link
Owner

MTRNord commented May 7, 2023

This is related to https://github.com/matrix-org/matrix-rust-sdk/blob/main/bindings/matrix-sdk-crypto-js/src/machine.rs#L200 being faulty.

Wasmer has a fix at wasmerio/wasmer#3400 however https://github.com/wasmerio/wasm-bindgen-downcast is currently not public apparently making it questionable if it can be used in rust-sdk to fix this :/

@MTRNord
Copy link
Owner

MTRNord commented May 7, 2023

bb599de is a workaround for this. However an upstream fix would be nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants