Create Fabric

Create Fabric

7M Downloads

Wand of Symmetry causes stack overflow when mining affected blocks

WillRDorval opened this issue ยท 0 comments

commented

Describe the Bug

When mining blocks affected by the wand of symmetry the server side of the game crashes from a stack overflow seemingly caused by the infinite loop:
at net.fabricmc.fabric.api.event.player.PlayerBlockBreakEvents.lambda$static$0(PlayerBlockBreakEvents.java:44) ~[fabric-events-interaction-v0-0.4+562bff6e90-345addfd7cf1e1a2.jar:?]
at com.simibubi.create.content.equipment.symmetryWand.SymmetryWandItem.handlePreEvent(SymmetryWandItem.java:334) ~[create-fabric-0.5.1-c-local+mc1.19.2.jar:?]
at com.simibubi.create.content.equipment.symmetryWand.SymmetryWandItem.remove(SymmetryWandItem.java:308) ~[create-fabric-0.5.1-c-local+mc1.19.2.jar:?]
at com.simibubi.create.content.equipment.symmetryWand.SymmetryHandler.onBlockDestroyed(SymmetryHandler.java:86) ~[create-fabric-0.5.1-c-local+mc1.19.2.jar:?]
at net.fabricmc.fabric.api.event.player.PlayerBlockBreakEvents.lambda$static$0(PlayerBlockBreakEvents.java:44) ~[fabric-events-interaction-v0-0.4+562bff6e90-345addfd7cf1e1a2.jar:?]

which repeats infinitely, bug was repeatable on the most recent commit to the mc1.19/fabric.dev branch using the gradle run client task

Reproduction Steps

  1. Place a mirror using the Wand of Symmetry
  2. Place a block on one side
  3. Break that block

...

Expected Result

Both blocks should break

Screenshots and Videos

No response

Crash Report or Log

https://pastebin.com/FAtnr4CD

Operating System

Windows 11 and also Linux server

Mod Version

0.5.1d

Minecraft Version

1.19.2

Other Mods

A bunch of other mods were running in a modpack but the bug was reproduced in the development environment without any additional mods being added on a fresh clone of this repo

Additional Context

The bug initally happened on a slightly modified version of create 0.5.1b but was recreated on 0.5.1d in testing to see if it was an issue with the modifiactions or create itself so it ahs been marked 0.5.1d