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

Multi-Blind generation runs into No multiBLD number for round #894

Open
lgarron opened this issue Jan 8, 2024 · 1 comment
Open

Multi-Blind generation runs into No multiBLD number for round #894

lgarron opened this issue Jan 8, 2024 · 1 comment

Comments

@lgarron
Copy link
Member

lgarron commented Jan 8, 2024

Actual (problem) behavior

When trying to generate Multi-Blind scrambles, TNoodle errors with:

No multiBLD number for round Round(id=333mbf-r1, format=3, scrambleSetCount=1, scrambleSets=[], extensions=[Extension(id=org.worldcubeassociation.tnoodle.SheetCopyCount, specUrl=, data={"numCopies":"1"})]) specified

Expected behavior

I can generate Multi-Blind scrambles.

Steps To Reproduce

  1. Launch TNoodle and open http://localhost:2014/scramble (don't log in).
  2. Add a multi-blind round to the default competition.
  3. Click "Generate".

This results in the error above. Clicking "More" gives:

org.worldcubeassociation.tnoodle.server.webscrambles.exceptions.ScrambleMatchingException: No multiBLD number for round Round(id=333mbf-r1, format=3, scrambleSetCount=1, scrambleSets=[], extensions=[Extension(id=org.worldcubeassociation.tnoodle.SheetCopyCount, specUrl=, data={"numCopies":"1"})]) specified
	at org.worldcubeassociation.tnoodle.server.webscrambles.exceptions.ScrambleMatchingException$Companion.error(ScrambleMatchingException.kt:5)
	at org.worldcubeassociation.tnoodle.server.webscrambles.wcif.WCIFScrambleMatcher.standardScrambleCountPerSet(WCIFScrambleMatcher.kt:151)
	at org.worldcubeassociation.tnoodle.server.webscrambles.wcif.WCIFScrambleMatcher.totalScrambleCountPerSet(WCIFScrambleMatcher.kt:186)
	at org.worldcubeassociation.tnoodle.server.webscrambles.wcif.WCIFScrambleMatcher.getScrambleCountsPerEvent(WCIFScrambleMatcher.kt:181)
	at org.worldcubeassociation.tnoodle.server.webscrambles.routing.WcifHandler$ScramblingJob.getTargetState(WcifHandler.kt:62)
	at org.worldcubeassociation.tnoodle.server.webscrambles.routing.WcifHandler$ScramblingJob.getTargetState(WcifHandler.kt:28)
	at org.worldcubeassociation.tnoodle.server.webscrambles.routing.job.JobSchedulingHandler$registerJobPaths$3.invokeSuspend(JobSchedulingHandler.kt:112)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
	at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:115)
	at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:103)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)

I can seem to kick things into action by selecting the field for the number of scrambles and re-typing 35 to replace the existing value of 35. It seems a listener on the field needs to be triggered.

Desktop (please complete the following information):

  • OS: macOS 14.2.1
  • Browser: Chrome 120
  • TNoodle Version 1.2.1
  • Java version [e.g. Java 8] (how to find out)

Screenshot

Screenshot 2024-01-07 at 17 06 56
Screenshot 2024-01-07 at 17 05 38

@viroulep
Copy link
Contributor

viroulep commented Jan 8, 2024

I ran into the same error using Firefox 121.0.

A possible workaround is to increase then decrease the number of generated scrambles for multi, then it's possible to generate the scrambles.

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

No branches or pull requests

2 participants