AsoDesu / IslandUtils

A client-side utility mod for MCC Island
MIT License
46 stars 19 forks source link

Random IndexOutOfBoundsException in Parkour Warrior Dojo #110

Closed BluSpring closed 2 months ago

BluSpring commented 6 months ago

Describe the bug When you complete a Bonus path in Parkour Warrior Dojo, there is a small chance for you to get kicked with an IndexOutOfBoundsException randomly.

To Reproduce just play enough PW Dojo.

Expected behaviour For the game to not kick you?

Screenshots & Logs FINALLY GOT THE CRASH.txt

System & Version Information (This can usually be found in the F3 Menu)

Additional context I encountered this bug TWO AND A HALF MONTHS AGO, AND IT TOOK SO LONG TO ENCOUNTER THE BUG AGAIN. Had to create an entirely custom mixin just to log any internal exceptions to figure out what was happening. The mixin was literally just

@Mixin(Connection.class)
public class ConnectionMixin {
    @Inject(method = "exceptionCaught", at = @At(value = "INVOKE", target = "Lnet/minecraft/network/chat/TranslatableComponent;<init>(Ljava/lang/String;[Ljava/lang/Object;)V"))
    private void printExceptionStackTrace(ChannelHandlerContext channelHandlerContext, Throwable throwable, CallbackInfo ci) {
        throwable.printStackTrace();
    }
}
AsoDesu commented 2 months ago

I'm gonna close this issue as there is not reliable way of reproducing it, and involves weirdness with Minecraft's own Component system If it crops up again i'll reopon :)