mojira.dev
MC-108358

Crash when 32 or more pistons retract in a single chunk (IllegalArgumentException)

This crash occurs when 32 or more pistons retract in a single chunk. To reproduce the crash you can use the linked world. Just walk on the pressure plates twice. On closing the door the game crashes.

World download: http://www.mediafire.com/file/qy93ac93thos4k3/Fastest+4x4+%281_8+%29%282%29.zip
(World by DicoTheRedstoner: https://www.youtube.com/watch?v=euLCroOrAvU)

Description: Ticking entity

java.lang.IllegalArgumentException: Cannot set property ats{name=extended, clazz=class java.lang.Boolean, values=[true, false]} as it does not exist in ath{block=minecraft:air, properties=[]}
	at ath$a.a(SourceFile:176)
	at ata.a(SourceFile:291)
	at asz.a(SourceFile:152)
	at ath$a.a(SourceFile:388)
	at ajn.a(SourceFile:1009)
	at sk.d(SourceFile:580)
	at bpn.d(SourceFile:866)
	at st.g(SourceFile:1570)
	at aau.g(SourceFile:1546)
	at st.n(SourceFile:1855)
	at aau.n(SourceFile:515)
	at bpn.n(SourceFile:823)
	at st.A_(SourceFile:1688)
	at aau.A_(SourceFile:270)
	at bpn.A_(SourceFile:184)
	at ajn.a(SourceFile:1533)
	at ajn.g(SourceFile:1511)
	at ajn.k(SourceFile:1394)
	at ben.t(SourceFile:1649)
	at ben.av(SourceFile:967)
	at ben.a(SourceFile:395)
	at net.minecraft.client.main.Main.main(SourceFile:124)

Related issues

MC-108133 Double hopper clock broke MC-108366 Crash when using my automatic tree farm MC-108367 Crash due to Block 36 / Piston "Ticking Block entity" MC-108370 Crash Redstone piston and observer MC-108375 Powering too many pistons crashes client MC-108395 game crashes when too big amount of pistons start MC-108432 Pistons pushing past push limit crash game. MC-108474 Insane cobblestone generator crashes due to a "tick block" MC-108482 Nul Exception MC-108514 finish tutorial on video auto crash to desktop MC-108535 Game Crash while activating a redstone door MC-108539 16w40a Crash during piston_extension (#36) tick. MC-108556 Piston Reed Farm Crashes Game MC-108572 I had no sound so I pressed F3+T to reload my textures and then the game crushed. MC-108583 Observer/Piston Crash MC-108591 The observer block updates crash the game in certain scenarios. MC-108607 Piston cloning crash MC-108647 Game crash MC-108657 Daylight Sensor Crashing Game

Attachments

Comments

migrated
[media][media][media][media][media][media]
migrated

Confirmed. I have a world that uses a decent amount of pistons as this does. I've removed redstone until the world no longer crashes, and when adding just 1 redstone (dust, repeater, comparator) that gets updated, not even powered, the world cashes. My last crash killed the world. Restore time...

http://imgur.com/MsTwOXB
Adding the repeater at the crosshair in the center of this picture, then activating the machine, the world crashes. Redstone wire has been removed where shown in an attempt to isolate.

migrated

A Redstoner called Robobrine sent me his missile factory that contains also pistons.
In 16w40a it crashes, in the previous 1.11 snapshots it doesn't.

If you relog into the world after the crash, you'll continue to crash.

Crash log attached, untouched/not-yet-crashed worldsave also attached.

Steps to reproduce the crash
Simply open up the world in 16w40a and hit the button to the very left, wait for a few seconds.

marcono1234

Might relate to MC-107543, the title is misleading but it tried to get there a property of an air block whereas here it tries to set one.

migrated

I've noticed that while I can trigger 48 pistons without a crash, triggering 22 sticky pistons with blocks does. Added screenshot and world download (16w40a Crash Test) as attachments.

G4me4u

Turns out, the bug is very easy to recreate from scratch. It turns out, that if you simply build a grand wall of around 70 or so pistons and power them all, the client will crash, when you unpower them. If you wanna recreate this bug, you can download the attachment ("Piston Crash Demo") and flick the lever, to turn off all the pistons. If the bug does not appear, you can add more pistons to stress the packets even more.

There can be multiple reasons for this, but from my perspective, I'd say that the pistons are simply creating so many packets, that the client get's out of sync with the server. When this happens, the tileentity might not have been deleted or the block might not have been set before the next gametick. This will cause the tile-entity to look at a blockstate on an airblock rather than the actual moving tile (as it's not been updated on the client yet).

migrated

I have done some testing and concluded that this is chunk based. The bug is only caused when 32 or more pistons retract at the same time in the same chunk. So you can have as many pistons retracting as you want as long as there is less than 32 per chunk.

[Mod] Neko

Updated ticket with new information, thanks!

seeker3000

I'm pretty sure this has popped up again in the 1.13 snapshots

08:18:12	bmz	Client thread	fatal	Reported exception thrown!
f: Ticking block entity
	at aqt.k(SourceFile:1478)
	at bmz.m(SourceFile:1253)
	at bmz.b(SourceFile:791)
	at bmz.a(SourceFile:380)
	at net.minecraft.client.main.Main.main(SourceFile:140)
Caused by: java.lang.NullPointerException
	at bav.j(SourceFile:97)
	at bav.f(SourceFile:108)
	at bav.P_(SourceFile:317)
	at aqt.k(SourceFile:1470)
	... 4 more
migrated

I been able to reproduce this bug in 17w49b using 64 pistons or more in a chunk. I cannot get this to happen every time the pistons retract though. Sometimes of the first try, some on the 7th, etc.

Panda4994

While the conditions of the crash that is recently occurring in the snapshots are quite similar, it is now a NullPointerException rather than an IllegalArgumentException.
The new bug is tracked in this ticket: MC-123304

Panda4994

Erik Broes

Community Consensus

Minecraft 16w40a

Minecraft 16w41a

Retrieved