Skip to content

Unable to return a TimeSpan property value #3

Open

Description

@julesx

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)"

Activity

  1. JohanLarsson commented on Feb 8, 2017

    @JohanLarsson
    Member

    Thanks for reporting, looks like I dumbed something.

  2. julesx commented on Feb 8, 2017

    @julesx
    Author

    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...

  3. JohanLarsson commented on Feb 9, 2017

    @JohanLarsson
    Member

    @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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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