-
-
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
Infinite loop in Physics2DServerSW::_update_shapes with Multi-Threaded physics #35017
Comments
Also I double checked that all my object manipulations was in physics frame. Also set all timer and tweens to physics process mode. |
The bug only reproduced in multi-threaded physics. When I set |
I recently tested similar multi-threaded physics issue in #29369 (comment). |
Perhaps a read-write lock could be used to mitigate this issue on the pending shape update list? As I cannot reliably reproduce I can't test. |
Can anyone still reproduce this bug in Godot 3.2.3 or any later release? If yes, please ensure that an up-to-date Minimal Reproduction Project (MRP) is included in this report (a MRP is a zipped Godot project with the minimal elements necessary to reliably trigger the bug). You can upload ZIP files in an issue comment with a drag and drop. |
I am still getting similar issue (v3.2.4.rc.mono.custom_build.4b9b9ed2f), multi-thread rendering is on: EDIT: Well it doesn't happen with physics Multi-Threaded option for me. |
I still get this problem in 3.3.3, even with single-safe. With multi-threaded it happens way more often. I use many kinematic bodies. |
I am having this issue on 3.3.4-stable, but resolved it by switching from Here is a visual studio minidump: |
Somebody please attach a reproduction project. From the information so far it seems to be a |
Bugsquad note: This issue has been confirmed several times already. No need to confirm it further.
Godot version:
Godot 3.2.beta 6 (commit 02cd144)
OS/device including version:
MacOSX 10.14.6 (18G95)
Issue description:
I have a lot of KinematicBody2D in one scene. In
_physics_process
I callmove_and_collide
and some times the game hungs up with logs:This lines repeates many times. Actually infinite amount of times, because it prints from the infinite loop.
I catched the bug with xcode debugger and it shows me that the problem is in
void Physics2DServerSW::_update_shapes()
:godot/servers/physics_2d/physics_2d_server_sw.cpp
Line 1421 in 02cd144
I have no ideas why
pending_shape_update_list
became broken. Does anybody have?Steps to reproduce:
Minimal reproduction project:
The text was updated successfully, but these errors were encountered: