[osg-users] (no subject)

Pecoraro, Alexander N alexander.n.pecoraro at lmco.com
Fri Jun 20 10:06:41 PDT 2008


The attached file should cause the bug to occur - it has an LOD node
that is a sibling of a PagedLOD node.

Alex

-----Original Message-----
From: osg-users-bounces at lists.openscenegraph.org
[mailto:osg-users-bounces at lists.openscenegraph.org] On Behalf Of Robert
Osfield
Sent: Thursday, June 19, 2008 7:02 AM
To: OpenSceneGraph Users
Subject: Re: [osg-users] (no subject)

Hi Alex,

This certainly looks like a bug, do you have a model that I could use to
recreate the problem so I can investigate.  I have done a quick review
of your changes, enough to know that the changes are a bit more complex
that I at first expected, which might suggest the particular crash point
isn't the only bug in this visitor and that you are also addressing a
wider problem.  Until I actually understand the issue being addressed
and how the changes resolve it I'll hang back from merging changes,
having a test file will really help in moving this along.

Cheers,
Robert.

On Fri, Jun 6, 2008 at 2:15 PM, Pecoraro, Alexander N
<alexander.n.pecoraro at lmco.com> wrote:
>
> I think there is a bug in the osgUtil::Optimizer::CombineLODVisitor - 
> at line 1530 of Optimizer.cpp it does a dynamic_cast on and osg::Node*

> to
> osg::LOD* and then at line 1563 it calls getChild(i) (even if
> getNumChildren() == 0) on the dynamically casted LOD node. This works 
> fine when the node is an LOD node, but when it is a PagedLOD node then

> it causes in invalid access to the _children vector. I attached a 
> screen shot to show what I mean.
>
> This situation would only ocurr when a PagedLOD node was a sibling of 
> an LOD node, which is probably why it hasn't been spotted before.
>
> Not sure if this is the accepted way to submit a fix, but anyway I 
> made a fix to the Optimizer code (version 2.4) and attached it to the
email.
>
> Alex
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.
> org
>
>
_______________________________________________
osg-users mailing list
osg-users at lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or
g
-------------- next part --------------
A non-text attachment was scrubbed...
Name: flight20_28_lod5_q0.osg
Type: application/octet-stream
Size: 500802 bytes
Desc: flight20_28_lod5_q0.osg
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080620/8c432667/attachment.obj>


More information about the osg-users mailing list