mojira.dev
MC-73739

Command Block charakter limit

The Game crashes before the commandblock charakter limit is reached.

Linked issues

Attachments

Comments 10

Your command is too long. As of 1.8, command blocks can only support up to 32,767 characters.

This site is for bug reports only. For feature suggestions or changes please do this on Minecraft Suggestions on Reddit.

I see i didnt really say it in the right words, i meant that the game crashes when i put in the command and click on "done". BEFORE the Limit is reached. I can put in more characters but the game crashes when i click on "Done" every time.

Please include the crash report.

---- Minecraft Crash Report ----
// There are four lights!

Time: 08.11.14 18:32
Description: Updating screen events

java.lang.IllegalArgumentException: Payload may not be larger than 32767 bytes
	at md.<init>(SourceFile:33)
	at byu.a(SourceFile:84)
	at bxe.a(SourceFile:342)
	at byu.a(SourceFile:111)
	at bxe.k(SourceFile:405)
	at bxe.p(SourceFile:382)
	at bss.r(SourceFile:1480)
	at bss.at(SourceFile:880)
	at bss.a(SourceFile:317)
	at net.minecraft.client.main.Main.main(SourceFile:124)


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

-- Head --
Stacktrace:
	at md.<init>(SourceFile:33)
	at byu.a(SourceFile:84)
	at bxe.a(SourceFile:342)
	at byu.a(SourceFile:111)
	at bxe.k(SourceFile:405)
	at bxe.p(SourceFile:382)

-- Affected screen --
Details:
	Screen name: byu

-- Affected level --
Details:
	Level name: MpServer
	All players: 1 total; [cin['Juzim14'/0, l='MpServer', x=-495,66, y=53,00, z=-318,32]]
	Chunk stats: MultiplayerChunkCache: 430, 430
	Level seed: 0
	Level generator: ID 01 - flat, ver 0. Features enabled: false
	Level generator options: 
	Level spawn location: -501,00,53,00,-212,00 - World: (-501,53,-212), Chunk: (at 11,3,12 in -32,-14; contains blocks -512,0,-224 to -497,255,-209), Region: (-1,-1; contains chunks -32,-32 to -1,-1, blocks -512,0,-512 to -1,255,-1)
	Level time: 8824059 game time, 6000 day time
	Level dimension: 0
	Level storage version: 0x00000 - Unknown?
	Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
	Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
	Forced entities: 1 total; [cin['Juzim14'/0, l='MpServer', x=-495,66, y=53,00, z=-318,32]]
	Retry entities: 0 total; []
	Server brand: vanilla
	Server type: Integrated singleplayer server
Stacktrace:
	at cem.a(SourceFile:308)
	at bss.b(SourceFile:2278)
	at bss.a(SourceFile:326)
	at net.minecraft.client.main.Main.main(SourceFile:124)

-- System Details --
Details:
	Minecraft Version: 1.8.1-pre4
	Operating System: Windows 7 (amd64) version 6.1
	Java Version: 1.7.0_67, Oracle Corporation
	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
	Memory: 1903045296 bytes (1814 MB) / 2134114304 bytes (2035 MB) up to 4281597952 bytes (4083 MB)
	JVM Flags: 9 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M -Xincgc -Xms2048m -Xmx4096m
	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
	Launched Version: 1.8.1-pre4
	LWJGL: 2.9.1
	OpenGL: GeForce GTX 760/PCIe/SSE2 GL version 4.4.0, NVIDIA Corporation
	GL Caps: Using GL 1.3 multitexturing.
Using GL 1.3 texture combiners.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Shaders are available because OpenGL 2.1 is supported.
VBOs are available because OpenGL 1.5 is supported.

	Using VBOs: Yes
	Is Modded: Probably not. Jar signature remains and client brand is untouched.
	Type: Client (map_client.txt)
	Resource Packs: [Red Data.zip]
	Current Language: English (US)
	Profiler Position: N/A (disabled)

According to the crash report, your command exceeds the character limit. Can you attach the command in a text document?

Ok I found out that the character limit is at 32940 characters, but the game already crashes when you type more than 32923 characters.

The problem is mainly that the game makes no difference between ANSI characters (which take 1 byte) and unicode characters which take at least 2 bytes (which also depends probably how they are encoded).
So there are two different bugs which appear with unicode strings:
1. Using this (10,922 unicode characters; 10,922 is about 1/3 of 32,767; with 10,000 it works)

260326032603260326032603260326032603260326032603260326032603260326032603260326032603

The game start having problems

