Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LinBus fails to deserialize BaseItem using BaseItemAdapter #2991

Open
2 tasks done
PierreSchwang opened this issue Nov 12, 2024 · 1 comment
Open
2 tasks done

LinBus fails to deserialize BaseItem using BaseItemAdapter #2991

PierreSchwang opened this issue Nov 12, 2024 · 1 comment
Labels
Bug Something isn't working

Comments

@PierreSchwang
Copy link
Member

PierreSchwang commented Nov 12, 2024

Server Implementation

Paper

Server Version

1.21.3

Describe the bug

Most likely since the LinBus introduction?

To Reproduce

session data (in sessions folder):

{"selector":"CUBOID","useServerCUI":false,"wandItem":{"itemType":{"id":"minecraft:wooden_axe"},"nbt":"{}"},"navWandItem":{"itemType":{"id":"minecraft:compass"}}}

Expected behaviour

Screenshots / Videos

No response

Error log (if applicable)

No response

Fawe Debugpaste

Fawe Version

Checklist

Anything else?

Caused by: org.enginehub.linbus.stream.exception.NbtParseException: At character index 1: Unexpected token: '}', expected Text
        at FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-965.jar/org.enginehub.linbus.format.snbt.impl.reader.LinSnbtReader.unexpectedTokenSpecificError(LinSnbtReader.java:165) ~[FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-965.jar:?]
        at FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-965.jar/org.enginehub.linbus.format.snbt.impl.reader.LinSnbtReader.readName(LinSnbtReader.java:256) ~[FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-965.jar:?]
        at FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-965.jar/org.enginehub.linbus.format.snbt.impl.reader.LinSnbtReader.fillTokenStack(LinSnbtReader.java:187) ~[FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-965.jar:?]
        at FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-965.jar/org.enginehub.linbus.format.snbt.impl.reader.LinSnbtReader.nextOrNull(LinSnbtReader.java:176) ~[FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-965.jar:?]
        at FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-965.jar/org.enginehub.linbus.stream.impl.OptionalInfoCalculator.nextOrNull(OptionalInfoCalculator.java:68) ~[FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-965.jar:?]
        at FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-965.jar/org.enginehub.linbus.tree.impl.LinTagReader.readCompound(LinTagReader.java:93) ~[FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-965.jar:?]
        at FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-965.jar/org.enginehub.linbus.tree.LinCompoundTag.readFrom(LinCompoundTag.java:257) ~[FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-965.jar:?]
        at FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-965.jar/com.fastasyncworldedit.core.util.gson.BaseItemAdapter.deserialize(BaseItemAdapter.java:42) ~[FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-965.jar:?]
        at FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-965.jar/com.fastasyncworldedit.core.util.gson.BaseItemAdapter.deserialize(BaseItemAdapter.java:21) ~[FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-965.jar:?]
        at com.google.gson.internal.bind.TreeTypeAdapter.read(TreeTypeAdapter.java:76) ~[gson-2.10.1.jar:?]
        at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.readIntoField(ReflectiveTypeAdapterFactory.java:212) ~[gson-2.10.1.jar:?]
        at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$FieldReflectionAdapter.readField(ReflectiveTypeAdapterFactory.java:433) ~[gson-2.10.1.jar:?]
        at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:393) ~[gson-2.10.1.jar:?]
        at com.google.gson.Gson.fromJson(Gson.java:1227) ~[gson-2.10.1.jar:?]
        at com.google.gson.Gson.fromJson(Gson.java:1137) ~[gson-2.10.1.jar:?]
        at com.google.gson.Gson.fromJson(Gson.java:1075) ~[gson-2.10.1.jar:?]
        at FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-965.jar/com.sk89q.worldedit.session.storage.JsonFileSessionStore.load(JsonFileSessionStore.java:104) ~[FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-965.jar:?]
        at FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-965.jar/com.sk89q.worldedit.session.SessionManager.get(SessionManager.java:160) ~[FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-965.jar:?]
        at FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-965.jar/com.sk89q.worldedit.extension.platform.PlatformManager.handleBlockInteract(PlatformManager.java:393) ~[FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-965.jar:?]
        at FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-965.jar/com.sk89q.worldedit.util.eventbus.MethodHandleEventHandler.dispatch(MethodHandleEventHandler.java:51) ~[FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-965.jar:?]
        at FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-965.jar/com.sk89q.worldedit.util.eventbus.EventHandler.handleEvent(EventHandler.java:73) ~[FastAsyncWorldEdit-Bukkit-2.12.1-SNAPSHOT-965.jar:?]```
@PierreSchwang PierreSchwang added Requires Testing This is a new issue which needs to be approved before labeled with "bug" Bug Something isn't working labels Nov 12, 2024
@PierreSchwang
Copy link
Member Author

EngineHub/lin-bus#15

@PierreSchwang PierreSchwang removed the Requires Testing This is a new issue which needs to be approved before labeled with "bug" label Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant