Unhandled exception in MediaElement.put_AudioStreamIndex

Topics: Windows 8 Xaml
Feb 5, 2014 at 1:26 AM
Edited Feb 5, 2014 at 1:26 AM
We're seeing an unhandled exception from inside the Player Framework reported from our Windows 8.1 application in the wild. I've posted all the information we have below. Hopefully this will be enough to pin down the issue.

While it looks like it might be a MediaElement bug, the Player Framework may want to catch the exception instead of allowing it to go unhandled.



Type: System.Exception.
Message: The specified object or value does not exist. (Exception from HRESULT: 0xC00D36D5)

Stack trace:

at Windows.UI.Xaml.Controls.MediaElement.put_AudioStreamIndex(Nullable1 value)
at Microsoft.PlayerFramework.MediaPlayer.set__AudioStreamIndex(Nullable
1 value)
at Microsoft.PlayerFramework.MediaPlayer.OnAudioStreamIndexChanged(Nullable1 oldValue, Nullable1 newValue)
at Microsoft.PlayerFramework.MediaPlayer.<>c__DisplayClass6a2.<RegisterDependencyProperty>b__69(DependencyObject d, DependencyPropertyChangedEventArgs e)
at Windows.UI.Xaml.DependencyObject.SetValue(DependencyProperty dp, Object value)
at Microsoft.PlayerFramework.MediaPlayer.set_AudioStreamIndex(Nullable
1 value)
at Microsoft.PlayerFramework.MediaPlayer.OnSelectedAudioStreamChanged(AudioStream oldValue, AudioStream newValue)
at Windows.UI.Xaml.DependencyObject.SetValue(DependencyProperty dp, Object value)
at Microsoft.PlayerFramework.MediaPlayer.PopulateAvailableAudioStreams()
at Microsoft.PlayerFramework.MediaPlayer.OnMediaOpened()
at Microsoft.PlayerFramework.MediaPlayer.<OnMediaOpened>d__5f.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>b__4(Object state)
at BugSense.BugSenseHandler.AsyncSynchronizationContext.<>c__DisplayClass28.<WrapCallback>b__27(Object state)
Apr 25, 2014 at 11:13 PM
A gentle ping on this one.

Anything I can do to help diagnose this further?