(no subject)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

(no subject)

Brennan Peter Sellner
Has anyone successfully used textures on their VRML models within
OpenRAVE?  I had to install libsimage (libsimage20 in Ubuntu) to get this
far, but I'm getting a segfault within SbImage when it tries to load the
texture image during startup.  I've tried different image formats (png,
jpeg, tiff, gif) to no avail.  It's definitely finding the image (changing
the image path within the VRML file generates an obviously "can't-find-it"
segfault), but failing to load it.

The relevant fragment of my XML file is:

<Body name="LHR-spin" type="dynamic">
    <Geom type="trimesh">
      <Data>data/datalink/VRML/workcell2/LHR/LHR-spin.wrl 0.0254</Data>
      <Render>data/datalink/VRML/workcell2/LHR/LHR-spin.wrl 0.0254</Render>
    </Geom>
</Body>

And the VRML snippet from LHR-spin.wrl that loads the image:

    appearance Appearance {
     texture ImageTexture {
      url [
       "data/datalink/VRML/workcell2/stripes.png"
      ]
     }

I'm running r305 on Ubuntu 8.04 (Hardy Heron).  The backtrace from the
crash is below.  This isn't truly critical, but it would be nice.

Thanks,

-Brennan

---------------------------------------------------------------

#0  0xb7a3b700 in SbImage::getValue () from /usr/lib/libCoin.so.40
#1  0xb7a97c72 in SoGLLazyElement::sendGLImage () from /usr/lib/libCoin.so.40
#2  0xb7a99498 in SoGLLazyElement::send () from /usr/lib/libCoin.so.40
#3  0xb7a5d56a in SoMaterialBundle::setupElements ()   from /usr/lib/libCoin.so.40
#4  0xb7a5d595 in SoMaterialBundle::sendFirst () from /usr/lib/libCoin.so.40
#5  0xb7db683e in SoVRMLIndexedFaceSet::GLRender () from /usr/lib/libCoin.so.40
#6  0xb7dcfecb in SoVRMLShape::GLRender () from /usr/lib/libCoin.so.40
#7  0xb7c29b88 in SoNode::GLRenderBelowPath () from /usr/lib/libCoin.so.40
#8  0xb7db0fbb in SoVRMLGroup::GLRenderBelowPath () from /usr/lib/libCoin.so.40
#9  0xb7de1fbd in SoVRMLTransform::GLRenderBelowPath ()   from /usr/lib/libCoin.so.40
#10 0xb7c42c4b in SoSeparator::GLRenderBelowPath () from /usr/lib/libCoin.so.40
#11 0xb7c42c4b in SoSeparator::GLRenderBelowPath () from /usr/lib/libCoin.so.40
#12 0xb7c41ea9 in SoSeparator::GLRender () from /usr/lib/libCoin.so.40
#13 0xb7c2aa9a in SoNode::GLRenderS () from /usr/lib/libCoin.so.40
#14 0xb79fa3a6 in SoAction::traverse () from /usr/lib/libCoin.so.40
#15 0xb7b6616d in SoChildList::traverse () from /usr/lib/libCoin.so.40
#16 0xb7b663aa in SoChildList::traverse () from /usr/lib/libCoin.so.40
#17 0xb7c48a37 in SoSwitch::doAction () from /usr/lib/libCoin.so.40
#18 0xb7c47a98 in SoSwitch::GLRender () from /usr/lib/libCoin.so.40
#19 0xb7c29b88 in SoNode::GLRenderBelowPath () from /usr/lib/libCoin.so.40
#20 0xb7c42c4b in SoSeparator::GLRenderBelowPath () from /usr/lib/libCoin.so.40
#21 0xb7c42c4b in SoSeparator::GLRenderBelowPath () from /usr/lib/libCoin.so.40
#22 0xb7c42c4b in SoSeparator::GLRenderBelowPath () from /usr/lib/libCoin.so.40
#23 0xb7c42c4b in SoSeparator::GLRenderBelowPath () from /usr/lib/libCoin.so.40
#24 0xb7c41ea9 in SoSeparator::GLRender () from /usr/lib/libCoin.so.40
#25 0xb7c2aa9a in SoNode::GLRenderS () from /usr/lib/libCoin.so.40
#26 0xb79fa3a6 in SoAction::traverse () from /usr/lib/libCoin.so.40
#27 0xb79fa3e4 in SoAction::beginTraversal () from /usr/lib/libCoin.so.40
#28 0xb7a03415 in SoGLRenderAction::beginTraversal ()   from /usr/lib/libCoin.so.40
#29 0xb7a02cc1 in SoGLRenderActionP::renderSingle ()   from /usr/lib/libCoin.so.40
#30 0xb7a0320c in SoGLRenderActionP::render () from /usr/lib/libCoin.so.40
#31 0xb7a032fb in SoGLRenderAction::beginTraversal ()   from /usr/lib/libCoin.so.40
#32 0xb79fa5d5 in SoAction::apply () from /usr/lib/libCoin.so.40
#33 0xb7bcbeb1 in SoSceneManager::render () from /usr/lib/libCoin.so.40
#34 0xb7bcb7e5 in SoSceneManager::render () from /usr/lib/libCoin.so.40
#35 0x081304b1 in SoQtViewerP::reallyRedraw (this=0x82fd178, clearcol=1,    clearz=1) at ../../../../src/Inventor/Qt/viewers/SoQtViewer.cpp:651
#36 0x08134fb9 in SoQtViewer::actualRedraw (this=0x8293a20)    at ../../../../src/Inventor/Qt/viewers/SoQtViewer.cpp:3470
#37 0x081390f1 in SoQtExaminerViewer::actualRedraw (this=0x8293a20)    at ../../../../src/Inventor/Qt/viewers/SoQtExaminerViewer.cpp:716
#38 0x08103928 in SoQtRenderArea::redraw (this=0x8293a20)    at ../../../src/Inventor/Qt/SoQtRenderArea.cpp:1663
#39 0x08103371 in SoQtRenderArea::render (this=0xe449df0)    at ../../../src/Inventor/Qt/SoQtRenderArea.cpp:1397
#40 0x08101d4e in SoQtRenderAreaP::renderCB (closure=0x8293a20,    manager=0x82fd178) at ../../../src/Inventor/Qt/SoQtRenderArea.cpp:717
#41 0xb7bcacee in SoSceneManager::redraw () from /usr/lib/libCoin.so.40
#42 0xb7bcbfd6 in SoSceneManagerP::redrawshotTriggeredCB ()   from /usr/lib/libCoin.so.40
#43 0xb7cd313c in SoSensor::trigger () from /usr/lib/libCoin.so.40
#44 0xb7cd1e34 in SoDelayQueueSensor::trigger () from /usr/lib/libCoin.so.40
#45 0xb7cd4be7 in SoSensorManager::processDelayQueue ()   from /usr/lib/libCoin.so.40
#46 0xb7cd5785 in ?? () from /usr/lib/libCoin.so.40
#47 0xb7cd313c in SoSensor::trigger () from /usr/lib/libCoin.so.40
#48 0xb7cd5c84 in SoTimerQueueSensor::trigger () from /usr/lib/libCoin.so.40
#49 0xb7cd39c9 in SoSensorManager::processTimerQueue ()   from /usr/lib/libCoin.so.40
#50 0x080fb873 in SoQtP::slot_idleSensor (this=0x8238f70) at SoQt.cpp:487
#51 0x080fb4f7 in SoQtP::qt_metacall (this=0x8238f70, _c=InvokeMetaMethod,    _id=1, _a=0xe449df0) at ../../../src/Inventor/Qt/moc_SoQtP.icc:70
#52 0xb5dba4f9 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#53 0xb5dbabc2 in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#54 0xb5df7e07 in QTimer::timeout () from /usr/lib/libQtCore.so.4
#55 0xb5dc167e in QTimer::timerEvent () from /usr/lib/libQtCore.so.4
#56 0xb5db5c9a in QObject::event () from /usr/lib/libQtCore.so.4
#57 0xb6e0cc0c in QApplicationPrivate::notify_helper ()   from /usr/lib/libQtGui.so.4
#58 0xb6e117a9 in QApplication::notify () from /usr/lib/libQtGui.so.4
#59 0xb5da56a9 in QCoreApplication::notifyInternal ()   from /usr/lib/libQtCore.so.4
#60 0xb5dd31a1 in ?? () from /usr/lib/libQtCore.so.4
#61 0xb5dd0a40 in ?? () from /usr/lib/libQtCore.so.4
#62 0xb4dccdd6 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#63 0xb4dd0193 in ?? () from /usr/lib/libglib-2.0.so.0
#64 0xb4dd074e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#65 0xb5dd0f98 in QEventDispatcherGlib::processEvents ()   from /usr/lib/libQtCore.so.4
#66 0xb6ea01b5 in ?? () from /usr/lib/libQtGui.so.4
#67 0xb5da492d in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#68 0xb5da4abd in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#69 0xb5da6d3d in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#70 0xb6e0c567 in QApplication::exec () from /usr/lib/libQtGui.so.4
#71 0x080e907d in QtCoinViewer::main (this=0x820abd8) at qtcoinviewer.cpp:1309
#72 0x08065535 in MainOpenRAVEThread (p=0x0) at main.cpp:367
#73 0xb76774fb in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#74 0xb5f75e5e in clone () from /lib/tls/i686/cmov/libc.so.6





Loading...