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(BitmapFactory.java:290)
at android.graphics.drawable.Drawable.createFromStream(Drawable.java:635)
at android.content.res.Resources.loadDrawable(Resources.java:1454)
at android.content.res.Resources.getDrawable(Resources.java:498)
at
android.graphics.drawable.StateListDrawable.inflate(StateListDrawable.java:143)
at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:716)
at android.graphics.drawable.Drawable.createFromXml(Drawable.java:667)
at android.content.res.Resources.loadDrawable(Resources.java:1439)
at android.content.res.TypedArray.getDrawable(TypedArray.java:520)
at android.view.View.<init>(View.java:1674)
at android.view.View.<init>(View.java:1622)
Dumping with
adb logcat -b events -d | /opt/local/bin/gawk -f aeheap.awk -
I get:
Alloc: 9371648 Limit: 9437184
Alloc: 1105920 Limit: 1568768
Alloc: 11403264 Limit: 11468800 <--- 11.4 MB !
Alloc: 1126400 Limit: 1568768
Alloc: 892928 Limit: 1060864
Alloc: 2228224 Limit: 2686976
(end)
And on the regular object heap
setContentView(v) b4 memory: T:2498528 - F:547672 (bytes)
So, assuming the 11.4 MB number + 2.5 on regular object heap = 13.9
MB, still not 16, but close enough I guess.
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!
-- Ward
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---