You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unable to return a TimeSpan property value for a Duration value of 'Automatic'. Check the HasTimeSpan property before requesting the TimeSpan property value from a Duration
I can't seem to replicate it reliably. I have a window where I am loading and unloading media players fairly rapidly and it seems to randomly occur.
Stack Trace:
" at System.Windows.Duration.get_TimeSpan()\r\n at Gu.Wpf.Media.MediaElementWrapper.<.ctor>b__3_4(Object o, RoutedEventArgs e)\r\n at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)\r\n at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)\r\n at System.Windows.Controls.AVElementHelper.OnMediaOpened(Object sender, EventArgs args)\r\n at System.Windows.Media.UniqueEventHelper.InvokeEvents(Object sender, EventArgs args)\r\n at System.Windows.Media.UniqueEventHelper.InvokeEvents(Object sender, EventArgs args)\r\n at System.Windows.Media.MediaEventsHelper.OnMediaPrerolled(Object o)\r\n at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)\r\n at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)"
StackTrace = " at System.Windows.Duration.get_TimeSpan()\r\n at Gu.Wpf.Media.MediaElementWrapper.<.ctor>b__3_4(Object o, RoutedEventArgs e)\r\n at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)\r\n at System.W...
@julesx if you have time you can try cloning and reference a debug build to find out where the dumb is, I'm a bit lost about writing a testcase/fix for this issue.
Activity
JohanLarsson commentedon Feb 8, 2017
Thanks for reporting, looks like I dumbed something.
julesx commentedon Feb 8, 2017
happened again
StackTrace = " at System.Windows.Duration.get_TimeSpan()\r\n at Gu.Wpf.Media.MediaElementWrapper.<.ctor>b__3_4(Object o, RoutedEventArgs e)\r\n at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)\r\n at System.W...JohanLarsson commentedon Feb 9, 2017
@julesx if you have time you can try cloning and reference a debug build to find out where the dumb is, I'm a bit lost about writing a testcase/fix for this issue.