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

wasm-experimental test #4875

Closed

Conversation

StachuDotNet
Copy link
Member

Changelog:

Area of change
- details

(only the most recent commit here is relevant)

Briefly tried out wasm-experimental workflow to see if we could get multithreading for free.

I got the workload installed, and code written to try and spawn a new thread, but then met with:\

Uncaught (in promise) Error: Failed to start platform. Reason: ReferenceError: SharedArrayBuffer is not defined

apparently this might be resolvable with some headers:

("Cross-Origin-Embedder-Policy", "require-corp")
("Cross-Origin-Opener-Policy", "same-origin")

but I'm not sure which requests/responses need those - maybe all, in which case serving the static assets by a different host won't work...

This sort of feels like a dead-end due to security+convenience constraints.

@StachuDotNet StachuDotNet force-pushed the wasm-experimental-test branch from 27daba4 to afe92dc Compare May 4, 2023 16:55
@StachuDotNet
Copy link
Member Author

StachuDotNet commented May 4, 2023

image
if I load the static assets from the same host, I hit a different issue as Blazor is loading.

Seems related to this:
dotnet/runtime#68162 (comment)

Seems like a known thing, and we should probably just wait for improved support (maybe in .net 8)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant