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
NSAllocateMemoryPages fails in ImageDecoder #64
Comments
Also, we were not seeing this in 2.2.0 Nuke. This appeared once we upgraded to 3.0.0 |
Hmm, I can't think of anything that could have affected this. I've mostly just removed some excessive features in new versions. |
Please let me know if there is any thing I can do / any more information I can provide |
My first step would be to check the app for memory leaks. |
Going to fire up instruments and check as well Edit: fixed link |
So after profiling what I am seeing are substantial memory increases happening in ImageDecompressor since our app loads multiple map images simultaneously many of these workers are dispatched and will continue until in some cases the device runs out of memory |
Still digging but if you see anything here that looks off let me know |
Also, not seeing any leaks, just seeing the Nuke image cache grow really large |
I've checked diffs and there are at least two things that might have affected this:
Could any of these changes affect your app? More specifically, do you start (intentionally?) multiple equivalent requests for the same URL? Did you rely on automatic resizing of loaded images? |
Yeah definitely is case 1. We have a map interface where we re-query the same images if the user scrolls around (its tile based). Is there a change we should make on our end , or is this something you will address? |
I think for now I'm going to just throw the map UIImages in an NSCache as a temporary solution until you have a release ready |
There's a performance regression on my end. But you could stop making too much tasks; maybe cancel tasks when the tiles go offscreen.
Nuke already has a built-in memory cache. I'm going to ship a release that fixes those regressions in a matter of days, maybe even tomorrow. I also have some new performance improvements in mind. I would suggest to stick with version 2.2.0 for now. |
Ok awesome, I will block duplicate requests. Thanks for the fast response |
Seeing crashes come through in prod for cases where ImageDecoder is failing to initialize the UIImage with data
Image decoder failing to create UIImage
Fabric is reporting that most of these devices have low free memory.
What can be done to handle this exception?
The text was updated successfully, but these errors were encountered: