mojira.dev
MC-95417

Typo in loot table causing crash

EDIT 2: False alarm. Turned out to be a faulty loot_table (just a single comma after the last entry in the rare drops made it crash every time it rolled for a rare drop).

Old message: When firing arrows (bow is in offhand) the game sometimes crashes. The error report seems to indicate that getting a null pointer exception when checking for vehicle is the problem. Possibly the check for all basic stats taking longer than the arrow exists (maybe 1 to 1.5 seconds between arrow creation and it hitting a zombie and thus ceasing to exist). This is the relevant line:

Entity's Vehicle: ~ERROR~ NullPointerException: null

EDIT: this happened 3 times in 30 minutes before I reported it. Just normal everyday arrowplay. Although that mouse button is glitchy and sometimes thinks I pressed it 2 or 3 times. Could it be a canceled arrow from pressing the button for too little time?

Linked issues

Attachments

Comments 14

Java Version: 1.7.0_60, Oracle Corporation

Your Java is outdated, please update it.

Just in general, or do you think it's relevant to the crash? I'm using Java 7 intentionally as I sometimes like to play with mods and Java 8 doesn't play nice with Forge versions before 1.7.10.

I don't know if it's relevant or not, but it's possible.

Just to add it's happened a bunch more, including 4 times in 5 minutes at one point. Also I stopped dual wielding the bow and just switched the bow to my main hand and it kept happening so it's not specifically a dual wielding bug. One of the crashes actually erased my level.dat! But I guess that's more to do with what happens if you get a lot of crashes in general. I was able to recover using a backup and restoring missing items with commands.

I don't think Entity's Vehicle: ~~ERROR~~ NullPointerException: null is the reason. null means that no value is set.

4 more comments

@unknown could you please clean up this report a little bit as you now know what the reason is. And could you please provide a way to reproduce the crash as well?

I've uploaded the zombie.json that was causing the problem. It's the final comma that's the problem, leading the game to expect 1 more entry after that when there isn't one. Since it's in the rare drops list it doesn't interfere with the normal drops.

It's not Minecraft failing to checking for another entry, it's invalid JSON. You can validate your JSON using services such as JSONLint.

Is this still an issue in 1.9.3-pre2?

Tokes

(Unassigned)

Unconfirmed

Minecraft 15w51b

Retrieved