-
Notifications
You must be signed in to change notification settings - Fork 1
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
Error on Windows: "thread 'main' panicked at 'attempt to divide by zero'" #4
Comments
Hi, thanks for the detailed issue! I just had a look and I see what the error is. I will fix that after work and let you know so you can try it. I don't have a windows on my hand right now, do you think you will be able to build it yourself? Do you have cargo / rustc installed? |
BTW the error occurs because no assets is found (so the division by 0). I don't know if that's a difference on Windows / Macos / Linux, but did you have assets in your folder? |
Thanks for getting back to me. Below is the list of files I have in the directory and my config just in case it's just me configuring it wrong. I have the following files:
with config.json looking like this:
and I'm running:
I also tried full paths with both forward and backwards slashes in case that revealed any clues regarding platform differences, but they all come back with the divide by zero error
If you have a potential fix in mind then I'd be happy to test it out on my Windows machine if you wouldn't mind letting me know how to build & run it (I've not used Rust before so not familiar with the tools). I have installed Rust and now have |
First of all thanks for a great tool! I'm trying to use swizzler to create a channel packed image for Unity's URP Lit Shader (https://docs.unity3d.com/Packages/[email protected]/manual/lit-shader.html) - with metallic in the red channel and smoothness in the alpha channel.
Running the tool with manual parameters like below works perfectly and produces output.png as desired:
However I get an error if I try to use the "session" mode for an easier workflow. I've created config.json containing the following:
and tried running it like so:
But this prints the following error and does not produce any output files:
If it helps, I'm using Windows 10 and downloaded the binary from Github Releases (swizzler-0.1.0-windows.tgz)
Would be very grateful for any ideas what I might be doing wrong or how to get this to work. Thanks again
The text was updated successfully, but these errors were encountered: