-
Notifications
You must be signed in to change notification settings - Fork 94
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
IndexOutOfBoundsException generating CubingUSANationals2023 scrambles #837
Comments
Thanks to @coder13 who figured out that this was because I had groups numbered 0 (this was special groups for people who are unable to compete during the regular time slots for religious reasons). I resolved it by changing those groups to a large positive number, rather than 0. I had not realized that TNoodle is doing scramble matching, even to the level of matching scramble sets to groups. |
We should handle this better anyway. Giving this kind of exception doesn't seem the right way of doing it. Let's keep this issue open until we solve this in a better way |
Interestingly enough, we do have a safeguard that is supposed to catch these cases. |
@gregorbg I reproduced this behavior using BrooklineFavorites2023, by adding a group 0 to the schedule, which is currently visible in https://www.worldcubeassociation.org/api/v0/competitions/BrooklineFavorites2023/wcif/public:
|
Actual (problem) behavior
When I try to generate scrambles for CubingUSANationals2023, I get an IndexOutOfBoundsException in WCIFScrambleMatcher.matchActivity (after all the scrambles are generated, but before they are downloadable). This initially happened when I selected the real number of scramble sets per event. I changed the scramble counts to 3x3r1=1, everything else=0 to make testing / debugging faster.
I've tried looking through the code to track down the issue, but the line numbers don't match up. I've also tried running locally to add more debugging, but have not been able to do so.
Expected behavior
No IndexOutOfBoundsException :)
Desktop (please complete the following information):
Screenshots [OPTIONAL]
Additional context [OPTIONAL]
I didn't realize that tnoodle matched activities with the schedule, and since I generated groups using new software it's possible the activity schema I made breaks an assumption in TNoodle. But I can't tell what that assumption is.
The text was updated successfully, but these errors were encountered: