Planetside Software Forums

Support => Terragen Support => Topic started by: Henry Blewer on December 21, 2009, 04:23:04 PM

Title: Unable to allocate memory for subdivide cache
Post by: Henry Blewer on December 21, 2009, 04:23:04 PM
I updated everything I could think of. I get this error when I render over 1280 pixels wide.
Title: Re: Unable to allocate memory for subdivide cache
Post by: jo on December 21, 2009, 06:02:46 PM
Hi,

When I tried rendering your file at 2000 pixels wide I found it did sneak up over 2 GB of memory used. If you are using a 32 bit version of Windows, couldn't easily tell from your log, and you haven't done whatever you need to with the /3GB switch ( hazy on that myself, one of the others will hopefully know more about it ) then you could run out of memory as the error is suggesting. That's what has happened, TG2 is unable to allocate any more memory.

Regards,

Jo
Title: Re: Unable to allocate memory for subdivide cache
Post by: Henry Blewer on December 21, 2009, 06:09:41 PM
I am using the 32 bit version. I don't know about the 3 GB switch either.
I'll try a render without having ray traced objects. I'll run it over night while I am working. I guess a new computer is becoming more critical. :P
Title: Re: Unable to allocate memory for subdivide cache
Post by: Kadri on December 21, 2009, 07:56:12 PM

http://softimage.wiki.softimage.com/index.php/How_To:_Set_the_/3GB_Switch

Be careful Njeneb   :)

Kadri
Title: Re: Unable to allocate memory for subdivide cache
Post by: Henry Blewer on December 21, 2009, 10:23:25 PM
Is it the same in Vista? I'll try to find information on the Microsoft website. I have been thinking about doing a re-install of Vista anyway.
Title: Re: Unable to allocate memory for subdivide cache
Post by: Henry Blewer on December 21, 2009, 10:38:57 PM
I found an article on how to change the address memory space in Windows Vista.

http://dwf.blogs.com/beyond_the_paper/2009/04/enabling-3gb-switch-on-windows-vista.html

I will try this out Tuesday morning after work. I'll let you guys know what happens, sometime... It depends on whether I need to do a re-install of Vista. (I have been thinking about doing this anyway. Too much junk...)
Title: Re: Unable to allocate memory for subdivide cache
Post by: Kadri on December 21, 2009, 11:04:37 PM
Njeneb , did you think about going 64 bit ?. There are some little problems. But in the long run it is the way to go in my opinion.

Kadri.
Title: Re: Unable to allocate memory for subdivide cache
Post by: Henry Blewer on December 22, 2009, 08:13:37 AM
I upgraded from XP to Vista with the upgrade, not the full Vista. I may re-install Vista as 64 bit, but this may not work over 32 bit XP. I need to visit and search some forums on this. When I get done here spouting my words of techno babble, I am going to try to change the seeting of the BCD to access 3 GB. I'll let everyone know how this turns out, eventually.
Title: Re: Unable to allocate memory for subdivide cache
Post by: Henry Blewer on December 22, 2009, 09:01:23 AM
Ok, the computer is still running. The command from the command prompt (run as administrator) is 'bcdedit /set IncreaseUserVa 3072'
To change the value back, command prompt (run as administrator) 'bcdedit /deletevalue IncreaseUserVa'

Now to try a render and see what happens. Stay tuned folks, njeneb's in for a bumpy ride! (should know something tomorrow)
Title: Re: Unable to allocate memory for subdivide cache
Post by: Kadri on December 22, 2009, 10:26:31 AM

:)
Title: Re: Unable to allocate memory for subdivide cache
Post by: rcallicotte on December 22, 2009, 10:43:27 AM
Look forward to seeing this.
Title: Re: Unable to allocate memory for subdivide cache
Post by: Henry Blewer on December 22, 2009, 05:27:02 PM
8 hrs 21 mins later. The dot calculation has just finished. So at least I now know the system is still stable. It may not be finished until after I go to work at midnight. At least so far so good. 8)
Title: Re: Unable to allocate memory for subdivide cache
Post by: AndyWelder on December 23, 2009, 04:21:09 AM
I hope this isn't considered crashing (the party) but I got a similar error this morning on my overnight render.
Running on 32 bit XP with the /3GB switch, 8GB RAM and 3,2GHZ quad core (AMD Phenom2).
The "starfield" rendered in 30 minutes and that sent me off to bed, smiling and very content about the new machine.
Rude awakening this morning when I saw the errors.
Title: Re: Unable to allocate memory for subdivide cache
Post by: Oshyan on December 23, 2009, 04:32:03 AM
You can still run out of memory with the /3GB switch. 8GB of memory is being sadly wasted with a 32 bit OS. Are you dual booting, or do you not yet have a 64 bit OS? Upgrade recommended ASAP!

- Oshyan
Title: Re: Unable to allocate memory for subdivide cache
Post by: AndyWelder on December 23, 2009, 04:42:29 AM
I know that the /3GB switch will make XP handle a max of 4GB but the 8GB RAM is there for future use with a 64 bit OS. I'm thinking of Win7 but how to convince the misses? The recent system upgrade used up all goodwill and money :(
Title: Re: Unable to allocate memory for subdivide cache
Post by: Oshyan on December 23, 2009, 04:54:24 AM
/3GB really only lets apps use up to 3GB of memory though.

- Oshyan
Title: Re: Unable to allocate memory for subdivide cache
Post by: AndyWelder on December 23, 2009, 04:59:59 AM
Oh, I thought I was a way to tell Windows to cross the default 3GB limit and because it's 32bit it could/would handle 4GB max?
Title: Re: Unable to allocate memory for subdivide cache
Post by: Henry Blewer on December 23, 2009, 07:59:00 AM
The image is still rendering. But the image is still rendering! No error messages.  8)

So this little tweak does work. It has the added benefit of causing Windows Vista to boot longer (it had to re configure itself after expanding to fill as much memory as possible, after I went to 4 GB).

Thanks Kadri for the tip! :)
Title: Re: Unable to allocate memory for subdivide cache
Post by: Henry Blewer on December 23, 2009, 08:26:38 AM
It just gave me a new error. I was not able to capture it, but it was something about an error occurring in the rendermore pass. The image was the one with Walli's astibles. This has two 5 million plus populations of flowers and millions of grass objects. It could be I just ran out of memory. I'll save this for the eventual new computer...
Title: Re: Unable to allocate memory for subdivide cache
Post by: Henry Blewer on December 23, 2009, 08:30:27 AM
Quote from: AndyWelder on December 23, 2009, 04:59:59 AM
Oh, I thought I was a way to tell Windows to cross the default 3GB limit and because it's 32bit it could/would handle 4GB max?


It just changes the size that 'large address aware flagged' programs can access memory. 32 bit machines can only address 4 GB of ram. The address space my Dell 510 can address is about 3.25 GB, even with the 4 GB of ram installed.
The image I was using to test with has extreme population numbers. It may not render with 64 bit OS and 12 GB.
Title: Re: Unable to allocate memory for subdivide cache
Post by: Kadri on December 23, 2009, 08:33:45 AM
Sad ...

I bought Windows 7  64  last week . So far i like it . It is definitely better then Vista 64 for me .

I am curious if your scene would render on it or if you have to wait for TG2 64  ?

Kadri.
Title: Re: Unable to allocate memory for subdivide cache
Post by: Henry Blewer on December 23, 2009, 08:56:08 AM
It will be a while (months) before I can test this, new computer...