Automattic / pocket-casts-android

Pocket Casts Android 🎧
https://forums.pocketcasts.com
Mozilla Public License 2.0
2.58k stars 223 forks source link

Playback stopping unexpectedly and cannot resume while chromecasting #705

Open mchowning opened 1 year ago

mchowning commented 1 year ago

Description

While chromecasting the app to a Google Home Max speaker, playback suddenly stopped without me interacting with either the chromecast or the app. I opened the app and found I could not start playback because the play/pause button was stuck as a pause icon—tapping it did nothing in either the full screen or mini-players. The rest of the app was responsive. The only way I was able to get the app to play again was by swiping the app away and restarting it.

Step-by-step reproduction instructions

I don't know how to reproduce this. 😞

Screenshots or screen recording

No response

Did you search for existing bug reports?

Device, Operating system, and Pocket Casts app version

Google Pixel 6 Pro, Android 13, Pocket Casts 9.30 development build, Google Home Max

mchowning commented 1 year ago

I saved the support logs when this happened, but they don't really provide any information apart from confirming that the play/pause button wasn't working:

I 15/1 17:53:00 Saved time in database 1741.278
I 15/1 17:53:10 Saved time in database 1754.272
I 15/1 17:53:20 Saved time in database 1767.272
I 15/1 17:53:30 Saved time in database 1780.281
I 15/1 17:53:40 Saved time in database 1793.279
I 15/1 17:53:50 Saved time in database 1806.281
I 15/1 17:54:00 Saved time in database 1819.272
I 15/1 17:54:17 Set up periodic refresh
I 15/1 17:54:18 Running refresh from open app
I 15/1 17:54:18 RefreshPodcastsTask - runNow - Start
I 15/1 17:54:18 Refresh - podcasts response - 455 ms
I 15/1 17:54:18 Refresh - sync complete - 66 ms
I 15/1 17:54:19 UpNextSyncJob - scheduled
I 15/1 17:54:19 Refresh - sync up next - 9 ms
I 15/1 17:54:19 UpNextSyncJob - onStartJob
I 15/1 17:54:19 UpNextSyncJob - jobFinished - 59 ms
I 15/1 17:54:19 Settings synced
I 15/1 17:54:19 Refresh - sync settings - 54 ms
I 15/1 17:54:19 Sync history task scheduled
I 15/1 17:54:19 Refresh - sync history - 2 ms
I 15/1 17:54:19 Refresh - checkForEpisodesToAutoArchive - 23 ms
I 15/1 17:54:19 Sync history running
I 15/1 17:54:19 Refresh - checkForUnusedPodcasts - 73 ms
I 15/1 17:54:19 Refresh - playlist checkForEpisodesToDownload - 1 ms
I 15/1 17:54:19 Refresh - podcast checkForEpisodesToDownload - 3 ms
I 15/1 17:54:19 Refresh - updateNotifications - 25 ms
I 15/1 17:54:19 RefreshPodcastsTask - runNow - Finished Success {mOutputData=Data {}}
I 15/1 17:54:20 Sync history completed successfully
I 15/1 17:54:23 Pause clicked in player
I 15/1 17:54:23 Giving up audio focus
I 15/1 17:54:23 Giving up audio focus. Request granted
I 15/1 17:54:23 Paused - Not transient
I 15/1 17:54:25 Pause clicked in player
I 15/1 17:54:25 Giving up audio focus
I 15/1 17:54:25 Giving up audio focus. Request granted
I 15/1 17:54:25 Paused - Not transient
I 15/1 17:54:26 Pause clicked in player
I 15/1 17:54:26 Giving up audio focus
I 15/1 17:54:26 Giving up audio focus. Request granted
I 15/1 17:54:26 Paused - Not transient
I 15/1 17:54:26 Pause clicked in player
I 15/1 17:54:26 Giving up audio focus
I 15/1 17:54:26 Giving up audio focus. Request granted
I 15/1 17:54:26 Paused - Not transient
I 15/1 17:54:29 Pause clicked in player
I 15/1 17:54:29 Giving up audio focus
I 15/1 17:54:29 Giving up audio focus. Request granted
I 15/1 17:54:29 Paused - Not transient
I 15/1 17:54:38 Pause clicked in player
I 15/1 17:54:38 Giving up audio focus
I 15/1 17:54:38 Giving up audio focus. Request granted
I 15/1 17:54:38 Paused - Not transient
I 15/1 17:54:38 Pause clicked in player
I 15/1 17:54:38 Giving up audio focus
I 15/1 17:54:38 Giving up audio focus. Request granted
I 15/1 17:54:38 Paused - Not transient

I also see a fair number of Could not sync episode progress. java.util.NoSuchElementException logs, but those were occurring for a long time before this problem occurred, so they may be unrelated to the playback freezing.

mchowning commented 1 year ago

The NoSuchElementExceptions have hopefully been addressed by https://github.com/Automattic/pocket-casts-android/pull/711. I still don't think those were related to playback stopping, but wanted to mention the fix since they are in the logs here.

mchowning commented 1 year ago

Similar issue: Chromecast: Playback stops/pauses during an ad for a specific podcast