Forum Groups
  All forums
    Help & Feedback
      Work in progress
      Finished Art
      Non-Max related

Maxunderground news unavailable

“UNHANDLED EXCEPTION: Memory allocation failure; v-ray 3ds max
show user profile  Alex910
I imported a huge scene in 3ds max (it's a large, fully detailed town; I'm using LODs), that I want to render, but i get this error:

I always get this error on this object (hoods2). I tried to look over the issue, which put me to look even at the *.3ds files sizes, where i found that this object has the biggest size with more than 1 or 2mb than the others. This one has 4mb. - if each object size has any relevance or connection to the issue. but, if yes, I thought that it would be good to split this object in two, which may take some good time, or, i thought that it may be good to increase the heap size. Is there any way to do this? If this is the solution? Or what should I do, in case i say wrong things here?

Yeah, I know, I have a vintage config:
T3500 @ 2.1ghz, dual-core
2gb ram
max 2010
this is the config where I learn max, anyway, how can I solve the problem? I'm still thinking that increasing the heap size will be effective.

*It has any reason to try rendering such a huge scene with v-ray? or should I just use mental ray instead? I'm thinking that I will be able to optimize v-ray while learning it.

Thank you for the help!
read 6227 times
4/1/2014 5:37:47 AM (last edit: 4/1/2014 5:41:40 AM)
show user profile  9krausec
Make sure your dynamic memory is set correctly in Vray. It is because you are running out of memory when render (2 gb isn't a lot).

- Portfolio-

read 6219 times
4/1/2014 5:45:13 AM (last edit: 4/1/2014 5:45:13 AM)
show user profile  Alex910
Wow, the result for the dynamic memory is 100mb... the scene is 208mb, what I think that there is no chance to do anything, but to split the scene on smaller max files, on pieces that enter in camera frustum.

And btw, I'm looking on google for some "shared computing power" to help on the render... do you know any good place?
read 6207 times
4/1/2014 1:47:51 PM (last edit: 4/1/2014 1:54:51 PM)
show user profile  9krausec
There are services that will render a scene for you called render farms, but they are expensive for the most part (at least I think so). All depends on how render intensive your scene is. If I were you and serious about 3D I'd start saving up for a new computer. You need to have the tools to do the job (or at least make the job easier to do).

- Portfolio-

read 6197 times
4/1/2014 3:32:10 PM (last edit: 4/1/2014 3:32:10 PM)
show user profile  BishBashRoss
If you are running 64bit OS and 64Bit Max you shouldn't get out of memory errors like that.

If you are running a 32bit OS you can try the 3 gig switch. If you are running a 64 bit OS you should be running 64bit Max.

64Bit is a must for 3D graphics these days.

Dynamic memory limit shouldn't cause errors like that because it will just use a paging file instead. Though it is definitely a good idea to increase this. I think in the latest version of Vray the default is 4 gig.

read 6193 times
4/1/2014 3:44:15 PM (last edit: 4/1/2014 3:44:15 PM)
show user profile  9krausec
My bad, I thought dynamic memory could cause something like this if set too high.

@Alex- Read through "Excessive memory usage while rendering" perhaps.

- Portfolio-

read 6188 times
4/1/2014 4:02:40 PM (last edit: 4/1/2014 4:02:40 PM)
show user profile  Mr_Stabby
>>64Bit is a must for 3D graphics these days.

just to add to that, even if you don't have 4GB+ memory you should use 64bit os because addressing space is used by many things other than dynamic memory itself and you are much more likely to hit the addressing limits before actual memory limits. For instance you could map a 1tb file without using any memory at all while consuming 1tb of addressing space which would throw an out of memory error for a 32bit os but would be business as usual for a 64bit os.

read 6183 times
4/1/2014 4:16:02 PM (last edit: 4/1/2014 4:16:35 PM)
show user profile  Error404
Post up on the Chaos forums if you haven't already :-) -

read 6154 times
4/2/2014 5:10:38 AM (last edit: 4/2/2014 5:10:38 AM)
show user profile  donvella
regarding dynamic memory you should set this to what it recommends in the vray messages window + how much memory the scene uses.

Your scene takes 1gb memory to load, you have 300mb dynamic memory (displacements, proxies) you need 1300mb for dynamic memory limit.

edit: no brain fart, its a little different, if you have 2gb memory, and your scene is using 1gb already you can allocate 800mb (leave yourself a few hundred meg so your pc doesnt freeze on max memory). this will allow max to use 800mb and then cycle as it needs to because it wont reach your max. You can set this to 0 and ive had some success, however huge scenes I go with the first method as Ive had some bad crashes.

read 6150 times
4/2/2014 6:10:40 AM (last edit: 4/2/2014 7:04:27 AM)
show user profile  Alex910
Thank you for your answers, I tried almost everything you said, and checked in detail how the ram memory behaves:
- Windows 7 uses around 500-600rams + 100rams for others processes
- 3ds max uses around 300rams
- The scene loaded has a little above 700ram (loaded in LOD level). Where task manager counts that there is a free ram memory of cca.250ram which is very little.
I checked the evolution of ram when rendering this scene, and when it reaches the limit (really fast), it returns the error from the image above.

Not very skilled with computers, but i hope that what i said upper is true.

Ok, from here i get 3 choices:
- to split the scene in smaller pieces (only what camera frustum sees);
- to upgrade, which is really not possible at the moment;
- yeah, or to ask a friend for his computer and go for a render farm (guess that an university render farm can accept a student an also a charity project for a render).

Also, I found something useful that i want to share:

Again, kindly thank you for your help!

read 6120 times
4/2/2014 1:37:03 PM (last edit: 4/2/2014 1:57:47 PM)
show user profile  BishBashRoss
Are you running 64 bit?

read 6104 times
4/2/2014 7:53:41 PM (last edit: 4/2/2014 7:53:41 PM)
show user profile  Alex910
Windows is installed on 32bit atm.
read 6096 times
4/2/2014 10:35:26 PM (last edit: 4/2/2014 10:59:38 PM)
show user profile  BishBashRoss
You really should update to 64 bit if possible. You can try this though.

Was a life saver back in the day when I ran 32bit. :)

read 6090 times
4/2/2014 11:13:29 PM (last edit: 4/2/2014 11:13:29 PM)
show user profile  Alex910
@BishBashRoss: I enabled the 3gb switch and it worked with no problem at all. I also had an eye over the ram memory and it used around 100mb. Thank you very much for reminding me about 3gb switch again!! I can now continue the work:)

I have a v-ray question:
If I will render animation, do v-ray has to "transform vertices" and "update objects/instances" for each frame in part? I'm asking because I never rendered an animation in max, to do it now to see, but it comes to learn the following days.

read 6082 times
4/3/2014 12:47:30 AM (last edit: 4/3/2014 12:59:28 AM)
#Maxforums IRC
Open chat window