-
-
Notifications
You must be signed in to change notification settings - Fork 803
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
[Bug Report] Panic in Generate #2250
Comments
It looks like setting segments or duration to 0 in the preview generation options will cause division by 0. We need some validation there. |
#2167 only changed code for the sprites generation so i dont think it was related I think the issue is the stash/pkg/manager/generator.go Line 115 in 0388aec
stash/pkg/manager/generator.go Line 149 in 0388aec
could be the cause For the segment duration option we already take care of that as having too small of a duration had some issues stash/pkg/manager/generator_preview.go Line 111 in 0388aec
For the chunkcount idk if its better to set it to 1 if its <1 (doesnt make sense with numbers <1) in the above function, before stepSize, offset := g.Info.getStepSizeAndOffset() or just/also alter the generator functions stash/pkg/manager/generator.go Line 115 in 0388aec
stash/pkg/manager/generator.go Line 149 in 0388aec
An extra chek here chould also be added
|
This is what it was, the user had set segments to 0. We should disallow that in the UI. |
Probably introduced in #2167
Stash Version: (from Settings -> About):
0.12.0
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: