Skip to content
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

ImageCache.getBitmap() causing OutOfMemoryError #41

Open
istashak opened this issue Jun 15, 2011 · 2 comments
Open

ImageCache.getBitmap() causing OutOfMemoryError #41

istashak opened this issue Jun 15, 2011 · 2 comments

Comments

@istashak
Copy link

This is a similar issue to a previously closed bug. While using the WebImageView, which uses ImageLoader.start(...) I get the following OutOfMemoryError.

Here's the exception stack:

E AndroidRuntime: java.lang.OutOfMemoryError: bitmap size exceeds VM budget
E AndroidRuntime: at android.graphics.BitmapFactory.nativeDecodeByteArray(Native Method)
E AndroidRuntime: at android.graphics.BitmapFactory.decodeByteArray(BitmapFactory.java:392)
E AndroidRuntime: at android.graphics.BitmapFactory.decodeByteArray(BitmapFactory.java:405)
E AndroidRuntime: at com.github.droidfu.cachefu.ImageCache.getBitmap(ImageCache.java:67)
E AndroidRuntime: at com.github.droidfu.imageloader.ImageLoader.setOrLoadImage(ImageLoader.java:185)
E AndroidRuntime: at com.github.droidfu.imageloader.ImageLoader.start(ImageLoader.java:178)
E AndroidRuntime: at com.github.droidfu.widgets.WebImageView.loadImage(WebImageView.java:161)

@istashak
Copy link
Author

Also, note that I'm using low resolution PNGs in a ListView (Images range in size from about 5 to 13 K with the average somewhere in the middle). It seems that garbage collection can't keep up with the speed of memory consumption.

@futtetennista
Copy link
Collaborator

Could you please tell what branch/commit you're using?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants