Hi Dirk,
i have tryed a lot to load the scene but it isn't
working..:(.

Well, my last step was to rebuild opensg and the
osgsceneviewer. Then i tryed to load the 
Doc/tutorial/progs/data/woman_low.wrl with the 
osgSceneViewer. The loading was o.k. but when i enable
the statistics and clicked the scene-button.. the
program crashs with "segmentation fault"!!
I have set OSG_LOG_LEVEL=debug; 
The debug-file is in the attachment.

here some backtrace outputs from the ddd... maybe it's
usefull:
GNU DDD 3.3.8 (i386-suse-linux-gnu), by Dorothea
LUsing host libthread_db library
"/lib/tls/libthread_db.so.1".
Core was generated by `./test_5 output.osb'.
Program terminated with signal 11, Segmentation fault.

warning: current_sos: Can't read pathname for load
map: Eingabe-/Ausgabefehler

Reading symbols from
/usr/local/lib/libOSGBase.so...done.
Loaded symbols for /usr/local/lib/libOSGBase.so
Reading symbols from
/usr/local/lib/libOSGSystem.so...done.
Loaded symbols for /usr/local/lib/libOSGSystem.so
Reading symbols from
/usr/local/lib/libOSGGenvis.so...done.
Loaded symbols for /usr/local/lib/libOSGGenvis.so
Reading symbols from
/usr/local/lib/libOSGWindowGLUT.so...done.
Loaded symbols for /usr/local/lib/libOSGWindowGLUT.so
Reading symbols from /usr/lib/libglut.so.3...done.
Loaded symbols for /usr/lib/libglut.so.3
Reading symbols from /usr/lib/libqt-mt.so.3...done.
Loaded symbols for /usr/lib/libqt-mt.so.3
Reading symbols from /usr/lib/libGLU.so.1...done.
Loaded symbols for /usr/lib/libGLU.so.1
Reading symbols from /usr/lib/libGL.so.1...done.
Loaded symbols for /usr/lib/libGL.so.1
Reading symbols from
/usr/X11R6/lib/libXmu.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXmu.so.6
Reading symbols from
/usr/X11R6/lib/libXext.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXext.so.6
Reading symbols from
/usr/X11R6/lib/libX11.so.6...done.
Loaded symbols for /usr/X11R6/lib/libX11.so.6
Reading symbols from /usr/lib/libstdc++.so.5...done.
Loaded symbols for /usr/lib/libstdc++.so.5
Reading symbols from /lib/tls/libm.so.6...done.
Loaded symbols for /lib/tls/libm.so.6
Reading symbols from /lib/libgcc_s.so.1...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/tls/libc.so.6...done.
Loaded symbols for /lib/tls/libc.so.6
Reading symbols from /lib/tls/libpthread.so.0...done.
Loaded symbols for /lib/tls/libpthread.so.0
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /usr/lib/libtiff.so.3...done.
Loaded symbols for /usr/lib/libtiff.so.3
Reading symbols from /usr/lib/libjpeg.so.62...done.
Loaded symbols for /usr/lib/libjpeg.so.62
Reading symbols from /usr/lib/libpng.so.3...done.
Loaded symbols for /usr/lib/libpng.so.3
Reading symbols from /lib/libz.so.1...done.
Loaded symbols for /lib/libz.so.1
Reading symbols from /usr/X11R6/lib/libXi.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXi.so.6
Reading symbols from /usr/X11R6/lib/libXt.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXt.so.6
Reading symbols from
/usr/X11R6/lib/libICE.so.6...done.
Loaded symbols for /usr/X11R6/lib/libICE.so.6
Reading symbols from /usr/X11R6/lib/libSM.so.6...done.
Loaded symbols for /usr/X11R6/lib/libSM.so.6
Reading symbols from
/usr/X11R6/lib/libXrender.so.1...done.
Loaded symbols for /usr/X11R6/lib/libXrender.so.1
Reading symbols from
/usr/X11R6/lib/libXrandr.so.2...done.
Loaded symbols for /usr/X11R6/lib/libXrandr.so.2
Reading symbols from
/usr/X11R6/lib/libXcursor.so.1...done.
Loaded symbols for /usr/X11R6/lib/libXcursor.so.1
Reading symbols from
/usr/X11R6/lib/libXft.so.2...done.
Loaded symbols for /usr/X11R6/lib/libXft.so.2
Reading symbols from /usr/lib/libfreetype.so.6...done.
Loaded symbols for /usr/lib/libfreetype.so.6
Reading symbols from
/usr/lib/libfontconfig.so.1...done.
Loaded symbols for /usr/lib/libfontconfig.so.1
Reading symbols from
/usr/X11R6/lib/libXxf86vm.so.1...done.
Loaded symbols for /usr/X11R6/lib/libXxf86vm.so.1
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /usr/lib/libexpat.so.0...done.
Loaded symbols for /usr/lib/libexpat.so.0
#0  0x42455ee7 in _int_malloc () from
/lib/tls/libc.so.6
(gdb) frame 1
#1  0x42457344 in malloc () from /lib/tls/libc.so.6
(gdb) frame 2
#2  0x421ceff8 in SendLargeImage () from
/usr/lib/libGL.so.1
(gdb) frame 7
#7  0x40df8070 in osg::Window::validateGLObject
(this=0x8125a90, id=1175) at
/home/tino/Download/OpenSG/Source/System/Window/OSGWindow.cpp:658
/home/tino/Download/OpenSG/Source/System/Window/OSGWindow.cpp:658:19796:beg:0x40df8070
(gdb) frame 23
#0  0x00000000 in ?? ()
(gdb) frame 22
#0  0x00000000 in ?? ()
(gdb) frame 23
#0  0x00000000 in ?? ()
(gdb) frame 22
#0  0x00000000 in ?? ()
(gdb) frame 21
#0  0x00000000 in ?? ()
(gdb) frame 12
#12 0x40dfb009 in osg::Window::render (this=0x8125a90,
action=0x81272e8) at
/home/tino/Download/OpenSG/Source/System/Window/OSGWindow.cpp:1443
/home/tino/Download/OpenSG/Source/System/Window/OSGWindow.cpp:1443:42891:beg:0x40dfb009
(gdb) frame 9
#9  0x40e13feb in
osg::SimpleStatisticsForeground::draw (this=0x815fda0,
action=0x81272e8, port=0x841f4e0) at
/home/tino/Download/OpenSG/Source/System/Statistics/OSGSimpleStatisticsForeground.cpp:261
/home/tino/Download/OpenSG/Source/System/Statistics/OSGSimpleStatisticsForeground.cpp:261:8807:beg:0x40e13feb
(gdb) frame 7
#7  0x40df8070 in osg::Window::validateGLObject
(this=0x8125a90, id=1175) at
/home/tino/Download/OpenSG/Source/System/Window/OSGWindow.cpp:658
/home/tino/Download/OpenSG/Source/System/Window/OSGWindow.cpp:658:19796:beg:0x40df8070
(gdb) frame 5
#5  0x40d8a2a7 in osg::TypedSOTraits2<void,
osg::CPtrRefCallArg<osg::FCPtr<osg::FCPtr<osg::AttachmentPtr,
osg::StateChunk>, osg::TextureChunk> >,
osg::ArgsCollector<osg::Window*>,
osg::ArgsCollector<unsigned int>
>::callObjectMethodVoid (pData1=0x8464b8c "",
pData2=0x8464bcc "", arg1=0x8125a90, arg2=9402) at
OSGTypedFunctors2.h:152
/home/tino/Download/OpenSG/Source/Base/Functors/OSGTypedFunctors2.h:152:6168:beg:0x40d8a2a7
(gdb) frame 4
#4  0x40d873f6 in osg::TextureChunk::handleGL
(this=0x8464800, win=0x8125a90, idstatus=9402) at
/home/tino/Download/OpenSG/Source/System/State/OSGTextureChunk.cpp:1434
/home/tino/Download/OpenSG/Source/System/State/OSGTextureChunk.cpp:1434:62815:beg:0x40d873f6
(gdb) frame 2
#2  0x421ceff8 in SendLargeImage () from
/usr/lib/libGL.so.1
(gdb) frame 3
#3  0x40d864da in osg::TextureChunk::handleTexture
(this=0x8464800, win=0x8125a90, id=1175,
bindtarget=3553, paramtarget=3553, imgtarget=3553,
mode=initialize, img={<osg::AttachmentContainerPtr> =
{<osg::FieldContainerPtr> =
{<osg::FieldContainerPtrBase> = {static
InvalidParentEPos = 65535, _containerSize = 204,
_uiParentEPos = 65535, _storeP = 0x8464658 "h/\034A",
static _pRefCountLock = 0x80838c8}, <No data fields>},
<No data fields>}, static
_OSGPointerPropReqDummyStructInstForBasePtrTypeT =
<optimized out>}, side=0) at
/home/tino/Download/OpenSG/Source/System/State/OSGTextureChunk.cpp:1158
/home/tino/Download/OpenSG/Source/System/State/OSGTextureChunk.cpp:1158:50759:beg:0x40d864da
(gdb) frame 2
#2  0x421ceff8 in SendLargeImage () from
/usr/lib/libGL.so.1
(gdb) frame 3
#3  0x40d864da in osg::TextureChunk::handleTexture
(this=0x8464800, win=0x8125a90, id=1175,
bindtarget=3553, paramtarget=3553, imgtarget=3553,
mode=initialize, img={<osg::AttachmentContainerPtr> =
{<osg::FieldContainerPtr> =
{<osg::FieldContainerPtrBase> = {static
InvalidParentEPos = 65535, _containerSize = 204,
_uiParentEPos = 65535, _storeP = 0x8464658 "h/\034A",
static _pRefCountLock = 0x80838c8}, <No data fields>},
<No data fields>}, static
_OSGPointerPropReqDummyStructInstForBasePtrTypeT =
<optimized out>}, side=0) at
/home/tino/Download/OpenSG/Source/System/State/OSGTextureChunk.cpp:1158
/home/tino/Download/OpenSG/Source/System/State/OSGTextureChunk.cpp:1158:50759:beg:0x40d864da
(gdb) frame 3
#3  0x40d864da in osg::TextureChunk::handleTexture
(this=0x8464800, win=0x8125a90, id=1175,
bindtarget=3553, paramtarget=3553, imgtarget=3553,
mode=initialize, img={<osg::AttachmentContainerPtr> =
{<osg::FieldContainerPtr> =
{<osg::FieldContainerPtrBase> = {static
InvalidParentEPos = 65535, _containerSize = 204,
_uiParentEPos = 65535, _storeP = 0x8464658 "h/\034A",
static _pRefCountLock = 0x80838c8}, <No data fields>},
<No data fields>}, static
_OSGPointerPropReqDummyStructInstForBasePtrTypeT =
<optimized out>}, side=0) at
/home/tino/Download/OpenSG/Source/System/State/OSGTextureChunk.cpp:1158
/home/tino/Download/OpenSG/Source/System/State/OSGTextureChunk.cpp:1158:50759:beg:0x40d864da
(gdb) frame 3
#3  0x40d864da in osg::TextureChunk::handleTexture
(this=0x8464800, win=0x8125a90, id=1175,
bindtarget=3553, paramtarget=3553, imgtarget=3553,
mode=initialize, img={<osg::AttachmentContainerPtr> =
{<osg::FieldContainerPtr> =
{<osg::FieldContainerPtrBase> = {static
InvalidParentEPos = 65535, _containerSize = 204,
_uiParentEPos = 65535, _storeP = 0x8464658 "h/\034A",
static _pRefCountLock = 0x80838c8}, <No data fields>},
<No data fields>}, static
_OSGPointerPropReqDummyStructInstForBasePtrTypeT =
<optimized out>}, side=0) at
/home/tino/Download/OpenSG/Source/System/State/OSGTextureChunk.cpp:1158
/home/tino/Download/OpenSG/Source/System/State/OSGTextureChunk.cpp:1158:50759:beg:0x40d864da
(gdb) frame 4
#4  0x40d873f6 in osg::TextureChunk::handleGL
(this=0x8464800, win=0x8125a90, idstatus=9402) at
/home/tino/Download/OpenSG/Source/System/State/OSGTextureChunk.cpp:1434
/home/tino/Download/OpenSG/Source/System/State/OSGTextureChunk.cpp:1434:62815:beg:0x40d873f6
(gdb) frame 23
#0  0x00000000 in ?? ()
(gdb) frame 23
#0  0x00000000 in ?? ()
(gdb) frame 1
#1  0x42457344 in malloc () from /lib/tls/libc.so.6
(gdb) frame 1
#1  0x42457344 in malloc () from /lib/tls/libc.so.6
(gdb) frame 1
#1  0x42457344 in malloc () from /lib/tls/libc.so.6
(gdb) frame 2
#2  0x421ceff8 in SendLargeImage () from
/usr/lib/libGL.so.1
(gdb) frame 3
#3  0x40d864da in osg::TextureChunk::handleTexture
(this=0x8464800, win=0x8125a90, id=1175,
bindtarget=3553, paramtarget=3553, imgtarget=3553,
mode=initialize, img={<osg::AttachmentContainerPtr> =
{<osg::FieldContainerPtr> =
{<osg::FieldContainerPtrBase> = {static
InvalidParentEPos = 65535, _containerSize = 204,
_uiParentEPos = 65535, _storeP = 0x8464658 "h/\034A",
static _pRefCountLock = 0x80838c8}, <No data fields>},
<No data fields>}, static
_OSGPointerPropReqDummyStructInstForBasePtrTypeT =
<optimized out>}, side=0) at
/home/tino/Download/OpenSG/Source/System/State/OSGTextureChunk.cpp:1158
/home/tino/Download/OpenSG/Source/System/State/OSGTextureChunk.cpp:1158:50759:beg:0x40d864da
(gdb) frame 4
#4  0x40d873f6 in osg::TextureChunk::handleGL
(this=0x8464800, win=0x8125a90, idstatus=9402) at
/home/tino/Download/OpenSG/Source/System/State/OSGTextureChunk.cpp:1434
/home/tino/Download/OpenSG/Source/System/State/OSGTextureChunk.cpp:1434:62815:beg:0x40d873f6
(gdb) frame 5
#5  0x40d8a2a7 in osg::TypedSOTraits2<void,
osg::CPtrRefCallArg<osg::FCPtr<osg::FCPtr<osg::AttachmentPtr,
osg::StateChunk>, osg::TextureChunk> >,
osg::ArgsCollector<osg::Window*>,
osg::ArgsCollector<unsigned int>
>::callObjectMethodVoid (pData1=0x8464b8c "",
pData2=0x8464bcc "", arg1=0x8125a90, arg2=9402) at
OSGTypedFunctors2.h:152
/home/tino/Download/OpenSG/Source/Base/Functors/OSGTypedFunctors2.h:152:6168:beg:0x40d8a2a7
(gdb) frame 6
#6  0x40d8a1d7 in
osg::TypedStoredObjectVoidFunctor2<osg::CPtrRefCallArg<osg::FCPtr<osg::FCPtr<osg::AttachmentPtr,
osg::StateChunk>, osg::TextureChunk> >,
osg::PtrCallArg<osg::Window>,
osg::ArgsCollector<unsigned int>,
osg::DefaultFunctorSizeTraits>::call (this=0x8464b88,
obj=0x8125a90, oArg1=9402) at
OSGTypedFunctors2.inl:629
/home/tino/Download/OpenSG/Source/Base/Functors/OSGTypedFunctors2.inl:629:17106:beg:0x40d8a1d7
(gdb) frame 4
#4  0x40d873f6 in osg::TextureChunk::handleGL
(this=0x8464800, win=0x8125a90, idstatus=9402) at
/home/tino/Download/OpenSG/Source/System/State/OSGTextureChunk.cpp:1434
/home/tino/Download/OpenSG/Source/System/State/OSGTextureChunk.cpp:1434:62815:beg:0x40d873f6
(gdb) frame 3
#3  0x40d864da in osg::TextureChunk::handleTexture
(this=0x8464800, win=0x8125a90, id=1175,
bindtarget=3553, paramtarget=3553, imgtarget=3553,
mode=initialize, img={<osg::AttachmentContainerPtr> =
{<osg::FieldContainerPtr> =
{<osg::FieldContainerPtrBase> = {static
InvalidParentEPos = 65535, _containerSize = 204,
_uiParentEPos = 65535, _storeP = 0x8464658 "h/\034A",
static _pRefCountLock = 0x80838c8}, <No data fields>},
<No data fields>}, static
_OSGPointerPropReqDummyStructInstForBasePtrTypeT =
<optimized out>}, side=0) at
/home/tino/Download/OpenSG/Source/System/State/OSGTextureChunk.cpp:1158
/home/tino/Download/OpenSG/Source/System/State/OSGTextureChunk.cpp:1158:50759:beg:0x40d864da
(gdb) frame 14
#14 0x0804c64e in display () at 10loading.cpp:211
/home/tino/projects/opensgTest/test_5/10loading.cpp:211:5362:beg:0x804c64e
(gdb) frame 20
#0  0x00000000 in ?? ()
(gdb) frame 4
#4  0x40d873f6 in osg::TextureChunk::handleGL
(this=0x8464800, win=0x8125a90, idstatus=9402) at
/home/tino/Download/OpenSG/Source/System/State/OSGTextureChunk.cpp:1434
/home/tino/Download/OpenSG/Source/System/State/OSGTextureChunk.cpp:1434:62815:beg:0x40d873f6
(gdb) frame 3
#3  0x40d864da in osg::TextureChunk::handleTexture
(this=0x8464800, win=0x8125a90, id=1175,
bindtarget=3553, paramtarget=3553, imgtarget=3553,
mode=initialize, img={<osg::AttachmentContainerPtr> =
{<osg::FieldContainerPtr> =
{<osg::FieldContainerPtrBase> = {static
InvalidParentEPos = 65535, _containerSize = 204,
_uiParentEPos = 65535, _storeP = 0x8464658 "h/\034A",
static _pRefCountLock = 0x80838c8}, <No data fields>},
<No data fields>}, static
_OSGPointerPropReqDummyStructInstForBasePtrTypeT =
<optimized out>}, side=0) at
/home/tino/Download/OpenSG/Source/System/State/OSGTextureChunk.cpp:1158
/home/tino/Download/OpenSG/Source/System/State/OSGTextureChunk.cpp:1158:50759:beg:0x40d864da
(gdb) frame 23
#0  0x00000000 in ?? ()
(gdb) frame 23
#0  0x00000000 in ?? ()
(gdb) frame 0
#0  0x42455ee7 in _int_malloc () from
/lib/tls/libc.so.6
(gdb) frame 1
#1  0x42457344 in malloc () from /lib/tls/libc.so.6
(gdb) frame 4
#4  0x40d873f6 in osg::TextureChunk::handleGL
(this=0x8464800, win=0x8125a90, idstatus=9402) at
/home/tino/Download/OpenSG/Source/System/State/OSGTextureChunk.cpp:1434
/home/tino/Download/OpenSG/Source/System/State/OSGTextureChunk.cpp:1434:62815:beg:0x40d873f6
(gdb) 




 --- Dirk Reiners <[EMAIL PROTECTED]> schrieb: 
> 
>       Hi Tino,
> 
> On Thu, 2005-01-20 at 09:01, Tino S. wrote:
> > Hi Dirk,
> > thanks for the hints.
> > Today, i got cvs branch of opensg and rebuild all
> > (opt-version).
> > Than i inserted in the Turorial/10loading.cpp your
> > hints like this
> > 
> > #include <OpenSG/OSGGraphOpSeq.h>
> > #include <OpenSG/OSGMergeGraphOp.h>
> > ...
> > GraphOpSeq *graphop = new GraphOpSeq;
> > graphop->addGraphOp(new MergeGraphOp);
> > scene = SceneFileHandler::the().read(argv[1],
> > graphop);
> > 
> > removed the NamedNodeFinder and tryed to load the
> > robot-scene.
> > But it isn't working on my computer
> > ("Speicherzugriffsfehler").
> > 
> > system  : Suse 9.1, 512 MB Ram, AMD XP 1700+
> > compiler: g++ 3.3.3
> > Is the RAM not sufficient? Should i used the
> > debug-version?
> 
> Speicherzugriffsfehler is the equivalent of
> Segmentation Fault and just
> means the program crashed. Which is a little
> surprising because it works
> fine for me. I wouldn't use the debug version,
> already with opt it takes
> a pretty long time (profiling it now).
> 
> It might be an out of memory problem, as the
> conversion eats up about
> 600M. If you haven't turned down the cube resolution
> in
> OSGVRMLNodeDescs.cpp (line 2376, replace the 2,2,2
> in makeBoxGeo with
> 1,1,1) you'll probably need a lot more memory, that
> might be enough to
> kill it. 
> 
> > What can do to see this scene with opensg ? I need
> > this for collision-detection.
> 
> Do you want to do the collision detection in OpenSG
> or do you just want
> to look at it? Can you give me a little more
> background?

i am working for small company -that make software for
robot control. possibly we check out opensg for
adoption in future.

thanks for further hints to solve my problem.

nice weekend
tino


        

        
                
___________________________________________________________

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


        

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

Attachment: debug.txt.bz2
Description: debug.txt.bz2

Reply via email to