packetevents icon indicating copy to clipboard operation
packetevents copied to clipboard

Entity is "null"

Open ar4xion opened this issue 1 year ago • 7 comments

Describe the bug It kicks everyone and makes the server not joinable as soon as you spawn an entity let's say: zombie.

Software brand Pufferfish 1.19.4

Plugins ViaVersion, ProtocolLib, Matrix, Libs Disguises, MythicMobs, and alot more.

How To Reproduce Steps to reproduce the behavior: Example:

  1. I'm on 1.20.1
  2. Spawn zombie with command or egg
  3. And boom, you're kicked and can't join until the zombie dies

It's fine with the old version: 2.2.1, entity is "null"

ar4xion avatar Jun 25 '24 10:06 ar4xion

we would need an error for anything to look into here, if this is even a packetevents issue also, which packetevents version are you using here?

booky10 avatar Jun 25 '24 10:06 booky10

Probably related to: https://github.com/retrooper/packetevents/issues/803 and https://github.com/retrooper/packetevents/issues/850

Bram1903 avatar Jun 26 '24 06:06 Bram1903

image image I'm using the latest 2.3.0 version, though 2.2.1 works fine (there isnt this error) but some plugins that depend on packetevents ain't working or loading up which loads up with 2.3.0

ar4xion avatar Jun 26 '24 13:06 ar4xion

With the latest (as I saw in other related issues) 2.3.1-Shapshot, It says:

[packetevents] Disconnected Shxrpness1 due to invalid packet! [10:02:39 WARN]: io.netty.channel.StacklessClosedChannelException [10:02:39 WARN]: at io.netty.channel.AbstractChannel.close(ChannelPromise)(Unknown Source) [10:02:39 WARN]: io.netty.channel.StacklessClosedChannelException [10:02:39 WARN]: at io.netty.channel.AbstractChannel.close(ChannelPromise)(Unknown Source) [10:02:39 INFO]: [packetevents] Disconnected Shxrpness1 due to invalid packet! [10:02:39 INFO]: [packetevents] Disconnected Shxrpness1 due to invalid packet!

ar4xion avatar Jun 26 '24 14:06 ar4xion

With the 2.2.1 version (which works but.. spamming my console with an error:

[packetevents] Unable to grab ViaVersion client version for player!

ar4xion avatar Jun 30 '24 05:06 ar4xion

With the 2.2.1 version (which works but.. spamming my console with an error:

[packetevents] Unable to grab ViaVersion client version for player!

Hello,

That's another issue, which has been solved in a previous commit. You can use the 2.4.0-SNAPSHOT for now which should solve your ViaVersion issue: https://ci.codemc.io/job/retrooper/job/packetevents/

Kind regards, Bram

Bram1903 avatar Jun 30 '24 12:06 Bram1903

Thanks!

ar4xion avatar Jul 02 '24 06:07 ar4xion

Since #905 was closed, I'll talk here instead.

These are my plugin versions: packetevents-spigot-2.4.1-SNAPSHOT 522 ViaVersion-5.0.3-SNAPSHOT

Both of them are in the latest dev builds, and I'm still getting this error upon joining the server.

Errors: Minecraft Client: image Console: image

Therefore, updating PacketEvents to the latest dev build in Jenkins, as @Bram1903 said above, does not fix this issue.

ShockCharge avatar Aug 04 '24 02:08 ShockCharge

My comment about using the latest dev build was in order to fix the ViaVersion issue where the client version couldn't be grabbed. I am pretty sure this issue is related to the synced network registries PR, which isn't yet finished / merged.

Bram1903 avatar Aug 04 '24 04:08 Bram1903

When is this going to be fixed? It's been 3 days, and I still can't join my server

I guess I'll just remove every plugin in my server for now that needs PacketEvents to run until this gets fixed.

ShockCharge avatar Aug 04 '24 05:08 ShockCharge

My comment about using the latest dev build was in order to fix the ViaVersion issue where the client version couldn't be grabbed. I am pretty sure this issue is related to the synced network registries PR, which isn't yet finished / merged.

Exactly @Bram1903. It is not a ViaVersion issue and if you look closely at the console error, the last message says "enchantment"

ShockCharge avatar Aug 04 '24 11:08 ShockCharge