recastnavigation: Recurring System.AccessViolationException

I’m having an issue with this function: rcVsub(Single* dest, Single* v1, Single* v2) dans

Wether I’m 100% ram or just < 30%, it will sometimes throw a System.AccessViolationException, and it will always be inside this specific function.

Also, on a specific tile generation, I’m able to reproduce this issue 100% of the time, even if I just rebooot my PC and my RAM is empty.

v1/v2 unable to read memory

sometimes only v1, sometimes only v2, sometimes both.

Any idea ?

 à rcVsub(Single* dest, Single* v1, Single* v2) dans e:\développement\thenoobbot\thenoobbot\meshreader\recastlayer\recast\recast.h:ligne 649
   à ?A0xc7c409e5.calcTriNormal(Single* v0, Single* v1, Single* v2, Single* norm) dans e:\développement\thenoobbot\thenoobbot\meshreader\recastlayer\recast\recast.cpp:ligne 235
   à rcClearUnwalkableTriangles(rcContext* ctx, Single walkableSlopeAngle, Single* verts, Int32 nv, Int32* tris, Int32 nt, Byte* areas) dans e:\développement\thenoobbot\thenoobbot\meshreader\recastlayer\recast\recast.cpp:ligne 293
   à RecastLayer.RecastContext.ClearUnwalkableTriangles(Single walkableSlopeAngle, Single[]& vertices, Int32[]& tris, Byte[] areas) dans e:\développement\thenoobbot\thenoobbot\meshreader\recastlayer\recastlayer.cpp:ligne 56
   à meshBuilder.TileBuilder.Build(Int32 i, Int32 j) dans E:\Développement\TheNoobBot\TheNoobBot\meshReader\meshBuilder\TileBuilder.cs:ligne 242
   à meshBuilder.ContinentBuilder.Build() dans E:\Développement\TheNoobBot\TheNoobBot\meshReader\meshBuilder\ContinentBuilder.cs:ligne 257
   à meshBuilderGui.Interface.RunBuild() dans E:\Développement\TheNoobBot\TheNoobBot\meshReader\meshBuilderGui\Interface.cs:ligne 154
   à System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   à System.Threading.ThreadHelper.ThreadStart()

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 20 (6 by maintainers)

Most upvoted comments

Thanks for pointing me out to the issue, I found how to resolve my problem.

I had bad file reading leading me to have shifted data, making the first triangle of each file the max value of a ushort, that’s why it was out of bound (no vertex[65536])