CTD navMeshQuery assertion failure

openmw trunk rev 6ec66edb

Location St. Olms underworks during Vivec Informants quest

Originally reported in #6319 (closed) , created new issue since these crash is different.

The rest two crashed somewhere in the navigator by trying to make a smooth path for actor:

// Move position at the other side of the off-mesh link.
if (dtStatusFailed(navMeshQuery.getPolyHeight(polygonPath.front(), endPos.ptr(), &iterPos.y())))

It crashes somewhere in the front() allocator due to some kind of failed assertion (presumably by __glibcxx_requires_nonempty- it seems that polygonPath initially contains values, but becomes empty after copying/resize above).

openmw-crash-2.log openmw-crash-3.log