Itoo Software Forum

RailClone => RailClone Pro (*) => Topic started by: outgribe on March 15, 2014, 03:05:46 PM

Title: Strange memory leaks
Post by: outgribe on March 15, 2014, 03:05:46 PM
Hi,
I have a scene with lot of RC arrays. After opening it 3DS Max takes about 1,5 GB of memory but some working time later used memory growing up more and more (for example now it takes 12 GB). Saving, closing max and opening again revert RAM use to 1,5 GB.
Another scene without Rail Clone objects stay stable "size" all the time at same computer.


What may be the reason for such behavior?
I'm using max 2014x64 with latest RC and vray 3.

Regards,
Sergey
Title: Re: Strange memory leaks
Post by: iToo on March 16, 2014, 04:22:07 PM
We are trying to reproduce the problem using several test scenes, but unsuccessfully until now. Please, would you do the following test ?

1) Reset Max and open the scene.
2) Render an animation range (i.e. 100 frames) using a very low resolution (as low as 10x10 pixels), so it can be completed quickly.

Can you notice some memory leak ? I want to know if the problem happens rendering or working with the scene.

Thanks,
Title: Re: Strange memory leaks
Post by: outgribe on March 18, 2014, 06:22:18 AM
I made this test and after animation rendering an occupied memory still same size.
Title: Re: Strange memory leaks
Post by: iToo on March 18, 2014, 08:55:27 AM
Ok, usually most of memory leaks happen at render, but seems not to be the case here.

We'll make more tests, although this kind of problems are not easy to find. If you have a scene where you notice this problem more frequently, please send it to support@itoosoft.com.

Thanks,
Title: Re: Strange memory leaks
Post by: iToo on March 20, 2014, 10:19:40 AM
We made several tests using your scene, but we cannot find any problem. Memory grows while rendering (mostly by the light cache), but it stays stable once completed, so everything seems normal.

The RailClone objects are very simple too, they don't take too much memory (at least not to generate a memory leak of several Gb.).
Title: Re: Strange memory leaks
Post by: outgribe on March 24, 2014, 05:19:59 PM
Thanks,

OK, maybe it is a problem of other plugins or something else. I'll try to test with clean max install, probably it help.

Kind regards,
Sergey
Title: Re: Strange memory leaks
Post by: Alejandro on March 27, 2014, 02:10:14 PM
MAX some times leaves in the scene many things that you don't need, so you could try this (it was useful for me in a similar case some time ago):

1.- save the scene as a copy (just in case)
2.- open the maxscript editor (MAXscript menu -> MAXscript Editor)
3.- paste this inside:

Code: [Select]
t=trackviewnodes
n=t[#Max_MotionClip_Manager]
try( deleteTrackViewController t n.controller) catch()
gc()

4.- in the maxscript editor, go to tools menu -> Evaluate all

That's all, take a look to memory use to know if work

Regards