Pixelmon Mod - Bug tracker

[9.0.9] Game kicks you from SP and MP servers when using any item in-battle. fix completed for upcoming version

Ticket description:
1) Log into a SP or MP server.
2) Initiate a battle with any wild pokemon.
3) Open your bag and use any item.
4) Get disconnected

Log:
Code: Select all[15Sep2022 21:02:34.099] [Server thread/FATAL] [net.minecraft.util.concurrent.ThreadTaskExecutor/]: Error executing task on Server
java.lang.IllegalStateException: Invalid packet received, aborting connection
   at net.minecraftforge.fml.network.NetworkHooks.validatePacketDirection(NetworkHooks.java:91) ~[?:?]
   at net.minecraftforge.fml.network.simple.IndexedMessageCodec.consume(IndexedMessageCodec.java:147) ~[?:?]
   at net.minecraftforge.fml.network.simple.SimpleChannel.networkEventListener(SimpleChannel.java:66) ~[?:?]
   at net.minecraftforge.fml.network.simple.SimpleChannel$$Lambda$2955/585814865.accept(Unknown Source) ~[?:?]
   at net.minecraftforge.eventbus.EventBus.doCastFilter(EventBus.java:247) ~[eventbus-4.0.0.jar:?]
   at net.minecraftforge.eventbus.EventBus.lambda$addListener$11(EventBus.java:239) ~[eventbus-4.0.0.jar:?]
   at net.minecraftforge.eventbus.EventBus$$Lambda$2957/1256975947.invoke(Unknown Source) ~[?:?]
   at net.minecraftforge.eventbus.EventBus$$Lambda$3180/1828056941.invoke(Unknown Source) ~[?:?]
   at net.minecraftforge.eventbus.EventBus.post(EventBus.java:302) ~[eventbus-4.0.0.jar:?]
   at net.minecraftforge.eventbus.EventBus.post(EventBus.java:283) ~[eventbus-4.0.0.jar:?]
   at net.minecraftforge.fml.network.NetworkInstance.dispatch(NetworkInstance.java:72) ~[?:?]
   at net.minecraftforge.fml.network.NetworkHooks.lambda$onCustomPayload$1(NetworkHooks.java:77) ~[?:?]
   at net.minecraftforge.fml.network.NetworkHooks$$Lambda$7237/205290688.apply(Unknown Source) ~[?:?]
   at java.util.Optional.map(Optional.java:215) ~[?:1.8.0_51]
   at net.minecraftforge.fml.network.NetworkHooks.onCustomPayload(NetworkHooks.java:77) ~[?:?]
   at net.minecraft.network.play.ServerPlayNetHandler.func_147349_a(ServerPlayNetHandler.java:1413) ~[?:?]
   at net.minecraft.network.play.client.CCustomPayloadPacket.func_148833_a(CCustomPayloadPacket.java:42) ~[?:?]
   at net.minecraft.network.play.client.CCustomPayloadPacket.func_148833_a(CCustomPayloadPacket.java:12) ~[?:?]
   at net.minecraft.network.PacketThreadUtil.lambda$checkThreadAndEnqueue$0(PacketThreadUtil.java:36) ~[?:?]
   at net.minecraft.network.PacketThreadUtil$$Lambda$7470/618882308.run(Unknown Source) ~[?:?]
   at net.optifine.util.PacketRunnable.run(PacketRunnable.java:28) ~[?:?]
   at net.minecraft.util.concurrent.TickDelayedTask.run(SourceFile:18) ~[?:?]
   at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213166_h(ThreadTaskExecutor.java:189) [?:?]
   at net.minecraft.util.concurrent.RecursiveEventLoop.func_213166_h(SourceFile:23) [?:?]
   at net.minecraft.server.MinecraftServer.func_213166_h(MinecraftServer.java:734) [?:?]
   at net.minecraft.server.MinecraftServer.func_213166_h(MinecraftServer.java:159) [?:?]
   at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213168_p(ThreadTaskExecutor.java:151) [?:?]
   at net.minecraft.server.MinecraftServer.func_213205_aW(MinecraftServer.java:717) [?:?]
   at net.minecraft.server.MinecraftServer.func_213168_p(MinecraftServer.java:711) [?:?]
   at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213161_c(ThreadTaskExecutor.java:167) [?:?]
   at net.minecraft.server.MinecraftServer.func_213202_o(MinecraftServer.java:697) [?:?]
   at net.minecraft.server.MinecraftServer.func_240802_v_(MinecraftServer.java:646) [?:?]
   at net.minecraft.server.MinecraftServer.func_240783_a_(MinecraftServer.java:232) [?:?]
   at net.minecraft.server.MinecraftServer$$Lambda$9578/1403233549.run(Unknown Source) [?:?]
   at java.lang.Thread.run(Thread.java:745) [?:1.8.0_51]
[15Sep2022 21:02:34.122] [Server thread/INFO] [net.minecraft.network.play.ServerPlayNetHandler/]: Neovitalism lost connection: Illegal packet received, terminating connection

Comments

#27790 Posted by Katzyn » 15 Sep 2022 20:33

Confirmed, passing onto Internal; thank you!

#27791 Posted by Destreza123123 » 15 Sep 2022 20:36

The same thing happens to using battle items on npcs

#27792 Posted by RonomakiK » 15 Sep 2022 20:39

One other thing that happened regarding this problem was that, when I re-entered the world (I was playing on singleplayer), the wild Pokémon simply stopped spawning. I could spawn one via command and my own Pokémon seemed to be "functioning properly", but no other Pokémon was spawning after that.

#27793 Posted by Katzyn » 15 Sep 2022 20:45

I think having no spawns upon logging in is a separate issue, RonomakiK, as I just had that happen on one of my SP worlds that had NOT crashed prior.

And I have added the NPC using items issue to this internal ticket, as well.

Ticket details

  • Ticket ID: 19129
  • Project: Pixelmon Mod
  • Status: Fix completed for upcoming version
  • Component: Error
  • Project version: 1.16.5-9.x.x
  • Priority: Normal
  • Severity: Normal
  • Forge/Sponge: (unknown)
  • What else would be useful to know?: (unknown)
  • Assigned to: Katzyn
  • Reported by: Neovitalism (Send PM)
  • Reporter's tickets: (List all tickets)
  • Reported on: 15 Sep 2022 20:16
  • Ticket last visited by: LordSamosa on 21 Sep 2022 06:20
JOIN THE TEAM