Itoo Software Forum

Author Topic: Strange memory leaks  (Read 2017 times)

outgribe

  • Newbie
  • *
  • Posts: 8
Strange memory leaks
« 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
« Last Edit: March 15, 2014, 05:24:48 PM by outgribe »

iToo

  • Administrator
  • Hero Member
  • *****
  • Posts: 3319
    • iToo Software
Re: Strange memory leaks
« Reply #1 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,
Carlos Quintero
iToo Software

outgribe

  • Newbie
  • *
  • Posts: 8
Re: Strange memory leaks
« Reply #2 on: March 18, 2014, 06:22:18 AM »
I made this test and after animation rendering an occupied memory still same size.

iToo

  • Administrator
  • Hero Member
  • *****
  • Posts: 3319
    • iToo Software
Re: Strange memory leaks
« Reply #3 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,
Carlos Quintero
iToo Software

iToo

  • Administrator
  • Hero Member
  • *****
  • Posts: 3319
    • iToo Software
Re: Strange memory leaks
« Reply #4 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.).
Carlos Quintero
iToo Software

outgribe

  • Newbie
  • *
  • Posts: 8
Re: Strange memory leaks
« Reply #5 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

Alejandro

  • Jr. Member
  • **
  • Posts: 53
    • Motiva
Re: Strange memory leaks
« Reply #6 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