Minecraft crashes when typing in a block-related command in front of an entity
The bug
Minecraft crashes when typing in a block-related command when standing in front of an entity/looking at an entity, for instance /execute store result block.
The game crashes as soon as it tries to autocomplete the coordinates.
Crash report
Description: charTyped event handler java.lang.NullPointerException: charTyped event handler at bwu.a(SourceFile:76) at ci.listSuggestions(SourceFile:66) at com.mojang.brigadier.tree.ArgumentCommandNode.listSuggestions(ArgumentCommandNode.java:65) at com.mojang.brigadier.CommandDispatcher.getCompletionSuggestions(CommandDispatcher.java:345) at bpi.h(SourceFile:163) at bpi.a(SourceFile:97) at bpi$$Lambda$591/1168769758.accept(Unknown Source) at bnr.a(SourceFile:146) at bnr.b(SourceFile:141) at bnr.charTyped(SourceFile:375) at bon.charTyped(SourceFile:40) at bmj.a(SourceFile:360) at bmj$$Lambda$597/1579858776.run(Unknown Source) at bqg.a(SourceFile:428) at bmj.a(SourceFile:360) at bmj$$Lambda$107/1263927050.invoke(Unknown Source) at org.lwjgl.glfw.GLFWCharModsCallbackI.callback(GLFWCharModsCallbackI.java:23) at org.lwjgl.system.JNI.invokeV(Native Method) at org.lwjgl.glfw.GLFW.glfwPollEvents(GLFW.java:2520) at bmw.a(SourceFile:282) at bmm.b(SourceFile:846) at bmm.a(SourceFile:381) at net.minecraft.client.main.Main.main(SourceFile:134)
Linked Issues
is duplicated by16
Created Issue:
Minecraft crashes when typing in a specific command in front of an entity
Minecraft crashes when typing in a specific command in front of an entity: _/execute store result block _ (I think this is a problem with the mechanism of the coordinate tab completion)
Environment
Windows 10
The included Java 1.8.0_25 runtime
English locale in Minecraft, German operating system
Minecraft crashes when typing in a specific command in front of an entity: _/execute store result block _ (I think this is a problem with the mechanism of the coordinate tab completion)
Minecraft crashes when typing in a specific command in front of an entity: /execute store result block (I think this is a problem with the mechanism of the coordinate tab completion)
Minecraft crashes when typing in a specific command when standing in front of an entity: /execute store result block (I think this is a problem with the mechanism of the coordinate tab completion)
Minecraft crashes when typing in a specific command when standing in front of an entity/looking to an entity: /execute store result block (I think this is a problem with the mechanism of the coordinate tab completion)
Minecraft crashes when typing in a specific command when standing in front of an entity/looking to an entity: /execute store result block
(I think this is a problem with the mechanism of the coordinate tab completion)The bug
Minecraft crashes when typing in a specific command when standing in front of an entity/looking to an entity: /execute store result block . I think this is a problem with the mechanism of the coordinate tab completion.
Crash report
Description: charTyped event handler java.lang.NullPointerException: charTyped event handler at bwu.a(SourceFile:76) at ci.listSuggestions(SourceFile:66) at com.mojang.brigadier.tree.ArgumentCommandNode.listSuggestions(ArgumentCommandNode.java:65) at com.mojang.brigadier.CommandDispatcher.getCompletionSuggestions(CommandDispatcher.java:345) at bpi.h(SourceFile:163) at bpi.a(SourceFile:97) at bpi$$Lambda$591/1168769758.accept(Unknown Source) at bnr.a(SourceFile:146) at bnr.b(SourceFile:141) at bnr.charTyped(SourceFile:375) at bon.charTyped(SourceFile:40) at bmj.a(SourceFile:360) at bmj$$Lambda$597/1579858776.run(Unknown Source) at bqg.a(SourceFile:428) at bmj.a(SourceFile:360) at bmj$$Lambda$107/1263927050.invoke(Unknown Source) at org.lwjgl.glfw.GLFWCharModsCallbackI.callback(GLFWCharModsCallbackI.java:23) at org.lwjgl.system.JNI.invokeV(Native Method) at org.lwjgl.glfw.GLFW.glfwPollEvents(GLFW.java:2520) at bmw.a(SourceFile:282) at bmm.b(SourceFile:846) at bmm.a(SourceFile:381) at net.minecraft.client.main.Main.main(SourceFile:134)
is duplicated by
is duplicated by
The bug
Minecraft crashes when typing in a
specificcommand when standing in front of an entity/looking toan entity:/execute store result block. I think this is a problem withthe mechanism of the coordinate tab completion.Crash report
Description: charTyped event handler java.lang.NullPointerException: charTyped event handler at bwu.a(SourceFile:76) at ci.listSuggestions(SourceFile:66) at com.mojang.brigadier.tree.ArgumentCommandNode.listSuggestions(ArgumentCommandNode.java:65) at com.mojang.brigadier.CommandDispatcher.getCompletionSuggestions(CommandDispatcher.java:345) at bpi.h(SourceFile:163) at bpi.a(SourceFile:97) at bpi$$Lambda$591/1168769758.accept(Unknown Source) at bnr.a(SourceFile:146) at bnr.b(SourceFile:141) at bnr.charTyped(SourceFile:375) at bon.charTyped(SourceFile:40) at bmj.a(SourceFile:360) at bmj$$Lambda$597/1579858776.run(Unknown Source) at bqg.a(SourceFile:428) at bmj.a(SourceFile:360) at bmj$$Lambda$107/1263927050.invoke(Unknown Source) at org.lwjgl.glfw.GLFWCharModsCallbackI.callback(GLFWCharModsCallbackI.java:23) at org.lwjgl.system.JNI.invokeV(Native Method) at org.lwjgl.glfw.GLFW.glfwPollEvents(GLFW.java:2520) at bmw.a(SourceFile:282) at bmm.b(SourceFile:846) at bmm.a(SourceFile:381) at net.minecraft.client.main.Main.main(SourceFile:134)The bug
Minecraft crashes when typing in a block-related command when standing in front of an entity/looking at an entity, for instance /execute store result block.
The game crashes as soon as it tries to autocomplete the coordinates.Crash report
Description: charTyped event handler java.lang.NullPointerException: charTyped event handler at bwu.a(SourceFile:76) at ci.listSuggestions(SourceFile:66) at com.mojang.brigadier.tree.ArgumentCommandNode.listSuggestions(ArgumentCommandNode.java:65) at com.mojang.brigadier.CommandDispatcher.getCompletionSuggestions(CommandDispatcher.java:345) at bpi.h(SourceFile:163) at bpi.a(SourceFile:97) at bpi$$Lambda$591/1168769758.accept(Unknown Source) at bnr.a(SourceFile:146) at bnr.b(SourceFile:141) at bnr.charTyped(SourceFile:375) at bon.charTyped(SourceFile:40) at bmj.a(SourceFile:360) at bmj$$Lambda$597/1579858776.run(Unknown Source) at bqg.a(SourceFile:428) at bmj.a(SourceFile:360) at bmj$$Lambda$107/1263927050.invoke(Unknown Source) at org.lwjgl.glfw.GLFWCharModsCallbackI.callback(GLFWCharModsCallbackI.java:23) at org.lwjgl.system.JNI.invokeV(Native Method) at org.lwjgl.glfw.GLFW.glfwPollEvents(GLFW.java:2520) at bmw.a(SourceFile:282) at bmm.b(SourceFile:846) at bmm.a(SourceFile:381) at net.minecraft.client.main.Main.main(SourceFile:134)
Minecraft crashes when typing in aspecificcommand in front of an entityMinecraft crashes when typing in a block-related command in front of an entity
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
Windows 10
The included Java 1.8.0_25 runtime
English locale in Minecraft, German operating system
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
is duplicated by
Thank you for your report!
However, this issue is a Duplicate of MC-122608.
It has been linked to this report. If you have additional information, please add it to that report.
Please search before reporting, as it's likely that one exists already.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki
Thank you for your report!
However, this issue is a Duplicate of MC-122608.
It has been linked to this report. If you have additional information, please add it to that report.
Please search before reporting, as it's likely that one exists already.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki
This issue duplicates MC-122608.
This issue duplicates MC-122608.
Thank you for your report!
However, this issue is a Duplicate of MC-122608.
It has been linked to this report. If you have additional information, please add it to that report.
Please search before reporting, as it's likely that one exists already.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki
Looks like a duplicate of MC-122608 based on the crash report
Hat schon jemand vor dir gemeldet: MC-122608.
Übrigens, bitte das nächste mal in englisch schreiben hier, nicht alle können deutsch.
Thank you for your report!
However, this issue is a Duplicate of MC-122608.
It has been linked to this report. If you have additional information, please add it to that report.
Please search before reporting, as it's likely that one exists already.
Please also note that bug reports are only accepted in English.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki
Thank you for your report!
However, this issue is a Duplicate of MC-122608.
If you have additional information, please add it to that report.
Please search before reporting, as it's likely that one exists already.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki
I was typing a command into chat (I don't even remember which; it may have been /data merge), and before I even finished typing (long before I was going to submit the command), the game crashed with a Null Pointer Exception in the charTyped event handler. The crash log is attached. From the stack trace, it looks like it was caused by something in the listSuggestions method.
EDIT Possible duplicate of MC-122608. I don't remember if I was looking at an entity at the time of the crash, but the stack trace looks basically the same (except for some obfuscated names, but that could be simply version specificity).
Thank you for your report!
However, this issue has been temporarily closed as Awaiting Response.
We do not have enough information to find the cause of this issue.
Please attach the crash report found in .minecraft/crash-reports/crash-<DATE>-client.txt here.
Click here to find out where your .minecraft folder is.
If you don't have a current crash report, please attach the launcher log which is located at .minecraft/launcher_log.txt.
Please also provide the exact command used.
Once you have replied, the report will be reopened automatically.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki
Oh, I missed that, now it's there.
And that is the exact command. When typing a space at the end of the command part/continue writing the command, the game crashes immediately because then there would be the coordinate tab completion.
Huh, doesn't crash for me.
A short video about the bug: Minecraft 17w48a 27.11.2017 20_39_12 (2).mp4
. At the end, I type a space and it crashes.
Alright, missed the "near an entity" part, now it crashed for me as well. Exceptionally weird.
According to
MC-122672, this crash occurs with /execute if block as well.I'm guessing something along the lines of crashing from typing execute as @e[type=armor_stand,tag=InfLava1,tag=Source] at @s if block ~ ~ ~ air run data merge entity @s {Tags:["InfLava1","Cooldown"]}. When you hit tab after block it is covered by this bug report?
@user-2a4c8, yes that should be the same bug since it is a block position which can be tab completed. You can also try comparing the stack traces of the crash reports, for the same version class and method names as well as line numbers should be the same. Between versions at least the line numbers often remain the same.
My guess (though it's hard to tell from obfuscated class and method names): the code is doing a raytrace in order to find block coordinates. But ray traces also stop when they reach an entity, in which case there is no block result in the RayTraceResult, and the block position is null. If that's not handled, then trying to get any coordinates from the now-null BlockPos will cause an NPE.
ETA This would also explain why it only happens with block-based commands, but not other commands like /tp or /summon: Brigadier (the command parser) allows decimal coordinates for entity-based commands, and as such it's probably using the RayTraceResult's hitVec value. This is a vector which is never null because whether the ray trace hits an entity or a block, the hitVec contains the exact double-precision point of impact. But for block-related commands, Brigadier expects only integer values, so it's not using the hitVec but instead the blockPos – which again, doesn't exist if the ray trace hits an entity instead of a block.