All code linked to ogreode lib crashes

djgian

06-11-2010 15:11:37

Hi, I'm running Gentoo Linux 2.6.31-gentoo-r10, Ogre 1.6.5, Ode 0.11.1 and I downloaded ogreode from the svn today.
I compiled it using cmake, all ok. No problems compiling.

I tried some very basic physics stuff but i always get a compile time error..
So i tried commenting all the ogreode code, and running a simple ogre sample,
linked to the ogreode .so and it still crashes

Non of the ogreode samples work either..

The error is

Demo_GranTurismOgre: ../../OgreMain/include/OgreSharedPtr.h:152: T* Ogre::SharedPtr<T>::operator->() const [with T = Ogre::HardwareIndexBuffer]: Assertion `pRep' failed.

Ogre is compiled using cegui cg devil doc examples gtk threads

What can i do? Thanks everybody

P.S. i tried using ode on its own, without the ogreode wrapper, and it works, no errors at all...but i wanted to use the wrapper as its much simpler..

djgian

06-11-2010 15:55:25

Solved compiling Ogre WITHOUT the threads use flag

Now there isn't a background thread that loads resources, and it all works.

Why is this happening?