Replies: 1 comment 3 replies
-
Oh! I just ignored the fact that creating the cache folder also requires disk storage and could be thrown. I guess it is a so rare case that it gets ignored until now. Yes, we should not do a force try here! I will check how to keep the current public APIs so we can gracefully avoid this situation. Thanks for reporting this! It would be nice if you kindly create an issue for this topic and I can fix it soon. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey there, thanks for the huge time-saving library!
We've noticed that on devices running out of space, KingFisher would crash with the following error (code: 640 /
NSFileWriteOutOfSpaceError
):The incriminated line is here
I can't help but think that if the OS throws
NSFileWriteOutOfSpaceError
, KingFisher should gracefully handle the case by simply disabling any sort of disk caching.Granted, though, if the device is out of space, most apps will struggle anyway and the phone will be unusable, so it might not be worth it.
What do you think? I'd be willing to work on this, but I wanted to kickstart the discussion first. I didn't see any issues mentioning the topic, so apologies if I missed them.
P. S. I'm not sure whether I should have opened a discussion or an issue, as it's not a bug per se. Let me know, I'm happy to turn this into an issue.
Beta Was this translation helpful? Give feedback.
All reactions