Closed novemberist closed 2 years ago
edit after some testing the problem seems to be this declaration:
var gravity = ProjectSettings.get_setting("physics/3d/default_gravity")
If i exchange it for something like var gravity = 9.8
the game runs as expected, and so does the script
In fact any call of ProjectSettings.get_setting() within the script leads to the game not running.
Does it crash in 4.0alpha5 and 4.0alpha6? If so, this could be the same cause as https://github.com/godotengine/godot-demo-projects/pull/713#issuecomment-1093322395.
@Calinou It doesn't crash in any of the alpha builds (including 5 and 6). The cause of the crash is definitely the call of ProjectSettings.get_setting() in the template script, though
This might also be the reason why the demo crashes that you have linked, because the scripts also contain several calls to ProjectSettings.get_setting()
@akien-mga Maybe the revert of https://github.com/godotengine/godot/pull/57972 may have caused this issue?
I cannot reproduce this anymore with the latest build (eb6ebdc4aff88de8da4217dfe1c4f226a1fd2132) for some reason. Sorry, there may have been something on my side causing this issue, since none of the latest commits seem to have anything to do with this issue specifically.
Was it related to this? https://github.com/godotengine/godot/issues/59971
I don't think so. I'm pretty sure it was related to a call to ProjectSettings.get_setting().
Closing this, since I can not reproduce anymore. I will open a new and more precise issue in case I run into this or a similar issue again.
Godot version
Godot 4.0 dev, commit #59324
System information
Fedora Linux 36 Beta, Vulkan, Gnome 42 (Wayland), Radeon RX580 (Mesa 22)
Issue description
Hello, whenever I try to run a project/scene that contains a CharacterBody3D with the Basic Movement template script attached (unmodified), the game window does only show the splash screen and the terminal reports that Godot has crashed.
The Debugger doesn't report anything. If I stop the game (F8) I can continue using the editor, so I guess the editor didn't crash but only the running game.
If I use another template or empty script, the game runs normally.
Terminal output:
Steps to reproduce
This happens with or without a Camera Node present in the Scene, so for the sake of a minimal example, I didn't add one here
Minimal reproduction project
No response