Terrain material memory leak?

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
Post Reply
iso
Halfling
Posts: 73
Joined: Fri Mar 18, 2005 11:43 am
Location: Slovakia

Terrain material memory leak?

Post by iso » Thu Mar 24, 2005 10:27 pm

I modified the Terrain demo a bit: I added texcoords for one more texture unit in TerrainRenderable.cpp. This worked fine. Then I wrote my custom material and set it in Terrain.cfg. Still it worked fine. But when I added a Cg fragment program to my material something went wrong. Now, when I want to close the appliaction, 855 memory leaks occur and the program crashes.

Any idea how to debug it?

First lines of the OgreLeaks.txt

Code: Select all

000006 0x003FEBA0 0x00000110 0x003FEB90 0x00000130 0x00000000 new         N       N    exampleapplication.h(75) ExampleApplication::setup
000008 0x003FF000 0x00000020 0x003FEFF0 0x00000040 0x00000000 new         N       N    ogreroot.cpp(143) Ogre::Root::Root
000009 0x003FF070 0x00000030 0x003FF060 0x00000050 0x00000000 new         N       N    ??(0) ??
000010 0x003FF0F0 0x000000B8 0x003FF0E0 0x000000D8 0x00000000 new         N       N    ogrelogmanager.cpp(60) Ogre::LogManager::createLog
000011 0x003FF298 0x00000030 0x003FF288 0x00000050 0x00000000 new         N       N    ??(0) ??
000012 0x003FF318 0x00000010 0x003FF308 0x00000030 0x00000000 new         N       N    ogreroot.cpp(148) Ogre::Root::Root
000013 0x003FF378 0x00000030 0x003FF368 0x00000050 0x00000000 new         N       N    ??(0) ??
000017 0x003FF560 0x00000058 0x003FF550 0x00000078 0x00000000 new         N       N    ogreroot.cpp(153) Ogre::Root::Root
000018 0x003FF608 0x00000030 0x003FF5F8 0x00000050 0x00000000 new         N       N    ??(0) ??
000019 0x003FF688 0x00000018 0x003FF678 0x00000038 0x00000000 new         N       N    ??(0) ??
000020 0x003FF6F0 0x00000030 0x003FF6E0 0x00000050 0x00000000 new         N       N    ??(0) ??
000021 0x003FF770 0x0000007C 0x003FF760 0x0000009C 0x00000000 new         N       N    ogreresourcegroupmanager.cpp(81) Ogre::ResourceGroupManager::createResou
000022 0x003FF838 0x0000000C 0x003FF828 0x0000002C 0x00000000 new         N       N    ??(0) ??
000023 0x003FF890 0x00000030 0x003FF880 0x00000050 0x00000000 new         N       N    ??(0) ??
000024 0x003FF910 0x00000030 0x003FF900 0x00000050 0x00000000 new         N       N    ??(0) ??
000025 0x003FF990 0x0000004C 0x003FF980 0x0000006C 0x00000000 new         N       N    ??(0) ??
000026 0x003FFA28 0x00000018 0x003FFA18 0x00000038 0x00000000 new         N       N    ??(0) ??
000027 0x003FFA90 0x00000030 0x003FFA80 0x00000050 0x00000000 new         N       N    ??(0) ??
000028 0x003FFB10 0x00000024 0x003FFB00 0x00000044 0x00000000 new         N       N    ogreroot.cpp(156) Ogre::Root::Root
000029 0x003FFB80 0x00000074 0x003FFB70 0x00000094 0x00000000 new         N       N    ??(0) ??
000030 0x003FFC40 0x00000018 0x003FFC30 0x00000038 0x00000000 new         N       N    ??(0) ??
000059 0x00BE7310 0x000001A8 0x00BE7300 0x000001C8 0x00000000 new         N       N    ogreroot.cpp(163) Ogre::Root::Root

...
0 x

User avatar
DWORD
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 1365
Joined: Tue Sep 07, 2004 12:43 pm
Location: Aalborg, Denmark
Contact:

Post by DWORD » Thu Mar 24, 2005 10:49 pm

I think this is connected to the problems described in this thread. A temporary solution was to comment out the .setNull() line in OgreTerrainSceneManager.cpp IIRC, but there's no complete fix to this (yet).
0 x

iso
Halfling
Posts: 73
Joined: Fri Mar 18, 2005 11:43 am
Location: Slovakia

Post by iso » Thu Mar 24, 2005 10:58 pm

Oh, probably it's the same bug.

I tried to comment out the .setNull() and I can successfully report :lol:, that the nuber of memory leaks decreased to 12 and there was no program crash at exit. However, I hope the bug gets properly fixed soon.
0 x

Post Reply