Sponge: Crash Following SpongeCauseStackFrame.addContext()

Affected Product(s)

SpongeForge

Version

1.16.5-36.2.5-8.0.0-RC1105

Operating System

Linux

Java Version

Unknown

Plugins/Mods

LuckPerms-Sponge-5.4.18
Nope-Sponge-BETA-1.1.5

Describe the bug

I was fighting a Ghast two separate times and this error crashed the server both times when the ghast fireballs exploded.

Link to logs

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 18 (9 by maintainers)

Most upvoted comments

The two are the same issue as far as I can tell.

maybe the context changed or got reset?

It never got set. If the ServerboundInteractPacket has an invalid entityId (say zero, or the ID of an entity that has since been removed from the server), then isPacketIgnored returns true and the context just isn’t populated.

The modifier already accounts for this for the entity itself, so we’ll just account for the hand not being available too.