HI Shayne, The stack trace suggests an allocation issue when building a KdTree leaf. Any chance you are running out of memory?
As a general comment I would suggest that you try OSG-3.0.1 rather than a old 2.9.x developer release as there is chance that bug fixes will have fixed bugs that are relevant to you. If moving to OSG-3.0.1 doesn't fix the issue then I would work on isolate which tile causes the KdTree builder to crash, to do this I'd write out each tile to a .osg(t) file prior to doing the KdTree build so if it crashes you have a record of the problem tile and can then test it stand alone. Robert. On 25 August 2012 00:16, Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC <[email protected]> wrote: > All, > > > > I have a terrain database built with VPB that I’m currently doing visibility > tests on based on ten different locations on the terrain. The tests are > using the osgSim::LineOfSight class to determine intersection with the > terrain between each location. Things appear to run fine until I use KdTrees > to speed up the intersection testing (which is quite slow) with the terrain. > I use the call > > > > osgDB::Registry::instance()->setBuildKdTreesHint(osgDB::ReaderWriter::Options::BUILD_KDTREES); > > > > to do this. Unfortunately doing this causes the application to crash when > doing the intersection tests. I’ve attached a debug stack trace after the > crash has occurred (KdTreeCrash.txt). I’ve also turned on “VERBOSE_OUTPUT” > in the KdTree.cpp file to gather more information on why this is happening > (KdTreeOut.txt). I’m not familiar enough with the pertinent code to > determine why KdTrees is causing the application to blow up. > > > > I’m running with OSG 2.9.11 on Windows 7, Visual Studio 2008. > > > > Any ideas on what’s going on? Is there a limitation on what KdTrees will > handle? > > > > Thanks, > > -Shayne > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

