Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled TaskCanceledException in ActionThrottler.Call #411

Closed
Kevin-Seiden opened this issue Mar 1, 2022 · 0 comments
Closed

Unhandled TaskCanceledException in ActionThrottler.Call #411

Kevin-Seiden opened this issue Mar 1, 2022 · 0 comments
Labels
bug Something isn't working has workaround priority 1 might not be fixed in the next release of the library, but it will soon!

Comments

@Kevin-Seiden
Copy link
Contributor

Kevin-Seiden commented Mar 1, 2022

When I close my application while the chart is running in a real-time configuration, it throws an exception in the dev environment.

This exception was originally thrown at this call stack:

System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
    System.Windows.Threading.DispatcherOperation.Wait(System.TimeSpan)
    System.Windows.Threading.Dispatcher.InvokeImpl(System.Windows.Threading.DispatcherOperation, System.Threading.CancellationToken, System.TimeSpan)
    System.Windows.Threading.Dispatcher.Invoke(System.Action, System.Windows.Threading.DispatcherPriority, System.Threading.CancellationToken, System.TimeSpan)
    System.Windows.Threading.Dispatcher.Invoke(System.Action)
    System.Threading.Tasks.Task.Execute()
    System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
    LiveChartsCore.Kernel.ActionThrottler.Call()

This is a two series chart using LineSeries{TimeSpanPoint}. Data is being added to the series at about 10Hz. I've only seen the exception occur on a hard close of the application (Windows "X" button). The business logic in my application which fires the event that updates the chart is being stopped prior to application termination (via IDisposable pattern) however, this happens in other areas of the application other than a hard close and produces no errors.

  • Version: LiveChartsCore.SkiaSharpView.WPF 2.0.0-beta 101
  • Windows 10
  • Hosting Application Target: .Net Framework 4.8
@beto-rodriguez beto-rodriguez added bug Something isn't working has workaround labels Apr 26, 2022
@beto-rodriguez beto-rodriguez added the priority 1 might not be fixed in the next release of the library, but it will soon! label May 20, 2022
beto-rodriguez added a commit that referenced this issue Nov 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working has workaround priority 1 might not be fixed in the next release of the library, but it will soon!
Projects
None yet
Development

No branches or pull requests

2 participants