Skip to content

Ticking Player Crash when spamming Redstone Hooks in a small area #52

Description

@SpikyStars

Encountered on the latest version of the mod, so probably not a duplicate of #44
Mod versions:

     Mod List:
		Name Version (Mod Id)

		Architectury 13.0.8 (architectury)
		Curios API 9.5.1+1.21.1 (curios)
		Hooked 2.0.2 (hooked)
		Kotlin For Forge 5.11.0 (kotlinforforge)
		LibrarianLib 5.0.0 (librarianlib)
		LibrarianLib: Albedo 5.0.0 (liblib_albedo)
		LibrarianLib: Core 5.0.0 (liblib_core)
		LibrarianLib: Etcetera 5.0.0 (liblib_etcetera)
		LibrarianLib: Glitter 5.0.0 (liblib_glitter)
		LibrarianLib: Mosaic 5.0.0 (liblib_mosaic)
		Minecraft 1.21.1 (minecraft)
		NeoForge 21.1.230 (neoforge)

Steps to recreate:

  1. Create a world and dig a small area (I recreated it in a 2x3 hole)
  2. Give yourself a Redstone Hook and hold down the C key to start creating many hooks
  3. This part is inconsistent, I basically moved my cursor around in a small space, back and forth, in circles, trying to make funky shapes
  4. You may encounter a Ticking Player crash, once this happens, you're unable to re-enter the world as it will crash every time
  5. Since I couldn't recreate it consistently, I attached an example world with the bug in action
    hooked_crash.zip

Crash log:

net.minecraft.ReportedException: Ticking player
	at TRANSFORMER/minecraft@1.21.1/net.minecraft.server.network.ServerConnectionListener.tick(ServerConnectionListener.java:162) ~[client-1.21.1-20240808.144430-srg.jar%23193!/:?]
	at TRANSFORMER/minecraft@1.21.1/net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1051) ~[client-1.21.1-20240808.144430-srg.jar%23193!/:?]
	at TRANSFORMER/minecraft@1.21.1/net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:917) ~[client-1.21.1-20240808.144430-srg.jar%23193!/:?]
	at TRANSFORMER/minecraft@1.21.1/net.minecraft.client.server.IntegratedServer.tickServer(IntegratedServer.java:110) ~[client-1.21.1-20240808.144430-srg.jar%23193!/:?]
	at TRANSFORMER/minecraft@1.21.1/net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:707) ~[client-1.21.1-20240808.144430-srg.jar%23193!/:?]
	at TRANSFORMER/minecraft@1.21.1/net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:267) ~[client-1.21.1-20240808.144430-srg.jar%23193!/:?]
	at java.base/java.lang.Thread.run(Thread.java:1583) [?:?]
Caused by: java.lang.ArithmeticException: Cannot inverse a matrix with a zero determinant
	at TRANSFORMER/liblib_core@5.0.0/com.teamwizardry.librarianlib.math.Matrix4d.invert(Matrix4d.java:399) ~[librarianlib_core_neoforge-5.0.0.jar%23235!/:?]
	at TRANSFORMER/hooked@2.0.2/dev.thecodewarrior.hooked.util.Polygon.<init>(Polygon.java:303) ~[hooked-neoforge-2.0.2.jar%23197!/:?]
	at TRANSFORMER/hooked@2.0.2/dev.thecodewarrior.hooked.util.Hull.<init>(Hull.java:357) ~[hooked-neoforge-2.0.2.jar%23197!/:?]
	at TRANSFORMER/hooked@2.0.2/dev.thecodewarrior.hooked.util.DynamicHull.toHull(DynamicHull.java:197) ~[hooked-neoforge-2.0.2.jar%23197!/:?]
	at TRANSFORMER/hooked@2.0.2/dev.thecodewarrior.hooked.util.DynamicHull.update(DynamicHull.java:52) ~[hooked-neoforge-2.0.2.jar%23197!/:?]
	at TRANSFORMER/hooked@2.0.2/dev.thecodewarrior.hooked.hooks.FlightHookPlayerController.update(FlightHookPlayerController.java:141) ~[hooked-neoforge-2.0.2.jar%23197!/:?]
	at TRANSFORMER/hooked@2.0.2/dev.thecodewarrior.hooked.hook.ServerHookProcessor.tick(ServerHookProcessor.java:101) ~[hooked-neoforge-2.0.2.jar%23197!/:?]
	at TRANSFORMER/minecraft@1.21.1/net.minecraft.world.entity.player.Player.handler$zzm000$hooked$tickHooks(Player.java:2423) ~[client-1.21.1-20240808.144430-srg.jar%23193!/:?]
	at TRANSFORMER/minecraft@1.21.1/net.minecraft.world.entity.player.Player.aiStep(Player.java:587) ~[client-1.21.1-20240808.144430-srg.jar%23193!/:?]
	at TRANSFORMER/minecraft@1.21.1/net.minecraft.world.entity.LivingEntity.tick(LivingEntity.java:2432) ~[client-1.21.1-20240808.144430-srg.jar%23193!/:?]
	at TRANSFORMER/minecraft@1.21.1/net.minecraft.world.entity.player.Player.tick(Player.java:281) ~[client-1.21.1-20240808.144430-srg.jar%23193!/:?]
	at TRANSFORMER/minecraft@1.21.1/net.minecraft.server.level.ServerPlayer.doTick(ServerPlayer.java:556) ~[client-1.21.1-20240808.144430-srg.jar%23193!/:?]
	at TRANSFORMER/minecraft@1.21.1/net.minecraft.server.network.ServerGamePacketListenerImpl.tick(ServerGamePacketListenerImpl.java:260) ~[client-1.21.1-20240808.144430-srg.jar%23193!/:?]
	at TRANSFORMER/minecraft@1.21.1/net.minecraft.network.Connection.tick(Connection.java:412) ~[client-1.21.1-20240808.144430-srg.jar%23193!/:?]
	at TRANSFORMER/minecraft@1.21.1/net.minecraft.server.network.ServerConnectionListener.tick(ServerConnectionListener.java:159) ~[client-1.21.1-20240808.144430-srg.jar%23193!/:?]
	... 6 more

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions