mojira.dev
MC-123194

data get command causes indexOutOfBounds and stackOverflow exceptions, client and server crashes

Trying to get data values for a player (myself) would crash the game and the server. This bug is present since 17w48a.

Exact Steps to reproduce:

  • On a multiplayer server run the command

  • Give yourself all recipes /recipe give @s *

  • Run /data get entity @s

Expected Result:
Obtain the data structure for the player

Actual Result:
Game crash with IndexOutOfBounds Exception followed by server crash with the following logs (also check attached crash logs from server and client):

[12:32:50] [Server Watchdog/FATAL]: A single server tick took 60.00 seconds (should be max 0.05)
[12:32:50] [Server Watchdog/FATAL]: Considering it to be crashed, server will forcibly shutdown.
[12:32:50] [Server thread/WARN]: Can't keep up! Did the system time change, or is the server overloaded? Running 60618ms behind, skipping 1212 tick(s)
[12:32:51] [Server Watchdog/ERROR]: This crash report has been saved to: D:\Games\MCServerSnapshot\.\crash-reports\crash-2017-12-12_12.32.51-server.txt
[12:32:51] [Server Shutdown Thread/INFO]: Stopping server

Linked issues

Attachments

Comments 12

Sounds like the same as MC-123111, I still can't reproduce though.

I can reproduce it in every snapshot version since 17w48a. Are you sure you are using a multiplayer server?

The second possible reason why you can't reproduce is because your name doesn't have capitalization or symbols which lately seems to impact the parser a lot.

Can you please attach the world or at least your player data file (located in the playerdata folder)?

Attached my playerdata folder

Can confirm for 18w03b

2 more comments

Confirmed for 1.13-pre2.

Like @unknown said, there is now a clear way of reproduction, the issue has to do something with recipes. You may update the description:

Exact Steps to reproduce:

  • Give yourself all recipes /recipe give @s *

  • Run /data get entity @s

Confirmed for 1.13-pre3.

Mad Cat, you might want to add some labels to avoid duplicates to your issue

This issue seems to be duplicate of few others:

  • Initial report - client (stack overflow): fixed via MC-121331

  • Initial report - server (watchdog) - server seems to writing logs about overload (`Can't keep up!`), so maybe some IO contention? Does not seem related directly to this

  • Later reproductions seem to be duplicates of MC-45838

  • MC-130303 is symptom of MC-131019 and seems not related to this one

This issue also seems to be resolved. Right now I can issue:

/advancement grant @p everything
/recipe give @p *

After which I run '/data get entity @p' and I don't crash anymore.

 

I can also confirm that it got fixed.

Mad Cat

Nathan Adams

Community Consensus

crash

Minecraft 17w50a, Minecraft 18w11a, Minecraft 18w21b, Minecraft 1.13-pre1, Minecraft 1.13-pre2, Minecraft 1.13-pre3, Minecraft 1.13-pre4

Minecraft 1.13.1

Retrieved