Locale files growing without bound
See original GitHub issueExpected behavior
Static locale file rewrites.
Observed/Actual behavior
BentoBox locale files are rewritten on every enable (ie., server start). Unfortunately the updated snakeyaml updates cause the rewrites to insert duplicate blank lines with every invocation. (Related but not new issue: long lines are split, compared with the reference files contained in the JAR.) This has two negative consequences:
- the files grow without bound
- they no longer compare to the reference files
Steps/models to reproduce
>version
[11:37:15] [Server thread/INFO]: This server is running CraftBukkit version 3395-Spigot-f4ff00f-cc86ab1 (MC: 1.18.1) (Implementing API version 1.18.1-R0.1-SNAPSHOT)
[11:37:15] [Server thread/INFO]: You are running the latest version
- Start server
- Review locale files
BentoBox version
> bbox version
[11:32:03 INFO]: Running PAPER 1.18.1.
[11:32:03 INFO]: BentoBox version: 1.20.0-SNAPSHOT-b2208
[11:32:03 INFO]: Database: JSON
[11:32:03 INFO]: Loaded Game Worlds:
[11:32:03 INFO]: world_skyblock (SkyBlock): Overworld, Nether, The End
[11:32:03 INFO]: Loaded Addons:
[11:32:03 INFO]: Biomes 1.14.1-SNAPSHOT-b214 (ENABLED)
[11:32:03 INFO]: BSkyBlock 1.15.2-SNAPSHOT-b717 (ENABLED)
[11:32:03 INFO]: Challenges 1.0.0-SNAPSHOT-b474 (ENABLED)
[11:32:03 INFO]: ExtraMobs 1.12 (ENABLED)
[11:32:03 INFO]: Level 2.9.0-SNAPSHOT-b494 (ENABLED)
Plugin list
Irrelevant, but available on request
Other
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:15 (7 by maintainers)
Top Results From Across the Web
Locale Boundaries File Documentation
The NCES locale boundary files do not include information about school locations, and therefore the files do not provide a direct source for...
Read more >450277 – Memory usage grows without bound - Red Hat Bugzilla
Unfortunately pidgin either has a memory leak, or has a cache which grows without bound. After 1 week I now have a pidgin...
Read more >Bound services overview - Android Developers
A bound service typically lives only while it serves another application component and does not run in the background indefinitely.
Read more >functools — Higher-order functions and operations on callable ...
sorted(iterable, key=cmp_to_key(locale.strcoll)) # locale-aware sort order ... The cache's size limit assures that the cache does not grow without bound on ...
Read more >Monitoring Message Buildup - Oracle Help Center
If no client is reading from the queue, or no client connects to read from a durable subscription, those lists of messages continue...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Blank line is still inserted above
enums:
andcatalog:
in plugins/BentoBox/locales/BentoBox//en-US.yml (and all other locales files, I think, but that’s the one I monitor most closely), on every Spigot restart.I haven’t seen these issues for a while now.