java.lang.RuntimeException: PLAYER target expects a Player arg
Aeolun opened this issue ยท 4 comments
Issue description:
The server crashes after someone has been playing around with autocrafting.
What happens:
Server crashes
What you expected to happen:
Server doesn't crash? To be honest, I'm not sure what they did, so maybe I would expect it to crash.
Steps to reproduce:
- Autocraft 8 medium voltage solar panel arrays (not sure if that actually reproduces, it's just what was happening when the server crashed)
Version (make sure you are on the latest version before reporting):
- Minecraft: 1.12
- Forge: 14.23.5.2847
- Refined Storage: 1.6.15
Does this issue occur on a server?
Yes
If a (crash)log is relevant for this issue, link it here:
[15:13:31] [Server thread/ERROR] [FML]: SimpleChannelHandlerWrapper exception
java.lang.RuntimeException: PLAYER target expects a Player arg
at net.minecraftforge.fml.common.network.FMLOutboundHandler$OutboundTarget$4.validateArgs(FMLOutboundHandler.java:136) ~[FMLOutboundHandler$OutboundTarget$4.class:?]
at net.minecraftforge.fml.common.network.FMLOutboundHandler.write(FMLOutboundHandler.java:367) ~[FMLOutboundHandler.class:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:738) ~[minecraft_server.1.12.2.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:730) ~[minecraft_server.1.12.2.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:816) ~[minecraft_server.1.12.2.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:723) ~[minecraft_server.1.12.2.jar:?]
at io.netty.handler.codec.MessageToMessageEncoder.write(MessageToMessageEncoder.java:111) ~[minecraft_server.1.12.2.jar:?]
at io.netty.handler.codec.MessageToMessageCodec.write(MessageToMessageCodec.java:116) ~[minecraft_server.1.12.2.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:738) ~[minecraft_server.1.12.2.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.invokeWriteAndFlush(AbstractChannelHandlerContext.java:801) ~[minecraft_server.1.12.2.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:814) ~[minecraft_server.1.12.2.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:794) ~[minecraft_server.1.12.2.jar:?]
at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:831) ~[minecraft_server.1.12.2.jar:?]
at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:1032) ~[minecraft_server.1.12.2.jar:?]
at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:296) ~[minecraft_server.1.12.2.jar:?]
at net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper.sendTo(SimpleNetworkWrapper.java:250) ~[SimpleNetworkWrapper.class:?]
at com.raoulvdberge.refinedstorage.container.ContainerCraftingMonitor.onChanged(ContainerCraftingMonitor.java:96) ~[ContainerCraftingMonitor.class:?]
at java.lang.Iterable.forEach(Iterable.java:75) [?:1.8.0_252]
at com.raoulvdberge.refinedstorage.apiimpl.autocrafting.CraftingManager.onTaskChanged(CraftingManager.java:226) [CraftingManager.class:?]
at com.raoulvdberge.refinedstorage.apiimpl.autocrafting.task.CraftingTask.updateProcessing(CraftingTask.java:779) [CraftingTask.class:?]
at com.raoulvdberge.refinedstorage.apiimpl.autocrafting.task.CraftingTask.update(CraftingTask.java:882) [CraftingTask.class:?]
at com.raoulvdberge.refinedstorage.apiimpl.autocrafting.CraftingManager.update(CraftingManager.java:172) [CraftingManager.class:?]
at com.raoulvdberge.refinedstorage.tile.TileController.func_73660_a(TileController.java:211) [TileController.class:?]
at net.minecraft.world.World.func_72939_s(World.java:1838) [amu.class:?]
at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:613) [oo.class:?]
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:767) [MinecraftServer.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:397) [nz.class:?]
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:668) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526) [MinecraftServer.class:?]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_252]
After the server reboots, it immediately shuts down because a tick is taking longer than a second to complete:
Time: 9/11/20 2:27 AM
Description: Watching Server
java.lang.Error: ServerHangWatchdog detected that a single server tick took 60.00 seconds (should be max 0.05)
at scala.collection.immutable.Range.foreach$mVc$sp(Range.scala:160)
at codechicken.microblock.MicroRecipe$.getGluingResult(MicroRecipe.scala:89)
at codechicken.microblock.MicroRecipe$.func_77572_b(MicroRecipe.scala:25)
at codechicken.microblock.MicroRecipe$.func_77569_a(MicroRecipe.scala:16)
at com.raoulvdberge.refinedstorage.apiimpl.autocrafting.CraftingPattern.<init>(CraftingPattern.java:118)
at com.raoulvdberge.refinedstorage.item.ItemPattern.create(ItemPattern.java:237)
at com.raoulvdberge.refinedstorage.apiimpl.autocrafting.task.CraftingTask.readPatternFromNbt(CraftingTask.java:1038)
at com.raoulvdberge.refinedstorage.apiimpl.autocrafting.task.Crafting.<init>(Crafting.java:33)
at com.raoulvdberge.refinedstorage.apiimpl.autocrafting.task.CraftingTask.<init>(CraftingTask.java:139)
at com.raoulvdberge.refinedstorage.apiimpl.autocrafting.registry.CraftingTaskFactory.createFromNbt(CraftingTaskFactory.java:25)
at com.raoulvdberge.refinedstorage.apiimpl.autocrafting.CraftingManager.update(CraftingManager.java:139)
at com.raoulvdberge.refinedstorage.tile.TileController.func_73660_a(TileController.java:211)
at net.minecraft.world.World.func_72939_s(World.java:1838)
at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:613)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:767)
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:397)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:668)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526)
at java.lang.Thread.run(Thread.java:748)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Thread: Server Watchdog
Stacktrace:
at scala.collection.immutable.Range.foreach$mVc$sp(Range.scala:160)
at codechicken.microblock.MicroRecipe$.getGluingResult(MicroRecipe.scala:89)
at codechicken.microblock.MicroRecipe$.func_77572_b(MicroRecipe.scala:25)
at codechicken.microblock.MicroRecipe$.func_77569_a(MicroRecipe.scala:16)
at com.raoulvdberge.refinedstorage.apiimpl.autocrafting.CraftingPattern.<init>(CraftingPattern.java:118)
at com.raoulvdberge.refinedstorage.item.ItemPattern.create(ItemPattern.java:237)
at com.raoulvdberge.refinedstorage.apiimpl.autocrafting.task.CraftingTask.readPatternFromNbt(CraftingTask.java:1038)
at com.raoulvdberge.refinedstorage.apiimpl.autocrafting.task.Crafting.<init>(Crafting.java:33)
at com.raoulvdberge.refinedstorage.apiimpl.autocrafting.task.CraftingTask.<init>(CraftingTask.java:139)
at com.raoulvdberge.refinedstorage.apiimpl.autocrafting.registry.CraftingTaskFactory.createFromNbt(CraftingTaskFactory.java:25)
at com.raoulvdberge.refinedstorage.apiimpl.autocrafting.CraftingManager.update(CraftingManager.java:139)
at com.raoulvdberge.refinedstorage.tile.TileController.func_73660_a(TileController.java:211)
at net.minecraft.world.World.func_72939_s(World.java:1838)
at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:613)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:767)
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:397)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:668)
I could imagine that using some form of autoclicker on a crafting monitor could produce an error like this.
Try turning off the watchdog by setting max-tick-time in server.properties to -1. The error for that is unfortunately useless.