Godot Version
v4.4.1.stable.official [49a5bc7b6]
Question
I’ve attempted to build a custom release template for a web-only game.
Here’s the command I used:
scons platform=web target=template_release lto=full threads=no optimize=size module_text_server_adv_enabled=no module_text_server_fb_enabled=yes
However, no matter what I do, when I put the files on my server, it just won’t work, and I keep getting random exceptions every time I refresh the page, and the game won’t load.
Here are a few of the exceptions I get:
Uncaught (in promise) LinkError: WebAssembly.instantiate(): Import #26 "env" "godot_audio_worklet_start_no_threads": function import requires a callable
Aborted(free() called but not included in the build - add `_free` to EXPORTED_FUNCTIONS)
Uncaught RuntimeError: Aborted(free() called but not included in the build - add `_free` to EXPORTED_FUNCTIONS)
The game works perfectly fine when I use the official release templates.
Any idea why this happens?