1285: Out of memory
Posted 22 December 2010 - 09:40 PM
i've searched this forum and only found 1 thread about this but it doesn't help me much, because it's about windows 64bit. The fact that there is only 1 thread indicates that this may not a specific minecraft problem.
I'm playing minecraft for some weeks now without any (technical) problems. I'm still playing with version 1.2.6 and haven't changed anything (e.g. mods) for a few days.
Since yesterday evening i'm getting this error after a few minutes ingame:
########## GL ERROR ##########
@ Post render
1285: Out of memory
I was tired mining and building so i startet exploring. My save before exploring was about 9MB and now it's 16MB and it crashes all the time
I watched the MC process with Process Explorer and noticed that the virtual size grows massively even when i pause MC. When it reaches 2GB (!) it crashes.
My comp is running XP 32bit with 3,5GB RAM and GeForce 8800GT. Open GL Version 3.2.
Thanks in advance
Posted 22 December 2010 - 09:53 PM
Posted 22 December 2010 - 11:57 PM
Posted 27 December 2010 - 04:34 PM
Posted 29 December 2010 - 06:10 PM
sorry for the late response but i wasn't able to play because of the christmas stress but i observed the forum a bit and realised that this is a problem to a lot of people though not much are mentioning the 1285 error code.
Downloading the files wasn't a option because i wanted to stay with 1.2.6 until the heavenly wild grass mod is updated but i startet fresh with a clean 1.2.6 jar with no luck.
Foobys advice has the solved the problem for me. At least MC is running for 1 hour now without any crashes and the vsize remains steady.
Have you tried starting MC via Batchfile?
You may can alter the xmx and xms values depending on your hardware. There are several threads in the support section that are recommending the same.
When you are using Windows keep in mind that you have to download the Linux minecraft.jar from http://minecraft.net/download.jsp to do this.
Hope that helps.
Thanks again for the help!
Posted 08 August 2011 - 08:40 PM
Before - no such errors was found...
(Sorry 4 my English)
Posted 03 September 2011 - 04:42 PM
Posted 07 September 2011 - 10:01 AM
Java tends to overallocate memory, by around 480MB and as you traverse further in MC this grows further. Many sites are incorrectly telling users that they need to allocate more when in fact the problem is that too much is allocated; especially on the 32bit java.
Minecraft allocates Xmx1024M and Xms512M itself, which translates to 1490MB Virtual Allocated, and around 690 Private allocation (This is the Commit / Paged size).
The problem is the Virtual allocated. Java RE x86 is not large address aware, which means when the default settings get close to 1980MB, the VM will crash out and you end up with either blocks turning invisible or the Out of Memory error.
On 32bit windows, this is even lower, you can usually only get to around 1.75GB of virtual allocated before the app crashes.
Once you get into a world, Virtual allocation increases to 1800MB.
Java x64 will take on the allocation limit of the OS, which is 64GB(theoretically it could be much less given we are only using 48bit for the memory addressing on current cpu's).
Minecraft on this version of JRE will allocate and use as much ram as is available, up to the point where you start eating into the non paged Kernel Memory area.
The real fix is to preallocate as little as possible, so that Java only allocates new blocks as required by memory growth. the XMx and XMs settings are not limits, they are preallocation blocks. What also helps is enabling Java Garbage collection.
I use the following batch to set my gamedata location and optimise the allocation blocks
@echo off Title Minecraft Launcher set APPDATA=%CD%\ "c:\Program Files\Java\jre7\bin\javaw.exe" -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:ParallelGCThreads=5 -XX:+CMSIncrementalPacing -XX:+UseAdaptiveGCBoundary -XX:SurvivorRatio=16 -Xmn1M -Xmx2M -Xms2M -jar minecraft.exe
you can also use
@echo off Title Minecraft Launcher set APPDATA=%CD%\ start javaw.exe -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:ParallelGCThreads=5 -XX:+CMSIncrementalPacing -XX:+UseAdaptiveGCBoundary -XX:SurvivorRatio=16 -Xmn1M -Xmx2M -Xms2M -jar minecraft.exe
with this, Jave goes from this (I'm not listing Working set, since its roughly 95% of the commit most of the time).
Start - 630MB Private(Commit), 1478MB Virtual
Menu - 820MB Private(Commit), 1724MB Virtual
In Game - 1,102MB Private(Commit), 2095MB Virtual (Hangs near instantly)
Start - 48MB Private(Commit), 1325MB Virtual
Menu - 298MB Private(Commit), 1623MB Virtual
In Game - 704MB Private(Commit), 1979MB Virtual (Hangs near instantly)
this will probably still be too much on x86 copies of windows, so the the normal view distance should be used to drop this further.
Posted 25 September 2011 - 01:28 PM
Posted 25 September 2011 - 03:06 PM
Just right-click on your desktop or minecraft folder space, and make a new Notepad file. Paste in what Squall wrote, and then say "Save As". Pull the drop down menu to select "all files", give it whatever name you feel, and finish with ".bat".
Then you can merely drop it in your minecraft folder and load it from there, and/or make a shortcut to your desktop for ease of access .
Hope that helps!
Posted 25 September 2011 - 03:43 PM
he is right
Upgrade to 4/5GB RAM...
Posted 03 October 2011 - 02:47 PM
it lets you chose how much ram you want and increase fps works with all sytems
Posted 04 October 2011 - 07:37 AM
The ONLY thing that worked was installing 64 bit Java runtime client for Windows 7. http://java.com/en/download/manual.jsp
intel i7 2600k
geforce gtx 570
windows 7 64 bit
8 gb ram