-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vehicle Instance is broken (nan error) #35877
Comments
PS: this does not happen in 3.1.2 (with same project) |
Please provide a minimal reproduction project. |
Hi again :) |
It appeared to me after clean Godot install, downloading Truck Town project and selecting Tow Truck as an option. (also happens with the middle option) |
I suspect it is a thread synchronization issue, since changing seemingly unrelated things "fixes" it (e.g. if the VehicleBody node is not in a separate scene the bug won't occur, if it is it does) and it doesn't happen consistently. In either case, I tried to narrow it down as much as possible. When spamming the "Spawn" button, the issue does occur eventually. |
I found that |
Junior job hint: |
Godot version:
3.2 stable
OS/device including version:
Win8
Issue description:
i instance a vehicle (tscn) several times per gdscipt (preload) in a for-loop.
the first instance is allways somehow broken - it gets transform-vectors with "-1.#QO" throws an error.
i found out about the cause via the debugger > breakpoints feature
the console puts Error NAN
E 0:00:00.712 instance_set_transform: Condition "Math::is_nan(v.x)" is true.
<C++-Quellcode>servers/visual/visual_server_scene.cpp:601 @ instance_set_transform()
Steps to reproduce:
as i said - i investigated via debugger and found out that the error is allways from the first instance
the following instances are fine.
Minimal reproduction project:
Vehicle_instance_bug_1.zip
The text was updated successfully, but these errors were encountered: