Mojira Archive
MC-195735

Crash when selecting long strings with Ctrl + Shift + [←] or [→] and then erasing them after using Tab completion twice while typing commands: java.lang.NullPointerException: Rendering screen

The bug

When Tab completion is used twice while typing commands and then a long argument at the right of the new one is selected using Ctrl + Shift + [←] or Ctrl + Shift + [→] and erased, the game crashes with a NullPointerException error. This is not the case in 1.16.1.

How to reproduce

  1. Install the data pack below in a world for easier reproduction.
  2. Type the following command in chat, but do not run it:
    /function game:crash_with_brigadier/debug/crash_with_brigadier
    
  3. Move the cursor before the name of the function, and then press Tab to insert another string before it.
  4. Use Ctrl + Shift + [←] or Ctrl + Shift + [→] to select the argument at the right, and then erase it using Backspace.
    The game crashes with a NullPointerException error.

Crash report

---- Minecraft Crash Report ----
// Hey, that tickles! Hehehe!

Time: 7/22/20 11:03 AM
Description: Rendering screen

java.lang.NullPointerException: Rendering screen
	at nu.a(SourceFile:74)
	at oh.b(SourceFile:132)
	at nu.a(SourceFile:76)
	at djz.a(SourceFile:134)
	at dkl.c(SourceFile:301)
	at dkl.b(SourceFile:155)
	at dkl.a(SourceFile:121)
	at dkl.a(SourceFile:107)
	at dkl.a(SourceFile:75)
	at dld.a(SourceFile:339)
	at dnf.a(SourceFile:202)
	at dzi.a(SourceFile:603)
	at djp.e(SourceFile:1020)
	at djp.e(SourceFile:653)
	at net.minecraft.client.main.Main.main(SourceFile:215)


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

-- Head --
Thread: Render thread
Stacktrace:
	at nu.a(SourceFile:74)
	at oh.b(SourceFile:132)
	at nu.a(SourceFile:76)
	at djz.a(SourceFile:134)
	at dkl.c(SourceFile:301)
	at dkl.b(SourceFile:155)
	at dkl.a(SourceFile:121)
	at dkl.a(SourceFile:107)
	at dkl.a(SourceFile:75)
	at dld.a(SourceFile:339)
	at dnf.a(SourceFile:202)

-- Screen render details --
Details:
	Screen name: dnf
	Mouse location: Scaled: (240, 135). Absolute: (480.000000, 270.000000)
	Screen size: Scaled: (480, 270). Absolute: (960, 540). Scale factor of 2.000000

-- Affected level --
Details:
	All players: 1 total; [dyv['Boyrex'/1, l='ClientLevel', x=-3.25, y=66.75, z=4.25]]
	Chunk stats: Client Chunk Cache: 961, 625
	Level dimension: minecraft:overworld
	Level spawn location: World: (8,-1,8), Chunk: (at 8,-1,8 in 0,0; contains blocks 0,0,0 to 15,255,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
	Level time: 101700 game time, 1000 day time
	Server brand: vanilla
	Server type: Integrated singleplayer server
Stacktrace:
	at dwc.a(SourceFile:449)
	at djp.c(SourceFile:2180)
	at djp.e(SourceFile:671)
	at net.minecraft.client.main.Main.main(SourceFile:215)

-- System Details --
Details:
	Minecraft Version: 20w29a
	Minecraft Version ID: 20w29a
	Operating System: Windows 7 (amd64) version 6.1
	Java Version: 1.8.0_221, Oracle Corporation
	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
	Memory: 190377248 bytes (181 MB) / 505344000 bytes (481 MB) up to 1038876672 bytes (990 MB)
	CPUs: 4
	JVM Flags: 9 total; -XX:+UseConcMarkSweepGC -XX:-UseAdaptiveSizePolicy -XX:+CMSParallelRemarkEnabled -XX:+ParallelRefProcEnabled -XX:+CMSClassUnloadingEnabled -XX:+UseCMSInitiatingOccupancyOnly -Xmx1024M -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M
	Launched Version: 20w29a
	Backend library: LWJGL version 3.2.2 build 10
	Backend API: Intel(R) HD Graphics 4000 GL version 4.0.0 - Build 9.17.10.2932, Intel
	GL Caps: Using framebuffer using OpenGL 3.0
	Using VBOs: Yes
	Is Modded: Probably not. Jar signature remains and client brand is untouched.
	Type: Client (map_client.txt)
	Resource Packs: vanilla
	Current Language: English (US)
	CPU: 4x Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz

Duplicate

user-a4a49

2020-07-22, 06:05 AM

2022-04-21, 05:35 AM

2020-07-23, 02:36 AM

1

1

Plausible

Crash

brigadier, crash, tab-completion

20w29a

-