I've been trying to migrate my app over to OSG 1.1 as a prelude for doing
some new work.
I checked out and rebuilt OpenThreads, Producer and OSG last week. (I build everything
with static linking.) Now, when I rebuild and recompile my app, it crashes during startup,
before it even hits main().
I'm using VC++8/2005 for Win32.
The call stack looks like (apologies for linewrap):
NatureViewExpress.exe!std::_Tree<std::_Tset_traits<unsigned int,std::less<unsigned
int>,std::allocator<unsigned int>,0> >::_Lbound(const unsigned int & _Keyval=3008) Line
1170 + 0x8 bytes C++
NatureViewExpress.exe!std::_Tree<std::_Tset_traits<unsigned int,std::less<unsigned
int>,std::allocator<unsigned int>,0> >::lower_bound(const unsigned int & _Keyval=3008)
Line 992 + 0x10 bytes C++
NatureViewExpress.exe!std::_Tree<std::_Tset_traits<unsigned int,std::less<unsigned
int>,std::allocator<unsigned int>,0> >::find(const unsigned int & _Keyval=3008) Line 970
+ 0x10 bytes C++
NatureViewExpress.exe!TextureGLModeSet::isTextureMode(unsigned int mode=3008) Line 61
+ 0x30 bytes C++
NatureViewExpress.exe!osg::StateSet::setMode(unsigned int mode=3008, unsigned int
value=1) Line 658 + 0xe bytes C++
NatureViewExpress.exe!SetAssociateModesHelper::usesMode(unsigned int mode=3008) Line
1286 C++
NatureViewExpress.exe!osg::AlphaFunc::getModeUsage(osg::StateAttribute::ModeUsage &
usage={...}) Line 69 + 0x14 bytes C++
NatureViewExpress.exe!osg::StateSet::setAssociatedModes(const osg::StateAttribute *
attribute=0x023f54b8, unsigned int value=1) Line 1303 + 0x13 bytes C++
NatureViewExpress.exe!osg::StateSet::setAttributeAndModes(osg::StateAttribute *
attribute=0x023f54b8, unsigned int value=1) Line 740 C++
> NatureViewExpress.exe!osgUtil::RenderBin::RenderBin(osgUtil::RenderBin::SortMode
mode=SORT_BACK_TO_FRONT) Line 147 C++
NatureViewExpress.exe!`dynamic initializer for 's_registerDepthSortedBinProxy''() Line
36 + 0x5c bytes C++
NatureViewExpress.exe!_initterm(void (void)* * pfbegin=0x00a46058, void (void)* *
pfend=0x00a46ebc) Line 855 C
NatureViewExpress.exe!_cinit(int initFloatingPrecision=1) Line 293 +
0xf bytes C
NatureViewExpress.exe!__tmainCRTStartup() Line 301 + 0x7 bytes C
NatureViewExpress.exe!WinMainCRTStartup() Line 187 C
kernel32.dll!7c816d4f()
[Frames below may be incorrect and/or missing, no symbols loaded for
kernel32.dll]
kernel32.dll!7c8399f3()
The line where it crashes in TextureGLModeSet() is StateSet.cpp:61. I can't see why it
would be crashing. It crashes the same way in both release and debug builds.
I'm guessing it has to have something to do with link libraries, but I can't find any
stale libs lying around. This build was working with OSG 1.0 code (CVS checkout from a
while after the actual 1.0 release).
This one has stumped me for several days. I just did a fresh CVS update of OT/OP/OSG
and rebuilt and it's still vexing me.
Any insight welcomed. I'll just keep plugging away.
--
Chris 'Xenon' Hanson aka Eric Hammil | http://www.3DNature.com/ eric at logrus
"I set the wheels in motion, turn up all the machines, activate the programs,
and run behind the scenes. I set the clouds in motion, turn up light and
sound,
activate the window, and watch the world go 'round." -Prime Mover, Rush.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/