On May 1, 7:55 am, Ward Willats wrote:
> Thanks -- I used hprof with a previous layout leakage problem, and I
> think it is a huge turd on toast -- at least the default HTML output
> anyway. Lot's of noise and very little insight. Maybe there are
> better viewers for that data.
If you can get it
"I assume you mean any of my own bitmap caches..."
Yep, if you have any.
I don't have an issue when my app finishes. Memory seems to get
released quite OK. So far, repeatedly re-starting my app does not seem
to leak any (bitmap) memory.
By any chance, do you have Drawables cached (i.e. reference
On Apr 30, 1:39 pm, Ward Willats wrote:
> It still seems like Voodo to me. If I have to manually call
> setImageBitmap(null) it implies (to me) that the image view is not
> being released in the first place, which means the view hierarchy is
> not being released, even though I have called finish(
In my app, i've been dillegently 'unloading' bitmaps when i need
memory.
I clear out as much as I can.
E.g. when a view becomes invisible (onPause) or just before you start
loading a big bitmap:
- do a setImageBitmap(null) (or similar methods, depending on which
class of View you're actually usin
On Apr 30, 8:23 am, Ward Willats wrote:
> But lordy, how in the heck does that thing jump from 1 MB to 11 MB
> and back down again?? I surely don't have anything anywhere near that
> size that I am aware of!
It's possible that it didn't actually jump back down. The event log
shows results from
Okay, a nice OOM crash during inflation to start the morning.
VM won't let us allocate 67600 bytes
Caused by: java.lang.OutOfMemoryError: bitmap size exceeds VM budget
at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
at android.graphics.BitmapFactory.decodeStream
On Apr 29, 9:41 am, Ward Willats wrote:
> Oh well, I switched to gawk and did this "aeheap.awk" (android external heap):
I got a Python script working. I believe this is the second python
script I've ever written, so it's probably not going to win any style
awards.
When a GC happens you see th
Drawables are cached. So if you reuse the same 9patch in different
activities, you're good :)
On Wed, Apr 29, 2009 at 1:00 PM, fadden wrote:
>
> On Apr 29, 9:53 am, Ward Willats wrote:
>> While I wait for a crash I can measure, my colleague here points out
>> we use a lot of 9 patches as backgr
Google should do somethign about this "feature"... A lot of people get
OutOfMemory exception even if they don't do anything wrong.
Dalvik could and should be better. It is pretty slow compared to
native code 10 or 15 times depending on what you are doing.
Hope that JIT is comming soon on Android s
On Apr 29, 9:53 am, Ward Willats wrote:
> While I wait for a crash I can measure, my colleague here points out
> we use a lot of 9 patches as backgrounds for various fields on our
> screens. If they go into bitmap storage, and aren't regularly
> compacted as we move from screen to screen, well, t
On Apr 28, 6:28 pm, Ward Willats wrote:
> So this separate "pile" for bitmaps doesn't grow with the VM heap --
> in fact, growing the VM heap made it smaller (I think) because, as
> you say, that space came out of total 16 MB allocation (?)
Yup. The way you make more space for bitmaps is by usi
On Apr 28, 1:33 pm, Ward Willats wrote:
> So am I really out of memory or just chasing my tail?
You're really out of memory.
Bitmap storage exists in a weird parallel universe. The memory isn't
allocated in the virtual heap, but we act like it is when it comes to
deciding if you're out of memo
On Apr 28, 12:05 pm, Jon Webb wrote:
> I have a clue -- the OutOfMemoryError went away when I set debuggable
> to false. Does that help?
There's a known problem in the VM where exceptions don't get freed
while a debugger is attached. The state of the "debuggable" flag in
the app manifest should
I have a clue -- the OutOfMemoryError went away when I set debuggable
to false. Does that help?
-- Jon Webb
On Apr 28, 2:59 pm, Ward Willats wrote:
> At 11:19 AM -0700 4/28/09, Jon Webb wrote:>Like many others here I'm getting
> OutOfMemoryError from BitmapFactory
>
> when decoding multiple bi
At 11:19 AM -0700 4/28/09, Jon Webb wrote:
>Like many others here I'm getting OutOfMemoryError from BitmapFactory
when decoding multiple bitmaps. I am sure I am not leaking memory.
>I am scrupulously recycling bitmaps nulling pointers, etc.
>Any ideas what's going on, or for a workaround?
+1 he
15 matches
Mail list logo