mojira.dev
MC-115528

Local client crashes when using the new shift click recipe book in a server

My game crashes whenever I shift-click with the new recipe book, it shows full stacks in the crafting bench and crashes afterwards. Clicking normally still works however. I don't get this issue on singleplayer, same world.

[17:21:37] [Client thread/INFO]: Setting user: Dapal003
[17:21:38] [Client thread/INFO]: LWJGL Version: 2.9.4
[17:21:39] [Client thread/INFO]: Reloading ResourceManager: Default
[17:21:40] [Sound Library Loader/INFO]: Starting up SoundSystem...
[17:21:40] [Thread-5/INFO]: Initializing LWJGL OpenAL
[17:21:40] [Thread-5/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[17:21:40] [Thread-5/INFO]: OpenAL initialized.
[17:21:40] [Sound Library Loader/INFO]: Sound engine started
[17:21:46] [Client thread/INFO]: Created: 1024x512 textures-atlas
[17:21:51] [Client thread/INFO]: Connecting to 213.93.78.100, 25565
[17:22:00] [Client thread/FATAL]: Unreported exception thrown!
java.lang.NullPointerException
	at bmc.c(SourceFile:693) ~[17w14a.jar:?]
	at bkx.m(SourceFile:136) ~[17w14a.jar:?]
	at bgr.a(SourceFile:860) ~[17w14a.jar:?]
	at bqo.a(SourceFile:678) ~[17w14a.jar:?]
	at gd.l(SourceFile:381) ~[17w14a.jar:?]
	at bqp.e(SourceFile:275) ~[17w14a.jar:?]
	at bgr.t(SourceFile:1547) ~[17w14a.jar:?]
	at bgr.av(SourceFile:956) ~[17w14a.jar:?]
	at bgr.a(SourceFile:396) [17w14a.jar:?]
	at net.minecraft.client.main.Main.main(SourceFile:123) [17w14a.jar:?]
---- Minecraft Crash Report ----
// Don't do that.

Time: 4/6/17 4:37 PM
Description: Unexpected error

java.lang.NullPointerException: Unexpected error
	at bmc.c(SourceFile:693)
	at bkx.m(SourceFile:136)
	at bgr.a(SourceFile:860)
	at bqo.a(SourceFile:678)
	at gd.l(SourceFile:381)
	at bqp.e(SourceFile:275)
	at bgr.t(SourceFile:1547)
	at bgr.av(SourceFile:956)
	at bgr.a(SourceFile:396)
	at net.minecraft.client.main.Main.main(SourceFile:123)


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

-- System Details --
Details:
	Minecraft Version: 17w14a
	Operating System: Mac OS X (x86_64) version 10.12.3
	Java Version: 1.8.0_74, Oracle Corporation
	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
	Memory: 267292632 bytes (254 MB) / 390299648 bytes (372 MB) up to 2134114304 bytes (2035 MB)
	JVM Flags: 5 total; -Xmx2G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M
	IntCache: cache: 7, tcache: 89, allocated: 13, tallocated: 95
	Launched Version: 17w14a
	LWJGL: 2.9.2
	OpenGL: AMD Radeon R9 M370X OpenGL Engine GL version 2.1 ATI-1.48.21, ATI Technologies Inc.
	GL Caps: Using GL 1.3 multitexturing.
Using GL 1.3 texture combiners.
Using framebuffer objects because ARB_framebuffer_object 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: N/A (disabled)
	CPU: 8x Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHz

Linked issues

Comments 6

Hi!

Try updating to Java 1.8.0_111 (newest version)!
Please answer if it helped

Heyo Patrick, just updated and it's still happening,

[18:55:00] [Client thread/INFO]: Setting user: Dapal003
[18:55:01] [Client thread/INFO]: LWJGL Version: 2.9.4
[18:55:02] [Client thread/INFO]: Reloading ResourceManager: Default
[18:55:06] [Sound Library Loader/INFO]: Starting up SoundSystem...
[18:55:07] [Thread-5/INFO]: Initializing LWJGL OpenAL
[18:55:07] [Thread-5/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[18:55:07] [Thread-5/INFO]: OpenAL initialized.
[18:55:07] [Sound Library Loader/INFO]: Sound engine started
[18:55:14] [Client thread/INFO]: Created: 1024x512 textures-atlas
[18:56:16] [Client thread/INFO]: Connecting to 213.93.78.100, 25565
[18:56:57] [Client thread/INFO]: Connecting to 213.93.78.100, 25565
[18:57:06] [Client thread/FATAL]: Unreported exception thrown!
java.lang.NullPointerException
	at bmc.c(SourceFile:693) ~[17w14a.jar:?]
	at bkx.m(SourceFile:136) ~[17w14a.jar:?]
	at bgr.a(SourceFile:860) ~[17w14a.jar:?]
	at bqo.a(SourceFile:678) ~[17w14a.jar:?]
	at gd.l(SourceFile:381) ~[17w14a.jar:?]
	at bqp.e(SourceFile:275) ~[17w14a.jar:?]
	at bgr.t(SourceFile:1547) ~[17w14a.jar:?]
	at bgr.av(SourceFile:956) ~[17w14a.jar:?]
	at bgr.a(SourceFile:396) [17w14a.jar:?]
	at net.minecraft.client.main.Main.main(SourceFile:123) [17w14a.jar:?]

This happened to my wife as a client in an Open to LAN game last night as well. The problem occurred when she was trying to shift-click to block coal, but not when she was trying to create multiple tools at one time.

I can second this:
Client crashes. Server survives.
Crash happens if you craft something that begins to consume a third stack of items, it seems.
Experimented with slime_block, iron_ingot and cobblestone_stairs.

To reproduce (for single-material recipes requiring n items to produce 1 block):
1) place two stacks + n-128%n items (or more) in your inventory.
2) shift click the recipe that crafts the items to a block

crash happens as the recipe is shift-clicked.
no items go missing (nothing is crafted and no materials are removed from the inventory).

Examples:
Trying to craft iron ingots from 64+64+6 nuggets: Ok
Trying to craft iron ingots from 64+64+7 or more nuggets: crash
Trying to craft cobblestone stairs from 64+64+3 nuggets: Ok
Trying to craft cobblestone stairs from 64+64+4 or more nuggets: crash
I have not tried with recipes that requires more than one material.

I have confirmed Ole's find, also tested with Pistons and Levers which require more than one material.
Client crashes. Server survives. I have concluded the following, a slight elaboration on Ole's find tho:

Crash happens if you craft something that begins to consume a 128th item, it seems.
Experimented with crafting_table, piston, flint_and_steal, and lever.

Example 1: crafting table
Trying to craft 31 crafting_table using 31 planks in each slot (124 items in total): Ok
Trying to craft 32 crafting_table using 32 planks in each slot (128 items in total): crash

Example 2: stone_slab
Trying to craft 252 stone_slab using 42 stone in each slot (126 items in total): Ok
Trying to craft 258 stone_slab using 43 stone in each slot (129 items in total): crash

Example 3: piston
Trying to craft 14 piston using 14 items in each slot (126 items in total): Ok
Trying to craft 15+ piston using 15+ items in each slot (150+ items in total): crash

Example 4: flint_and_steal
Trying to craft 63 flint_and_steal using 63 items in each slot (126 items in total): Ok
Trying to craft 64 flint_and_steal using 64 items in each slot (128 items in total): crash

Example 5: lever
Trying to craft 63 lever using 63 items in each slot (126 items in total): Ok
Trying to craft 64 lever using 64 items in each slot (128 items in total): crash

In the prior snapshot, the last test I performed of this was to turn an inventory full of iron ingots into iron blocks. In the last snapshot, that crashed the client. In 17w16a, this same test does not crash the client.

Many thanks to Mojang devs!

Dapal Lioda

migrated

Confirmed

client, crash, recipe-book, server, shift-click

Minecraft 17w14a, Minecraft 17w15a

Minecraft 17w16a

Retrieved