2. With an too long unicode string (16,000 characters) the encoder crashes

Well obviously 20,000 characters are the limit here so you have to create yourself an 16,000 long string

Encoder crash

---- Minecraft Crash Report ----
// On the bright side, I bought you a teddy bear!

Time: 02.01.15 18:48
Description: Updating screen events

io.netty.handler.codec.EncoderException: String too big (was 16000 bytes encoded, max 32767)
	at he.a(SourceFile:255)
	at byv.a(SourceFile:82)
	at bxf.a(SourceFile:342)
	at byv.a(SourceFile:111)
	at bxf.k(SourceFile:405)
	at bxf.p(SourceFile:382)
	at bst.r(SourceFile:1488)
	at bst.at(SourceFile:884)
	at bst.a(SourceFile:321)
	at net.minecraft.client.main.Main.main(SourceFile:124)


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

-- Head --
Stacktrace:
	at he.a(SourceFile:255)
	at byv.a(SourceFile:82)
	at bxf.a(SourceFile:342)
	at byv.a(SourceFile:111)
	at bxf.k(SourceFile:405)
	at bxf.p(SourceFile:382)

-- Affected screen --
Details:
	Screen name: byv

-- Affected level --
Details:
	Level name: MpServer
	All players: 1 total; [cio['Marcono1234'/104, l='MpServer', x=-26,35, y=65,02, z=-102,16]]
	Chunk stats: MultiplayerChunkCache: 1032, 1032
	Level seed: 0
	Level generator: ID 00 - default, ver 1. Features enabled: false
	Level generator options: 
	Level spawn location: -252,00,64,00,36,00 - World: (-252,64,36), Chunk: (at 4,4,4 in -16,2; contains blocks -256,0,32 to -241,255,47), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
	Level time: 2591 game time, 2591 day time
	Level dimension: 0
	Level storage version: 0x00000 - Unknown?
	Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
	Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
	Forced entities: 56 total; [abs['Fledermaus'/13325, l='MpServer', x=-37,28, y=62,10, z=-111,75], abs['Fledermaus'/13326, l='MpServer', x=-40,66, y=50,09, z=-142,88], agi['Zombie'/12308, l='MpServer', x=-81,50, y=38,00, z=-35,50], agi['Zombie'/12309, l='MpServer', x=-80,53, y=38,00, z=-39,72], aer['Creeper'/10262, l='MpServer', x=-46,00, y=39,00, z=-128,50], agi['Zombie'/12312, l='MpServer', x=-79,50, y=38,00, z=-35,50], ace['Kaninchen'/72, l='MpServer', x=-90,22, y=64,00, z=-63,41], cio['Marcono1234'/104, l='MpServer', x=-26,35, y=65,02, z=-102,16], ady['item.tile.mushroom'/137, l='MpServer', x=-43,13, y=10,00, z=-125,88], abv['Huhn'/138, l='MpServer', x=-54,13, y=66,00, z=-98,59], abv['Huhn'/139, l='MpServer', x=-48,50, y=67,00, z=-89,50], abv['Huhn'/140, l='MpServer', x=-42,38, y=67,00, z=-90,63], abv['Huhn'/141, l='MpServer', x=-41,41, y=64,00, z=-105,41], ace['Kaninchen'/142, l='MpServer', x=-31,09, y=66,00, z=-63,06], ace['Kaninchen'/143, l='MpServer', x=-36,31, y=68,28, z=-70,09], ace['Kaninchen'/144, l='MpServer', x=-38,28, y=67,00, z=-63,34], ace['Kaninchen'/148, l='MpServer', x=-38,33, y=64,14, z=-126,23], ace['Kaninchen'/149, l='MpServer', x=-29,25, y=64,00, z=-117,78], ace['Kaninchen'/150, l='MpServer', x=-32,50, y=64,00, z=-137,88], aer['Creeper'/12446, l='MpServer', x=-37,50, y=16,00, z=-116,50], ady['item.item.seeds'/2209, l='MpServer', x=-76,69, y=63,00, z=-135,81], abs['Fledermaus'/12486, l='MpServer', x=-32,75, y=23,10, z=-153,34], abs['Fledermaus'/12487, l='MpServer', x=-36,97, y=27,00, z=-145,81], agi['Zombie'/13511, l='MpServer', x=-10,50, y=24,00, z=-127,50], abs['Fledermaus'/12491, l='MpServer', x=19,63, y=14,59, z=-161,44], ace['Kaninchen'/6405, l='MpServer', x=5,50, y=64,00, z=-103,50], ace['Kaninchen'/6406, l='MpServer', x=6,50, y=64,00, z=-102,50], ace['Kaninchen'/6407, l='MpServer', x=-20,03, y=64,00, z=-117,84], afw['Skelett'/13589, l='MpServer', x=-91,50, y=18,00, z=-125,50], aes['Enderman'/13649, l='MpServer', x=17,50, y=19,00, z=-179,50], aer['Creeper'/13677, l='MpServer', x=-71,50, y=35,00, z=-142,50], agd['Spinne'/13688, l='MpServer', x=31,50, y=12,00, z=-167,50], agd['Spinne'/13691, l='MpServer', x=36,50, y=12,00, z=-163,50], aer['Creeper'/13726, l='MpServer', x=-90,53, y=26,00, z=-131,03], agi['Zombie'/12705, l='MpServer', x=-76,00, y=27,00, z=-177,63], aes['Enderman'/12713, l='MpServer', x=50,50, y=18,00, z=-99,50], aes['Enderman'/12714, l='MpServer', x=49,50, y=18,00, z=-99,50], aer['Creeper'/13831, l='MpServer', x=-39,50, y=19,00, z=-124,50], aer['Creeper'/13832, l='MpServer', x=-38,50, y=19,00, z=-124,50], aer['Creeper'/13833, l='MpServer', x=-35,50, y=19,00, z=-123,50], afw['Skelett'/13835, l='MpServer', x=-39,50, y=19,00, z=-125,50], agd['Spinne'/11813, l='MpServer', x=-47,50, y=24,00, z=-178,50], agd['Spinne'/11814, l='MpServer', x=-46,50, y=24,00, z=-180,50], aer['Creeper'/13889, l='MpServer', x=-47,50, y=59,00, z=-131,50], aer['Creeper'/9903, l='MpServer', x=-56,47, y=23,00, z=-128,06], abs['Fledermaus'/9942, l='MpServer', x=-8,59, y=28,26, z=-124,95], ady['item.item.seeds'/9957, l='MpServer', x=-23,88, y=63,00, z=-80,28], aer['Creeper'/7927, l='MpServer', x=-92,50, y=33,00, z=-121,50], agi['Zombie'/14086, l='MpServer', x=-40,50, y=15,00, z=-41,50], agd['Spinne'/11024, l='MpServer', x=-82,13, y=31,00, z=-147,91], aer['Creeper'/13172, l='MpServer', x=-40,60, y=43,00, z=-101,95], afw['Skelett'/14238, l='MpServer', x=43,50, y=14,00, z=-164,50], agi['Zombie'/14267, l='MpServer', x=-33,50, y=38,00, z=-24,50], agi['Zombie'/14270, l='MpServer', x=-33,50, y=38,00, z=-23,50], aer['Creeper'/14271, l='MpServer', x=-31,50, y=39,00, z=-122,50], aer['Creeper'/14272, l='MpServer', x=-37,50, y=39,00, z=-121,50]]
	Retry entities: 0 total; []
	Server brand: vanilla
	Server type: Integrated singleplayer server
