mojira.dev
MC-256658

Attempting to pick block in spectator crashes the game

Attempting to pick block in spectator crashes the game

Steps to Reproduce:
1. Enter spectator mode
2. Attempt to pick block a block
3. →❌ Crash

Crash report:

---- Minecraft Crash Report ----
// I bet Cylons wouldn't have this problem.

Time: 2022-10-19 21:47:57
Description: Unexpected error

java.lang.NullPointerException: Cannot invoke "exp.a()" because "$$0" is null
	at esn.a(SourceFile:25)
	at com.google.common.collect.ComparatorOrdering.compare(ComparatorOrdering.java:40)
	at java.base/java.util.TimSort.countRunAndMakeAscending(TimSort.java:355)
	at java.base/java.util.TimSort.sort(TimSort.java:220)
	at java.base/java.util.Arrays.sort(Arrays.java:1233)
	at com.google.common.collect.Ordering.sortedCopy(Ordering.java:854)
	at esn.<init>(SourceFile:34)
	at esh.<init>(SourceFile:15)
	at esi.<init>(SourceFile:53)
	at eld.b(SourceFile:161)
	at eii.a(SourceFile:111)
	at eii.c(SourceFile:165)
	at bak.execute(SourceFile:103)
	at eii.b(SourceFile:165)
	at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:43)
	at org.lwjgl.system.JNI.invokeV(Native Method)
	at org.lwjgl.glfw.GLFW.glfwWaitEventsTimeout(GLFW.java:3474)
	at com.mojang.blaze3d.systems.RenderSystem.limitDisplayFPS(SourceFile:222)
	at eih.f(SourceFile:1210)
	at eih.e(SourceFile:776)
	at net.minecraft.client.main.Main.a(SourceFile:244)
	at net.minecraft.client.main.Main.main(SourceFile:51)


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

-- Head --
Thread: Render thread
Stacktrace:
	at esn.a(SourceFile:25)
	at com.google.common.collect.ComparatorOrdering.compare(ComparatorOrdering.java:40)
	at java.base/java.util.TimSort.countRunAndMakeAscending(TimSort.java:355)
	at java.base/java.util.TimSort.sort(TimSort.java:220)
	at java.base/java.util.Arrays.sort(Arrays.java:1233)
	at com.google.common.collect.Ordering.sortedCopy(Ordering.java:854)
	at esn.<init>(SourceFile:34)
	at esh.<init>(SourceFile:15)
	at esi.<init>(SourceFile:53)
	at eld.b(SourceFile:161)
	at eii.a(SourceFile:111)
	at eii.c(SourceFile:165)
	at bak.execute(SourceFile:103)
	at eii.b(SourceFile:165)
	at org.lwjgl.glfw.GLFWMouseButtonCallbackI.callback(GLFWMouseButtonCallbackI.java:43)
	at org.lwjgl.system.JNI.invokeV(Native Method)
	at org.lwjgl.glfw.GLFW.glfwWaitEventsTimeout(GLFW.java:3474)

-- Affected level --
Details:
	All players: 1 total; [fbk['Creeper_Juice'/240, l='ClientLevel', x=-5.50, y=77.05, z=7.50]]
	Chunk stats: 961, 518
	Level dimension: minecraft:overworld
	Level spawn location: World: (0,74,0), Section: (at 0,10,0 in 0,4,0; chunk contains blocks 0,-64,0 to 15,319,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,-64,0 to 511,319,511)
	Level time: 117 game time, 117 day time
	Server brand: vanilla
	Server type: Integrated singleplayer server
Stacktrace:
	at exk.a(SourceFile:454)
	at eih.d(SourceFile:2351)
	at eih.e(SourceFile:800)
	at net.minecraft.client.main.Main.a(SourceFile:244)
	at net.minecraft.client.main.Main.main(SourceFile:51)

-- Last reload --
Details:
	Reload number: 2
	Reload reason: manual
	Finished: Yes
	Packs: vanilla

-- System Details --
Details:
	Minecraft Version: 22w42a
	Minecraft Version ID: 22w42a
	Operating System: Windows 10 (amd64) version 10.0
	Java Version: 17.0.3, Microsoft
	Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Microsoft
	Memory: 3653068640 bytes (3483 MiB) / 7918845952 bytes (7552 MiB) up to 12884901888 bytes (12288 MiB)
	CPUs: 12
	Processor Vendor: GenuineIntel
	Processor Name: Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz
	Identifier: Intel64 Family 6 Model 165 Stepping 2
	Microarchitecture: unknown
	Frequency (GHz): 2.59
	Number of physical packages: 1
	Number of physical CPUs: 6
	Number of logical CPUs: 12
	Graphics card #0 name: Intel(R) UHD Graphics
	Graphics card #0 vendor: Intel Corporation (0x8086)
	Graphics card #0 VRAM (MB): 1024.00
	Graphics card #0 deviceId: 0x9bc4
	Graphics card #0 versionInfo: DriverVersion=26.20.100.7642
	Graphics card #1 name: NVIDIA GeForce RTX 2060
	Graphics card #1 vendor: NVIDIA (0x10de)
	Graphics card #1 VRAM (MB): 4095.00
	Graphics card #1 deviceId: 0x1f15
	Graphics card #1 versionInfo: DriverVersion=30.0.14.9649
	Memory slot #0 capacity (MB): 8192.00
	Memory slot #0 clockSpeed (GHz): 3.20
	Memory slot #0 type: DDR4
	Memory slot #1 capacity (MB): 8192.00
	Memory slot #1 clockSpeed (GHz): 3.20
	Memory slot #1 type: DDR4
	Virtual memory max (MB): 21836.21
	Virtual memory used (MB): 18955.91
	Swap memory total (MB): 5632.00
	Swap memory used (MB): 528.08
	JVM Flags: 9 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx12G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
	Launched Version: 22w42a
	Backend library: LWJGL version 3.3.1 build 7
	Backend API: NVIDIA GeForce RTX 2060/PCIe/SSE2 GL version 3.2.0 NVIDIA 496.49, NVIDIA Corporation
	Window size: 1920x1080
	GL Caps: Using framebuffer using OpenGL 3.2
	GL debug messages: 
	Using VBOs: Yes
	Is Modded: Probably not. Client jar signature and brand is untouched; Server jar signature and brand is untouched
	Type: Integrated Server (map_client.txt)
	Graphics mode: fabulous
	Resource Packs: vanilla
	Current Language: English (US)
	CPU: 12x Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz
	Server Running: true
	Player Count: 1 / 8; [ahc['Creeper_Juice'/240, l='ServerLevel[World]', x=-5.50, y=77.05, z=7.50]]
	Data Packs: vanilla, update_1_20, bundle
	Enabled Feature Flags: minecraft:update_1_20, minecraft:bundle, minecraft:vanilla
	World Generation: Stable

Linked issues

Attachments

Comments 2

Thank you for your report!
We're tracking this issue in MC-256502, so this ticket is being resolved and linked as a duplicate.

If you would like to add a vote and any extra information to the main ticket it would be appreciated.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.

Creeper Juice

(Unassigned)

Unconfirmed

22w42a

Retrieved