Hi Dirk,

i used the current CVS checkout to compile OpenSG
again.
After that i tryed to read and save the scene to
OSB-format. No problems!!!

then i tryed to simplify the scene with the mergeop.
There was an segmentation fault. Can you take a look
at the MergeGrapOP, please?

Here the basic code:

scene = SceneFileHandler::the().read( argv[1] );
        
        std::cout << "reading ok." << std::endl;
        
        SceneFileHandler::the().write(scene, "output1.osb");
        std::cout << "file written" << std::endl;
        
        GraphOpSeq *graphop = new GraphOpSeq;
        graphop->addGraphOp(new MergeGraphOp);

        bool ok = graphop->run( scene ); // here is the
error..

and here gdb's backtrace...

(gdb) bt
#0  0x40680c3f in osg::Geometry::CompareMaterials ()
from /usr/local/lib/libOSGSystem.so
#1  0x40680d46 in osg::Geometry::MergeIndex () from
/usr/local/lib/libOSGSystem.so
#2  0x4068101c in osg::Geometry::isMergeable () from
/usr/local/lib/libOSGSystem.so
#3  0x4090a6d7 in osg::MergeGraphOp::processGeometries
() from /usr/local/lib/libOSGSystem.so
#4  0x4090c356 in osg::MergeGraphOp::traverseLeave ()
from /usr/local/lib/libOSGSystem.so
#5  0x40905132 in
osg::TypedStoredObjectFunctor2<osg::Action::ResultE,
osg::PtrCallArg<osg::GraphOp>,
osg::CPtrRefCallArg<osg::NodePtr>,
osg::ArgsCollector<osg::Action::ResultE>,
osg::DefaultFunctorSizeTraits>::call () from
/usr/local/lib/libOSGSystem.so
#6  0x405a271a in osg::traverse () from
/usr/local/lib/libOSGSystem.so
#7  0x405a2668 in osg::traverse () from
/usr/local/lib/libOSGSystem.so
#8  0x405a2780 in osg::traverse () from
/usr/local/lib/libOSGSystem.so
#9  0x405a2668 in osg::traverse () from
/usr/local/lib/libOSGSystem.so
#10 0x405a2780 in osg::traverse () from
/usr/local/lib/libOSGSystem.so
#11 0x405a2668 in osg::traverse () from
/usr/local/lib/libOSGSystem.so
#12 0x405a2780 in osg::traverse () from
/usr/local/lib/libOSGSystem.so
#13 0x405a2668 in osg::traverse () from
/usr/local/lib/libOSGSystem.so
#14 0x405a2780 in osg::traverse () from
/usr/local/lib/libOSGSystem.so
#15 0x405a2668 in osg::traverse () from
/usr/local/lib/libOSGSystem.so
#16 0x405a2780 in osg::traverse () from
/usr/local/lib/libOSGSystem.so
#17 0x409050a8 in osg::GraphOp::traverse () from
/usr/local/lib/libOSGSystem.so
#18 0x4090c808 in osg::MergeGraphOp::mergeOnce () from
/usr/local/lib/libOSGSystem.so
#19 0x4090caa0 in osg::MergeGraphOp::traverse () from
/usr/local/lib/libOSGSystem.so
#20 0x4090769e in osg::GraphOpSeq::run () from
/usr/local/lib/libOSGSystem.so
#21 0x0804cb02 in main (argc=2, argv=0xbffff184) at
10loading.cpp:195
(gdb)

if you interested, i can send the debug-output to.

regards, tino

P.S. The problem with the statistics in the
sceneviewer are gone. it works now.


        

        
                
___________________________________________________________ 
Gesendet von Yahoo! Mail - Jetzt mit 250MB Speicher kostenlos - Hier anmelden: 
http://mail.yahoo.de


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to