• RuntimesGodot
  • Godot 4.3 Web Runtime missing EXPORTED_FUNCTIONS _free

Hello there !
I have a problem with my godot spine web game.
All works fine in dev but when I build for web and run it, I get this error:

From my research it's because godot spin template wasnt build with some function but I'm using official spine templates from web and I'm not using any custom plugin.
If someone can help me ? thanks in advance

Related Discussions
...

The error you're encountering with the Godot 4.3 web runtime, specifically the missing EXPORTED_FUNCTIONS _free, suggests that the export template might not have been built with all the necessary functions for your project. This can happen if the export template does not include certain functions that your project relies on. Since you are using the official Spine templates, it might be worth checking if the version of the Spine runtime and the Godot export template you are using are compatible with each other.

Ensure that you are using the latest versions of both the Spine runtime and the Godot export templates. If the problem persists, you might need to build the export templates yourself to ensure all necessary functions are included. You can follow the instructions provided in the spine-godot Runtime Documentation for compiling the Godot editor and export templates from source, which allows you to customize the build process to include any missing functions.

    Spinebot Thanks bot.

    I tried to build a custom godot spine myself adding this to the scons command:
    emcc_extra_flags="-s EXPORTED_FUNCTIONS=['main','malloc','free','realloc'] -s EXPORTED_RUNTIME_METHODS=['ccall','cwrap']"

    is it correct ? if anyone else than the bot has an idea please

    This is version i used :
    https://spine-godot.s3.eu-central-1.amazonaws.com/4.2/4.3-stable/spine-godot-templates-4.2-4.3-stable.tpz

    and:

    https://spine-godot.s3.eu-central-1.amazonaws.com/4.2/4.3-stable/godot-editor-linux.zip

    up 🙂

    Hello ! I fixed 90% of problems
    Problem were from disable "Thread support" option.
    Now i activated Thread support, i don't get the error anymore BUT i can't get my game with spine works on mobile browsers ( currently ios safari or chrome )

    12 днів пізніше

    That's extremely weird. We are building all variations of web support (dl/threads), and something as basic as free() should be linked in.

    Just to make sure:

    • You are using spine-godot 4.2, Godot version 4.3
    • You are exporting without thread or dynamic library support for web in release mode

    I am facing the same problem with my web exports.

    Understood. I still require the exact settings you are using that give you problems.

    • spine-godot version
    • Godot version
    • exact web export settings