-
Notifications
You must be signed in to change notification settings - Fork 591
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
Failed to write key <url> with error #245
Comments
Have exactly the same thing happening. |
Is there a way to reproduce this, can you share a piece of code ? |
I am setting my images inside a CollectionViewCell. Everything is smooth right away, scrolling down a collection view. If you quickly jump back up, these errors popup all the time. I am using lots of images. Sometimes the number can get high, like 200-300. inspirationImage.hnk_setImageFromURL(image!, placeholder: UIImage(named: "Placeholder"), format: nil, failure: { (error) -> () in
print("error getting image")
}, success: { (image) -> () in
print("got image")
self.inspirationImage.image = image
// print(image.size.height, image.size.width)
}) FYI I am also seeing a leak in Instruments that points back to this code in Haneke: Thanks for your feedback in advance. |
+1 also having this issue edit: for me the way to reproduce the bug is to:
the problem does not occur if I remove the call to
|
I am facing the same issue as @Macmee. If I clear the cache and try to save image after that, I get above error. |
same error!
|
It looks like the cache directory is being deleted in I don't know enough about the Haneke source code (which has no comments) to know why this is there, or what the side effects might be to removing it. I suspect it's there as a failsafe in case the Another option may be adding a |
I'm using hnk_setImageFromURL method to load images inside of UITableView custom cell. I'm getting this error:
[HANEKE][ERROR] Failed to write key with error Error Domain=NSCocoaErrorDomain Code=4 "The file “%6C%57%6C%38%57%55%46%6B%5F%6E%6F%72%6D%61%6C%2E%6A%70%65%67” doesn’t exist." UserInfo={NSFilePath=/var/mobile/Containers/Data/Application/124D0E32-2D2F-4147-B4F6-E7BAD612374E/Library/Caches/io.haneke/shared-images/auto-40.0x40.0-fill/%68%74%74%70%73:/%70%62%73%2E%74%77%69%6D%67%2E%63%6F%6D/%70%72%6F%66%69%6C%65%5F%69%6D%61%67%65%73/%35%37%31%30%31%33%36%30%33%34%36%31%38%34%34%39%39%32/%6C%57%6C%38%57%55%46%6B%5F%6E%6F%72%6D%61%6C%2E%6A%70%65%67, NSUnderlyingError=0x15f018850 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
I think this is a bug in Haneke. If not, how can I fix it?
Thanks.
The text was updated successfully, but these errors were encountered: