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

GDExtension web export fails to run #84008

Closed
dkaste opened this issue Oct 26, 2023 · 3 comments
Closed

GDExtension web export fails to run #84008

dkaste opened this issue Oct 26, 2023 · 3 comments

Comments

@dkaste
Copy link
Contributor

dkaste commented Oct 26, 2023

Godot version

v4.2.beta3.official [e8d57af]

System information

Fedora 38

Issue description

Attempting to run a web export that uses GDExtensions gives the error "memory access out of bounds" on Chrome, and freezes on Firefox, pegging the CPU without an error message.

Steps to reproduce

  • Clone the godot-cpp repo
  • Setup Emscripten environment with same version as Godot templates (3.1.45 as of writing) (source ./emsdk_env.sh)
  • Build the test extension for web (cd test && scons platform=web)
  • Open the test project in Godot
  • Add a web export (make sure you enable "Extensions Support")
  • Attempt Remote Debug > Run in Browser
  • Observe the above error message

Minimal reproduction project

https://github.com/godotengine/godot-cpp

@dkaste dkaste changed the title GDExtension web export fails to run with "tlsInitFunc is not a function" GDExtension web export fails to run Oct 26, 2023
@dsnopek
Copy link
Contributor

dsnopek commented Oct 26, 2023

  • Setup Emscripten environment with same version as Godot templates (3.1.45 as of writing) (source ./emsdk_env.sh)

I thought the official Godot templates were compiled with Emscripten 3.1.18?

@akien-mga Can you confirm the version?

@akien-mga
Copy link
Member

akien-mga commented Oct 26, 2023

We used 3.1.18 up until 4.2-beta2.
4.2-beta3 is using 3.1.39. Versions newer than 3.1.39 are known to be broken: #82865

So this is likely a duplicate of the above Godot issue.

@dkaste
Copy link
Contributor Author

dkaste commented Oct 26, 2023

Ah, I was misled by the version I found here.

Thanks for the information, and sorry for the duplicate.

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

4 participants