fast4x / RiMusic

A multilingual Android application for streaming music from YouTube Music.
https://rimusic.xyz
GNU General Public License v3.0
2.51k stars 129 forks source link

Return to Player via Miniplayer fails after pause when returning from background. #3100

Open twistios opened 3 months ago

twistios commented 3 months ago

Steps to reproduce the bug

It is one of those random bugs where it it not exactly clear what happend. Here are some approximate steps:

  1. Start app
  2. Play song
  3. pause song
  4. go to background
  5. wait
  6. return to app via task manager
  7. App opens in Player
  8. Try to continue playing, fails
  9. Reduce to miniplayer
  10. Random stuff
  11. Try to open player via mini-player

Expected behavior

Mini-player opens player

Actual behavior

Some grey overlay opens and the player does not open. If I click somewhere else, the overlap goes away and it is like I have not clicked on the mini-player.

Screenshots/Screen recordings

The overlay

![rimusic_miniplayer-overlay_issue](https://github.com/user-attachments/assets/5a2359c7-cd8a-4758-bfd7-e7ed9dd10947)

When clicking somewhere else when overlay is shown

![rimusic_miniplayer-overlay_issue_returning](https://github.com/user-attachments/assets/390b4724-97bf-4e9b-997c-63ae3e9a1bce)

Logs

No response

RiMusic version

0.6.46 commit f2466c63f821fe21

Android version

14

Additional information

This issue already happend on older release versions. This issue happend while I was debugging some other error. I was not able to find a breakpoint in PlayerModern that I can set such that it gets hit. It seems like the PlayerModern-code does not get launched in this case.

twistios commented 3 months ago

It looks like this is because the notification disappears before that (automatically)

twistios commented 3 months ago

Is it possible to recover from this state correctly or at least restart normally?

fast4x commented 3 months ago

I'll try

TT-392 commented 2 months ago

For anyone coming across this issue, enabling the option: "Persistent queue" in RiMusic's settings will allow you to at least resume playback when this happens.