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

[Bug Report] Error parsing NBT #1038

Open
gentlegiantJGC opened this issue Apr 15, 2024 · 2 comments
Open

[Bug Report] Error parsing NBT #1038

gentlegiantJGC opened this issue Apr 15, 2024 · 2 comments
Labels
state: triage the severity of this ticket needs evaluating type: bug Something isn't working

Comments

@gentlegiantJGC
Copy link
Member

Bug Report

A user has submitted a region file containing a chunk that Amulet fails to load.

Current Behaviour:

https://discord.com/channels/324647192583340043/1228490915551641670

Expected behavior:

No error

Attachments

chunk.zip

@gentlegiantJGC gentlegiantJGC added type: bug Something isn't working state: triage the severity of this ticket needs evaluating labels Apr 15, 2024
@gentlegiantJGC
Copy link
Member Author

gentlegiantJGC commented Apr 15, 2024

I have modified the NBT library to print out the strings as it parses them to find the string that errors.
It appears to be text on a sign at coordinate 13, 8, 0.
The hex representation of the text is 7B 22 74 65 78 74 22 3A 22 ED A0 8C ED A0 8D ED A0 8E ED A0 8F 22 7D
Which in normal text is {"text":"<corrupted_text_here>"}

@gentlegiantJGC
Copy link
Member Author

I have spliced the region file into a minecraft world to view it and the game is able to load and render it but the signs are just random text.
I think the only want to solve this is to escape invalid bytes like we do with Bedrock.

2024-04-15_10 44 57
2024-04-15_10 45 08

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: triage the severity of this ticket needs evaluating type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant