Errors on enable due to YAML file size limit
JackSinkoMK opened this issue ยท 1 comments
WorldEdit Version
WorldEdit version 7.2.12
WorldGuard Version
WorldGuard v7.0.8-SNAPSHOT+2208-cb100bb
Platform Version
Paper-232
Confirmations
- I am using the most recent Minecraft release.
- I am using a version of WorldEdit compatible with my Minecraft version.
- I am using a version of WorldGuard compatible with my Minecraft version.
- I am using the latest or recommended version of my platform software.
- I am NOT using a hybrid server, e.g. a server that combines Bukkit and Forge. Examples include Arclight, Mohist, and Cardboard.
- I am NOT using a fork of WorldEdit, such as FastAsyncWorldEdit (FAWE) or AsyncWorldEdit (AWE)
Bug Description
Since updating to Paper 1.19.2-(162 or greater) from Paper 1.19.2-161 WorldGuard doesn't load as the regions.yml file for my main world is above 3mb.
This is because Paper updated SnakeYaml which introduces a file size limit.
Paper has overriden the default to 64MB if using the built-in Bukkit configuration API, however the default SnakeYaml limit is 3MB, which is what I assume is happening.
See full error on enable: https://pastebin.com/1v2MzPFG
Expected Behavior
WorldGuard enables with no errors.
Reproduction Steps
- Have regions.yml file greater than 3MB and start with latest WorldGuard and Paper builds.
Optional WorldGuard-Report
No response
Anything Else?
This seems to be the exact same issue as the popular plugin 'citizens' which was solved by increasing the snakeyaml file size limit. See this link CitizensDev/Citizens2#2898
That's fixed in a dev build from worldedit available here.