godotengine / godotengine/godot

Adding a new CollisionPolygon2D immediately errors "Convex decomposing failed"

Open
#117,658 2 comments 0 reactions 0 assignees View on GitHub
bug confirmed topic:2d topic:editor
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

v4.7.dev2.official [778cf54da]

### System information

Ubuntu 24.04.3 LTS

### Issue description

Adding a CollisionPolygon2D has the editor immediately firing off multiple errors "convex decomposing failed".
As I drag the mouse across the 2D editor window it adds that error repeatedly.
When the mouse is off the window the error stops getting added.
Once a polygon is created the errors stop producing.
This erroring happens in blank project as well.

Image

### Steps to reproduce

Simply add a CollisionPolygon2D to an empty project (improperly as child of Node or properly as child of Area2D) and the errors begin showing.

### Minimal reproduction project (MRP)

Unnecessary

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue by adding CollisionPolygon2D to an empty project, both under Node and Area2D, then observe the 2D editor while moving the mouse. Trace where the repeated "convex decomposing failed" errors originate; done means adding the node no longer emits errors before a polygon is created, while polygon creation still works.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
game-dev, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.