Godot Version
4.4.1.stable
Question
I’m using Godot to build a small desktop utility rather than an actual game. I built myself an export template optimizing for size, using the command below per the documentation.
min3 is a build file generated from the editor’s Engine Compilation Configuration Editor
option
scons platform=linuxbsd target=template_release arch=x86_64 build_profile="min3" lto=full optimize=size
Exporting my game with the build template produced from this produces a game that crashes with a segfault immediately. I exported the template as debug and got a log from it before it crashed.
WARNING: Property not found: 'editor/movie_writer/mix_rate'.
at: get_setting_with_override (core/config/project_settings.cpp:379)
WARNING: Property not found: 'editor/movie_writer/speaker_mode'.
at: get_setting_with_override (core/config/project_settings.cpp:379)
WARNING: Property not found: 'editor/movie_writer/mjpeg_quality'.
at: get_setting_with_override (core/config/project_settings.cpp:379)
OpenGL API 3.3.0 NVIDIA 570.133.07 - Compatibility - Using Device: NVIDIA - NVIDIA GeForce RTX 2070
ERROR: Can't make SceneMultiplayer the default multiplayer interface since it does not extend MultiplayerAPI.
at: set_default_interface (scene/main/multiplayer_api.cpp:37)
ERROR: Class 'StyleBoxFlat' or its base class cannot be instantiated.
at: _instantiate_internal (core/object/class_db.cpp:551)
ERROR: Condition "r.is_null()" is true. Returning: Ref<Resource>()
at: duplicate (core/io/resource.cpp:375)
================================================================
handle_crash: Program crashed with signal 11
Engine version: Godot Engine v4.4.1.stable.custom_build
Dumping the backtrace. Please include this when reporting the bug to the project developer.
[1] /usr/lib/libc.so.6(+0x3dcd0) [0x748fe95dfcd0] (??:0)
[2] ./Minima_debug.x86_64(+0xa1130f) [0x5851898c830f] (??:0)
[3] ./Minima_debug.x86_64(+0x9f9580) [0x5851898b0580] (??:0)
[4] ./Minima_debug.x86_64(+0x11d8512) [0x58518a08f512] (??:0)
[5] ./Minima_debug.x86_64(+0x11c1b90) [0x58518a078b90] (??:0)
[6] ./Minima_debug.x86_64(+0x194576) [0x58518904b576] (??:0)
[7] /usr/lib/libc.so.6(+0x27488) [0x748fe95c9488] (??:0)
[8] /usr/lib/libc.so.6(__libc_start_main+0x8c) [0x748fe95c954c] (??:0)
[9] ./Minima_debug.x86_64(+0x19d3a5) [0x5851890543a5] (??:0)
-- END OF BACKTRACE --
================================================================
[1] 39359 IOT instruction (core dumped) ./Minima_debug.x86_64
This is NOT a big issue tbh, just something I found while trying to make the smallest file possible. I was able to get a working template to export, but it’s almost 11mb bigger than this, which is a lot in the context of a small desktop utility.
I was thinking this might be worth a github issue rather than a forum post, but I wasn’t quite sure since this is highly specific.