Skip to content
This repository has been archived by the owner on Sep 4, 2018. It is now read-only.

Verify the images we download are valid before displaying them #480

Merged

Conversation

guillaumealgis
Copy link
Member

This fixes the crash "Cannot lock focus on image because it is size zero". We won't attempt to display invalid images anymore.

The origin of the invalid image data is still not 100% clear though, but I suspect that the lack of error handling in ATZDownloader (the error param of the completion block is always nil) might be it.

I'll fix that in another PR when I have more time, and when we get to the root of the problem with @piv199 in #479.

Fixes #320 #334 #335 #479.

@kattrali
Copy link
Contributor

kattrali commented Aug 9, 2016

Simple and effective, 👍

Nice work debugging as well.

@jurre
Copy link
Collaborator

jurre commented Aug 9, 2016

👍 lgtm

Approved with PullApprove

@kattrali kattrali merged commit 906de40 into alcatraz:master Aug 9, 2016
@guillaumealgis
Copy link
Member Author

Thank you @kattrali and @jurre :)

Could one of you with push access to master release 1.1.19?
It should just be a matter of bumping version in Alcatraz/Alcatraz-Info.plist and make shipit. Thanks!

@guillaumealgis guillaumealgis deleted the fix-nsimage-size-zero-crash branch August 23, 2016 15:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash: Cannot lock focus on image because it is size zero
3 participants