SimpMusic icon indicating copy to clipboard operation
SimpMusic copied to clipboard

App Crashes when switching to last used app via Edge Long Swipe function.

Open cinnyamon opened this issue 9 months ago • 1 comments

Describe the bug Whenever the function of switching to the last background app is used, SimpMusic crashes. Only happens in menus, the music player and everything else except Home tab and Search tab.

On Android 15 Evolution X ROM

To Reproduce Steps to reproduce the behavior:

  1. Be in Now Playing Music Player or other menu, like Playlist.
  2. Long swipe on the edge of the screen until the 2 arrows appear to switch to the last used app.
  3. App Crashes and shows the crash screen and does not switch to any app.

Expected behavior SimpMusic to continue playback of the song, and not crash when trying to switch to another app.

Screenshots

Image Image

Log (Error Details) Build version: 0.2.12 Current date: 2025-03-15 16:49:41 Device: Google Pixel 7 Pro OS version: Android 15 (SDK 35)

Stack trace:
java.lang.RuntimeException: Unable to pause activity {com.maxrave.simpmusic/com.maxrave.simpmusic.ui.MainActivity}: java.lang.IllegalArgumentException: The fragment NowPlayingFragment{5c3e28e} (4f74f154-9b2b-46d1-b4cf-be9bffc23f81) is unknown to the FragmentNavigator. Please use the navigate() function to add fragments to the FragmentNavigator managed FragmentManager. at android.app.ActivityThread.performPauseActivityIfNeeded(ActivityThread.java:5690) at android.app.ActivityThread.performPauseActivity(ActivityThread.java:5641) at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:5593) at android.app.servertransaction.PauseActivityItem.execute(PauseActivityItem.java:60) at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:63) at android.app.servertransaction.TransactionExecutor.executeLifecycleItem(TransactionExecutor.java:169) at android.app.servertransaction.TransactionExecutor.executeTransactionItems(TransactionExecutor.java:101) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:80) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2719) at android.os.Handler.dispatchMessage(Handler.java:109) at android.os.Looper.loopOnce(Looper.java:232) at android.os.Looper.loop(Looper.java:317) at android.app.ActivityThread.main(ActivityThread.java:8783) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:595) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:871) Caused by: java.lang.IllegalArgumentException: The fragment NowPlayingFragment{5c3e28e} (4f74f154-9b2b-46d1-b4cf-be9bffc23f81) is unknown to the FragmentNavigator. Please use the navigate() function to add fragments to the FragmentNavigator managed FragmentManager. at U3.r.onBackStackChangeCommitted(Unknown Source:195) at j2.p0.z(Unknown Source:1205) at j2.p0.L(Unknown Source:91) at j2.p0.y(Unknown Source:152) at j2.p0.u(Unknown Source:66) at j2.z0.l(Unknown Source:15) at j2.z0.k(Unknown Source:124) at j2.p0.H(Unknown Source:61) at j2.p0.u(Unknown Source:35) at j2.P.dispatchPause(Unknown Source:7) at j2.K.onPause(Unknown Source:8) at android.app.Activity.performPause(Activity.java:9224) at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1785) at android.app.ActivityThread.performPauseActivityIfNeeded(ActivityThread.java:5680) ... 15 more

User actions: 2025-03-15 16:46:09: MainActivity created 2025-03-15 16:46:09: MainActivity resumed 2025-03-15 16:46:14: MainActivity paused 2025-03-15 16:46:20: MainActivity resumed 2025-03-15 16:46:46: MainActivity paused 2025-03-15 16:47:56: MainActivity resumed 2025-03-15 16:48:32: MainActivity paused 2025-03-15 16:49:36: MainActivity resumed 2025-03-15 16:49:37: MainActivity paused

cinnyamon avatar Mar 15 '25 15:03 cinnyamon

Does this still happen with 0.2.20?

CrazyWolf13 avatar Sep 03 '25 07:09 CrazyWolf13

Does this still happen with 0.2.20?

Looks like it's fixed now. Thank you very much! I'll mark as closed

cinnyamon avatar Sep 03 '25 09:09 cinnyamon