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

Bitmap exceeds VM budget: potential issue #2

Closed
hyoun98 opened this issue Oct 1, 2011 · 2 comments
Closed

Bitmap exceeds VM budget: potential issue #2

hyoun98 opened this issue Oct 1, 2011 · 2 comments

Comments

@hyoun98
Copy link

hyoun98 commented Oct 1, 2011

Hi,
While this is not your issue per se, I was wondering if you could comment on this. I have a listview which contains textviews and imageview which are both loaded from the network. After continuous opening and closing the listview activity, but retrieving different data sets, I run into this error message and the app then closes. I've tried such things like:

a) forcing a gc on the OnDestroy, OnPause events
b) nulling out references to the imageviews on the OnDestroy and OnPause events
c) using decodeFileDescription instead of decodeStream (see Comment 94 on the link below)
d) forcing a bitmap recycle when doing the gc and nulling references (see Comment 90)

None of these seem to be helping any.

There is a long thread about this problem which Google is well aware. Just wondering if you had any thoughts to this:
Btw, your code works great. Thanks for your help.

http://code.google.com/p/android/issues/detail?id=8488

@hyoun98 hyoun98 closed this as completed Oct 3, 2011
@hyoun98
Copy link
Author

hyoun98 commented Oct 3, 2011

Hi. I found the root cause of the issue that I had encountered. As done in your example MainActivity.java, I had neglected to call "stopThread()" in the onDestroy() routine as you did. Regards.

@thest1
Copy link
Owner

thest1 commented Oct 6, 2011

Don't think stopThread can affect memory usage. I guess there's still a memory leak.

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