java.lang.ClassCastException: android.view.AbsSavedState$1 cannot be cast to java.lang.Boolean

2 posts, 0 answers
  1. Namysław
    Namysław avatar
    19 posts
    Member since:
    Jul 2017

    Posted 09 Aug Link to this post

    I've just deployed our customer app (written in Xamarin Forms) against Google Play, and got below crash, related to RadSideDrawer:

    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.customer.appname/md584551188782d5fa8dfe47da9c668c306.MainActivity}: java.lang.ClassCastException: android.view.AbsSavedState$1 cannot be cast to java.lang.Boolean
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2684)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2751)
        at android.app.ActivityThread.-wrap12(ActivityThread.java)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1496)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:154)
        at android.app.ActivityThread.main(ActivityThread.java:6186)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)
    Caused by: java.lang.ClassCastException: android.view.AbsSavedState$1 cannot be cast to java.lang.Boolean
        at com.telerik.android.primitives.widget.sidedrawer.SideDrawerState.<init>(SideDrawerState.java:71)
        at com.telerik.android.primitives.widget.sidedrawer.SideDrawerState$1.createFromParcel(SideDrawerState.java:11)
        at com.telerik.android.primitives.widget.sidedrawer.SideDrawerState$1.createFromParcel(SideDrawerState.java:8)
        at android.os.Parcel.readParcelable(Parcel.java:2471)
        at android.os.Parcel.readValue(Parcel.java:2365)
        at android.os.Parcel.readSparseArrayInternal(Parcel.java:2813)
        at android.os.Parcel.readSparseArray(Parcel.java:2068)
        at android.os.Parcel.readValue(Parcel.java:2422)
        at android.os.Parcel.readArrayMapInternal(Parcel.java:2732)
        at android.os.BaseBundle.unparcel(BaseBundle.java:271)
        at android.os.Bundle.getSparseParcelableArray(Bundle.java:934)
        at com.android.internal.policy.PhoneWindow.restoreHierarchyState(PhoneWindow.java:2104)
        at android.app.Activity.onRestoreInstanceState(Activity.java:1048)
        at android.app.Activity.performRestoreInstanceState(Activity.java:1003)
        at android.app.Instrumentation.callActivityOnRestoreInstanceState(Instrumentation.java:1175)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2657)
        ... 9 more


    It was reported on two devices:
    Sony E2303
    and
    Meizu M2 Mini


    There was also another issue, probably strictly related to above:

    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.customer.appname/md5c79fa08bcb7b9bf8fc5b2b2290dec874.MainActivity}: java.lang.ClassCastException: android.view.AbsSavedState$1 cannot be cast to java.lang.Boolean
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2344)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2404)
        at android.app.ActivityThread.access$800(ActivityThread.java:145)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1323)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:135)
        at android.app.ActivityThread.main(ActivityThread.java:5319)
        at java.lang.reflect.Method.invoke(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:372)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1016)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:811)
    Caused by: java.lang.ClassCastException: android.view.AbsSavedState$1 cannot be cast to java.lang.Boolean
        at com.telerik.android.primitives.widget.sidedrawer.SideDrawerState.<init>(SideDrawerState.java:71)
        at com.telerik.android.primitives.widget.sidedrawer.SideDrawerState$1.createFromParcel(SideDrawerState.java:11)
        at com.telerik.android.primitives.widget.sidedrawer.SideDrawerState$1.createFromParcel(SideDrawerState.java:8)
        at android.os.Parcel.readParcelable(Parcel.java:2277)
        at android.os.Parcel.readValue(Parcel.java:2177)
        at android.os.Parcel.readSparseArrayInternal(Parcel.java:2571)
        at android.os.Parcel.readSparseArray(Parcel.java:1899)
        at android.os.Parcel.readValue(Parcel.java:2234)
        at android.os.Parcel.readArrayMapInternal(Parcel.java:2510)
        at android.os.BaseBundle.unparcel(BaseBundle.java:221)
        at android.os.Bundle.getSparseParcelableArray(Bundle.java:873)
        at com.android.internal.policy.impl.PhoneWindow.restoreHierarchyState(PhoneWindow.java:1983)
        at android.app.Activity.onRestoreInstanceState(Activity.java:1031)
        at android.app.Activity.performRestoreInstanceState(Activity.java:986)
        at android.app.Instrumentation.callActivityOnRestoreInstanceState(Instrumentation.java:1161)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2317)
        ... 10 more
    Xamarin caused by: Java.Lang.RuntimeException: Unable to start activity ComponentInfo{com.customer.appname/md5c79fa08bcb7b9bf8fc5b2b2290dec874.MainActivity}: java.lang.ClassCastException: android.view.AbsSavedState$1 cannot be cast to java.lang.Boolean ---> Java.Lang.ClassCastException: android.view.AbsSavedState$1 cannot be cast to java.lang.Boolean
       --- End of inner exception stack trace ---
      --- End of managed Java.Lang.RuntimeException stack trace ---
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.customer.appname/md5c79fa08bcb7b9bf8fc5b2b2290dec874.MainActivity}: java.lang.ClassCastException: android.view.AbsSavedState$1 cannot be cast to java.lang.Boolean
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2344)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2404)
        at android.app.ActivityThread.access$800(ActivityThread.java:145)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1323)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:135)
        at android.app.ActivityThread.main(ActivityThread.java:5319)
        at java.lang.reflect.Method.invoke(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:372)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1016)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:811)
    Caused by: java.lang.ClassCastException: android.view.AbsSavedState$1 cannot be cast to java.lang.Boolean
        at com.telerik.android.primitives.widget.sidedrawer.SideDrawerState.<init>(SideDrawerState.java:71)
        at com.telerik.android.primitives.widget.sidedrawer.SideDrawerState$1.createFromParcel(SideDrawerState.java:11)
        at com.telerik.android.primitives.widget.sidedrawer.SideDrawerState$1.createFromParcel(SideDrawerState.java:8)
        at android.os.Parcel.readParcelable(Parcel.java:2277)
        at android.os.Parcel.readValue(Parcel.java:2177)
        at android.os.Parcel.readSparseArrayInternal(Parcel.java:2571)
        at android.os.Parcel.readSparseArray(Parcel.java:1899)
        at android.os.Parcel.readValue(Parcel.java:2234)
        at android.os.Parcel.readArrayMapInternal(Parcel.java:2510)
        at android.os.BaseBundle.unparcel(BaseBundle.java:221)
        at android.os.Bundle.getSparseParcelableArray(Bundle.java:873)
        at com.android.internal.policy.impl.PhoneWindow.restoreHierarchyState(PhoneWindow.java:1983)
        at android.app.Activity.onRestoreInstanceState(Activity.java:1031)
        at android.app.Activity.performRestoreInstanceState(Activity.java:986)
        at android.app.Instrumentation.callActivityOnRestoreInstanceState(Instrumentation.java:1161)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2317)
        ... 10 more

     

  2. Nikolay
    Admin
    Nikolay avatar
    15 posts

    Posted 14 Aug Link to this post

    Hello Namyslaw,

    Thank you for reporting this.

    I've logged a Bug Report about the issue in our feedback portal so we can prioritize it and take care of it as soon as possible. You can check it here - link.

    It will be great if you provide a simple working project with the issue so we can be more helpful.

    Regards,
    Nikolay
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top