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
OutOfMemoryError sometimes #634
Comments
There are suggested solutions on the homepage of this project under "Useful Info", for dealing specifically with Out Of Memory. My first suggestion would be to not enable cache in memory. Try that if that doesn't help read through the rest of the suggestions. If none of those work then you may have a leak in your app. A single copy of that image in memory is not too large. |
hi .... i have an application i use grid view and the application is thanks On Thu, May 29, 2014 at 5:40 PM, Casey Kulm notifications@github.comwrote:
|
Thanks caseykulm, but I need the memory in cache to load fast the thumbs on listview... should I define the max size of the thumbs? Also what I want to know is why that happens |
As stated before, the homepage has many suggested solutions aside from not caching in memory. It would definitely be beneficial to define the max size of the thumbnails, and there is a relevant StackOverflow post that Nostra himself answered. Also to be able to know why this is happening you need to know what is in memory, and that can be done by digging through the heap dumps of your app with a memory profiler such as VisualVM. If you have a memory leak somewhere in your app (likely holding Context somewhere) then it will permanently steal heap memory, and then by the time you try to load in this semi-large image, the heap will not be large enough, and you will get an OOM like you are seeing here. |
geting error like E/ImageLoader(25118): null |
@nostra13 maybe you can use https://github.com/square/leakcanary in your sample app to see if there is a leak or not |
please don use cacheInMemory if it is a listview you will find the memory increase fast |
Hello.
I tried to use this image http://www.flunny.com/file/pic/photo/2014/04/9e29b40c4c73bd166ee2a76f1003773a.jpg (big size)
If the first thing I do is load that image, it's loaded my ImageLoader.
But if I navigate along the app (downloading more images), and after that I try to load it, it gives me an OutOfMemoryError.
How I load it:
and my ILoptions and imageLoader are:
The text was updated successfully, but these errors were encountered: