AntennaPod
AntennaPod copied to clipboard
RejectedExecutionException at end of playback
Checklist
- [X] I have used the search function for open and closed issues to see if someone else has already submitted the same bug report.
- [X] I will describe the problem with as much detail as possible.
- [X] If the bug only to occurs with a certain podcast, I will include the URL of that podcast.
App version
2.5.1 (832b51de7)
Where did you get the app from
Google Play
Android version
12
Device model
Google Pixel 4a 5G
First occurred
today
Steps to reproduce
I've restarted a podcast by clicking on the widget.
Expected behaviour
Progressbar and remaining time should update. App should not crash.
Current behaviour
Progressbar and remaining time do not update either in playing screen nor in the queue screen. At the end of the podcast, the app crashed.
Logs
No response
The interesting part of the log is this:
Shutting down VM
FATAL EXCEPTION: main
Process: de.danoeh.antennapod, PID: 6267
java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask@c2d8f62 rejected from java.util.concurrent.ScheduledThreadPoolExecutor@3380c41[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0]
at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2086)
at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:848)
at java.util.concurrent.ScheduledThreadPoolExecutor.delayedExecute(ScheduledThreadPoolExecutor.java:334)
at java.util.concurrent.ScheduledThreadPoolExecutor.scheduleWithFixedDelay(ScheduledThreadPoolExecutor.java:629)
at de.danoeh.antennapod.core.service.playback.PlaybackServiceTaskManager.startPositionSaver(SourceFile:84)
at de.danoeh.antennapod.core.service.playback.PlaybackService$3.onPlaybackStart(SourceFile:896)
at de.danoeh.antennapod.playback.base.PlaybackServiceMediaPlayer.setPlayerStatus(SourceFile:330)
at de.danoeh.antennapod.playback.base.PlaybackServiceMediaPlayer.setPlayerStatus(SourceFile:346)
at de.danoeh.antennapod.core.service.playback.LocalPSMP.resumeSync(SourceFile:341)
at de.danoeh.antennapod.core.service.playback.LocalPSMP.onPrepared(SourceFile:452)
at de.danoeh.antennapod.core.service.playback.LocalPSMP.playMediaObject(SourceFile:296)
at de.danoeh.antennapod.core.service.playback.LocalPSMP.lambda$endPlayback$14(SourceFile:968)
at de.danoeh.antennapod.core.service.playback.LocalPSMP.lambda$endPlayback$14$LocalPSMP(Unknown Source:0)
at de.danoeh.antennapod.core.service.playback.-$$Lambda$LocalPSMP$BFm0VXEuJ6bgasi3ynKFzkzJz24.run(Unknown Source:10)
at de.danoeh.antennapod.core.service.playback.LocalPSMP$PlayerExecutor.submit(SourceFile:94)
at de.danoeh.antennapod.core.service.playback.LocalPSMP.endPlayback(SourceFile:927)
at de.danoeh.antennapod.core.service.playback.LocalPSMP.genericOnCompletion(SourceFile:1080)
at de.danoeh.antennapod.core.service.playback.LocalPSMP.lambda$new$32(SourceFile:1074)
at de.danoeh.antennapod.core.service.playback.LocalPSMP.lambda$new$32$LocalPSMP(Unknown Source:0)
at de.danoeh.antennapod.core.service.playback.-$$Lambda$LocalPSMP$u32-RRSo0MeT3CDApwqeFEp10cA.onCompletion(Unknown Source:2)
at de.danoeh.antennapod.core.service.playback.ExoPlayerWrapper$1.onPlaybackStateChanged(SourceFile:100)
at com.google.android.exoplayer2.ExoPlayerImpl.lambda$updatePlaybackInfo$16(SourceFile:1309)
at com.google.android.exoplayer2.-$$Lambda$ExoPlayerImpl$j3HghxTYlyKTfF7rEBT_vvawuHA.invoke(Unknown Source:4)
at com.google.android.exoplayer2.util.ListenerSet$ListenerHolder.invoke(SourceFile:283)
at com.google.android.exoplayer2.util.ListenerSet.lambda$queueEvent$0(SourceFile:170)
at com.google.android.exoplayer2.util.-$$Lambda$ListenerSet$NbKDn9xtItiyMgYZmjIx_Sv1FFQ.run(Unknown Source:6)
at com.google.android.exoplayer2.util.ListenerSet.flushEvents(SourceFile:191)
at com.google.android.exoplayer2.ExoPlayerImpl.updatePlaybackInfo(SourceFile:1340)
at com.google.android.exoplayer2.ExoPlayerImpl.handlePlaybackInfo(SourceFile:1175)
at com.google.android.exoplayer2.ExoPlayerImpl.lambda$new$1(SourceFile:216)
at com.google.android.exoplayer2.ExoPlayerImpl.lambda$new$1$ExoPlayerImpl(Unknown Source:0)
at com.google.android.exoplayer2.-$$Lambda$ExoPlayerImpl$nOBJYkeEQ2uz3sBKLToLWmzrgZk.run(Unknown Source:4)
at android.os.Handler.handleCallback(Handler.java:938)
Apparently, #5525 did not help in all cases. The frequency of this type of crash reduced significantly, though (see screenshot of occurrences of this crash reported by users through Google Play)
This no longer appears in the Play Console. I assume it was since fixed.