voroshkov / Chorus-RF-Laptimer

MIT License
186 stars 54 forks source link

Chorus RF Laptimer v 0.7.6 Crash when clicking the plus icon (+) in android 7.0 #91

Open ammarraisafti opened 6 years ago

ammarraisafti commented 6 years ago

Expected behavior

After disabling the Speak Messages feature and the Speak Lap Times feature, then minimize the app.It should be when I re-enter to the app, the Speak Messages feature and the Speak Lap Times feature are no longer active by itself.And when I turn those two features off again, then click the plus icon (+), to add Time to Prepare for Race.The ability to add Time to Prepare for Race should be possible.

Actual behavior

After disabling the Speak Messages feature and the Speak Lap Times feature, I minimize the app. And when I reentered the app, l look the Speak Messages feature and the Speak Lap Times feature have been enabled by itself. And I deactivate again both features, then click the plus (+) icon to add Time to Prepare for Race.Suddenly the application crashes and stops.

How to reproduce

Browser: Samsung Galaxy S6 edge Operating system: Nougat 7.0 App version: 0.7.6

Recording Of The Bug

https://youtu.be/8SlY2Lp3D-w

Logcat

--------- beginning of crash 05-29 14:56:15.376 16612 16612 E AndroidRuntime: FATAL EXCEPTION: main 05-29 14:56:15.376 16612 16612 E AndroidRuntime: Process: app.andrey_voroshkov.chorus_laptimer, PID: 16612 05-29 14:56:15.376 16612 16612 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{app.andrey_voroshkov.chorus_laptimer/app.andrey_voroshkov.chorus_laptimer.MainActivity}: java.lang.IllegalStateException: Fragment p{567db36} not attached to Activity 05-29 14:56:15.376 16612 16612 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2927) 05-29 14:56:15.376 16612 16612 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2988) 05-29 14:56:15.376 16612 16612 E AndroidRuntime: at android.app.ActivityThread.-wrap14(ActivityThread.java) 05-29 14:56:15.376 16612 16612 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1631) 05-29 14:56:15.376 16612 16612 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102) 05-29 14:56:15.376 16612 16612 E AndroidRuntime: at android.os.Looper.loop(Looper.java:154) 05-29 14:56:15.376 16612 16612 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6682) 05-29 14:56:15.376 16612 16612 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 05-29 14:56:15.376 16612 16612 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520) 05-29 14:56:15.376 16612 16612 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410) 05-29 14:56:15.376 16612 16612 E AndroidRuntime: Caused by: java.lang.IllegalStateException: Fragment p{567db36} not attached to Activity 05-29 14:56:15.376 16612 16612 E AndroidRuntime: at android.support.v4.b.l.d(Unknown Source) 05-29 14:56:15.376 16612 16612 E AndroidRuntime: at android.support.v4.b.l.a(Unknown Source) 05-29 14:56:15.376 16612 16612 E AndroidRuntime: at app.andrey_voroshkov.chorus_laptimer.p.c(Unknown Source) 05-29 14:56:15.376 16612 16612 E AndroidRuntime: at app.andrey_voroshkov.chorus_laptimer.p.a(Unknown Source) 05-29 14:56:15.376 16612 16612 E AndroidRuntime: at app.andrey_voroshkov.chorus_laptimer.p$1.a(Unknown Source) 05-29 14:56:15.376 16612 16612 E AndroidRuntime: at app.andrey_voroshkov.chorus_laptimer.b.a(Unknown Source) 05-29 14:56:15.376 16612 16612 E AndroidRuntime: at app.andrey_voroshkov.chorus_laptimer.b.v(Unknown Source) 05-29 14:56:15.376 16612 16612 E AndroidRuntime: at app.andrey_voroshkov.chorus_laptimer.a.b(Unknown Source) 05-29 14:56:15.376 16612 16612 E AndroidRuntime: at app.andrey_voroshkov.chorus_laptimer.a.d(Unknown Source) 05-29 14:56:15.376 16612 16612 E AndroidRuntime: at app.andrey_voroshkov.chorus_laptimer.MainActivity.onCreate(Unknown Source) 05-29 14:56:15.376 16612 16612 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:6942) 05-29 14:56:15.376 16612 16612 E AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1126) 05-29 14:56:15.376 16612 16612 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2880) 05-29 14:56:15.376 16612 16612 E AndroidRuntime: ... 9 more 05-29 14:58:55.392 16791 16791 E AndroidRuntime: FATAL EXCEPTION: main 05-29 14:58:55.392 16791 16791 E AndroidRuntime: Process: app.andrey_voroshkov.chorus_laptimer, PID: 16791 05-29 14:58:55.392 16791 16791 E AndroidRuntime: java.lang.IllegalStateException: Fragment p{cbb09b9} not attached to Activity 05-29 14:58:55.392 16791 16791 E AndroidRuntime: at android.support.v4.b.l.d(Unknown Source) 05-29 14:58:55.392 16791 16791 E AndroidRuntime: at android.support.v4.b.l.a(Unknown Source) 05-29 14:58:55.392 16791 16791 E AndroidRuntime: at app.andrey_voroshkov.chorus_laptimer.p.c(Unknown Source) 05-29 14:58:55.392 16791 16791 E AndroidRuntime: at app.andrey_voroshkov.chorus_laptimer.p.a(Unknown Source) 05-29 14:58:55.392 16791 16791 E AndroidRuntime: at app.andrey_voroshkov.chorus_laptimer.p$1.a(Unknown Source) 05-29 14:58:55.392 16791 16791 E AndroidRuntime: at app.andrey_voroshkov.chorus_laptimer.b.a(Unknown Source) 05-29 14:58:55.392 16791 16791 E AndroidRuntime: at app.andrey_voroshkov.chorus_laptimer.b.v(Unknown Source) 05-29 14:58:55.392 16791 16791 E AndroidRuntime: at app.andrey_voroshkov.chorus_laptimer.p$20.onClick(Unknown Source) 05-29 14:58:55.392 16791 16791 E AndroidRuntime: at android.view.View.performClick(View.java:6205) 05-29 14:58:55.392 16791 16791 E AndroidRuntime: at android.widget.TextView.performClick(TextView.java:11103) 05-29 14:58:55.392 16791 16791 E AndroidRuntime: at android.view.View$PerformClick.run(View.java:23653) 05-29 14:58:55.392 16791 16791 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:751) 05-29 14:58:55.392 16791 16791 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95) 05-29 14:58:55.392 16791 16791 E AndroidRuntime: at android.os.Looper.loop(Looper.java:154) 05-29 14:58:55.392 16791 16791 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6682) 05-29 14:58:55.392 16791 16791 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 05-29 14:58:55.392 16791 16791 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520) 05-29 14:58:55.392 16791 16791 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410) 05-29 14:59:06.212 18009 18009 E AndroidRuntime: FATAL EXCEPTION: main 05-29 14:59:06.212 18009 18009 E AndroidRuntime: Process: app.andrey_voroshkov.chorus_laptimer, PID: 18009 05-29 14:59:06.212 18009 18009 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{app.andrey_voroshkov.chorus_laptimer/app.andrey_voroshkov.chorus_laptimer.MainActivity}: java.lang.IllegalStateException: Fragment p{5118798} not attached to Activity 05-29 14:59:06.212 18009 18009 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2927) 05-29 14:59:06.212 18009 18009 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2988) 05-29 14:59:06.212 18009 18009 E AndroidRuntime: at android.app.ActivityThread.-wrap14(ActivityThread.java) 05-29 14:59:06.212 18009 18009 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1631) 05-29 14:59:06.212 18009 18009 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102) 05-29 14:59:06.212 18009 18009 E AndroidRuntime: at android.os.Looper.loop(Looper.java:154) 05-29 14:59:06.212 18009 18009 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6682) 05-29 14:59:06.212 18009 18009 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 05-29 14:59:06.212 18009 18009 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520) 05-29 14:59:06.212 18009 18009 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410) 05-29 14:59:06.212 18009 18009 E AndroidRuntime: Caused by: java.lang.IllegalStateException: Fragment p{5118798} not attached to Activity 05-29 14:59:06.212 18009 18009 E AndroidRuntime: at android.support.v4.b.l.d(Unknown Source) 05-29 14:59:06.212 18009 18009 E AndroidRuntime: at android.support.v4.b.l.a(Unknown Source) 05-29 14:59:06.212 18009 18009 E AndroidRuntime: at app.andrey_voroshkov.chorus_laptimer.p.c(Unknown Source) 05-29 14:59:06.212 18009 18009 E AndroidRuntime: at app.andrey_voroshkov.chorus_laptimer.p.a(Unknown Source) 05-29 14:59:06.212 18009 18009 E AndroidRuntime: at app.andrey_voroshkov.chorus_laptimer.p$1.a(Unknown Source) 05-29 14:59:06.212 18009 18009 E AndroidRuntime: at app.andrey_voroshkov.chorus_laptimer.b.a(Unknown Source) 05-29 14:59:06.212 18009 18009 E AndroidRuntime: at app.andrey_voroshkov.chorus_laptimer.b.v(Unknown Source) 05-29 14:59:06.212 18009 18009 E AndroidRuntime: at app.andrey_voroshkov.chorus_laptimer.a.b(Unknown Source) 05-29 14:59:06.212 18009 18009 E AndroidRuntime: at app.andrey_voroshkov.chorus_laptimer.a.d(Unknown Source) 05-29 14:59:06.212 18009 18009 E AndroidRuntime: at app.andrey_voroshkov.chorus_laptimer.MainActivity.onCreate(Unknown Source) 05-29 14:59:06.212 18009 18009 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:6942) 05-29 14:59:06.212 18009 18009 E AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1126) 05-29 14:59:06.212 18009 18009 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2880) 05-29 14:59:06.212 18009 18009 E AndroidRuntime: ... 9 more 05-29 14:59:12.505 18128 18128 E AndroidRuntime: FATAL EXCEPTION: main 05-29 14:59:12.505 18128 18128 E AndroidRuntime: Process: app.andrey_voroshkov.chorus_laptimer, PID: 18128 05-29 14:59:12.505 18128 18128 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{app.andrey_voroshkov.chorus_laptimer/app.andrey_voroshkov.chorus_laptimer.MainActivity}: java.lang.IllegalStateException: Fragment p{1ce23d6} not attached to Activity 05-29 14:59:12.505 18128 18128 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2927) 05-29 14:59:12.505 18128 18128 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2988) 05-29 14:59:12.505 18128 18128 E AndroidRuntime: at android.app.ActivityThread.-wrap14(ActivityThread.java) 05-29 14:59:12.505 18128 18128 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1631) 05-29 14:59:12.505 18128 18128 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102) 05-29 14:59:12.505 18128 18128 E AndroidRuntime: at android.os.Looper.loop(Looper.java:154) 05-29 14:59:12.505 18128 18128 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6682) 05-29 14:59:12.505 18128 18128 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 05-29 14:59:12.505 18128 18128 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520) 05-29 14:59:12.505 18128 18128 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410) 05-29 14:59:12.505 18128 18128 E AndroidRuntime: Caused by: java.lang.IllegalStateException: Fragment p{1ce23d6} not attached to Activity 05-29 14:59:12.505 18128 18128 E AndroidRuntime: at android.support.v4.b.l.d(Unknown Source) 05-29 14:59:12.505 18128 18128 E AndroidRuntime: at android.support.v4.b.l.a(Unknown Source) 05-29 14:59:12.505 18128 18128 E AndroidRuntime: at app.andrey_voroshkov.chorus_laptimer.p.c(Unknown Source) 05-29 14:59:12.505 18128 18128 E AndroidRuntime: at app.andrey_voroshkov.chorus_laptimer.p.a(Unknown Source) 05-29 14:59:12.505 18128 18128 E AndroidRuntime: at app.andrey_voroshkov.chorus_laptimer.p$1.a(Unknown Source) 05-29 14:59:12.505 18128 18128 E AndroidRuntime: at app.andrey_voroshkov.chorus_laptimer.b.a(Unknown Source) 05-29 14:59:12.505 18128 18128 E AndroidRuntime: at app.andrey_voroshkov.chorus_laptimer.b.v(Unknown Source) 05-29 14:59:12.505 18128 18128 E AndroidRuntime: at app.andrey_voroshkov.chorus_laptimer.a.b(Unknown Source) 05-29 14:59:12.505 18128 18128 E AndroidRuntime: at app.andrey_voroshkov.chorus_laptimer.a.d(Unknown Source) 05-29 14:59:12.505 18128 18128 E AndroidRuntime: at app.andrey_voroshkov.chorus_laptimer.MainActivity.onCreate(Unknown Source) 05-29 14:59:12.505 18128 18128 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:6942) 05-29 14:59:12.505 18128 18128 E AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1126) 05-29 14:59:12.505 18128 18128 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2880) 05-29 14:59:12.505 18128 18128 E AndroidRuntime: ... 9 more