Hi,
when i close the simulator i have this error,
Bucket 0(System) is still in use (first allocation ID=47957); deleting it is dangerous
i haven't found what pointer or allocated memory could generate this and i would like to know if there is a way to see what use the ID reported to discover the problem.
The ID is not always the same and inside the metrics of the simulator there isn't a place to see the ID list.
Thanks.












Hi,
probably you don't delete everything on exit...
I know that but is possible to know the ID to what is connected ? is difficult to discover what is.
Hi
I suggest you add in your code the following macro.
Ex: At top of CSprite::update add IW_CALLSTACK("CSprite::update");
Especially in methods that are doing allocations: init update render...
At exit time, you will have a better trace with callstack of methosd that have done the allocation of the MLK.
When I got such issue, I add this macro everywhere.
Be careful to static object that can been deallocated after some memory bucket.
Benoit
Hi,
i have used the call on our function OnEnter and when i try to close the simulator i get this:
20/12/11 13:46:37.991: [0xfa0] bucket allocated num w/children num FirstID Callstack of allocation
20/12/11 13:46:37.992: [0xfa0] ------------ --------- ---- --------- ---- ------- -----------------------
20/12/11 13:46:37.992: [0xfa0] System 12 [ 1] 524 [ 6] 47961 _IwGxInitPipeline, Play::OnEnter, CIwTextParserITX::ParseFile, CIwTextParser::ParseFile, CIwTextParser::_Parse, _ITXReadUnknown
20/12/11 13:46:37.993: [0xfa0] L System 512 [ 5] 512 [ 5] 47957 _IwGxInitPipeline, Play::OnEnter, CIwTextParserITX::ParseFile, CIwTextParser::ParseFile, CIwTextParser::_Parse, _ITXReadUnknown,
20/12/11 13:46:37.994: [0xfa0] IwClassFactoryCreate, _ImageFactory
20/12/11 13:46:37.995: [0xfa0] DEBUG: s3eDebugAssertShow 0x00000000 type=2 'IwAssert failure (MEMORY, 2356).
Message: Bucket 0(System) is still in use (first allocation ID=47957); deleting it is dangerous
Please can you help me to understand the data ?
Hi
it looks like you have some Managed object created automatically by parsing some resource file, that are not well destroyed.
Do you have any assert at loading time complaining that there is some unknown keyword in your itx file ?
Or for instance you load a character (model, bones, skins, animations) but skins or animation is incorrectly loaded (you have error at loading time) so there is some others parts that are not unloaded from memory at exit time ?
From the stack it looks like a config file that is referencing an image and the image is not properly unloaded. May some wrong material in MTL file or unused Material ...
Benoit
I have solved the problem, it wasn't in the parser but in the exit function. I had problem with some vectors.