Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed stacked cancel task that create huge lag. #145

Closed
wants to merge 2 commits into from

Conversation

broken1arrow
Copy link

@broken1arrow broken1arrow commented Mar 23, 2024

I don't know if it a reason you attempt to cancel already stopped task. It seams to create endless stacked tasks that the server try to stop same taskid.

So I simply set it back to null and the problem seams to be gone and not notes negative effects.

With my fix on latest version on GitHub: https://spark.lucko.me/paGLyk157A

Without the fix: https://spark.lucko.me/BVUG0B9Vca it take around 7/8% of a tick.

I also get this problem whit the latest on spigot that says it is still version 8.7.6: https://spark.lucko.me/TlRe4elUuu You see the issue below, did not see this effect on latest version on GitHub with my small fix added yet.
explosion

Fix when it stack cancel task several hundreds if times and create a crash of the server.
@broken1arrow
Copy link
Author

I have not however check your two lib's is updated, you seams to use FreeMinecraftModels 1.1.3-SNAPSHOT I use the local 1.7.4-SNAPSHOT. I can't access the 1.1.3-SNAPSHOT version at all.

@MagmaGuy
Copy link
Owner

I've implemented a fix for this.

@MagmaGuy MagmaGuy closed this May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants