Horde3D
http://horde3d.org/forums/

ColladaConverter: r342 causes double free of scene nodes
http://horde3d.org/forums/viewtopic.php?f=3&t=1686
Page 1 of 1

Author:  swx [ 26.06.2012, 19:24 ]
Post subject:  ColladaConverter: r342 causes double free of scene nodes

Latest collada converter crashes for me. When running it in debug I get the following:

Quote:
Unhandled exception at 0x778d15de in ColladaConv.exe: 0xC0000005: Access violation reading location 0xfeeefef2.


The is caused by
Code:
for( unsigned int i = 0; i < children.size(); ++i ) delete children[i];

in SceneNode::~SceneNode()

So it appears that someone else has deleted the nodes... perhaps the deletes in Converter::~Converter() ?

Edit: If I remove
Code:
for( unsigned int i = 0; i < _joints.size(); ++i ) delete _joints[i];


from Converter::~Converter() then it doesn't crash either... so it appears they are referring to the same nodes as those being deleted in ~SceneNode()

Author:  Volker [ 27.06.2012, 15:13 ]
Post subject:  Re: ColladaConverter: r342 causes double free of scene nodes

I just (hopefully) fixed it, thanks for reporting.

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/