Stacktrace:
	at cen.a(SourceFile:308)
	at bst.b(SourceFile:2287)
	at bst.a(SourceFile:330)
	at net.minecraft.client.main.Main.main(SourceFile:124)

-- System Details --
Details:
	Minecraft Version: 1.8.2-pre1
	Operating System: Windows 7 (amd64) version 6.1
	Java Version: 1.8.0_25, Oracle Corporation
	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
	Memory: 183684064 bytes (175 MB) / 658014208 bytes (627 MB) up to 1060372480 bytes (1011 MB)
	JVM Flags: 6 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M
	IntCache: cache: 0, tcache: 5, allocated: 17, tallocated: 89
	Launched Version: 1.8.2-pre1
	LWJGL: 2.9.1
	OpenGL: AMD Radeon HD 6800 Series GL version 4.4.13283 Compatibility Profile Context 14.501.1003.0, ATI Technologies Inc.
	GL Caps: Using GL 1.3 multitexturing.
Using GL 1.3 texture combiners.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Shaders are available because OpenGL 2.1 is supported.
VBOs are available because OpenGL 1.5 is supported.

	Using VBOs: Yes
	Is Modded: Probably not. Jar signature remains and client brand is untouched.
	Type: Client (map_client.txt)
	Resource Packs: []
	Current Language: Deutsch (Deutschland)
	Profiler Position: N/A (disabled)

RedData

(Unassigned)

Unconfirmed

Minecraft 1.8.1-pre3

Retrieved