mojira.dev
MC-142037

java.lang.NullPointerException: Initializing game

When I press play game, game crash. This still hapens in version MC 1.13 or higher. When I trie play MC version 1.12, it works fine.

My drivers of nvdia are latest (ver. 417.35). I tried reinstall them twice as Java and MC too.

Can You help me please?

1.13.2\: [^crash-2019-01-09_20.33.46-client.txt]

---- Minecraft Crash Report ----
// Don't do that.

Time: 9.1.19 20:33
Description: Initializing game

java.lang.NullPointerException: Initializing game
	at cgc.<init>(SourceFile:23)
	at cft.am(SourceFile:438)
	at cft.a(SourceFile:380)
	at net.minecraft.client.main.Main.main(SourceFile:144)


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

-- Head --
Thread: Client thread
Stacktrace:
	at cgc.<init>(SourceFile:23)
	at cft.am(SourceFile:438)

-- Initialization --
Details:
Stacktrace:
	at cft.a(SourceFile:380)
	at net.minecraft.client.main.Main.main(SourceFile:144)

-- System Details --
Details:
	Minecraft Version: 1.13.2
	Operating System: Windows 10 (amd64) version 10.0
	Java Version: 1.8.0_191, Oracle Corporation
	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
	Memory: 141825600 bytes (135 MB) / 268435456 bytes (256 MB) up to 2147483648 bytes (2048 MB)
	JVM Flags: 9 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
	Launched Version: 1.13.2
	LWJGL: 3.1.6 build 14
	OpenGL: NO CONTEXT
	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>

MCX-3965052

Environment

Windows 10 64 bit
Java jre1.8.0_191 and 1.8.0_51

Linked issues

Attachments

Comments 13

I thing that i found reason. I have two monitors. Second of them is disabled (in Windows) usually. When I second monitor enable then MC version 1.13 works. I hope that this informaniton will be helpful for you.

This is sometimes caused by Mcafee/Intel Security. Can you check if you have them?

I checked it, I dont have installed any of them. I use Avast (antivirus), but I tried disable it and run MC 1.13. Same result (app exception).

Maybe it's just that your CPU is not being detected by Java

It doesn't make sense. Why Java detect my CPU when I have turns on both of my monitors?

3 more comments

Please check if that's still an issue for you in Minecraft 1.14.3 Pre-Release 2.

I tested in 1.14.3 Pre-Release 2 with this result:

 


Minecraft Crash Report -------- Minecraft Crash Report ----// Shall we play a game?
Time: 8.6.19 9:53Description: Initializing game
java.lang.NullPointerException: Initializing game at cud.<init>(SourceFile:21) at dlc.<init>(SourceFile:16) at cvn.au(SourceFile:464) at cvn.b(SourceFile:395) at net.minecraft.client.main.Main.main(SourceFile:154)

A detailed walkthrough of the error, its code path and all known details is as follows:---------------------------------------------------------------------------------------
– Head --Thread: Client threadStacktrace: at cud.<init>(SourceFile:21) at dlc.<init>(SourceFile:16) at cvn.au(SourceFile:464)
– Initialization --Details:Stacktrace: at cvn.b(SourceFile:395) at net.minecraft.client.main.Main.main(SourceFile:154)
– System Details --Details: Minecraft Version: 1.14.3 Pre-Release 2 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_211, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 7943264600 bytes (7575 MB) / 8529117184 bytes (8134 MB) up to 12527337472 bytes (11947 MB) JVM Flags: 5 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx12G -Xms8G -Xmn1G Launched Version: 1.14.3-pre2 LWJGL: 3.2.2 build 10 OpenGL: NO CONTEXT GL Caps:  Using VBOs: Yes Is Modded: Probably not. Jar signature remains and client brand is untouched. Type: Client (map_client.txt) Resource Packs: vanilla, file/PureBDcraft 256x MC114.zip, file/PureBDcraft More 3D Blocks MC113.zip, file/PureBDcraft More 3D Items MC113.zip, file/PureBDcraft Damaged Items MC113.zip, file/PureBDcraft Technology MC113.zip, file/BDcraft Sounds MC113.zip Current Language: ~ERROR~ NullPointerException: null CPU: <unknown>

I can confirm that, game does not crash in version 1.14.4, but fullscreen does not work. Now the game is still in window.

Please try to update your drivers. This problem was caused by OS not listing available displays correctly. Even though crash is fixed, information needed for fullscreen is still missing.

I updated drivers to the latest version (Nvidia Gforce: 431.36), but information still missing maybe.

migrated

boq

Community Consensus

Minecraft 1.13.2

Minecraft 1.14.4 Pre-Release 1

Retrieved