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

[Web Export] LinkError: imported function 'env.__addtf3' signature mismatch #4

Open
Brennanzuz opened this issue Sep 21, 2024 · 2 comments

Comments

@Brennanzuz
Copy link

I'm on a Linux (Ubuntu 22.04) system and I have done the following to test out your game!

git clone https://github.com/kiwijuice56/sand-slide.git
cd sand-slide
git submodule update --init
scons
scons platform=web

In Godot 4.3, everything loads and no errors are printed to the output. In the sand-slide/game/bin/fallingsand folder, I have:

  • fallingsand.gdextension
  • libgdfallingsand.linux.template_debug.x86_64.so
  • libgdfallingsand.web.template_debug.wasm32.wasm

Exporting the game to release/web_build/index.html (default settings as you have left it) and then running the game with the "Remote Debug" button on the top-right will give the error in the browser console:

LinkError: imported function 'env.__addtf3' signature mismatch

Am I missing any steps to compile and run on the web?

@kiwijuice56
Copy link
Owner

Thanks for the report, I've been having this issue as well. You followed all of the steps correctly; The only solution I have right now is to use Godot 4.2.2 stable and possibly switch to an older sand-slide commit if the process of downgrading to 4.2.2 doesn't go smoothly. I haven't been able to debug why this occurs, as Emscripten gives very little information on what went wrong during the WASM compilation. I've tried every Godot 4.3 snapshot as well as older versions of Emscripten and they all seem to have the same error.

@Brennanzuz
Copy link
Author

Ah, that's a shame, but thanks for letting me know! Very cool game btw! (I'm surprised megido did not overload my computer XD)

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

No branches or pull requests

2 participants