Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs

Gearend

Explore an abandoned robotics facility as a customizable robot. · By SolarLune

[SOLVED] Java OutOfMemory crash Locked

A topic by Metroidvanias.com created Aug 04, 2017 Views: 426 Replies: 2
This topic was locked by SolarLune Aug 21, 2017
Viewing posts 1 to 4
(1 edit)

After the stutter and then crash https://itch.io/t/130260/stuttering-after-death I get this message:

warning CollisionDispatcher.needsCollision: static-static collision!
warning CollisionDispatcher.needsCollision: static-static collision!
Exception in thread "LWJGL Application" com.badlogic.gdx.utils.GdxRuntimeException: java.lang.OutOfMemoryError: Java heap space
at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:131)
Caused by: java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOfRange(Arrays.java:3664)
at java.lang.String.<init>(String.java:207)
at com.badlogic.gdx.utils.JsonReader.parse(JsonReader.java:188)
at com.badlogic.gdx.utils.JsonReader.parse(JsonReader.java:55)
at com.badlogic.gdx.utils.JsonReader.parse(JsonReader.java:75)
at com.nilunder.bdx.Scene.init(Scene.java:185)
at com.nilunder.bdx.Bdx$ArrayListScenes.add(Bdx.java:111)
at com.nilunder.bdx.Bdx$ArrayListScenes.add(Bdx.java:122)
at com.solarlune.gearend.system.SysCon.setGameScene(SysCon.java:606)
at com.solarlune.gearend.system.SysCon.loadGame(SysCon.java:506)
at com.solarlune.gearend.system.mainmenu.MainMenuCursor.main(MainMenuCursor.java:226)
at com.nilunder.bdx.Scene.runObjectLogic(Scene.java:848)
at com.nilunder.bdx.Scene.update(Scene.java:894)
at com.nilunder.bdx.Bdx.main(Bdx.java:314)
at com.solarlune.gearend.BdxApp.render(BdxApp.java:44)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:223)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:124)

I tried using the -Xms2048m and -Xmx2048m to increase the memory ceiling, but same errors still happen.

jre\bin\java -jar Gearend-1.0.jar -Xms2048m -Xmx2048m

Hello! Thank you very much for your report - I just uploaded a new build that should improve memory usage and take care of out of memory errors. Please feel free to try it out!

(1 edit)

Since this thread and the other thread are so similar, I'm going to lock this one so I don't get confused as to which one is which (they're both basically the same issue dealing with memory consumption).

EDIT: This issue was resolved as of the 1.02 update.

locked this topic