java.lang.OutOfMemoryError: Java heap space

Forum for bugs and technical problems.

Re: java.lang.OutOfMemoryError: Java heap space

Postby honeymilk » Mon Dec 28, 2015 3:55 am

Thank you for trying though :>
This is why I wish I went for IT instead of silly drawing design at school, which is no longer even used much.
User avatar
honeymilk
Customer
 
Posts: 249
Joined: Sun Dec 28, 2014 4:51 am

Re: java.lang.OutOfMemoryError: Java heap space

Postby honeymilk » Tue Jan 12, 2016 10:59 pm

It seems the problem is coming back- If any new clues to why this might be happening I'll bump the thread with the new error code
Code: Select all
java.lang.OutOfMemoryError: Java heap space
   at haven.Utils.wfbuf(Utils.java:908)
   at haven.MeshBuf.mkvbuf(MeshBuf.java:316)
   at haven.MeshBuf.mkmesh(MeshBuf.java:358)
   at haven.MeshBuf.mkmesh(MeshBuf.java:374)
   at haven.res.lib.plants.GrowingPlant.cons(GrowingPlant.java:87)
   at haven.res.lib.plants.GrowingPlant.<init>(GrowingPlant.java:95)
   at haven.res.lib.plants.GrowingPlant$Factory.create(GrowingPlant.java:120)
   at haven.Sprite.create(Sprite.java:120)
   at Fact.create(Fact.java:12)
   at haven.Sprite.create(Sprite.java:120)
   at haven.ResDrawable.init(ResDrawable.java:53)
   at haven.ResDrawable.<init>(ResDrawable.java:42)
   at haven.OCache.cres(OCache.java:146)
   at haven.Session$RWorker.getobjdata(Session.java:289)
   at haven.Session$RWorker.run(Session.java:639)


I honestly do wonder if minecraft can have something to do with it though. First time it happened was after I installed minecraft. I reinstalled windows and everything was fixed, no new applications have been installed since BUT minecraft. Which I did a couple days ago and now I am getting heap space errors again. I do not have the app up and running, nor really play it except for helping a friend set up and check server. No rogue java running either. Uninstalling it doesnt seem to fix it so I might end up reinstalling windows again unless anyone have any clue this time around :)

Windows also upgraded itself just like last time a week before this happened. Turning off automatic updates didnt stop it from automatically upgrade itself >.>
User avatar
honeymilk
Customer
 
Posts: 249
Joined: Sun Dec 28, 2014 4:51 am

Re: java.lang.OutOfMemoryError: Java heap space

Postby Kandarim » Wed Jan 13, 2016 9:25 am

then your issue seems to be a rogue windows installation ¦]

On-topic: bah.

Can you run the client with this script? (it will have to be one of the custom clients, as you can't easily access the default client's jar)

Code: Select all
"C:\Program Files\Java\jre7\bin\java.exe" -jar lsalem.jar -d -U http://game.salemthegame.com/res/ game.salemthegame.com


make sure the java path is correct, and change lsalem.jar to salem.jar if you want to launch ender's. this should be launched from ~/Salem/bin.
Note that I added the -d flag, which will render debugging information, mainly on fps and memory usage, in the bottom left.

If you're messing with this kind of stuff anyway, you might want to try manually increasing the heap size:

Code: Select all
"C:\Program Files\Java\jre7\bin\java.exe" -Xmx1024m -Xms1024m -jar lsalem.jar -U http://game.salemthegame.com/res/ game.salemthegame.com


This will allocate 1gig for both java's heap and stack, which should be more than plenty for the client.
I have neither the crayons nor the time to explain it to you.
JC wrote:I'm not fully committed to being wrong on that yet.
User avatar
Kandarim
Customer
 
Posts: 5321
Joined: Mon Jan 21, 2013 4:18 pm

Re: java.lang.OutOfMemoryError: Java heap space

Postby honeymilk » Thu Jan 14, 2016 12:21 am

I have no clue what I am looking at here- It takes a while for the crashes to happen in the beginning so its difficult to test different things until it becomes more frequent. It gets more frequent the more crashes I have so its building up though.
Image
User avatar
honeymilk
Customer
 
Posts: 249
Joined: Sun Dec 28, 2014 4:51 am

Re: java.lang.OutOfMemoryError: Java heap space

Postby Kandarim » Thu Jan 14, 2016 10:19 am

that looks pretty impressive though.
The memory line consists of [free memory/used memory/allocated memory/available memory] so there really should not be a problem :x
I have neither the crayons nor the time to explain it to you.
JC wrote:I'm not fully committed to being wrong on that yet.
User avatar
Kandarim
Customer
 
Posts: 5321
Joined: Mon Jan 21, 2013 4:18 pm

Previous

Return to Bugs & Technicalities

Who is online

Users browsing this forum: No registered users and 20 guests