Que getting stuck without errors
asdanjer opened this issue ยท 2 comments
I have run into an issue in where the que stops going down (and apparently doesn't write to the database anymore)
This happens consistent as soon as you turn off an Auto Crafter using Item scroller for automatic crafting. something about the way it crafts item seem to weirdly interact here. weirdly enough it works fine while running but as soon as you turn it off and will stop dumping the que to the database and will go continuously going up, taking more and more memory, till the server is restartet.
Honestly without any errors I don't even know how to diagnose this.
Edit: and restarting the server is only possible when force quitting as they server waits for core protect to dumb remaining events. which it can't.
Edit2: after some further Investigation of the database I found core protect stops sending "INSERT" commands and, after 2-3 minutes wait, only sends "SET sql_mode" and "SET character_set_results" commands every 1-4 seconds.
Edit3: more specific writing.
Edit4: It seems like this is caused by to many Craft-eventents being qued at the same time.
possible fix: master...asdanjer:CoreProtect:master
this however makes item end up in the first instead of the last occurrence of the item type in the stack. as it skips the already empty stacks. I don't know weither that causes problems. if yes it would need to be moved back again in a second loop.
This issue is critical as it alows players to exploit it and causing a memory leek and possible delete core protect data.