-
Bug
-
Resolution: Fixed
-
23w07a
-
None
-
Confirmed
-
Commands, Crash
-
Very Important
-
Platform
The bug
The server crashes when executing /damage on a Guardian a couple of times using a command block, with the same mob also being as its source of the damage.
The crash does not happen when executing through chat, instead the command itself will just not work at all, as if you have never typed it in the first place.
Also happens with Elder Guardians, including Elder Guardians doing /damage to Guardians and vice versa.
Steps to reproduce
- Create a new world without experiments enabled
- Locate an ocean monument and teleport there
- Place a command block with this command:
damage @e[type=guardian,limit=1] 1 generic by @e[type=guardian,limit=1]
- Activate the block multiple times
→ The server eventually encounters a stack overflow error and crashes, along with the game if done on singleplayer
Stack trace
Description: Executing command block java.lang.StackOverflowError: Executing command block at acl.a(SourceFile:117) at bvv.fQ(SourceFile:133) at bvv.a(SourceFile:344) at bvv.a(SourceFile:349) at bvv.a(SourceFile:349) at bvv.a(SourceFile:349) at bvv.a(SourceFile:349) at bvv.a(SourceFile:349) at bvv.a(SourceFile:349) at bvv.a(SourceFile:349) at bvv.a(SourceFile:349) at bvv.a(SourceFile:349) ...
- relates to
-
MC-260579 Crash when a guardian deals damage to itself after removing thorns from avoids_guardian_thorns
- Resolved