SwiftAudioEx icon indicating copy to clipboard operation
SwiftAudioEx copied to clipboard

Crash in `AVPlayerItemObserver` with `playbackLikelyToKeepUp` not registered as observer

Open fivecar opened this issue 1 year ago • 2 comments

Describe the bug Crashed with this:

Cannot remove an observer <SwiftAudioEx.AVPlayerItemObserver 0x30309bf00> for the key path
"playbackLikelyToKeepUp" from <AVPlayerItem 0x3027a8c90> because it is not registered as an observer.

To Reproduce Interestingly, the user session only lasted 7 seconds before this crash. So I suspect this happens early in setup (I'm using RNTP), or perhaps shortly after, when a track is added.

Smartphone (please complete the following information): Device And OS: iPhone SE 2nd Gen, iOS 17.4.1 Locale: sv-SE Screen Size: 375x667

Additional context Was using RNTP RC4.

fivecar avatar Mar 24 '24 07:03 fivecar

(as always, I'm happy to help contribute a fix if someone knows where to look, or what the root cause might be)

fivecar avatar Mar 24 '24 07:03 fivecar

@fivecar did this happen just once, or do you see it as a regular crash?

bsneed avatar Apr 01 '24 20:04 bsneed

@bsneed : haven't seen it much recently. Will ping back if I see it again.

fivecar avatar Aug 29 '24 06:08 fivecar