This repository has been archived by the owner on Oct 28, 2023. It is now read-only.
generated from EmbarkStudios/opensource-template
error: failed to fill whole buffer #108
Labels
bug
Something isn't working
Comments
Could you provide the invocation and image you used? It might not be reproducible, but also could be a simple fix, I'm just not where sure to look as there are numerous places that error could occur. |
Not sure to understand the 'invocation' term, like an error code? |
It looks like there may be something in that image that the jpeg decoder doesn't like, for example, here is the output I get from convert when printing out the size of the image. texture-synthesis [master●●] % convert ~/Downloads/rock.jpg -print "Size: %wx%h\n" /dev/null
Size: 3180x3180
convert: Premature end of JPEG file `/home/jake/Downloads/rock.jpg' @ warning/jpeg.c/JPEGWarningHandler/389.
convert: Corrupt JPEG data: premature end of data segment `/home/jake/Downloads/rock.jpg' @ warning/jpeg.c/JPEGWarningHandler/389.
convert: Corrupt JPEG data: premature end of data segment `/home/jake/Downloads/rock.jpg' @ warning/jpeg.c/JPEGWarningHandler/389. And indeed, when I convert the image to PNG it works fine texture-synthesis [master●●] % cargo run --release -- -o rock.png generate ~/Downloads/rock.png
Finished release [optimized + debuginfo] target(s) in 0.04s
Running `target/release/texture-synthesis -o rock.png generate /home/jake/Downloads/rock.png`
[00:00:01] ######################################## 100%
stage 6 ######################################## 100%
texture-synthesis [master●●] % convert rock.png -print "Size: %wx%h\n" /dev/null
Size: 500x500 |
Kind of related image-rs/image#761 |
Ok good to know. Thanks for your time. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello first of all thank you for 0.8.0 and the CLI documentation with the examples.
This is awesome.
The speed is noticeable.
I have this error when trying to feed a 3k image as an example (3180x 3180) :
error: failed to fill whole buffer
The machine is a 8go mac laptop. Os 10.13.6
So is it normal ? and is there a rule to know the image size limit with an amount of RAM available.
Thank you.
The text was updated successfully, but these errors were encountered: