Robert, Thanks for the feedback. After I had posted my problem, I did find a previous thread of discussion that addressed a somewhat similar problem to what I've been seeing. It too was related to memory or a lack thereof. I can certainly look into it further to see if that is the problem.
On moving to OSG 3.0.1, I can try it and move on from there. I'm assuming that there is a version of VPB that is in lockstep to the 3.0.1 release? Thanks for your help. -Shayne -----Original Message----- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert Osfield Sent: Saturday, August 25, 2012 1:53 AM To: OpenSceneGraph Users Subject: Re: [osg-users] KdTree issue... 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 <shayne.tuel...@hill.af.mil> 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 > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph. > org > _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or g _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org