question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Locale files growing without bound

See original GitHub issue

Expected 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:closed
  • Created 2 years ago
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
SlimeDogcommented, Jan 8, 2022
>version
[23:47:38] [Server thread/INFO]: This server is running CraftBukkit version 3397-Spigot-f4ff00f-f3828bb (MC: 1.18.1) (Implementing API version 1.18.1-R0.1-SNAPSHOT)
[23:47:38] [Server thread/INFO]: You are running the latest version
>bbox version
[23:47:25] [Server thread/INFO]: Running SPIGOT 1.18.1.
[23:47:25] [Server thread/INFO]: BentoBox version: 1.20.0-SNAPSHOT-b2210
[23:47:25] [Server thread/INFO]: Database: JSON
[23:47:25] [Server thread/INFO]: Loaded Game Worlds:
[23:47:25] [Server thread/INFO]: world_skyblock (SkyBlock): Overworld, Nether, The End
[23:47:25] [Server thread/INFO]: Loaded Addons:
[23:47:25] [Server thread/INFO]: Biomes 1.14.1-SNAPSHOT-b214 (ENABLED)
[23:47:25] [Server thread/INFO]: BSkyBlock 1.15.2-SNAPSHOT-b717 (ENABLED)
[23:47:25] [Server thread/INFO]: Challenges 1.0.0-SNAPSHOT-b474 (ENABLED)
[23:47:25] [Server thread/INFO]: ExtraMobs 1.12 (ENABLED)
[23:47:25] [Server thread/INFO]: Level 2.9.0-SNAPSHOT-b494 (ENABLED)

Blank line is still inserted above enums: and catalog: 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.

0reactions
SlimeDogcommented, Oct 1, 2022

I haven’t seen these issues for a while now.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found