crash in CAnimatedMeshSceneNode::clone

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
kevin_shanghai
Posts: 28
Joined: Wed Jan 30, 2013 3:29 am

crash in CAnimatedMeshSceneNode::clone

Post by kevin_shanghai »

When i clone my sceneNode, crash occurred upon following code, caused by the NULL pointer of Shadow

newNode->Shadow = Shadow;
newNode->Shadow->grab();
CuteAlien
Admin
Posts: 9809
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: crash in CAnimatedMeshSceneNode::clone

Post by CuteAlien »

Sorry, it's a bug in Irrlicht 1.8. The fix is already in the 1.8 release branch in Irrlicht svn, or you have to fix it locally by adding a "if (Shadow)" before the grab() (it crashes because Shadow is 0).

See this thread for more info: http://irrlicht.sourceforge.net/forum/v ... 2&p=275166

It will also be fixed in Irrlicht 1.8.1 but we haven't set a release date for that yet.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply