Hi,

I just upgraded from OSG 2.9.8 to 3.1.1 and my project now crashes when loading 
.osg models. The error occurs in 
DeprecatedDotOsgWrapperManager::addDotOsgWrapper (see the backtrace below).

The funny thing is that OSG examples work fine. It's just something to do with 
my project settings. I'm using a custom XCode project, so it's hard to post 
details here, but can anyone suggest where to look? Am I forgetting to link 
with something that the deprecated wrappers would need?

Everything else works well. In fact, if I enable more verbose notifications, I 
see that the osgdb_osg plugin loads successfully:

Code:
FindFileInPath() : USING /usr/local/lib/osgPlugins-3.1.1/osgdb_osg.so
Opened DynamicLibrary osgPlugins-3.1.1/osgdb_osg.so



It looks like that plugin requests to load the osgdb_deprecated_osg plugin, and 
then I get the crash immediately after this is printed:

Code:
FindFileInPath() : USING /usr/local/lib/osgPlugins3.1.1/osgdb_deprecated_osg.so
CullSettings::readEnvironmentalVariables()
CullSettings::readEnvironmentalVariables()



Image plugins (eg, jpeg work fine).

Any ideas?

Here's the interesting part of the backtrace:

Code:

#0  0x00007fff92042b8c in __dynamic_cast ()
#1  0x00000001000f2573 in osg::NodeCallback::isSameKindAs (this=0x106bbc7b0, 
obj=0x106bbc938) at NodeCallback:36
#2  0x00000001000f2501 in virtual thunk to 
osg::NodeCallback::isSameKindAs(osg::Object const*) const () at stl_vector.h:271
#3  0x00000001020c875c in 
osgDB::DeprecatedDotOsgWrapperManager::addDotOsgWrapper ()
#4  0x00000001020c85bd in 
osgDB::RegisterDotOsgWrapperProxy::RegisterDotOsgWrapperProxy ()
#5  0x00000001020c84a9 in 
osgDB::RegisterDotOsgWrapperProxy::RegisterDotOsgWrapperProxy ()
#6  0x0000000108278d3e in __cxx_global_var_init9 ()
#7  0x0000000108278e6c in global constructors keyed to a ()
#8  0x00007fff5fc0fda6 in 
__dyld__ZN16ImageLoaderMachO18doModInitFunctionsERKN11ImageLoader11LinkContextE 
()
#9  0x00007fff5fc0faf2 in 
__dyld__ZN16ImageLoaderMachO16doInitializationERKN11ImageLoader11LinkContextE ()
#10 0x00007fff5fc0d2e4 in 
__dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextEjRNS_21InitializerTimingListE
 ()
#11 0x00007fff5fc0e0b7 in 
__dyld__ZN11ImageLoader15runInitializersERKNS_11LinkContextERNS_21InitializerTimingListE
 ()
#12 0x00007fff5fc031b9 in __dyld__ZN4dyld15runInitializersEP11ImageLoader ()
#13 0x00007fff5fc09657 in __dyld_dlopen ()
#14 0x00007fff8a0d495b in dlopen ()
#15 0x00000001020d1dde in osgDB::DynamicLibrary::getLibraryHandle ()
#16 0x00000001020d1aef in osgDB::DynamicLibrary::loadLibrary ()
#17 0x0000000102113002 in osgDB::Registry::loadLibrary ()
#18 0x0000000106f07247 in OSGReaderWriter::loadWrappers ()
#19 0x0000000106f06524 in OSGReaderWriter::readNode ()
#20 0x0000000106f05749 in OSGReaderWriter::readNode ()
#21 0x0000000102129cb0 in osgDB::Registry::ReadNodeFunctor::doRead ()
#22 0x00000001021176eb in osgDB::Registry::read ()
#23 0x000000010211888e in osgDB::Registry::readImplementation ()
#24 0x000000010211a7ba in osgDB::Registry::readNodeImplementation ()
#25 0x00000001020b154c in osgDB::Registry::readNode ()
#26 0x00000001021076cb in osgDB::readNodeFile ()
#27 0x00000001000bd242 in osgDB::readNodeFile (filename=@0x10817ed70) at 
ReadFile:106
#28 0x00000001000af884 in spin::ModelNode::drawModel (this=0x107805c00) at 
ModelNode.cpp:393
#29 0x00000001000b67ae in spin::ModelNode::setModelFromFile (this=0x107805c00, 
filename=0x106d2d4c4 "~/src/OpenSceneGraph-Data-3.0.0/cow.osg") at 
ModelNode.cpp:162


[/code]

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=46870#46870





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to