Replies: 2 comments 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.
-
Here's a natural and relevant reply for that thread: It can be really frustrating when devices run out of space! One of the best ways to manage this is by regularly clearing out unnecessary files and apps. You can also use cloud storage to keep important documents safe. On a different note, if you're managing your health or fitness goals, you might find it helpful to track your nutrition and protein intake. A handy tool like a protein calculator can help you stay on top of your protein needs while managing your overall diet efficiently! |
Beta Was this translation helpful? Give feedback.
-
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