In-game crash - Out of memory error

Don’t want to make a new thread, so i’m hijacking this one for my issue with Shaders. Not using the launcher, did a self install.

---- Minecraft Crash Report ----

WARNING: coremods are present:
Contact their authors BEFORE contacting forge

// My bad.

Time: 6/28/16 5:46 PM
Description: Updating screen events

java.lang.OutOfMemoryError: Java heap space
at TextureAnimations.loadImage(TextureAnimations.java:247)
at TextureAnimations.getCustomTextureData(TextureAnimations.java:208)
at TextureAnimations.makeTextureAnimation(TextureAnimations.java:181)
at TextureAnimations.getTextureAnimations(TextureAnimations.java:122)
at TextureAnimations.getTextureAnimations(TextureAnimations.java:92)
at TextureAnimations.update(TextureAnimations.java:52)
at TextureUtils.resourcesReloaded(TextureUtils.java:292)
at TextureUtils$1.func_110549_a(TextureUtils.java:329)
at net.minecraft.client.resources.SimpleReloadableResourceManager.func_110544_b(SimpleReloadableResourceManager.java:130)
at net.minecraft.client.resources.SimpleReloadableResourceManager.func_110541_a(SimpleReloadableResourceManager.java:111)
at net.minecraft.client.Minecraft.func_110436_a(Minecraft.java:732)
at net.minecraft.client.Minecraft$16.run(Minecraft.java:2553)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at net.minecraft.client.Minecraft.func_152343_a(Minecraft.java:2964)
at net.minecraft.client.Minecraft.func_152344_a(Minecraft.java:2976)
at net.minecraft.client.Minecraft.func_175603_A(Minecraft.java:2549)
at shadersmod.client.Shaders.loadShaderPack(Shaders.java:898)
at shadersmod.client.Shaders.setShaderPack(Shaders.java:794)
at shadersmod.client.GuiSlotShaders.func_148144_a(GuiSlotShaders.java:72)
at net.minecraft.client.gui.GuiSlot.func_178039_p(GuiSlot.java:270)
at shadersmod.client.GuiShaders.func_146274_d(GuiShaders.java:104)
at net.minecraft.client.gui.GuiScreen.func_146269_k(GuiScreen.java:523)
at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1674)
at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:1024)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:349)
at net.minecraft.client.main.Main.main(SourceFile:124)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

A detailed walkthrough of the error, its code path and all known details is as follows:

– Head –
Stacktrace:
at TextureAnimations.loadImage(TextureAnimations.java:247)
at TextureAnimations.getCustomTextureData(TextureAnimations.java:208)
at TextureAnimations.makeTextureAnimation(TextureAnimations.java:181)
at TextureAnimations.getTextureAnimations(TextureAnimations.java:122)
at TextureAnimations.getTextureAnimations(TextureAnimations.java:92)
at TextureAnimations.update(TextureAnimations.java:52)
at TextureUtils.resourcesReloaded(TextureUtils.java:292)
at TextureUtils$1.func_110549_a(TextureUtils.java:329)
at net.minecraft.client.resources.SimpleReloadableResourceManager.func_110544_b(SimpleReloadableResourceManager.java:130)
at net.minecraft.client.resources.SimpleReloadableResourceManager.func_110541_a(SimpleReloadableResourceManager.java:111)
at net.minecraft.client.Minecraft.func_110436_a(Minecraft.java:732)
at net.minecraft.client.Minecraft$16.run(Minecraft.java:2553)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at net.minecraft.client.Minecraft.func_152343_a(Minecraft.java:2964)
at net.minecraft.client.Minecraft.func_152344_a(Minecraft.java:2976)
at net.minecraft.client.Minecraft.func_175603_A(Minecraft.java:2549)
at shadersmod.client.Shaders.loadShaderPack(Shaders.java:898)
at shadersmod.client.Shaders.setShaderPack(Shaders.java:794)
at shadersmod.client.GuiSlotShaders.func_148144_a(GuiSlotShaders.java:72)
at net.minecraft.client.gui.GuiSlot.func_178039_p(GuiSlot.java:270)
at shadersmod.client.GuiShaders.func_146274_d(GuiShaders.java:104)
at net.minecraft.client.gui.GuiScreen.func_146269_k(GuiScreen.java:523)

– Affected screen –
Details:
Screen name: shadersmod.client.GuiShaders

