-
-
Notifications
You must be signed in to change notification settings - Fork 318
Crashing after command line export #1373
Description
Material Maker version:
1.5p1 and 8e437b5 (latest)
OS/device including version:
Linux Mint
RTX 3060 TI
nvidia-driver-590-open
Issue description:
Material Maker crashes after exporting a material from the command line. It does successfully export the textures.
Full output of the command
> godot --export-material --target Blender -o .. ../climber/material_maker/steel.ptex
Godot Engine v4.6.2.stable.official.71f334935 - https://godotengine.org
Vulkan 1.4.325 - Forward+ - Using Device #0: NVIDIA - NVIDIA GeForce RTX 3060 Ti
Cannot open user://export_targets
Exporting...
Current dir: /home/user/Documents/programming/material-maker
Output dir: ..
Unsupported texture format 4
Unsupported texture format 4
Unsupported texture format 4
Exporting steel.ptex to ../steel...
WARNING: A Thread object is being destroyed without its completion having been realized.
Please call wait_to_finish() on it to ensure correct cleanup.
at: ~Thread (core/os/thread.cpp:102)
WARNING: A Semaphore object is being destroyed while one or more threads are still waiting on it.
Please call post() on it as necessary to prevent such a situation and so ensure correct cleanup.
at: ~Semaphore (./core/os/semaphore.h:126)
================================================================
handle_crash: Program crashed with signal 11
Engine version: Godot Engine v4.6.2.stable.official (71f334935c000924d403448e698df4441130df18)
Dumping the backtrace. Please include this when reporting the bug on: https://github.com/godotengine/godot/issues
[1] /lib/x86_64-linux-gnu/libc.so.6(+0x45330) [0x7f322c645330] (??:0)
[2] /lib/x86_64-linux-gnu/libnvidia-glcore.so.590.48.01(+0xe19f47) [0x7f31bd819f47] (??:0)
[3] /lib/x86_64-linux-gnu/libnvidia-glcore.so.590.48.01(+0xe17c15) [0x7f31bd817c15] (??:0)
[4] /lib/x86_64-linux-gnu/libnvidia-glcore.so.590.48.01(+0xe24d1a) [0x7f31bd824d1a] (??:0)
[5] /lib/x86_64-linux-gnu/libnvidia-glcore.so.590.48.01(+0xe41f75) [0x7f31bd841f75] (??:0)
[6] /lib/x86_64-linux-gnu/libnvidia-glcore.so.590.48.01(+0xfa97e0) [0x7f31bd9a97e0] (??:0)
[7] /lib/x86_64-linux-gnu/libnvidia-glcore.so.590.48.01(+0xa437b7) [0x7f31bd4437b7] (??:0)
[8] /lib/x86_64-linux-gnu/libGLX_nvidia.so.0(+0x51787) [0x7f321871f787] (??:0)
[9] /lib/x86_64-linux-gnu/libGLX_nvidia.so.0(+0x51eaf) [0x7f321871feaf] (??:0)
-- END OF C++ BACKTRACE --
================================================================
I did poke around a bit and I confirmed that the issue occurs when exiting, not during the export process. If you remove the get_tree().quit() at the end of export_files the crash no longer happens because the program never exits. If then asked to quit by the godot flag --quit or --quit-after 20, the program never exports the file and hangs. If asked to quit with --quit-after 100, the program crashes the same way as with get_tree().quit().
Steps to reproduce:
Run Material Maker with the arguments --export-material and --target {{any target}}