Godot 4.4: Failed to build convex hull after upgrading from 4.3

Godot Version

4.4

Question

After upgrading from Godot 4.3 to Godot 4.4 I am receiving this error:

E 0:00:09:624   _setup: Failed to build convex hull
  <C++ Source>  modules/godot_physics_3d/godot_shape_3d.cpp:1100 @ _setup()

I also had a similar error on the player:

E 0:00:20:762   player.gd:169 @ _physics_process(): Failed to build convex hull
  <C++ Source>  modules/godot_physics_3d/godot_shape_3d.cpp:1100 @ _setup()
  <Stack Trace> player.gd:169 @ _physics_process()

I tried to fix the last error on player.gd by changing this collision shape:

To this:

But the _physics_process(): Failed to build convex hull error keeps showing up.

The other error is likely caused by this shape:

I did some investigation, but not much is known about Failed to build convex hull. I did see this topic: Upgraded to 4.4. Now generating errors for 3D static bodies (or mesh instance). How to fix? and related it to the annotation about CSG in Upgrading from Godot 4.3 to Godot 4.4 — Godot Engine (stable) documentation in English.
I have traced the error back to here, but it doesn’t tell me much:

The error does not show up when I run my game without the slopes in the level. I narrowed it down further, and only when the _create_slope_collider function runs does the error show up (and slopes are present in the level)

My question is: Does the error come from the slope and if so, what do I need to change to fix it?

1 Like

Don’t worry about that error. It seems it was introduced when they added custom debug color and fill. I think that, when it creates the shape it also tries to generate the hull but it does not have any points at that point and that’s why it fails. It shouldn’t cause any issue in its functionality.

I’ve opened an issue here Creating a new ConvexCollisionShape3D throws the error "_setup: Failed to build convex hull" · Issue #103852 · godotengine/godot · GitHub