-
Notifications
You must be signed in to change notification settings - Fork 60
Vips::Error: vipspng: out of order read at line 352 #109
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
Comments
Hello, do you know the parameters that |
Hi @jcupitt, yes, here they are. All other tests in the gem with the same file are passing …
and here the full output
|
Could you try this command on your machine, please?
Does the gem always fail, or is it only sometimes? |
the gem always fail the command line works both to jpg & png:
btw i am thinking of switching back to command line in the gem – may be better to avoid all the Ruby GC madness we were trying to solve in #107 |
You could try a tiny ruby test program: require 'vips'
x = Vips::Image.thumbnail "/home/john/pics/beach.png", 2, height: 2, size: "both"
x.write_to_file "x.jpg" If that works then I guess you need to make a copy of the gem and repeatedly cut tests away until it starts working :( |
@jcupitt so I did try this one – and the thing is it throws up that warning when ran second (and more) time: require 'test_helper'
require 'vips'
describe 'vips test' do
let(:thumbnail) { Vips::Image.thumbnail SAMPLES_DIR.join('beach.png').to_s, 2, height: 2, size: Vips::Size::BOTH }
it 'should work' do
thumbnail.write_to_file 'result.jpg'
thumbnail.write_to_file 'result.jpg' # => VIPS-WARNING **: error in tile 0 x 0, Vips::Error: vipspng: out of order read at line 352
end
end Do you have any idea why please? |
Ah, I understand! Thank you for the very clear example. Yes, This means you cannot use the result of If you get rid of your
Except that unfortunately libvips will try to cache the calls to I'll fix it! |
thanks tomasc! see libvips/ruby-vips#109
That might work, would you be able to test? Thanks again for reporting this! |
hi @jcupitt – just making sure – I need to rebuilt vips from source and test, correct? |
That's right, build the head of the 8.5 branch. I can make you a test version of 8.5.6, if that would be easier. |
thanks, that's ok, I should be able to build it from source at git |
hi @jcupitt so i built from source. (autogen, make, make install)
still seeing the same issue from: it 'should work' do
thumbnail = Vips::Image.thumbnail SAMPLES_DIR.join('beach.png').to_s, 2, height: 2, size: Vips::Size::BOTH
thumbnail.write_to_file 'result.jpg'
thumbnail = Vips::Image.thumbnail SAMPLES_DIR.join('beach.png').to_s, 2, height: 2, size: Vips::Size::BOTH
thumbnail.write_to_file 'result.jpg'
end output:
|
Hi again, thanks for trying this. I made a tiny test prog: #!/usr/bin/ruby
require "vips"
thumb = Vips::Image.thumbnail ARGV[0], 2, height: 2, size: "both"
thumb.write_to_file ARGV[1]
thumb = Vips::Image.thumbnail ARGV[0], 2, height: 2, size: "both"
thumb.write_to_file ARGV[2] It seems to work for me:
Could you try on your machine? If you are using ruby-vips via bundle, I think you will need to update the bundle after rebuilding the library. |
@jcupitt yup same old.
|
Sorry, I think you must be picking up an old version. Maybe wipe your installed vips libs? Or reinstall the gem? |
Hi @jcupitt , I have:
Vips is at:
And now i am getting:
Any suggestions please? |
Hi, sounds like the typelib is missing. Do you have
If you do have that file, you probably need to set |
I've not been able to update the vips on homebrew, it's been blocked on a separate issue. That's now resolved, so I'll do an 8.5.6 that includes this fix. That should get you going again. |
Thanks a lot John, much appreciated. I will test and close this issue if all ok. |
Hi @jcupitt , indeed 8.5.6 solves that issue. |
Thanks for testing! |
Uh oh!
There was an error while loading. Please reload this page.
getting png error on ruby-vips 1.0.5
the test output:
https://travis-ci.org/tomasc/dragonfly_libvips
the source code in Ruby:
https://github.com/tomasc/dragonfly_libvips/blob/thumbnail/lib/dragonfly_libvips/processors/thumb.rb#L38-L40
the image:
https://github.com/tomasc/dragonfly_libvips/blob/thumbnail/samples/beach.png
this happens both on my machine (OS X) as well as on Travis CI - both
libvips 8.5.5
@jcupitt perhaps I am missing some libs?
The text was updated successfully, but these errors were encountered: