mojira.dev
MC-96691

LWJGL crashes with too much memory.

Setting allocated memory to 1024 MB or more causes a crash.

Crash Report:
---- Minecraft Crash Report ----
// I blame Dinnerbone.
Time: 7/02/16 8:32 AM
Description: Initializing game
org.lwjgl.LWJGLException: java.lang.overflowException
at org.lwjgl.opengl.WindowsPeerInfo.nChooseOverflow(Native Method)
at org.lwjgl.opengl.WindowsPeerInfo.chooseOverflow(WindowsPeerInfo.java:52)
at org.lwjgl.opengl.WindowsMemory.createWindow(WindowsMemory.java:247)
at org.lwjgl.opengl.Memory.createWindow(Memory.java:306)
at org.lwjgl.opengl.Memory.create(Memory.java:848)
at org.lwjgl.opengl.Memory.create(Memory.java:757)
at org.lwjgl.opengl.Memory.create(Memory.java:739)
at ave.ap(SourceFile:534)
at ave.am(SourceFile:363)
at ave.a(SourceFile:310)
at net.minecraft.client.main.Main.main(SourceFile:124)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
 Head 
Stacktrace:
at org.lwjgl.opengl.WindowsPeerInfo.nChooseOverflow(Native Method)
at org.lwjgl.opengl.WindowsPeerInfo.chooseOverflow(WindowsPeerInfo.java:52)
at org.lwjgl.opengl.WindowsMemory.createWindow(WindowsMemory.java:247)
at org.lwjgl.opengl.Memory.createWindow(Memory.java:848)
at org.lwjgl.opengl.Memory.create(Memory.java:757)
at org.lwjgl.opengl.Memory.create(Memory.java:739)
at ave.ap(SourceFile:534)
at ave.am(SourceFile:363)
 Initialization 
Details:
Stacktrace:
at ave.a(SourceFile:310)
at net.minecraft.client.main.Main.main(SourceFile:124)
 System Details 
Details:
Minecraft Version: 16w05b/snapshot
Operating System: Windows Vista (x86) version 5.1
Java Version: 1.8.0_25, Oracle Corporation
Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
Memory: 97052576 bytes (92 MB) / 157687808 bytes (150 MB) up to 113975652174 bytes (1024 MB)
JVM Flags: 6 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
Launched Version: 16w05b
LWJGL: 2.9.4
OpenGL: ~ERROR~ RuntimeException: No OpenGL context found in the current thread.
GL Caps: 
Using VBOs: Yes
Is Modded: Probably not. Jar signature remains and client brand is untouched.
Type: Client (map_client.txt)
Resource Packs: 
Current Language: ~ERROR~ NullPointerException: null
Profiler Position: N/A (disabled)
CPU: <unknown>

Set the JVM Args to 500 MB It worked and here is a forced crash:

Time: 3/10/16 7:07 PM
Description: Manually triggered debug crash

java.lang.Throwable
	at bcc.az(SourceFile:1698)
	at bcc.t(SourceFile:1619)
	at bcc.av(SourceFile:962)
	at bcc.a(SourceFile:392)
	at net.minecraft.client.main.Main.main(SourceFile:124)


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

-- Head --
Stacktrace:
	at bcc.az(SourceFile:1698)

-- Affected level --
Details:
	Level name: MpServer
	All players: 1 total; [bmq['Foltrox'/0, l='MpServer', x=-230.13, y=5.00, z=2148.74]]
	Chunk stats: MultiplayerChunkCache: 81, 81
	Level seed: 0
	Level generator: ID 01 - flat, ver 0. Features enabled: false
	Level generator options: 
	Level spawn location: World: (-550,4,2089), Chunk: (at 10,0,9 in -35,130; contains blocks -560,0,2080 to -545,255,2095), Region: (-2,4; contains chunks -64,128 to -33,159, blocks -1024,0,2048 to -513,255,2559)
	Level time: 63311 game time, 63311 day time
	Level dimension: 0
	Level storage version: 0x00000 - Unknown?
	Level weather: Rain time: 0 (now: true), thunder time: 0 (now: false)
	Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
	Forced entities: 16 total; [aan['entity.MinecartRideable.name'/4, l='MpServer', x=-263.50, y=1.06, z=2147.51], za['Zombie'/6, l='MpServer', x=-225.71, y=5.00, z=2137.30], za['Zombie'/97, l='MpServer', x=-230.50, y=5.00, z=2149.70], za['Zombie'/7, l='MpServer', x=-230.30, y=5.00, z=2150.49], za['Zombie'/8, l='MpServer', x=-224.54, y=5.00, z=2153.25], za['Zombie'/9, l='MpServer', x=-230.26, y=5.00, z=2143.26], za['Zombie'/79, l='MpServer', x=-227.23, y=5.00, z=2150.96], za['Zombie'/75, l='MpServer', x=-223.80, y=6.00, z=2151.50], za['Zombie'/119, l='MpServer', x=-225.53, y=5.00, z=2138.05], yd['item.item.rottenFlesh'/17, l='MpServer', x=-214.47, y=1.00, z=2192.19], yd['item.item.rottenFlesh'/20, l='MpServer', x=-222.90, y=1.00, z=2194.35], za['Zombie'/92, l='MpServer', x=-230.70, y=5.00, z=2150.49], yd['item.item.rottenFlesh'/58, l='MpServer', x=-190.58, y=9.00, z=2182.50], yd['item.item.rottenFlesh'/57, l='MpServer', x=-185.88, y=10.00, z=2178.11], yd['item.item.rottenFlesh'/56, l='MpServer', x=-191.86, y=10.50, z=2175.38], bmq['Foltrox'/0, l='MpServer', x=-230.13, y=5.00, z=2148.74]]
	Retry entities: 0 total; []
	Server brand: vanilla
	Server type: Integrated singleplayer server
Stacktrace:
	at bkr.a(SourceFile:365)
	at bcc.b(SourceFile:2519)
	at bcc.a(SourceFile:401)
	at net.minecraft.client.main.Main.main(SourceFile:124)

-- System Details --
Details:
	Minecraft Version: 1.9.1-pre2
	Operating System: Windows 8 (x86) version 6.2
	Java Version: 1.7.0_71, Oracle Corporation
	Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
	Memory: 141178456 bytes (134 MB) / 243879936 bytes (232 MB) up to 510918656 bytes (487 MB)
	JVM Flags: 6 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx500M -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M
	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
	Launched Version: 1.9.1-pre2
	LWJGL: 2.9.4
	OpenGL: AMD Radeon HD 7520G GL version 4.2.11774 Compatibility Profile Context, ATI Technologies Inc.
	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: Yes
	Is Modded: Probably not. Jar signature remains and client brand is untouched.
	Type: Client (map_client.txt)
	Resource Packs: 
	Current Language: English (US)
	Profiler Position: root.tick.keyboard
	CPU: 2x AMD A6-4400M APU with Radeon(tm) HD Graphics

Comments 3

Please set the JVM args to less than 1G and force a crash by pressing F3 + C for 10 seconds while in-game and attach the crash report ([minecraft/crash-reports/crash-<DATE>-client.txt|http://hopper.minecraft.net/help/finding-minecraft-data-folder]) to this ticket.

Updated issue with forced crash.
I also encountered a crash earlier that was unexpected:

Time: 3/10/16 7:04 PM
Description: Ticking entity

java.lang.NullPointerException: Ticking entity
	at vf.m(SourceFile:252)
	at vf.l(SourceFile:189)
	at sb.cm(SourceFile:639)
	at sa.n(SourceFile:1757)
	at sb.n(SourceFile:488)
	at yq.n(SourceFile:41)
	at za.n(SourceFile:243)
	at sa.m(SourceFile:1619)
	at sb.m(SourceFile:276)
	at yq.m(SourceFile:46)
	at za.m(SourceFile:299)
	at aht.a(SourceFile:1516)
	at lp.a(SourceFile:717)
	at aht.g(SourceFile:1494)
	at aht.k(SourceFile:1384)
	at lp.k(SourceFile:550)
	at net.minecraft.server.MinecraftServer.D(SourceFile:625)
	at net.minecraft.server.MinecraftServer.C(SourceFile:553)
	at byl.C(SourceFile:154)
	at net.minecraft.server.MinecraftServer.run(SourceFile:457)
	at java.lang.Thread.run(Unknown Source)


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

-- Head --
Stacktrace:
	at vf.m(SourceFile:252)
	at vf.l(SourceFile:189)
	at sb.cm(SourceFile:639)
	at sa.n(SourceFile:1757)
	at sb.n(SourceFile:488)
	at yq.n(SourceFile:41)
	at za.n(SourceFile:243)
	at sa.m(SourceFile:1619)
	at sb.m(SourceFile:276)
	at yq.m(SourceFile:46)
	at za.m(SourceFile:299)
	at aht.a(SourceFile:1516)
	at lp.a(SourceFile:717)
	at aht.g(SourceFile:1494)

-- Entity being ticked --
Details:
	Entity Type: Zombie (za)
	Entity ID: 7
	Entity Name: Zombie
	Entity's Exact location: -226.18, 5.00, 2139.21
	Entity's Block location: World: (-227,5,2139), Chunk: (at 13,0,11 in -15,133; contains blocks -240,0,2128 to -225,255,2143), Region: (-1,4; contains chunks -32,128 to -1,159, blocks -512,0,2048 to -1,255,2559)
	Entity's Momentum: 0.08, -0.08, -0.02
	Entity's Passengers: []
	Entity's Vehicle: ~~ERROR~~ NullPointerException: null
Stacktrace:
	at aht.k(SourceFile:1384)
	at lp.k(SourceFile:550)

-- Affected level --
Details:
	Level name: Kill Villager
	All players: 1 total; [lr['Foltrox'/0, l='Kill Villager', x=-230.49, y=5.00, z=2147.24]]
	Chunk stats: ServerChunkCache: 337 Drop: 0
	Level seed: 1358709642
	Level generator: ID 01 - flat, ver 0. Features enabled: true
	Level generator options: 3;minecraft:bedrock;1;village
	Level spawn location: World: (-550,4,2089), Chunk: (at 10,0,9 in -35,130; contains blocks -560,0,2080 to -545,255,2095), Region: (-2,4; contains chunks -64,128 to -33,159, blocks -1024,0,2048 to -513,255,2559)
	Level time: 62073 game time, 62073 day time
	Level dimension: 0
	Level storage version: 0x04ABD - Anvil
	Level weather: Rain time: 13196 (now: true), thunder time: 15041 (now: false)
	Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: true
Stacktrace:
	at net.minecraft.server.MinecraftServer.D(SourceFile:625)
	at net.minecraft.server.MinecraftServer.C(SourceFile:553)
	at byl.C(SourceFile:154)
	at net.minecraft.server.MinecraftServer.run(SourceFile:457)
	at java.lang.Thread.run(Unknown Source)

-- System Details --
Details:
	Minecraft Version: 1.9.1-pre2
	Operating System: Windows 8 (x86) version 6.2
	Java Version: 1.7.0_71, Oracle Corporation
	Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
	Memory: 131287040 bytes (125 MB) / 242348032 bytes (231 MB) up to 510918656 bytes (487 MB)
	JVM Flags: 6 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx500M -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M
	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
	Profiler Position: N/A (disabled)
	Player Count: 1 / 8; [lr['Foltrox'/0, l='Kill Villager', x=-230.49, y=5.00, z=2147.24]]
	Type: Integrated Server (map_client.txt)
	Is Modded: Probably not. Jar signature remains and both client + server brands are untouched.

This time, it has to do with a ticking entity.

Operating System: Windows 8 (x86) version 6.2

32 bit OS. Install a 64 bit OS

Java Version: 1.7.0_71, Oracle Corporation

Outdated Java. Update to Java 1.8

OpenGL: AMD Radeon HD 7520G GL version 4.2.11774 Compatibility Profile Context, ATI Technologies Inc.

Outdated AMD graphics card driver, Update to http://support.amd.com/en-us/download/desktop/legacy?product=legacy3&os=Windows%208.1%20-%2032

This is a technical support issue; this site is for bug reports only. For technical support please use the Mojang Support Center.

The Papa

(Unassigned)

Unconfirmed

Minecraft 16w05b

Retrieved