Skript: NotSerializableException for CraftMetaItem

Created on 21 Jul 2020  路  11Comments  路  Source: SkriptLang/Skript

Description

A NotSerializableException is thrown whenever an item is saved to a global variable.

Steps to Reproduce

command /err:
    trigger:
        set {stone} to stone

Expected Behavior

No errors obviously

Errors / Screenshots

https://pastebin.com/P4W9BmaK

Server Information

  • Server version/platform: 1.15.2 (paper-379)
  • Skript version: 2.5-alpha6

Additional Context

None

bug completed high

Most helpful comment

I believe the cause of this issue has been found, it just needs to be patched.

All 11 comments

@APickledWalrus

Hey, does this occur every time you run the command? If so, does it occur with items that have names, enchantments, or etc.?

Yes, everytime the command is run and I also tried with a named item, same error. I haven't tried with enchantments.

Okay, I am going to investigate if this occurs on other versions.

EDIT 1: Reproduced on 1.16.1 Paper-89
EDIT 2: Seems to occur with any ItemType

Can someone confirm whether this issue is present on alpha5?

This issue is not present on alpha5 (1.15.2, paper-379)

I can confirm this issue only with 2.5-alpha6 on Paper 1.15.2.

I believe the cause of this issue has been found, it just needs to be patched.

Going to downgrade this since it doesn't affect the current release. It must be fixed for the next release though.

Marking this as completed and closing.
Im not sure why this was missed but it was fixed in 2.5-beta1

Why exactly was this closed? I know that this specific case is no longer present in the latest release, but the underlying issue with Yggdrasil's serializer is still present.

Was this page helpful?
0 / 5 - 0 ratings