Rise to Ruins

Rise to Ruins

View Stats:
Darzok12 Mar 8, 2019 @ 7:58pm
java.lang.OutOfMemoryError: Java heap space Crash
I'm getting this error either when I save and exit from the game or sometimes when I launch it. Also, when I'm able to get in-game there is a constant stutter. The game freezes for like 0.1 seconds every second which makes it hard to click stuff sometimes or to move the camera. . When I press F3, I see the max and total memory that are at 455. Over that is something like available memory. It goes down from 455 to 0 very quickly and every time it gets to 0 there is the small freeze. The problem really seems to be that the game doesn't use enough of ram( I have 16GB) but I don't know how I am supposed to allocate more RAM to the game.

Fri Mar 08 22:31:12 EST 2019 ERROR:Java heap space
java.lang.OutOfMemoryError: Java heap space
at rtr.ShadowModule.buildShadowMap(ShadowModule.java:110)
at rtr.ShadowModule.initModule(ShadowModule.java:50)
at rtr.states.StateBase.loadState(StateBase.java:346)
at rtr.states.PlayState.loadState(PlayState.java:111)
at rtr.states.StateBase.update(StateBase.java:432)
at rtr.states.PlayState.update(PlayState.java:238)
at org.newdawn.slick.state.StateBasedGame.update(StateBasedGame.java:266)
at org.newdawn.slick.GameContainer.updateAndRender(GameContainer.java:652)
at org.newdawn.slick.AppGameContainer.gameLoop(AppGameContainer.java:481)
at org.newdawn.slick.AppGameContainer.start(AppGameContainer.java:391)
at rtr.system.Game.launchGame(Game.java:157)
at rtr.system.Launcher.main(Launcher.java:52)
Fri Mar 08 22:31:12 EST 2019 ERROR:Game.update() failure - check the game code.
org.newdawn.slick.SlickException: Game.update() failure - check the game code.
at org.newdawn.slick.GameContainer.updateAndRender(GameContainer.java:669)
at org.newdawn.slick.AppGameContainer.gameLoop(AppGameContainer.java:481)
at org.newdawn.slick.AppGameContainer.start(AppGameContainer.java:391)
at rtr.system.Game.launchGame(Game.java:157)
at rtr.system.Launcher.main(Launcher.java:52)

My specs:

Processor: Intel(R) Core(TM) i5-7400 CPU @ 3.00GHz

Video Card: NVIDIA GeForce GTX 1060 6GB

RAM: 16 GB

Operating System: Windows 10

Thanks in advance!
< >
Showing 1-5 of 5 comments
Tiberiumkyle Mar 8, 2019 @ 9:26pm 
Can you post the full crash log? A number of things at the start of it are fairly important and can help with troubleshooting.
Rayvolution  [developer] Mar 9, 2019 @ 3:51am 
You certainly shouldn't be having any memory issues, your specs are almost exactly the target median specs of the game. I'll need to see the top half of the crash log (where the game is initializing), it might point out some red flags.

But, typically if someone has 16 gigs of ram and somehow are still seeing memory issues, usually what ends up happening is they have some very ram heavy applications running in the background (AutoCAD, Photoshop, Blender, etc) with heavy files open/loaded.

You *can* force allocate more ram to the game and run it outside Steam, that may fix your problem. But it isn't the correct solution, something on your machine is gobbling up all your ram.

