swordlegend / recastnavigation

Automatically exported from code.google.com/p/recastnavigation
zlib License
0 stars 0 forks source link

Crash generating tile mesh with tile size >= 80 #98

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This is happening for me since the rcAlloc stuff was added, I'm at r181.

I'm building on Linux with -g and optimisation off.

What steps will reproduce the problem?
1. Select tile mesh
2. Load nav_test.obj
3. Build

Crashes with the following output:

processing: 0,0
processing: 1,0
processing: 2,0

*** glibc detected *** /RecastDemo: malloc(): memory corruption: 
0x0000000000ab94a0 ***

RecastDemo[0x450cd7]
RecastDemo(_Z7dtAlloci11dtAllocHint+0x21)[0x450d54]
RecastDemo(_Z19dtCreateNavMeshDataP21dtNavMeshCreateParamsPPhPi+0x6c9)[0x451e2d]
RecastDemo(_ZN15Sample_TileMesh13buildTileMeshEiiPKfS1_Ri+0x164d)[0x438f03]
RecastDemo(_ZN15Sample_TileMesh13buildAllTilesEv+0x217)[0x4376b7]
RecastDemo(_ZN15Sample_TileMesh11handleBuildEv+0x1b9)[0x436f63]
RecastDemo(main+0x1aa9)[0x41e445]

I don't think it's necessarily to do with dtCreateNavMeshData as the crash 
moves around when I changed the tile size.

Original issue reported on code.google.com by cameron....@gmail.com on 11 Jul 2010 at 6:45

GoogleCodeExporter commented 9 years ago
I found the offending line:

http://code.google.com/p/recastnavigation/source/browse/trunk/Recast/Source/Reca
stMeshDetail.cpp#1091

missing sizeof(float)

Original comment by cameron....@gmail.com on 11 Jul 2010 at 9:39

GoogleCodeExporter commented 9 years ago
Thank you! FIxed now in R183. Let's hope that was the last one <fingers 
crossed> :)

Original comment by memono...@gmail.com on 11 Jul 2010 at 10:21

GoogleCodeExporter commented 9 years ago
Hopefully, I tried a couple of memory debugging tools but my ATI video card 
driver seemed to drive them crazy, makes me wonder about Linux ATI drivers! In 
the end though, duma (http://duma.sf.net) found that one before ATI got the 
better of it.

Original comment by cameron....@gmail.com on 11 Jul 2010 at 11:07