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 load GDExtension in Web export due to LinkError #97426

Open
949886 opened this issue Sep 24, 2024 · 1 comment
Open

Unable to load GDExtension in Web export due to LinkError #97426

949886 opened this issue Sep 24, 2024 · 1 comment

Comments

@949886
Copy link

949886 commented Sep 24, 2024

Tested versions

4.3.stable.official.77dcf97d8

System information

Windows 11 - Vulkan (Forward+)

Issue description

Uncaught (in promise) LinkError: WebAssembly.instantiate(): 
Import #69 "env" "memory": mismatch in shared state of memory, declared = 1, imported = 0

Steps to reproduce

  1. Open MPR
  2. Click Remote Debug > Run in Browser in the top-right corner.
  3. Open the browser console, and you will see the error.

The exported project also has the same error.

Minimal reproduction project (MRP)

MPR.zip

@bobby-the-epic
Copy link
Contributor

Same problem as #94537. Can be fixed by turning on thread support in your web export preset (Project -> Export... -> Web -> Variant -> Thread Support) or build the library without thread support and modify your .gdextension.

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

No branches or pull requests

3 participants