Restart the application
Describe the bug Can't use the app
To Reproduce 1.Click on app. 2. The app reports an error and asks to restart. 3. Click restart but still have the same problem
Screenshots
Log (Error Details) Build version: 0.2.2 Current date: 2024-06-30 21:43:49 Device: OPPO CPH2081 OS version: Android 9 (SDK 28)
Stack trace:
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.maxrave.simpmusic/com.maxrave.simpmusic.ui.MainActivity}: java.lang.StringIndexOutOfBoundsException: length=0; index=2
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3191)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3328)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:113)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:71)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2054)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:233)
at android.app.ActivityThread.main(ActivityThread.java:7225)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:499)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:962)
Caused by: java.lang.StringIndexOutOfBoundsException: length=0; index=2
at java.lang.String.substring(String.java:2032)
at kotlin.text.StringsKt__StringsKt.substring(Strings.kt:405)
at com.maxrave.simpmusic.viewModel.SharedViewModel.getLocation(SharedViewModel.kt:1369)
at com.maxrave.simpmusic.ui.MainActivity.onCreate(MainActivity.kt:449)
at android.app.Activity.performCreate(Activity.java:7378)
at android.app.Activity.performCreate(Activity.java:7369)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1271)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3171)
... 11 more
User actions: 2024-06-30 21:41:00: MainActivity created
Try to change per-app language
Build version: 0.2.2 Current date: 2024-07-02 15:50:54 Device: Motorola moto g fast OS version: Android 11 (SDK 30)
Stack trace:
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.maxrave.simpmusic/com.maxrave.simpmusic.ui.MainActivity}: java.lang.StringIndexOutOfBoundsException: length=0; index=2
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3506)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3681)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2130)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:250)
at android.app.ActivityThread.main(ActivityThread.java:7803)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:958)
Caused by: java.lang.StringIndexOutOfBoundsException: length=0; index=2
at java.lang.String.substring(String.java:2060)
at kotlin.text.StringsKt__StringsKt.substring(Strings.kt:405)
at com.maxrave.simpmusic.viewModel.SharedViewModel.getLocation(SharedViewModel.kt:1369)
at com.maxrave.simpmusic.ui.MainActivity.onCreate(MainActivity.kt:449)
at android.app.Activity.performCreate(Activity.java:8104)
at android.app.Activity.performCreate(Activity.java:8088)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1309)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3479)
... 11 more
User actions:
2024-07-02 15:50:47: MainActivity created
Have the same problem. Cant even roll back to 0.2.1, because simply stopping the app and starting 0.2.1 apk results with "app was not installed". Clean installation will delete all my downloaded tracks, and it will take long time to re-login and download them back...
Same errors and stack trace as above. Device: Samsung SM-A515F OS version: Android 10 (SDK 29)
Me facing invisible controls
Have the same problem. Cant even roll back to 0.2.1, because simply stopping the app and starting 0.2.1 apk results with "app was not installed". Clean installation will delete all my downloaded tracks, and it will take long time to re-login and download them back...
Same errors and stack trace as above. Device: Samsung SM-A515F OS version: Android 10 (SDK 29)
Ok so the only way i've fixed this is via clean reinstallation with all data deletion...
Did you try latest build?
This problem was solved long ago, please check again with latest version.