– Affected level –
Details:
Level name: MpServer
All players: 1 total; [EntityPlayerSP[‘Glov’/79830, l=‘MpServer’, x=2155.49, y=48.82, z=-162.18]]
Chunk stats: MultiplayerChunkCache: 1089, 1089
Level seed: 0
Level generator: ID 01 - flat, ver 0. Features enabled: false
Level generator options:
Level spawn location: -1452.00,25.00,-827.00 - World: (-1452,25,-827), Chunk: (at 4,1,5 in -91,-52; contains blocks -1456,0,-832 to -1441,255,-817), Region: (-3,-2; contains chunks -96,-64 to -65,-33, blocks -1536,0,-1024 to -1025,255,-513)
Level time: 1012038615 game time, 47750 day time
Level dimension: 0
Level storage version: 0x00000 - Unknown?
Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
Forced entities: 1 total; [EntityPlayerSP[‘Glov’/79830, l=‘MpServer’, x=2155.49, y=48.82, z=-162.18]]
Retry entities: 0 total; []
Server brand: fml,forge,sponge
Server type: Non-integrated multiplayer server
Stacktrace:
at net.minecraft.client.multiplayer.WorldClient.func_72914_a(WorldClient.java:412)
at net.minecraft.client.Minecraft.func_71396_d(Minecraft.java:2536)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:370)
at net.minecraft.client.main.Main.main(SourceFile:124)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

– System Details –
Details:
Minecraft Version: 1.8.9
Operating System: Windows 10 (amd64) version 10.0
CPU: 8x Intel® Core™ i7-4790K CPU @ 4.00GHz
Java Version: 1.8.0_25, Oracle Corporation
Java VM Version: Java HotSpot™ 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 109103024 bytes (104 MB) / 965738496 bytes (921 MB) up to 965738496 bytes (921 MB)
JVM Flags: 2 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP 9.19 Powered by Forge 11.15.1.1722 Optifine OptiFine_1.8.9_HD_U_H6 5 mods loaded, 5 mods active
States: ‘U’ = Unloaded ‘L’ = Loaded ‘C’ = Constructed ‘H’ = Pre-initialized ‘I’ = Initialized ‘J’ = Post-initialized ‘A’ = Available ‘D’ = Disabled ‘E’ = Errored
UCHIJA mcp{9.19} [Minecraft Coder Pack] (minecraft.jar)
UCHIJA FML{8.0.99.99} [Forge Mod Loader] (forge-1.8.9-11.15.1.1722.jar)
UCHIJA Forge{11.15.1.1722} [Minecraft Forge] (forge-1.8.9-11.15.1.1722.jar)
UCHIJA acblocks{2.0r2} [AC CreativeBlock] (AC-CreativeBlock-2.0r2-mc1.8.9.jar)
UCHIJA acpaintings{1.0} [ACPaintings] (ACPaintings-1.0-mc1.8.9.jar)
Loaded coremods (and transformers):
GL info: ’ Vendor: ‘NVIDIA Corporation’ Version: ‘4.5.0 NVIDIA 364.72’ Renderer: 'GeForce GTX 970/PCIe/SSE2’
Launched Version: 1.8.9
LWJGL: 2.9.4
OpenGL: GeForce GTX 970/PCIe/SSE2 GL version 4.5.0 NVIDIA 364.72, NVIDIA Corporation
GL Caps: Using GL 1.3 multitexturing.
Using GL 1.3 texture combiners.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Shaders are available because OpenGL 2.1 is supported.
VBOs are available because OpenGL 1.5 is supported.

Using VBOs: No
Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Packs: AC-Conquest-4.1.zip
Current Language: English (US)
Profiler Position: N/A (disabled)
CPU: 8x Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz
OptiFine Version: OptiFine_1.8.9_HD_U_H6
Render Distance Chunks: 32
Mipmaps: 4
Anisotropic Filtering: 1
Antialiasing: 0
Multitexture: false
Shaders: ConquestoftheSun_.zip
OpenGlVersion: 4.5.0 NVIDIA 364.72
OpenGlRenderer: GeForce GTX 970/PCIe/SSE2
OpenGlVendor: NVIDIA Corporation
CpuCount: 8

Your game is running out of ram. Your current maximum is set to 1GB, which is usually about enough for the basic forge + modblocks + paintings setup. However, looks like you’re running extreme render distance too, which will gobble up a lot more.

Try increase the limit from -Xmx1G to -Xmx2G or so.
(That’s from the minecraft launcher >> ‘edit profile’ >> ‘JVM Arguments’)


For anyone interested, you can monitor your ram usage in-game with the F3 debug overlay.

There is a percentage of ‘in-use’ memory on the top right. If this value is regularly hitting between 90-100% then you may run into issues with stuttering, and even crashes, so consider increasing the max ram argument.

Thanks, i’ll try it out. I have 16 GB, what do you guess is this highest amount I could dedicate?
And would that increase performance in game?

It’s more a case of there being a minimum amount of ram required to run the game ‘normally’. Once you’ve got that minimum, performance is largely just down to your CPU/graphics card.

Anything under and you’ll probably see stuttering, low fps, and/or crashes. Anything over is going to be overhead that’ll come in handy when you’re doing memory-intensive things (flying around quickly = loading more chunks into memory more quickly, for example).

I think a good approach is to try find the minimum amount of ram required to cover the most intensive tasks you do in-game. I’d start at 2GB, and keep an eye on your memory usage using the F3 debug screen, and increment that value by 500MB-1GB, or so, until the usage is not peeking over or around 80-90%

1 Like