Hello Dirk,

> >That should work right? Because it seems to cause another problem : The
> program
> >starts, gets to the setupSky() method, and then starts using up memory like
> >there's no tomorrow until my machine starts swapping like mad, and then
> either
> >the system kills it or I do. It never exits the setupSky() method.

I tried the program on the machine I have at school (supplied by the school for
my Masters work) and here, instead of swapping ad infinitum, the program
segfaults. Here's what gdb tells me :

[...]
[0002503/000] DBG:              Waverider::setupSky() called.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 114990000 (LWP 2508)]
0x0806bbe8 in osg::FieldContainerPtrBase::operator= (this=0x6c,
[EMAIL PROTECTED])
    at
/usagers/jegua/local_apps/vrjuggler-2.0.1-linux-fc4-i686-deps/include/OpenSG/OSGFieldContainerPtrImpl.inl:268
268         _containerSize = source._containerSize;

Stack trace:
#0  0x0806bbe8 in osg::FieldContainerPtrBase::operator= (this=0x6c,
[EMAIL PROTECTED])
    at
/usagers/jegua/local_apps/vrjuggler-2.0.1-linux-fc4-i686-deps/include/OpenSG/OSGFieldContainerPtrImpl.inl:268
#1  0x0806bdc6 in osg::FieldContainerPtr::operator= (this=0x6c,
[EMAIL PROTECTED])
    at
/usagers/jegua/local_apps/vrjuggler-2.0.1-linux-fc4-i686-deps/include/OpenSG/OSGFieldContainerPtrImpl.inl:547
#2  0x0806c1a6 in osg::AttachmentContainerPtr::operator= (this=0x6c,
[EMAIL PROTECTED])
    at
/usagers/jegua/local_apps/vrjuggler-2.0.1-linux-fc4-i686-deps/include/OpenSG/OSGAttachmentContainerPtrImpl.inl:153
#3  0x0806e1cc in osg::FCPtr<osg::AttachmentContainerPtr,
osg::Background>::operator= (this=0x6c,
    [EMAIL PROTECTED])
    at
/usagers/jegua/local_apps/vrjuggler-2.0.1-linux-fc4-i686-deps/include/OpenSG/OSGFieldContainerPtrImpl.inl:898
#4  0x0806e206 in osg::SField<osg::FCPtr<osg::AttachmentContainerPtr,
osg::Background>, 0>::setValue (this=0x68, [EMAIL PROTECTED])
    at
/usagers/jegua/local_apps/vrjuggler-2.0.1-linux-fc4-i686-deps/include/OpenSG/OSGSField.inl:134
#5  0x0806e224 in osg::ViewportBase::setBackground (this=0x0, [EMAIL PROTECTED])
    at
/usagers/jegua/local_apps/vrjuggler-2.0.1-linux-fc4-i686-deps/include/OpenSG/OSGViewportBase.inl:342
#6  0x080688e8 in Waverider::setupSky (this=0x8c3e3c8) at waverider.cpp:276
[...]

So it seems that my call to setBackground() eventually leads to a segfault. But
as far as I can see, the background creation code is almost identical to the
one in the example (only the image loading changes). Any idea what could cause
this?

I'll look into why it causes a segfault here and not at home later tonight. I
suspect I have some mixed lib versions on my home machine... Which may explain
the problem with shaders in the other thread too.

Thanks,

J-S
--
______________________________________________________
Jean-Sebastien Guay     [EMAIL PROTECTED]
                         http://whitestar02.webhop.org


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to