Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android crash on resume. How to interpret this exception?

Tags:

java

android

I got couple of crash reports like this one and I'm not sure what does it mean. Just to make it clear - this is something I can't reproduce. This is reported by ACRA

'Unmarshalling unknown type code 2131296357 at offset 1232'

Full error stack trace below:

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.idatt/com.idatt.activities.NewMailActivity}: java.lang.RuntimeException: Parcel android.os.Parcel@40651010: Unmarshalling unknown type code 2131296357 at offset 1232
 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1651)
 at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667)
 at android.app.ActivityThread.access$1500(ActivityThread.java:117)
 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935)
 at android.os.Handler.dispatchMessage(Handler.java:99)
 at android.os.Looper.loop(Looper.java:130)
 at android.app.ActivityThread.main(ActivityThread.java:3687)
 at java.lang.reflect.Method.invokeNative(Native Method)
 at java.lang.reflect.Method.invoke(Method.java:507)
 at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:842)
 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
 at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.RuntimeException: Parcel android.os.Parcel@40651010: Unmarshalling unknown type code 2131296357 at offset 1232
 at android.os.Parcel.readValue(Parcel.java:1913)
 at android.os.Parcel.readSparseArrayInternal(Parcel.java:2112)
 at android.os.Parcel.readSparseArray(Parcel.java:1568)
 at android.os.Parcel.readValue(Parcel.java:1903)
 at android.os.Parcel.readMapInternal(Parcel.java:2083)
 at android.os.Bundle.unparcel(Bundle.java:208)
 at android.os.Bundle.getSparseParcelableArray(Bundle.java:1167)
 at com.android.internal.policy.impl.PhoneWindow.restoreHierarchyState(PhoneWindow.java:1682)
 at android.app.Activity.onRestoreInstanceState(Activity.java:844)
 at android.app.Activity.performRestoreInstanceState(Activity.java:816)
 at android.app.Instrumentation.callActivityOnRestoreInstanceState(Instrumentation.java:1096)
 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1629)
 ... 11 more
java.lang.RuntimeException: Parcel android.os.Parcel@40651010: Unmarshalling unknown type code 2131296357 at offset 1232
 at android.os.Parcel.readValue(Parcel.java:1913)
 at android.os.Parcel.readSparseArrayInternal(Parcel.java:2112)
 at android.os.Parcel.readSparseArray(Parcel.java:1568)
 at android.os.Parcel.readValue(Parcel.java:1903)
 at android.os.Parcel.readMapInternal(Parcel.java:2083)
 at android.os.Bundle.unparcel(Bundle.java:208)
 at android.os.Bundle.getSparseParcelableArray(Bundle.java:1167)
 at com.android.internal.policy.impl.PhoneWindow.restoreHierarchyState(PhoneWindow.java:1682)
 at android.app.Activity.onRestoreInstanceState(Activity.java:844)
 at android.app.Activity.performRestoreInstanceState(Activity.java:816)
 at android.app.Instrumentation.callActivityOnRestoreInstanceState(Instrumentation.java:1096)
 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1629)
 at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667)
 at android.app.ActivityThread.access$1500(ActivityThread.java:117)
 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935)
 at android.os.Handler.dispatchMessage(Handler.java:99)
 at android.os.Looper.loop(Looper.java:130)
 at android.app.ActivityThread.main(ActivityThread.java:3687)
 at java.lang.reflect.Method.invokeNative(Native Method)
 at java.lang.reflect.Method.invoke(Method.java:507)
 at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:842)
 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
 at dalvik.system.NativeStart.main(Native Method)
like image 227
katit Avatar asked Jun 11 '12 16:06

katit


People also ask

How do I find out why an app is crashing Android?

Select an app. On the left menu, select Quality > Android vitals > Crashes and ANRs. Near the center of your screen, use the filters to help you find and diagnose issues. Alternatively, select a cluster to get more details about a specific crash or ANR error.

What are exceptions of Android?

An exception thrown when an error occurs during parsing. The object you are calling has died, because its hosting process no longer exists. The core Android system has died and is going through a runtime restart. Exception thrown when the provisioning server or key server denies a certficate or license for a device.

How do I show exceptions in Android Studio?

Press Alt + 6 to open the Android DDMS window or alternatively press CTRL + Shift + A and enter Android .


1 Answers

On the emulator, there should be a Dev Tools app. Open that app, select "Development Settings" from the list, and check the box next to "Immediately destroy activities". Now, when you run your app, when you hit the home button, the foreground Activity will be destroyed. You can then restart your app via long press or from the Apps screen to recreate the bug.

like image 69
Brian Cooley Avatar answered Oct 29 '22 18:10

Brian Cooley