Theora Demo crashes with SIGSEGV

gero

31-08-2008 15:50:28

Hi,

this plugin sounded interesting to me, so i started to play around with it and got it to compile under linux with cmake.

I also compiled the demo application, but when i tried to run it i got a SIGSEGV. Here's the backtrace, maybe you've got an idea of what the problem might be :p

i'm using Ogre 1.4.9, ptypes 2.0.2, glibc 2.8, which provides pthreads for me, and gcc 4.1.2.

#0 0x00002b64596f74f4 in pthread_detach () from /lib/libpthread.so.0
#1 0x00002b64573680d9 in pt::thread::~thread () from /usr/lib/OGRE/libPlugin_TheoraVideoSystem.so
#2 0x00002b645735c88e in ~TheoraVideoClip (this=0x97b170)
at /home/gero/ogrework/ogrevideo/TheoraVideoPlugin/src/TheoraVideoClip.cpp:135
#3 0x00002b6457363f98 in Ogre::TheoraVideoManager::createDefinedTexture (this=0x65bb60, sMaterialName=@0x7fff54aa20a0,
groupName=@0x643a90) at /home/gero/ogrework/ogrevideo/TheoraVideoPlugin/src/TheoraVideoManager.cpp:103
#4 0x00002b6456aa0d66 in Ogre::MaterialSerializer::parseScriptLine (this=0x643a80, line=<value optimized out>)
at OgreMaterialSerializer.cpp:2845
#5 0x00002b6456aa16b2 in Ogre::MaterialSerializer::parseScript (this=0x643a80, stream=@0x7fff54aa2250,
groupName=@0x63dba0) at OgreMaterialSerializer.cpp:2736
#6 0x00002b6456b50f54 in Ogre::ResourceGroupManager::parseResourceGroupScripts (this=0x63e030, grp=<value optimized out>)
at OgreResourceGroupManager.cpp:787
#7 0x00002b6456b514bb in Ogre::ResourceGroupManager::initialiseAllResourceGroups (this=0x63e030)
at OgreResourceGroupManager.cpp:144
#8 0x000000000040f3fd in ExampleApplication::loadResources (this=0x7fff54aa2490)
at /home/gero/ogrework/ogrevideo/demos/include/ExampleApplication.h:248
#9 0x0000000000419623 in ExampleApplication::setup (this=0x7fff54aa2490)
at /home/gero/ogrework/ogrevideo/demos/include/ExampleApplication.h:135
#10 0x00000000004199a6 in ExampleApplication::go (this=0x7fff54aa2490)
at /home/gero/ogrework/ogrevideo/demos/include/ExampleApplication.h:89
#11 0x000000000040d951 in main (argc=1, argv=0x7fff54aa25e8)
at /home/gero/ogrework/ogrevideo/demos/CEGUI_SimpleDemo/src/MainModule.cpp:337


Gero

Kreso

01-09-2008 07:56:01

I have no idea. I haven't tested it on linux yet. it's on the todo list though.

try debugging and see what causes the crash. make sure that all the resource files are correct. there could be '/' and '\' problems or \r\n problems