-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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
Crash when move_and_slide_with_snap is called #31753
Comments
The first stack trace looks similar to #29364 |
@KoBeWi Thanks for linking the other issue. When I get home in a bit I'll delve into. At the moment, it looks like if I take out the call to direct space state ( |
This issue is being discussed here: #30700 |
Still happens with beta 4, and I have also with Ubsan Sanitizer this messages
|
Can anyone still reproduce this bug in Godot 3.2.3 or any later release? I tried the MRP few times and nothing happened. |
I tried to reproduce it but looks that issue is fixed |
Godot version:
3.1.1 Stable
OS/device including version:
Windows 10 64 bit
Issue description:
Background:
In my game I use two threads to load things for a new level before switching. One thread is used to load resources (resource_queue.gd) before the scene is instanced, and the other is used to run initialization functions for the new level after it is instanced and parented (level_loader.gd).
The two level switching threads are facilitated by my Main scene, who also owns the levels. This Main scene also owns the Player, who is simply switched from level to level and never deleted.
When Main switches levels it does it like this:
The Issue:
The game crashes when move_and_slide_with_snap() is called by the Player. After the new level is done with its initialization via level_loader, it doesn't have an issues with crashing.
Note:
Sometimes it only crashes upon colliding with the map.
Sometimes it doesn't crash at all and just jitters widely until finished initializing.
Here is a stack trace:
And here is another similar one:
Steps to reproduce:
Minimal reproduction project:
scuffed_game_crippled.zip
Where to look in the game files:
res::/scripts/main.gd - look for my threads which are created in _ready()
res:://levels/level_template - look for the post_function() in _ready()
The text was updated successfully, but these errors were encountered: