ApplicationMusicPlayer stops with error after skipping quickly over playlist entries

ApplicationMusicPlayer with queue created from playlist crashes with random occurrence shortly after skipping back or forth using controls embedded in the notification, with the error on console log: applicationController: xpc service connection interrupted.

I've noticed that the issue occurs more frequently the shorter is time between skipping entries. Since ApplicationMusicPlayer is run on a remote process, the main app does not crash, but the music stops playing without any exception, and the playback control turns uninitiated.

Here is how I'm initiating the queue:

let entries = playlist
    .with(.entries).entries!
    .map { ApplicationMusicPlayer.Queue.Entry($0) }
ApplicationMusicPlayer.shared.queue = .init(
    entries, startingAt: entries.last
)

Please give me some tips on how to solve this.

EDIT: The issue does not occur when navigating quickly through the station.

Hello @lyzkov, thank you for your post. Our engineering teams need to investigate this issue, as resolution may involve changes to Apple's software. I'd greatly appreciate it if you could open a bug report, include a sysdiagnose, and post the FB number here once you do. Bug Reporting: How and Why? has tips on creating your bug report.

ApplicationMusicPlayer stops with error after skipping quickly over playlist entries
 
 
Q