Alternatively there is a very serious bug in RAZER's software that hard locks all Java applications to 256 megs of ram no matter what environmental settings you set (Blame the worthless programmers at RAZER). If your log only shows you allocating around 256 megs of ram, it's possible that's the issue as well (Even if you don't have their products anymore, and the software is uninstalled!). If so, check out this thread (Or more specifically, this reply and it's quoted content);

https://steamcommunity.com/app/328080/discussions/1/2650805212047333345/#c2650805212048758286
Last edited by Rayvolution; Mar 9, 2019 @ 3:52am
Darzok12 Mar 10, 2019 @ 9:52am 
Originally posted by Rayvolution:
You certainly shouldn't be having any memory issues, your specs are almost exactly the target median specs of the game. I'll need to see the top half of the crash log (where the game is initializing), it might point out some red flags.

But, typically if someone has 16 gigs of ram and somehow are still seeing memory issues, usually what ends up happening is they have some very ram heavy applications running in the background (AutoCAD, Photoshop, Blender, etc) with heavy files open/loaded.

You *can* force allocate more ram to the game and run it outside Steam, that may fix your problem. But it isn't the correct solution, something on your machine is gobbling up all your ram.

Alternatively there is a very serious bug in RAZER's software that hard locks all Java applications to 256 megs of ram no matter what environmental settings you set (Blame the worthless programmers at RAZER). If your log only shows you allocating around 256 megs of ram, it's possible that's the issue as well (Even if you don't have their products anymore, and the software is uninstalled!). If so, check out this thread (Or more specifically, this reply and it's quoted content);

https://steamcommunity.com/app/328080/discussions/1/2650805212047333345/#c2650805212048758286


I have tried deleting _JAVA_OPTIONS but it didn't do anything. I don't run any Razor program as well. When I'm in game, I don't use any RAM heavy programs. I have above 10GB available when I'm in-game but it only uses 800MB at max as I could see in the task manager.. So here is the full crash logs from when I was able to get into my world and click Save and Exit which made the game crash:

Rise to Ruins InDev 32e

Attempting to initialize Steamworks

Fetching local language files.
Attempting to load: C:\Program Files (x86)\Steam\steamapps\common\Rise to Ruins\localization\defaultEnglish

Fetching Steam Workshop language files, if logged in to Steam.
No Steam Workshop language files found.

Total word count: 24121
Total key count: 4413
Text key count: 3809

Loading Font Data
Thread Pool Size: 4

Operating System: Windows 10
GPU Drivers: C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_7a8e74171e1b8492\nvldumdx.dll,C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_7a8e74171e1b8492\nvldumdx.dll,C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_7a8e74171e1b8492\nvldumdx.dll,C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_7a8e74171e1b8492\nvldumdx.dll
GPU Driver Version: null
Maximum JVM Memory: 455MB
Sun Mar 10 12:36:51 EDT 2019 INFO:Slick Build #237
Initializing Display Mode: Borderless Full Screen
Sun Mar 10 12:36:51 EDT 2019 INFO:LWJGL Version: 2.9.3
Sun Mar 10 12:36:51 EDT 2019 INFO:OriginalDisplayMode: 1920 x 1080 x 32 @144Hz
Sun Mar 10 12:36:51 EDT 2019 INFO:TargetDisplayMode: 1920 x 1080 x 0 @0Hz
Sun Mar 10 12:36:52 EDT 2019 INFO:Starting display 1920x1080
Sun Mar 10 12:36:52 EDT 2019 INFO:Use Java PNG Loader = true
Sun Mar 10 12:36:52 EDT 2019 INFO:Controllers not available
Resetting MAIN_MENU
Loading Game
font Module: 4625
save Module: 0
time Module: 0
Sun Mar 10 12:36:58 EDT 2019 INFO:Initialising sounds..
Sun Mar 10 12:36:58 EDT 2019 INFO:- Sound works
Sun Mar 10 12:36:58 EDT 2019 INFO:- 64 OpenAL source available
Sun Mar 10 12:36:58 EDT 2019 INFO:- Sounds source generated
sound Module: 143
Loaded Tileset: GRASS_EMERALD_GREEN (2410000) Time: 12
Loaded Tileset: GRAVEL_GRAY (2630000) Time: 5
Loaded Tileset: ROCK_GRAY (220000) Time: 52
Loaded Tileset: TREES_BLUE (10000) Time: 43
Loaded Tileset: GRAVEL_GRAY_ACCENT (2630500) Time: 5
Loaded Tileset: ROCK_GRAY_ACCENT (220500) Time: 39
Loaded Tileset: GRASS_EMERALD_GREEN_ACCENT (2410500) Time: 4
Loaded Tileset: WATER (3610000) Time: 71
Loaded Tileset: TREES_BLUE_ACCENT (11000) Time: 32
Loaded Tileset: CRYSTAL_RED (610000) Time: 36
Loaded Tileset: TURNIPS (1010000) Time: 41
Loaded Tileset: WATER_ACCENT (3610500) Time: 22
Loaded Tileset: FLOWERS_PURPLE (2220000) Time: 10
Loaded Tileset: ANCIENT_RADIANCE_POOL (200600000) Time: 14
Loaded Tileset: CRYSTAL_RED_ACCENT (610500) Time: 44
Loaded Tileset: ANCIENT_CULLIS_GATE (200400000) Time: 39
Loaded Tileset: POTATOES (810000) Time: 33
Loaded Tileset: FLOWERS_YELLOW (2235000) Time: 47
Loaded Tileset: POTATOES_ACCENT (810500) Time: 16
Loaded Tileset: FLOWERS_BLACK (2210000) Time: 6
Loaded Tileset: PATH (4010000) Time: 7
Loaded Tileset: FARM (205005500) Time: 174
Loaded Tileset: ESSENCE_COLLECTOR (204605500) Time: 37
Loaded Tileset: COBBLE_AND_BOARD_ROAD_DEBRIS (4012500) Time: 11
Loaded Tileset: DOGGO_HOUSE (204205500) Time: 15
Loaded Tileset: LOG_PATH_DEBRIS (4010500) Time: 10
Loaded Tileset: HOUSING (206205500) Time: 101
Loaded Tileset: WOOD_FENCE (4214000) Time: 26
Loaded Tileset: LOG_PATH (4011000) Time: 7
Loaded Tileset: LARGE_FOUNTAIN (206605500) Time: 304
Loaded Tileset: GRASS_GREEN (2415000) Time: 3
Loaded Tileset: GRASS_GREEN_ACCENT (2415500) Time: 4
Loaded Tileset: TREES_GREEN (25000) Time: 27
Loaded Tileset: CRYSTAL_BLUE (620000) Time: 32
Loaded Tileset: TREES_GREEN_ACCENT (26000) Time: 18
Loaded Tileset: CARROTS (1410000) Time: 15
map Module: 1832
road Module: 0
miniMap Module: 55
resource Module: 42
transition Module: 0
shadow Module: 1273
lighting Module: 150
projectile Module: 0
missile Module: 8
particle Module: 59
collision Module: 37
depth Module: 27
perk Module: 7
god Module: 0
goal Module: 0
0 version object save failed to load.
object Module: 178
background Module: 5
mob Module: 4738
mobJob Module: 0
essence Module: 0
weather Module: 1
corruption Module: 5
profile Module: 0
Map FBO: 447
resource Module Sync: 1
missile Module Sync: 27
object Module Sync: 4
mob Module Sync: 17
essence Module Sync: 0
TOTAL TIME: 15800
Resetting MAIN_MENU
Loading Game
Loading worldMap
font Module: 0
save Module: 17
time Module: 0
sound Module: 15
Creating new provisioner stock.
resource Module: 343
transition Module: 0
projectile Module: 0
particle Module: 2190
chest Module: 1
perk Module: 2
god Module: 0
goal Module: 59
background Module: 0
mob Module: 10
influence Module: 8
help Module: 1
corruption Module: 2
migration Module: 1
resource Module Sync: 0
mob Module Sync: 0
influence Module Sync: 0
TOTAL TIME: 4976
Saved World Map time data, took, took 1ms
Saved World Map goal data, took, took 1ms
Saved World Map god data, took, took 1ms
Saved World Map perk data, took, took 2ms
Saved World Map chest data, took, took 1ms
Saved World Map migration data, took, took 1ms
Saved World Map resource data, took, took 32ms
World Map Data Save Clean Up, took 26ms
Loading: Applemeadow
Resetting WORLD_MAP
Loading Game
Loading traditional
font Module: 0
save Module: 6
time Module: 0
sound Module: 0
Loaded Tileset: DIRT_BROWN (2010000) Time: 3
Loaded Tileset: DIRT_BROWN_ACCENT (2010500) Time: 4
Loaded Tileset: MARKETPLACE (211205500) Time: 304
Loaded Tileset: GOLD_STORAGE (206005500) Time: 74
Loaded Tileset: FLOWERS_WHITE (2230000) Time: 7
Loaded Tileset: CRYSTAL_BLUE_ACCENT (620500) Time: 14
Loaded Tileset: FLOWERS_WHITE_ACCENT (2230500) Time: 6
Loaded Tileset: SAND_TAN (3020000) Time: 3
Loaded Tileset: CARROTS_COLLECTED (1411000) Time: 15
Loaded Tileset: SAND_TAN_ACCENT (3020500) Time: 3
Loaded Tileset: MINING_FACILITY_UPGRADE_1 (211811500) Time: 93
Loaded Tileset: ROCK_GRAY_COLLECTED (221000) Time: 8
Loaded Tileset: CACTUS_GREEN (1210000) Time: 15
Loaded Tileset: SANDSTONE_TAN (420000) Time: 19
Loaded Tileset: STONE_CUTTERY (213801000) Time: 86
Loaded Tileset: CACTUS_GREEN_ACCENT (1210500) Time: 12
Loaded Tileset: RAIN_CATCHER (213000500) Time: 38
Loaded Tileset: TREES_GREEN_COLLECTED (26500) Time: 17
Loaded Tileset: BOTTLER (202001000) Time: 36
Loaded Tileset: WELL (214801000) Time: 19
Loaded Tileset: KITCHEN (210004500) Time: 54
Loaded Tileset: LUMBER_SHACK (210405500) Time: 92
Loaded Tileset: COBBLE_AND_LOG_PATH_DEBRIS (4011500) Time: 7
Loaded Tileset: COBBLE_AND_LOG_PATH (4012000) Time: 7
Loaded Tileset: BOW_TOWER (202205500) Time: 18
Loaded Tileset: WOOD_STORAGE (215205500) Time: 89
Loaded Tileset: TREES_GREEN_DEAD (25500) Time: 17
Loaded Tileset: CARROTS_ACCENT (1410500) Time: 10
Loaded Tileset: CASTLE_1 (200004500) Time: 162
Loaded Tileset: FOOD_STORAGE (205605500) Time: 87
Loaded Tileset: CORRUPTION (3810000) Time: 9
Loaded Tileset: GRAVEL_RED (2635000) Time: 5
Loaded Tileset: ROCK_BROWN (215000) Time: 22
Loaded Tileset: GRAVEL_RED_ACCENT (2635500) Time: 4
Loaded Tileset: CRYSTAL_BLUE_COLLECTED (621000) Time: 47
Loaded Tileset: ROCK_BROWN_ACCENT (215500) Time: 19
Loaded Tileset: CORRUPTED_GRAVEYARD_MEDIUM (207405000) Time: 33
Loaded Tileset: CRYSTAL_PURPLE (625000) Time: 23
Loaded Tileset: CORRUPTED_GRAVEYARD_LARGE (207600000) Time: 334
Loaded Tileset: CRYSTAL_PURPLE_COLLECTED (626000) Time: 14
map Module: 2076
road Module: 22
mapAI Module: 16
miniMap Module: 76
resource Module: 271
trade Module: 0
transition Module: 0
shadow Module: 1947
lighting Module: 17
projectile Module: 0
missile Module: 0
particle Module: 16
collision Module: 18
depth Module: 13
chest Module: 0
perk Module: 2
god Module: 0
goal Module: 0
object Module: 15
background Module: 0
mob Module: 12
mobJob Module: 0
essence Module: 0
spawn Module: 0
influence Module: 0
weather Module: 0
workSelection Module: 242
waypoint Module: 0
data Module: 1
help Module: 0
lootBox Module: 0
stats Module: 2
corruption Module: 5
migration Module: 0
profile Module: 0
Map FBO: 97
resource Module Sync: 1
missile Module Sync: 0
object Module Sync: 114
mob Module Sync: 5
essence Module Sync: 0
spawn Module Sync: 0
influence Module Sync: 0
waypoint Module Sync: 0
TOTAL TIME: 6584
DRONE NONE AI AI_START STEP 0 time to execute was high: 156
GHOST NONE AI AI_START STEP 0 time to execute was high: 159
GHOST NONE AI AI_WANDER STEP 1 time to execute was high: 158
VILLAGER BUILDER AI AI_WANDER STEP 1 time to execute was high: 154
--------------------
Save Preparation, took 0ms
Saved mob, took 2ms
Saved mobJob, took 1ms
Saved essence, took 1ms
Saved resource, took 7ms
Saved trade, took 1ms
Saved lootBox, took 1ms
Saved spawn, took 1ms
Saved influence, took 1ms
Saved weather, took 1ms
Saved workSelection, took 4ms
Saved missile, took 1ms
Saved road, took 9ms
Saved time, took 1ms
Saved stats, took 2ms
Saved corruption, took 1ms
Saved migration, took 1ms
Saved map, took 2ms
Saved object, took 6ms
Saved Map Data, took 39ms
Saved Map Preview, took 29ms
profiles\profile0\saves\worldMap\WorldMaps\Applemeadow\traditionalNew\Applemeadow.bmp in use. Waiting.
Save Clean Up, took 356ms
Save Complete, took - 468ms
Saved World Map time data, took, took 1ms
Saved World Map goal data, took, took 1ms
Saved World Map god data, took, took 0ms
Saved World Map perk data, took, took 0ms
Saved World Map chest data, took, took 0ms
Saved World Map migration data, took, took 1ms
Saved World Map resource data, took, took 13ms
World Map Data Save Clean Up, took 18ms
Resetting TRADITIONAL
Sun Mar 10 12:38:54 EDT 2019 ERROR:Java heap space
java.lang.OutOfMemoryError: Java heap space
at rtr.ShadowModule.resetModule(ShadowModule.java:56)
at rtr.states.StateBase.resetModules(StateBase.java:307)
at rtr.states.StateBase.leave(StateBase.java:630)
at rtr.states.PlayState.leave(PlayState.java:136)
at org.newdawn.slick.state.StateBasedGame.update(StateBasedGame.java:243)
at org.newdawn.slick.GameContainer.updateAndRender(GameContainer.java:657)
at org.newdawn.slick.AppGameContainer.gameLoop(AppGameContainer.java:481)
at org.newdawn.slick.AppGameContainer.start(AppGameContainer.java:391)
at rtr.system.Game.launchGame(Game.java:157)
at rtr.system.Launcher.main(Launcher.java:52)
Sun Mar 10 12:38:54 EDT 2019 ERROR:Game.update() failure - check the game code.
org.newdawn.slick.SlickException: Game.update() failure - check the game code.
at org.newdawn.slick.GameContainer.updateAndRender(GameContainer.java:669)
at org.newdawn.slick.AppGameContainer.gameLoop(AppGameContainer.java:481)
at org.newdawn.slick.AppGameContainer.start(AppGameContainer.java:391)
at rtr.system.Game.launchGame(Game.java:157)
at rtr.system.Launcher.main(Launcher.java:52)
Rayvolution  [developer] Mar 10, 2019 @ 10:00am 
The game definitely isn't allocating enough memory for some reason. There's a ton of things that could cause it, most of them are third party apps though. But, we can try to just force-allocate the ram. Open up the RtR install folder, open RtR.bat with a text editor and replace the contents with this:

jre\windows64\bin\java.exe -Duser.country=US -Duser.language=en -jar -Xmx4g -Xms4g Core.jar pause

Then, launch the .bat file and see what happens. If it works, it's possible some application is overriding the JVM environmental variables, and won't allow it to allocate ram like it should. Sadly it's extremely difficult to figure out what application may be causing the issue though. Even worse, if it doesn't work it could still be another app. :(

But, it's a good first step to see if we can at least get the game running.
Darzok12 Mar 10, 2019 @ 10:14am 
Thanks a lot! It works! I had previously tried to force allocate more memory through the .bat file as I saw in a previous post from 2014 but there definitely is are more things in this line. I'll try to find what can be limiting the game from using more memory. But thanks again for the help!
< >
Showing 1-5 of 5 comments
Per page: 1530 50

Date Posted: Mar 8, 2019 @ 7:58pm
Posts: 5