HTTPStanley / DivinityEconomy

A bukkit plugin that adds an economy system to minecraft for buying and selling items. The prices also scale to the availability of the items and the size of the market itself.
https://modrinth.com/plugin/divinity-economy
GNU General Public License v3.0
6 stars 1 forks source link

Server Freeze bug for 10-15 seconds #69

Closed nrliii closed 5 months ago

nrliii commented 5 months ago

Describe the bug Running any of the commands after a server restarts/starts the first time a command is entered the server freezes a bit and it shows errors in console. That only happens once and doesnt happen until server restart

To Reproduce Steps to reproduce the behavior:

  1. Start the server
  2. Enter for example /buy command and try buying something
  3. Freeze happens for 10 seconds
  4. Error which is attached to Additional Info shows up

Expected behavior Would expect the server not to freeze for 10 seconds

Screenshots image Image of console with timestamps. It freezes for 10 seconds and then it starts logging errors Context Server Version: 1.20.6 Server Type(Spigot/Paper): Paper Additional Information: https://pastebin.com/raw/0GQ8B6GK

HTTPStanley commented 5 months ago

Hi!

Thank you for posting.

I understand that this issue is caused by the plugin interacting with materials older than the current version to support some legacy materials. The lag is not caused by DivinityEconomy, but by Spigot loading the Legacy Material Support.

It's unusual that this would take more than 10 seconds, but I don't believe that's something I can personally fix without removing legacy materials from the plugin.

I'd also note that there is no error happening here, It's just that the Paper server watchdog has detected the main thread as being halted (due to loading the legacy material support).

Cheers.

nrliii commented 5 months ago

Okay thank you very much for the fast reply!