swordlegend / recastnavigation

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

OffMesh Connections with Temp Obstacles give a crash #211

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Video reproducing crash: (R345)
http://youtu.be/vhCFmwiHhcI

Original issue reported on code.google.com by execm...@gmail.com on 6 Jul 2012 at 7:42

GoogleCodeExporter commented 9 years ago
I'm unable to repro this case even if I replicate the scenario as in the video. 
Can you get call stack of the crash? Or if you place breakpoint to 
NavMeshTesterTool::recalc(), and step through the code, can you get the 
location of the crash?

Original comment by memono...@gmail.com on 6 Jul 2012 at 8:13

GoogleCodeExporter commented 9 years ago
Simply try to repeat this several times without closing demo, and it will 
crash, at least at me it crashes too, just like in video.

Original comment by bma.is...@gmail.com on 7 Jul 2012 at 7:23

GoogleCodeExporter commented 9 years ago
Crash on m_navQuery->findPath()
I am trying to debug.

Original comment by execm...@gmail.com on 7 Jul 2012 at 8:22

GoogleCodeExporter commented 9 years ago
m_navQuery->findPath()

for (unsigned int i = bestPoly->firstLink; i != DT_NULL_LINK; i = 
bestTile->links[i].next)
{
    // Crash here!
    dtPolyRef neighbourRef = bestTile->links[i].ref;

Original comment by execm...@gmail.com on 7 Jul 2012 at 8:35

GoogleCodeExporter commented 9 years ago
For crash start and end locations of OffMesh Connection must be in the same 
tile!

Original comment by execm...@gmail.com on 7 Jul 2012 at 12:17

GoogleCodeExporter commented 9 years ago
I record new one video with annotations. :)
http://youtu.be/kG4BCmgmBdE
Watch in 1080p.
Hope this helps.

Original comment by execm...@gmail.com on 7 Jul 2012 at 12:30

GoogleCodeExporter commented 9 years ago
Hmm... do you rebuild the navmesh after you have added off-mesh connections? 
Looks like you do not. Unless I rebuild the tiles, I will not get any off-mesh 
connections. I'll see if that is causing the problem.

Original comment by memono...@gmail.com on 7 Jul 2012 at 12:38

GoogleCodeExporter commented 9 years ago
Yes. I rebuild navmesh after I added off-mesh connections.

Original comment by execm...@gmail.com on 7 Jul 2012 at 12:41

GoogleCodeExporter commented 9 years ago
In my video I am doing this:

Select Sample "Temp Obstacle". Select Input Mesh: "nav_test.obj". Click "Build".
Step 1: Select "Create Off-Mesh Links". Create link and click "Build".
Step 2: Select "Create Temp Obstacles". Create obstacles and click "Remove All".
Step 3: Select "Test Navmesh". Select "Pathfind Straight". Find Path. Crash!

Original comment by execm...@gmail.com on 7 Jul 2012 at 12:50

GoogleCodeExporter commented 9 years ago
May be it is important. I build (Release) RecastDemo in Visual Studio 2010 
Ultimate. SDL version 1.2.14. Recast Navigation R345 (latest) - I don't change 
any source code, just Build!

Original comment by execm...@gmail.com on 7 Jul 2012 at 1:28

GoogleCodeExporter commented 9 years ago
I replicated the exact steps from the video, and it does not crash for me. I'm 
testing in OSX/xcode.
Does it crash for you in debug mode? That usually means that I have some 
uninitialized variable somewhere.

--mikko

Original comment by memono...@gmail.com on 7 Jul 2012 at 2:21

GoogleCodeExporter commented 9 years ago
I got crash in Debug and Release builds.

Original comment by execm...@gmail.com on 7 Jul 2012 at 3:01

GoogleCodeExporter commented 9 years ago
I have idea, Mikko. Instead of Test Navmesh tool, try Crowds tool. Create agent 
and send him over connection. No crash, but agent doesn't move, just stay and 
does nothing for me.

Original comment by execm...@gmail.com on 7 Jul 2012 at 5:31

GoogleCodeExporter commented 9 years ago

Original comment by memono...@gmail.com on 16 Sep 2013 at 7:09