Segfault when loading imageset in SVN trunk / 0.6.9999
Posted: Thu Jul 23, 2009 02:38
I'm having some crazy segfault issue (as opposed to the sane ones) using the trunk sources...
I've isolated the cause (through amazing cout-debugging skills) to this line:
CEGUI::SchemeManager::getSingleton().create((CEGUI::utf8*)"VanillaSkin.scheme");
Which is in the middle of a not-quite-pretty init()-type function in my primary application class (basically a ripoff of any given framework with an Application class or somesuch, but less clean-looking) that worked until I made the change to 0.6.9999 and swapped "loadScheme" for "create," as the Changes and Porting Tips page states that loadScheme is "renamed" to create. I haven't managed to get more than a screenshot of a backtrace (since segfaults cause all input to remain directed at my app if I let the debugger (I tend to use ddd or gdb) freeze the app), so I'll just bash out the last few lines unless someone wants that:
#10 (addr) in CEGUI::XercesHandler::startElement () at CEGUIXercesParser.cpp:327
#9 (addr) in CEGUI::Imageset_xmlHander::elementStart () at CEGUIImageset_xmlHandler.cpp:106
#8 (addr) in CEGUI::Imageset_xmlHander::elementImagesetStart () at CEGUIImageset_xmlHandler.cpp:140
#7 (addr) in Imageset () at CEGUIImageset.cpp:80
#6 (addr) in CEGUI::OgreRenderer::createTexture () at CEGUIOgreRenderer.cpp:250
#5 (addr) in OgreTexture () at CEGUIOgreTexture.cpp:179
#4 (addr) in CEGUI::OgreTexture::loadFromFile () at CEGUIOgreTexture.cpp:85
#3 (addr) in CEGUI::OgreImageCodec::load () at CEGUIOgreImageCodec.cpp:53
#2 (addr) in Ogre::image::load () from libOgreMain-1.6.2.so
#1 (addr) in Ogre::ILImageCodec::decode () from LibOgreMain-1.6.2.so
#0 (addr) in iluErrorString() from libILU.so.1
I've replaced the imagesets, looknfeels, schemes, etc., that came with Ogre (via resources.cfg) with the ones from svn, which changed nothing. Is there something else I missed? Did CrazyEddie break my ren^H^H^HSchemeManager? ( ) Thanks in advance for any help. (Also, 'sorry if I've done anything stupid...)
I've isolated the cause (through amazing cout-debugging skills) to this line:
CEGUI::SchemeManager::getSingleton().create((CEGUI::utf8*)"VanillaSkin.scheme");
Which is in the middle of a not-quite-pretty init()-type function in my primary application class (basically a ripoff of any given framework with an Application class or somesuch, but less clean-looking) that worked until I made the change to 0.6.9999 and swapped "loadScheme" for "create," as the Changes and Porting Tips page states that loadScheme is "renamed" to create. I haven't managed to get more than a screenshot of a backtrace (since segfaults cause all input to remain directed at my app if I let the debugger (I tend to use ddd or gdb) freeze the app), so I'll just bash out the last few lines unless someone wants that:
#10 (addr) in CEGUI::XercesHandler::startElement () at CEGUIXercesParser.cpp:327
#9 (addr) in CEGUI::Imageset_xmlHander::elementStart () at CEGUIImageset_xmlHandler.cpp:106
#8 (addr) in CEGUI::Imageset_xmlHander::elementImagesetStart () at CEGUIImageset_xmlHandler.cpp:140
#7 (addr) in Imageset () at CEGUIImageset.cpp:80
#6 (addr) in CEGUI::OgreRenderer::createTexture () at CEGUIOgreRenderer.cpp:250
#5 (addr) in OgreTexture () at CEGUIOgreTexture.cpp:179
#4 (addr) in CEGUI::OgreTexture::loadFromFile () at CEGUIOgreTexture.cpp:85
#3 (addr) in CEGUI::OgreImageCodec::load () at CEGUIOgreImageCodec.cpp:53
#2 (addr) in Ogre::image::load () from libOgreMain-1.6.2.so
#1 (addr) in Ogre::ILImageCodec::decode () from LibOgreMain-1.6.2.so
#0 (addr) in iluErrorString() from libILU.so.1
I've replaced the imagesets, looknfeels, schemes, etc., that came with Ogre (via resources.cfg) with the ones from svn, which changed nothing. Is there something else I missed? Did CrazyEddie break my ren^H^H^HSchemeManager? ( ) Thanks in advance for any help. (Also, 'sorry if I've done anything stupid...)