oxyplot-avalonia icon indicating copy to clipboard operation
oxyplot-avalonia copied to clipboard

NullReferenceException when rendering annotations

Open colejohnson66 opened this issue 3 years ago • 0 comments

Cross post from https://github.com/oxyplot/oxyplot/issues/1904

Appears to be an issue specifically with OxyPlot.Avalonia. @VisualMelon suggests two changes:

  • Calling InvalidatePlot off-thread should set a dirty-flag immediately, and schedule an update on the UI thread (not just crash)
  • UpdateVisuals should check the dirty-flag and perform an update if necessary before rendering

colejohnson66 avatar Aug 11 '22 12:08 colejohnson66