Skip to content

Editor: Pathgrid editing may result in a malformed pathgrid

Somewhat rarely, when placing a pathgrid node in the editor, the whole thing goes down. It seems as though this is more likely to happen when a PGRD record exists, but has no nodes. Can't really confirm as it's very intermittent.

One thing I noticed was that under a debugger the local variables all look correct and as expected, perfectly aligning with what the UI displays. However, log statements reveal some insanely large values for the edges saved for each pathgrid node. Also unsure if related.

To repro, place some pathgrid nodes, and delete all of them. Then try to place another pathgrid node. You may have to do this quite a few times. I'm not certain, but I think this is an alternate expression of #8172 (closed).

Screenshot_20250204_210728

openmw-cs-crash.log