In my application, the user selects an image from the sdcard. I launch Intent.ACTION_GET_CONTENT action for "image/*" type. This displays the com.android.camera/.ImageGallery2 activity. When the user makes a selection, I create a Bitmap Object using Media.createBitmap (..).
However, when the user was trying to open an image from the SD card the app ran into strange errors. Stack dump : 10-29 08:51:35.536: ERROR/IMemory(18142): binder=0x191868 transaction failed fd=-2147483647, size=0, err=-2147483646 (Unknown error: 2147483646) 10-29 08:51:35.536: ERROR/IMemory(18142): cannot dup fd=-2147483647, size=0, err=-2147483646 (Bad file number) 10-29 08:51:35.536: ERROR/IMemory(18142): cannot map BpMemoryHeap (binder=0x191868), size=0, fd=-1 (Bad file number) 10-29 08:51:35.555: ERROR/Surface(18142): Couldn't map Surface's heap (binder=0x191868, heap=0x1918c0) 10-29 08:51:35.555: DEBUG/AndroidRuntime(18142): Shutting down VM 10-29 08:51:35.555: WARN/dalvikvm(18142): threadid=3: thread exiting with uncaught exception (group=0x4000fe70) 10-29 08:51:35.585: ERROR/AndroidRuntime(18142): Uncaught handler: thread main exiting due to uncaught exception 10-29 08:51:35.675: ERROR/AndroidRuntime(18142): java.lang.IllegalArgumentException 10-29 08:51:35.675: ERROR/AndroidRuntime(18142): at android.view.Surface.lockCanvasNative(Native Method) 10-29 08:51:35.675: ERROR/AndroidRuntime(18142): at android.view.Surface.lockCanvas(Surface.java:196) 10-29 08:51:35.675: ERROR/AndroidRuntime(18142): at android.view.ViewRoot.draw(ViewRoot.java:1175) 10-29 08:51:35.675: ERROR/AndroidRuntime(18142): at android.view.ViewRoot.performTraversals(ViewRoot.java:1030) 10-29 08:51:35.675: ERROR/AndroidRuntime(18142): at android.view.ViewRoot.handleMessage(ViewRoot.java:1482) 10-29 08:51:35.675: ERROR/AndroidRuntime(18142): at android.os.Handler.dispatchMessage(Handler.java:99) 10-29 08:51:35.675: ERROR/AndroidRuntime(18142): at android.os.Looper.loop(Looper.java:123) 10-29 08:51:35.675: ERROR/AndroidRuntime(18142): at android.app.ActivityThread.main(ActivityThread.java:3948) 10-29 08:51:35.675: ERROR/AndroidRuntime(18142): at java.lang.reflect.Method.invokeNative(Native Method) 10-29 08:51:35.675: ERROR/AndroidRuntime(18142): at java.lang.reflect.Method.invoke(Method.java:521) 10-29 08:51:35.675: ERROR/AndroidRuntime(18142): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:782) 10-29 08:51:35.675: ERROR/AndroidRuntime(18142): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540) 10-29 08:51:35.675: ERROR/AndroidRuntime(18142): at dalvik.system.NativeStart.main(Native Method) Strangely, I was not able to recreate this, but it has got me worrying. What does this error mean? What are the possible scenarios that can lead to this error? Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---