Githup repo
Expected behavior
I expected the app to open the "Settings" activity successfully without crashing.
Actual behavior
After adding a "NEW COUNT" in the "save" activity, the app crashes when I click on "Settings " from the menu options.
How to reproduce
- Download the app from play store
- Launch the app
- From the plus icon in the toolbar add a project
- Click on the view icon in the toolbar to view project after adding
- Select a project
- In the "save" activity, click on the edit icon inside the toolbar
- Click on "ADD COUNT "
- Type in a name for the new count, Click on the menu options icon
- Click on "Settings "
- app crashes and exit.
- Version : Version 2.4.7
- Device : Gionee A1 lite
- Operating system : Android 7.0
Recording of the Bug
Logcat
05-25 22:21:25.613 13501-13501/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.knirirr.beecount, PID: 13501
java.lang.RuntimeException: Parcelable encountered IOException writing serializable object (name = com.knirirr.beecount.widgets.CountEditWidget)
at android.os.Parcel.writeSerializable(Parcel.java:1526)
at android.os.Parcel.writeValue(Parcel.java:1474)
at android.os.Parcel.writeList(Parcel.java:811)
at android.os.Parcel.writeValue(Parcel.java:1423)
at android.os.Parcel.writeArrayMapInternal(Parcel.java:723)
at android.os.BaseBundle.writeToParcelInner(BaseBundle.java:1408)
at android.os.Bundle.writeToParcel(Bundle.java:1133)
at android.os.Parcel.writeBundle(Parcel.java:763)
at android.app.ActivityManagerProxy.activityStopped(ActivityManagerNative.java:3752)
at android.app.ActivityThread$StopInfo.run(ActivityThread.java:3867)
at android.os.Handler.handleCallback(Handler.java:836)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loop(Looper.java:203)
at android.app.ActivityThread.main(ActivityThread.java:6269)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1063)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:924)
Caused by: java.io.NotSerializableException: android.support.v7.widget.AppCompatImageButton
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1224)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1584)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1549)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1472)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1218)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)
at android.os.Parcel.writeSerializable(Parcel.java:1521)
at android.os.Parcel.writeValue(Parcel.java:1474)
at android.os.Parcel.writeList(Parcel.java:811)
at android.os.Parcel.writeValue(Parcel.java:1423)
at android.os.Parcel.writeArrayMapInternal(Parcel.java:723)
at android.os.BaseBundle.writeToParcelInner(BaseBundle.java:1408)
at android.os.Bundle.writeToParcel(Bundle.java:1133)
at android.os.Parcel.writeBundle(Parcel.java:763)
at android.app.ActivityManagerProxy.activityStopped(ActivityManagerNative.java:3752)
at android.app.ActivityThread$StopInfo.run(ActivityThread.java:3867)
at android.os.Handler.handleCallback(Handler.java:836)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loop(Looper.java:203)
at android.app.ActivityThread.main(ActivityThread.java:6269)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1063)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:924)
05-25 22:21:25.745 1607-1618/? E/GED: Failed to execute ioctl 3222824709, BridgeID(5), err(-1)