Skip to content

StackOverflowError while Saving Characters #163

@Chiloven945

Description

@Chiloven945

Describe the bug

A StackOverflowError occurs whenever characters are saved to .dat files. Because of this error, the save process fails and character data is not written correctly. As a result, newly created or updated characters are lost after the server restarts.

To Reproduce

  1. Create a new character.
  2. Run the command:
    /character save <name>
    
  3. Check the server console/log output.
  4. Notice that the save operation triggers a StackOverflowError and does not complete.

Expected behaviour

  • Characters should save successfully without errors.
  • The .dat file should properly store the character data.
  • Characters should persist and remain available after a server restart.

Screenshots / Videos

No response

Error log (if applicable)

https://gist.github.com/Chiloven945/573de269337d30933fe3988385a7c94d

Characters Version

0.7.1

Server version

[08:51:57 INFO]: This server is running Paper version 1.21.11-101-main@57c7aac (2026-02-03T18:04:26Z) (Implementing API version 1.21.11-R0.1-SNAPSHOT)
You are running the latest version
Previous version: 1.21.6-48-4d854e6 (MC: 1.21.6)

Checklist

  • I am using the newest build from hangar and the issue still persists.
  • I have searched the issue tracker for similar issues but couldn't find anything.

Anything else?

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions