Untraceable errors

Godot Version

4.5

Question

I am working on a tower defense game, and sometimes this error occurs while running the game, but it does not show where the error is, and this problem is difficult to reproduce. It occasionally occurs

E 0:02:56:581 _flush_events: Condition “ref_count <= 0” is true. Continuing. <C++ > modules/jolt_physics/objects/jolt_area_3d.cpp:159 @ _flush_events()

Can such an error be ignored? I can’t find the source of its error

Someone else seems to have a similar problem. They couldn’t solve it fully also, but maybe it helps somehow?

https://www.reddit.com/r/godot/comments/1nkzj41/which_errors_cause_crashes_how_to_handlelog/

So reading the error message it’s coming from this code: https://github.com/godotengine/godot/blob/master/modules/jolt_physics/objects/jolt_area_3d.cpp on line 159 which is this line: ERR_CONTINUE(ref_count <= 0);

The name of the function that line is in is: void JoltArea3D::_flush_events(OverlapsById &p_objects, const Callable &p_callback)

So from that we can infer a few things.

  1. You are using the Jolt 3D Engine.
  2. When the error happens, it is an Area3D causing the problem.
  3. The error happens when flushing collision events, so it is happening during a physics tick, after physics collisions have all been handled.

So if I were you I’d google issues with Jolt and Godot relating to Area3D collisions.

1 Like

Thank you.

1 Like