Hello, I’m trying to build for web and iOS users are reporting crashes. So I decided to make a build with fewer modules enabled. Followed instructions in the documentation and have gcc version 14.2.1 20240912Python 3.12.8SCons: v4.6.0emsdk 4.0.8 and checked out the GODOT branch 4.4.1.
I ran the most basic build imaginable to test things: scons platform=web target=template_release
I then edited my “Web” export settings by selecting the newly built godot.web.template_release.wasm32.zip for Custom Template > Release (advanced settings on).
The app I’m making has local files in user: that include mp3, jpg and png files. The png and mp3 files work just fine. And in normal builds with the default export templates, the jpgs work just fine too. But when using this export_template .zip I see in the web console: "ERROR: Failed to load image. Error 15. at: load_from_file (core/io/image.cpp:2551) and none of the jpgs load. ERROR 15 appears to be ERR_FILE_UNRECOGNIZED according to core/error/error_list.h. This error is printed when calling Image.load_from_file() with the jpg filename. The file exists, and displays fine with the default export template.
So why is my export template not supporting jpgs when it seems to me that I’m building the most vanilla version possible? I haven’t even started culling out modules. Just scons platform=web target=template_release
This is how my build ends:
[ 95%] Linking Program bin/godot.web.template_release.wasm32.js …
[ 95%] em++: warning: -pthread + ALLOW_MEMORY_GROWTH may run non-wasm code slowly, see Threads + memory growth + JS · Issue #1271 · WebAssembly/design · GitHub [-Wpthreads-mem-growth]
[ 95%] Install file: “bin/godot.web.template_release.wasm32.wasm” as “bin/.web_zip/godot.wasm”
[ 95%] Archiving bin/godot.web.template_release.wasm32.zip …
[ 96%] scons: done building targets.
INFO: Time elapsed: 00:00:38.51
Thanks for suggesting the issue tracker. Perhaps I can find more info by searching that. However, I wouldn’t say it fails in any webassembly build. It only fails in the web build that I export using the export_template that I compiled. If I use the downloaded 4.4.1 export template, it works fine. I imagine that libjpeg-turbo is used in both cases?
I think I may have checked out master after all. I followed instructions to use --depth 1
You can add the --depth 1 argument to omit the commit history (shallow clone).
A shallow clone is faster, but not all Git operations (like blame) will work.
But it does look like that got me master, and when I did ‘git checkout 4.4.1-stable’, git had no concept of such a branch so it created a new one.