GraveStone Mod

GraveStone Mod

63M Downloads

Payload error when deleting Obituary using trash slot

Rithenar opened this issue ยท 7 comments

commented

Please read the FAQ before submitting a bug report!

Bug description
When using the inventory trash slot from TrashSlot mod to destroy an Obituary client disconnects from server and I get the following error

image

Steps to reproduce the issue

  1. Die and get an obituary
  2. Put Obituary on inventory Trash Slot
  3. Crash
  4. See error

Expected behavior
not to crash when I delete the obituary

Log files
https://paste.ee/p/qxVj2

Versions

  • Minecraft version 1.15.2
  • Forge version 31.2.36
  • Mod version 1.17.5

Other mods
Mods from TNP Limitless 2 https://www.curseforge.com/minecraft/modpacks/tnp-limitless-2/relations/dependencies

Screenshots (Optional)
Screenshots of the issue.

commented

Log files
https://paste.ee/p/qxVj2

There doesn't seem to be any crash in this log.
Please send me the correct logs.

commented

I don't believe the client is crashing as I am getting no crash reports anywhere. It is just disconnecting from server with that error code. All logs I can see in the "logs" folder in MultiMc are
image

commented

It seems that the error is caused by TrashSlot sending a network packet to the server containing the item stack you want to delete.
The obituary contains all items of your inventory. This means if you have a lot of items or NBT data in your inventory when you die, the obituary item is too large to send it to the server.
This issue can be fixed by not sending the actual item stack in the packet.

This seems to be the packet that causes the issue:
https://github.com/blay09/TrashSlot/blob/2c87c934b58b880c4d33e15303097917e01fa90e/src/main/java/net/blay09/mods/trashslot/network/MessageTrashSlotClick.java#L22

I don't believe the client is crashing as I am getting no crash reports anywhere. It is just disconnecting from server with that error code. All logs I can see in the "logs" folder in MultiMc are

You are right. It is actually the server throwing the error, because it checks for the size of the packet that the client sends.

The best way to solve this issue is to report this bug to the TrashSlot developers.
Another option could be to disable the obituary.
If both of these solutions are no option, I could add a config option to disable the item tracking in the obituary.

commented

Thank you for the detailed response henkelmax, and it makes sense. As far as I am concerned I will disable the obituary as I never use it and report it to the TrashSlot developers so they are aware of it.

commented

Thank you very much!
Let me know if there are any updates to this problem.

commented

I can confirm this is still happening and because of this I feel like the obituary's could be a SERIOUS issue cause I feel like they can be used to book ban players on multi player servers. Especially if someone were to fill a whole shulker with them.

commented

This is not that much of an issue for a forge mod, as for vanilla Minecraft I think.