Construction of BoxGeometry causes an error in Eihort

Taldor

20-04-2007 13:47:01

I'm trying to use OgreOde (SVN) with Eihort. On the creation of a new OgreOde :: BoxGeometry, I get an error in the Ogre library.

From the valgrind log:

==25583== Invalid write of size 1
==25583== at 0x4334E91: Ogre::Technique::_compile(bool) (in /usr/lib/libOgreMain-1.4.0.so)
==25583== by 0x41BDC34: Ogre::Material::compile(bool) (in /usr/lib/libOgreMain-1.4.0.so)
==25583== by 0x41BE84B: Ogre::Material::loadImpl() (in /usr/lib/libOgreMain-1.4.0.so)
==25583== by 0x42A0E1C: Ogre::Resource::load(bool) (in /usr/lib/libOgreMain-1.4.0.so)
==25583== by 0x430DCB6: Ogre::SimpleRenderable::setMaterial(std::string const&) (in /usr/lib/libOgreMain-1.4.0.so)
==25583== by 0x4716D1A: OgreOde::DebugLines::DebugLines() (OgreOdeDebugObject.cpp:38)
==25583== by 0x4717576: OgreOde::DebugObject::DebugObject(OgreOde::DebugObject::Mode) (OgreOdeDebugObject.cpp:138)
==25583== by 0x471B20A: OgreOde::BoxDebugObject::BoxDebugObject(Ogre::Vector3 const&) (OgreOdeDebugObject.cpp:171)
==25583== by 0x4727200: OgreOde::BoxGeometry::createDebugObject() (OgreOdeGeometry.cpp:568)
==25583== by 0x4724BF2: OgreOde::Geometry::registerGeometry() (OgreOdeGeometry.cpp:148)
==25583== by 0x4725CCE: OgreOde::BoxGeometry::BoxGeometry(Ogre::Vector3 const&, OgreOde::World*, OgreOde::Space*) (OgreOdeGeometry.cpp:539)
==25583== by 0x80988E8: tsl::Item::create_geometry() (item.cpp:136)
==25583== Address 0x1C is not stack'd, malloc'd or (recently) free'd


The source code can be found here.