Open nongvantinh opened 6 days ago
Try using the --headless
option.
Yeah, that's what I did, and it's not working. I have a full-time job to keep, and my app still needs refinement before deploying it to the cloud, so I don't have time to look at the code. The point is, the export project should not have this kind of inconsistency. Both the UI and the terminal should invoke the same function.
I haven't thoroughly investigated this due to a lack of funding, but suspicious optimizations in the dummy rendering server that zeroed the texture in the past have broken things.
I confirm that adding the --headless
option or removing it doesn't make any difference regardless of the platform. Therefore, exporting through the UI has a different workflow, and exporting through the terminal has a different workflow.
The two command below yield the same bug with the binary:
./Godot_v4.4-dev_mono_winx86_64.exe "/d/GodotProjects/azheir/azheir/project.godot" --export-release Headless --quit
./Godot_v4.4-dev_mono_winx86_64.exe "/d/GodotProjects/azheir/azheir/project.godot" --headless --export-release Headless --quit
If you can provide a minimal sample, it would help us debug the most; if not, a non-minimal sample would work, too, but people value their project's privacy.
While narrowing down the project for easier troubleshooting, I accidentally realized that this bug occurs with both the UI and command line --export-release
.
I have uploaded the minimal reproduction project and the steps to reproduce the issue. Please take a look when you have time.
I may be misunderstanding the issue, but you are making a Release export and your "Hello world" print is surrounded by #if DEBUG
so naturally it won't be included in a Release build. Maybe you meant to use --export-debug
.
Tested versions
Godot 4.4.dev4.mono
System information
Ubuntu 24.04
Issue description
I'm exporting a project using Docker, which invokes Godot through the terminal with the following command:
However, when I run the app, it doesn't behave as expected
Steps to reproduce
Reproduce via UI:
Reproduce via command line:
Run the following command:
Minimal reproduction project (MRP)
azheir.zip
To verify if the project export was successful, simply run the executable. It should print Hello world on startup.