-
Notifications
You must be signed in to change notification settings - Fork 115
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
Fastimage raises on broken JPG #152
Comments
Surely this is a bug in Net::HTTP. I would love to be able to reproduce this, Net::ReadAdapter is an internal class that shouldn't leak outside of Net::HTTP as far as I can see. |
Sorry, nothing else. It reproduced consistently with the offending image, and the image file was damaged. |
Ah no worries, I managed to reproduce, it's because actually the Fiber terminates and just returns whatever, I will fix this correctly shortly. |
Great to hear that! |
Ensure nil is returned from dead fibers, fixes #152
We have a file (I unfortunately cannot share) which causes fastimage to raise the following error:
and the following backtrace:
I found the following line
fastimage/lib/fastimage.rb
Line 487 in f832581
irb
session and require onlyfastimage
.Anyway, adding the same line in the
skip
-method (at line 512) herefastimage/lib/fastimage.rb
Lines 509 to 519 in f832581
fixes the problem - fastimage no longer raises.
I have no idea what this actually does, so I'm not sure it's a proper fix, but it prevents the error from raising. Maybe also
would be the right thing to do here.
The text was updated successfully, but these errors were encountered: