Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-100789

java.lang.IndexOutOfBoundsException when saving some commands in command blocks

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Awaiting Response
    • None
    • Minecraft 1.9.2, Minecraft 1.11, Minecraft 1.12.2, Minecraft 1.13
    • None
    • Java 8u77, Windows 10
    • Community Consensus
    • (Unassigned)

      This only applies on Multiplayer servers.

      When this command: command.txt is put into a command block while on a server, the client who put it gets kicked with this message:

      Internal Exception: io.netty.handler.codec.DecoderException: java.lang.IndexOutOfBoundsException; readerIndex(1) + length(1) exceeds writerIndex(1): UnpooledHeapByteBuf(ridx: 1, widx: 1, cap: 1)
      

      I can rejoin the server as after I get kicked

      That happens with some other command too.

      Server Log: http://pastebin.com/xbnUzZzd

      [13:26:10] [Server thread/INFO]: Starting minecraft server version 1.9.2
      [13:26:10] [Server thread/WARN]: To start the server with more ram, launch it as "java -Xmx1024M -Xms1024M -jar minecraft_server.jar"
      [13:26:10] [Server thread/INFO]: Loading properties
      [13:26:10] [Server thread/WARN]: ressource-pack-hash is depricated and found along side resource-pack-sha1. resource-pack-hash will be ignored.
      [13:26:10] [Server thread/WARN]: You specified a resource pack without providing a sha1 hash. Pack will be updated on the client only if you change the name of the pack.
      [13:26:10] [Server thread/INFO]: Default game type: SURVIVAL
      [13:26:10] [Server thread/INFO]: Generating keypair
      [13:26:11] [Server thread/INFO]: Starting Minecraft server on ^^ IP Hidden ^^
      [13:26:11] [Server thread/INFO]: Using epoll channel type
      [13:26:11] [Server thread/INFO]: Preparing level "SkyMegalith"
      [13:26:12] [Server thread/INFO]: Preparing start region for level 0
      [13:26:13] [Server thread/INFO]: Preparing spawn area: 35%
      [13:26:14] [Server thread/INFO]: Preparing spawn area: 58%
      [13:26:15] [Server thread/INFO]: Done (3.704s)! For help, type "help" or "?"
      [13:26:15] [Server thread/INFO]: Starting GS4 status listener
      [13:26:15] [Query Listener #1/INFO]: Query running on ^^ IP Hidden ^^
      [13:26:15] [User Authenticator #1/INFO]: UUID of player Insane96MCP is 9a8b1833-adba-418a-bde6-07c0e8572120
      [13:26:15] [Server thread/INFO]: Insane96MCP[/^^ IP Hidden ^^] logged in with entity id 191 at (763.9379346397898, 102.0, -326.1176980669341)
      [13:26:15] [Server thread/INFO]: Insane96MCP joined the game
      [13:27:01] [Server thread/INFO]: [Insane96MCP: Given [Command Block] * 1 to Insane96MCP]
      [13:27:05] [Server thread/INFO]: [Insane96MCP: Set own game mode to Creative Mode]
      [13:27:46] [Netty Epoll Server IO #1/ERROR]: io.netty.handler.codec.EncoderException: String too big (was 34686 bytes encoded, max 32767)
      [13:27:47] [Server thread/INFO]: Insane96MCP lost connection: TextComponent{text='Disconnected', siblings=[], style=Style{hasParent=false, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null, insertion=null}}
      [13:27:47] [Server thread/INFO]: Insane96MCP left the game
      

      Client Log: http://pastebin.com/hTz0tHrg

      [20:20:03] [Client thread/INFO]: Setting user: Insane96MCP
      [20:20:04] [Client thread/INFO]: LWJGL Version: 2.9.4
      [20:20:06] [Client thread/INFO]: Reloading ResourceManager: Default, faithful32pack.zip, FaithfulSnapshots.zip, Clouds-Pack (Modified).zip
      [20:20:26] [Sound Library Loader/INFO]: Starting up SoundSystem...
      [20:20:26] [Thread-5/INFO]: Initializing LWJGL OpenAL
      [20:20:26] [Thread-5/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
      [20:20:26] [Thread-5/INFO]: OpenAL initialized.
      [20:20:26] [Sound Library Loader/INFO]: Sound engine started
      [20:20:30] [Client thread/INFO]: Created: 2048x1024 textures-atlas
      [20:20:38] [Client thread/INFO]: Connecting to node358.minecraft.toomanynodes.com., 33377
      [20:20:41] [Netty Client IO #9/INFO]: Found file C:\Users\Alberto\AppData\Roaming\.minecraft\server-resource-packs\ffcf1e2589cca5bdb0d1977f1377e0ed2628bd34 without verification hash
      [20:20:41] [Client thread/INFO]: Reloading ResourceManager: Default, faithful32pack.zip, FaithfulSnapshots.zip, Clouds-Pack (Modified).zip, ffcf1e2589cca5bdb0d1977f1377e0ed2628bd34
      [20:20:42] [Client thread/INFO]: SoundSystem shutting down...
      [20:20:42] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com
      [20:20:42] [Sound Library Loader/INFO]: Starting up SoundSystem...
      [20:20:43] [Thread-9/INFO]: Initializing LWJGL OpenAL
      [20:20:43] [Thread-9/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
      [20:20:43] [Thread-9/INFO]: OpenAL initialized.
      [20:20:43] [Sound Library Loader/INFO]: Sound engine started
      [20:20:43] [Client thread/INFO]: Created: 2048x1024 textures-atlas
      [20:20:47] [Client thread/INFO]: [CHAT] Your game mode has been updated to Creative Mode
      [20:20:48] [Client thread/ERROR]: Item entity 21926573 has no item?!
      [20:20:50] [Client thread/INFO]: [CHAT] Cleared the inventory of Insane96MCP, removing 136 items
      [20:20:54] [Client thread/ERROR]: Item entity 21926415 has no item?!
      [20:21:01] [Client thread/ERROR]: Item entity 21962386 has no item?!
      [20:21:01] [Client thread/ERROR]: Item entity 21962386 has no item?!
      [20:21:01] [Client thread/ERROR]: Item entity 21962386 has no item?!
      [20:21:09] [Client thread/ERROR]: Item entity 21926377 has no item?!
      [20:21:10] [Client thread/ERROR]: Item entity 21926189 has no item?!
      [20:21:11] [Client thread/ERROR]: Item entity 21927136 has no item?!
      [20:21:11] [Client thread/ERROR]: Item entity 21926242 has no item?!
      [20:22:14] [Client thread/INFO]: Reloading ResourceManager: Default, faithful32pack.zip, FaithfulSnapshots.zip, Clouds-Pack (Modified).zip
      [20:22:16] [Client thread/INFO]: SoundSystem shutting down...
      [20:22:16] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com
      [20:22:16] [Sound Library Loader/INFO]: Starting up SoundSystem...
      [20:22:16] [Thread-11/INFO]: Initializing LWJGL OpenAL
      [20:22:16] [Thread-11/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
      [20:22:16] [Thread-11/INFO]: OpenAL initialized.
      [20:22:16] [Client thread/INFO]: Created: 2048x1024 textures-atlas
      [20:22:16] [Sound Library Loader/INFO]: Sound engine started
      [20:22:48] [Client thread/INFO]: Connecting to node358.minecraft.toomanynodes.com., 33377
      [20:22:50] [Netty Client IO #10/INFO]: Found file C:\Users\Alberto\AppData\Roaming\.minecraft\server-resource-packs\ffcf1e2589cca5bdb0d1977f1377e0ed2628bd34 without verification hash
      [20:22:50] [Client thread/INFO]: Reloading ResourceManager: Default, faithful32pack.zip, FaithfulSnapshots.zip, Clouds-Pack (Modified).zip, ffcf1e2589cca5bdb0d1977f1377e0ed2628bd34
      [20:22:51] [Client thread/INFO]: SoundSystem shutting down...
      [20:22:51] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com
      [20:22:51] [Sound Library Loader/INFO]: Starting up SoundSystem...
      [20:22:51] [Thread-13/INFO]: Initializing LWJGL OpenAL
      [20:22:51] [Thread-13/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
      [20:22:51] [Thread-13/INFO]: OpenAL initialized.
      [20:22:51] [Sound Library Loader/INFO]: Sound engine started
      [20:22:52] [Client thread/INFO]: Created: 2048x1024 textures-atlas
      [20:22:58] [Client thread/INFO]: [CHAT] There is no such item with name minecraft:command
      [20:23:00] [Client thread/INFO]: [CHAT] Given [Command Block] * 1 to Insane96MCP
      [20:23:00] [Client thread/ERROR]: Item entity 22108742 has no item?!
      [20:23:54] [Client thread/INFO]: [CHAT] <Insane96MCP> ciao
      [20:24:17] [Client thread/INFO]: [CHAT] [Server: Saved the world]
      [20:24:17] [Client thread/INFO]: [CHAT] [Server: Stopping the server]
      [20:24:17] [Client thread/INFO]: Reloading ResourceManager: Default, faithful32pack.zip, FaithfulSnapshots.zip, Clouds-Pack (Modified).zip
      [20:24:23] [Client thread/INFO]: SoundSystem shutting down...
      [20:24:23] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com
      [20:24:23] [Sound Library Loader/INFO]: Starting up SoundSystem...
      [20:24:23] [Thread-15/INFO]: Initializing LWJGL OpenAL
      [20:24:23] [Thread-15/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
      [20:24:23] [Thread-15/INFO]: OpenAL initialized.
      [20:24:24] [Client thread/INFO]: Created: 2048x1024 textures-atlas
      [20:24:24] [Sound Library Loader/INFO]: Sound engine started
      [20:25:46] [Client thread/INFO]: Connecting to node358.minecraft.toomanynodes.com., 33377
      [20:25:51] [Netty Client IO #3/INFO]: Found file C:\Users\Alberto\AppData\Roaming\.minecraft\server-resource-packs\ffcf1e2589cca5bdb0d1977f1377e0ed2628bd34 without verification hash
      [20:25:51] [Client thread/INFO]: Reloading ResourceManager: Default, faithful32pack.zip, FaithfulSnapshots.zip, Clouds-Pack (Modified).zip, ffcf1e2589cca5bdb0d1977f1377e0ed2628bd34
      [20:25:52] [Client thread/INFO]: SoundSystem shutting down...
      [20:25:52] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com
      [20:25:52] [Sound Library Loader/INFO]: Starting up SoundSystem...
      [20:25:52] [Thread-17/INFO]: Initializing LWJGL OpenAL
      [20:25:52] [Thread-17/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
      [20:25:52] [Thread-17/INFO]: OpenAL initialized.
      [20:25:52] [Client thread/INFO]: Created: 2048x1024 textures-atlas
      [20:25:53] [Sound Library Loader/INFO]: Sound engine started
      [20:26:32] [Client thread/INFO]: [CHAT] There is no such item with name minecraft:comma
      [20:26:35] [Client thread/INFO]: [CHAT] There is no such item with name minecraft:command_block7
      [20:26:36] [Client thread/INFO]: [CHAT] Given [Command Block] * 1 to Insane96MCP
      [20:26:39] [Client thread/INFO]: [CHAT] /gamemode, /gamerule
      [20:26:40] [Client thread/INFO]: [CHAT] Your game mode has been updated to Creative Mode
      [20:27:22] [Client thread/INFO]: Reloading ResourceManager: Default, faithful32pack.zip, FaithfulSnapshots.zip, Clouds-Pack (Modified).zip
      [20:27:23] [Client thread/INFO]: SoundSystem shutting down...
      [20:27:23] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com
      [20:27:23] [Sound Library Loader/INFO]: Starting up SoundSystem...
      [20:27:23] [Thread-20/INFO]: Initializing LWJGL OpenAL
      [20:27:23] [Thread-20/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
      [20:27:23] [Thread-20/INFO]: OpenAL initialized.
      [20:27:23] [Client thread/INFO]: Created: 2048x1024 textures-atlas
      [20:27:23] [Sound Library Loader/INFO]: Sound engine started
      

            Unassigned Unassigned
            insane96mcp Insane96MCP
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: