-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
Using !render on some maps causes the entire bot to halt. #19
Comments
Just to chime in on this one, I can't reproduce this:
Takes around 30s for me (which is only slightly longer than other maps, in general I need around 15-20s), not multiple minutes. I agree tho, if it is a problem for others. |
tbh, the guy hosting it is doing so in an old laptop. Still quite an issue if it leaves the bot unusable tho |
I've just seen this issue and I've implemented circular sliders 2 hours ago in 4e15e1e. Seems like this map works now. |
I totally missed the multi-threading part last night. it's already implemented for rendering and encoding but not yet for processing beatmaps which can take long on maps like this I guess. I'll just appropriate this issue to track the progress of implementing that. :) |
Alright, beatmap processing is fully multithreaded as of a16f1ae which also means the "Rendering..." message now appears instantly, even on slow systems! |
For example, using !render 20s on https://osu.ppy.sh/b/1529760 makes the entire bot halt for a few minutes.
Maybe other maps could cause the same issue.
Possible fixes could be either excluding Aspire maps or properly implement multithreading on command handling.
Also some of the slider positions of those maps are basically going from inf pos to inf neg. Might want to add an edge case check?
Resuming: Any command that takes too much to answer causes the bot to halt for the duration of the command until it replies. Please implement command multi-threading if possible, or in this case Promise-based commands could work too.
The text was updated successfully, but these errors were encountered: