Skip to content

Recastnavigation warning spam

Different people have been asking about this on Discord since 2023 so we should have an issue.

In various places, the navigator ends up spamming the log with a message like this:

Worldspace: "sys::default"; tile position: -1141, -527; agent bounds: AgentBounds {CollisionShapeType::Aabb, {29.28, 28.48, 66.5}}; delaunayHull: Removing dangling face 21 [10,14,-1].

And it continues to spam it until the player leaves the area in question.

I've been seeing it happen in Anvil a lot these past few days and I've tracked down one of the causes: a small boat in the harbor using the vanilla float script. The script rotates the object non-stop, triggering a navmesh update. Said update apparently triggers https://github.com/recastnavigation/recastnavigation/blob/77f7e54bc8cf5a816f9f087a3e0ac391d2043be3/Recast/Source/RecastMeshDetail.cpp#L523

Since that's all fairly normal stuff, we need to figure out if this is a bug or spurious warning in recast, or if we need to sanitize our input somehow to prevent it.

The boat in question is a T_Com_SetHarbor_BoatRow_01 at (-983080, -448296, 8), with two more like it nearby. Disabling all three stops the warning as expected.