Hi,

I am getting this exception in the beta SD which I never got on the m5
SDK - I have changed some logic so I am not 100% sure that it's not my
code that is causing this, but would you mind checking whether or not
Android properly frees all memory when Bitmap.recycle() is called and
also when a bitmap is cropped using the Bitmap.createBitmap() API and
later goes out of scope (i.e. can be garbage collected)?

Here is the stack trace for my issue:

D/dalvikvm(  414): GC freed 15290 objects / 1630400 bytes in 90ms
E/dalvikvm-heap(  414): 194184-byte external allocation too large for
this process.
E/        (  414): VM won't let us allocate 194184 bytes
D/AndroidRuntime(  414): Shutting down VM
W/dalvikvm(  414): threadid=3: thread exiting with uncaught exception
(group=0x40010e28)
E/AndroidRuntime(  414): Uncaught handler: thread main exiting due to
uncaught exception
E/AndroidRuntime(  414): java.lang.RuntimeException: can't alloc
pixels
E/AndroidRuntime(  414):        at
android.graphics.Bitmap.nativeCreate(Native Method)
E/AndroidRuntime(  414):        at
android.graphics.Bitmap.createBitmap(Bitmap.java:343)
E/AndroidRuntime(  414):        at
android.graphics.Bitmap.createBitmap(Bitmap.java:303)
E/AndroidRuntime(  414):        at
android.graphics.Bitmap.createBitmap(Bitmap.java:253)
E/AndroidRuntime(  414):        at
com.frogdesign.VideoHelper.cropBitmap(VideoHelper.java:580)

Thanks so much,
Cheryl
--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to