Memory leak in the demo

kongkana

11-02-2007 04:22:48

I downloaded the lastest SDK [12 jan 07] and ran the Demo_SimpleScenes.

I found this in OgreLeaks.Log

001717 0x0105E8A0 0x00000020 0x0105E890 0x00000040 0x00000000 new N N ??(0) ??
001718 0x0105E920 0x00000020 0x0105E910 0x00000040 0x00000000 new N N ??(0) ??
001716 0x010BD6B0 0x00000180 0x010BD6A0 0x000001A0 0x00000000 new N N ogrefilesystem.h(114) Ogre::FileSystemArchiveFactory::createI
047883 0x04263540 0x00000008 0x04263530 0x00000028 0x00000000 new N N SimpleScenes.cpp(28) SimpleScenes::SimpleScenes
048206 0x0428E840 0x0000001C 0x0428E830 0x0000003C 0x00000000 new N N OgreOdeBody.cpp(124) OgreOde::Body::_historyResize
048205 0x0428F878 0x0000001C 0x0428F868 0x0000003C 0x00000000 new N N OgreOdeBody.cpp(124) OgreOde::Body::_historyResize
048999 0x0429F418 0x0000001C 0x0429F408 0x0000003C 0x00000000 new N N OgreOdeBody.cpp(124) OgreOde::Body::_historyResize
048998 0x042BCA80 0x0000001C 0x042BCA70 0x0000003C 0x00000000 new N N OgreOdeBody.cpp(124) OgreOde::Body::_historyResize
045504 0x042D1098 0x00000008 0x042D1088 0x00000028 0x00000000 new N N OgreOdeStepper.cpp(38) OgreOde::StepHandler::StepHandler


And in Test Box Stack, when I created a capsule, I get ODE INTERNAL ERROR 2 argument not a space (collision_space.cpp:689)

I used VC8 and OgreSDK 1.2.5

kongkana

11-02-2007 13:34:10

Is there anyone get the same problem like me?

Or I used incorrect version of libraries or something? :(

krc1793

12-02-2007 02:28:04

I get these four memory leaks:
001976 0x010F9CD0 0x00000180 0x010F9CC0 0x000001A0 0x00000000 new N N ogrefilesystem.h(114) Ogre::FileSystemArchiveFactory::createI
001977 0x010FAD08 0x00000020 0x010FACF8 0x00000040 0x00000000 new N N ??(0) ??
001978 0x010FAD78 0x00000020 0x010FAD68 0x00000040 0x00000000 new N N ??(0) ??
046358 0x046DCF08 0x00000008 0x046DCEF8 0x00000028 0x00000000 new N N OgreOdeStepper.cpp(38) OgreOde::StepHandler::StepHandler


HTH

rewb0rn

15-02-2007 20:30:22



And in Test Box Stack, when I created a capsule, I get ODE INTERNAL ERROR 2 argument not a space (collision_space.cpp:689)

I used VC8 and OgreSDK 1.2.5

Hey Im using same environment and i have this shitty internal error too (created a topic for that), Im trying to fix this for 3 days now and it just wont work, Im gettin really mad!! There is something really wrong with the spaces in the new version. I cannot start my project anymore, grrrr!

Duc

24-04-2007 22:32:31

I also detected some of the memory leaks Kongkana was talking about.
I corrected them in my version and it works fine :

- OgreOdeStepper.cpp => StepHandler::~StepHandler() :
the object '_current_stepper' was not deleted.
Correction :

StepHandler::~StepHandler()
{
setAutomatic(AutoMode_NotAutomatic);

if (_current_stepper)
delete _current_stepper ;

_current_stepper = NULL ;
}


- OgreOdeBody.cpp => Body::~Body() :
the items of the buffer '_state_history' are not deleted.
Correction :

Body::~Body()
{
for (size_t i = 0; i < _state_history.size(); i++)
{
if (_state_history[i])
delete (_state_history[i]);

_state_history[i] = NULL ;
}

[...]

luis

25-04-2007 08:19:33

Would be good to submit all those changes in a CVS patch to Tuan Kuranes.....

Duc

25-04-2007 19:14:11

I don't know how to do that !
Is there a cvs repository somewhere ?

luis

26-04-2007 08:28:29

Yes, there is a CVS for Ogreaddons but i'm not sure if the Zip file from Turane's site is in synch with the CVS (it should).

Read the first and the second posts here:
http://www.ogre3d.org/phpBB2/viewtopic.php?t=3835
You could also send to him a PM.

Nobody is working on OgreOde now.....