Skip to content

ios: NSInternalInconsistencyException for "currentItem.hasEnabledAudio" observer #814

Open
@thisisthekap

Description

@thisisthekap

🐛 Bug Report

Sometimes when playback stops, the app crashes throwing this exception:

NSInternalInconsistencyException Reason: Cannot update for observer NSKeyValueObservance for the key path "currentItem.hasEnabledAudio" from AVQueuePlayer, most likely because the value for the key "currentItem" has changed without an appropriate KVO notification being sent.

It seems to be not limited to currentItem.hasEnabledAudio. We saw similar exceptions for these members:

  • currentItem.hasEnabledVideo
  • currentItem.presentationSize
  • currentItem.seekableTimeRanges
  • currentItem.status
  • currentItem.playbackBufferEmpty

Expected behavior

No crash :)

Reproduction steps

Play and stop playback, repeat approx 15 times.

Configuration

Version: 1.0.8

Platform:

  • 📱 iOS
  • 🤖 Android
  • 🏁 WPF
  • 🌎 UWP
  • 🍎 MacOS
  • 📺 tvOS
  • 🐒 Xamarin.Forms

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions