Skip to content

Instantly share code, notes, and snippets.

@VisualMelon
Last active May 2, 2020 07:05
Show Gist options
  • Save VisualMelon/605af123468ecf384cfca9a97f2ea561 to your computer and use it in GitHub Desktop.
Save VisualMelon/605af123468ecf384cfca9a97f2ea561 to your computer and use it in GitHub Desktop.
SkiaWpfExampleBrowserDpiCrash
System.InvalidOperationException: The specified Visual is not an ancestor of this Visual.
at System.Windows.Media.Visual.TrySimpleTransformToAncestor(Visual ancestor, Boolean inverse, GeneralTransform& generalTransform, Matrix& simpleTransform)
at System.Windows.Media.Visual.TransformToAncestor(Visual ancestor)
at OxyPlot.Wpf.PlotView.UpdateDpi() in C:\Users\Murdo\source\repos\oxyplot\Source\OxyPlot.Wpf\PlotView.cs:line 113
at OxyPlot.Wpf.PlotViewBase.RenderOverride() in C:\Users\Murdo\source\repos\oxyplot\Source\OxyPlot.Wpf.Shared\PlotViewBase.cs:line 381
at OxyPlot.Wpf.PlotView.RenderOverride() in C:\Users\Murdo\source\repos\oxyplot\Source\OxyPlot.Wpf\PlotView.cs:line 94
at OxyPlot.Wpf.PlotViewBase.Render() in C:\Users\Murdo\source\repos\oxyplot\Source\OxyPlot.Wpf.Shared\PlotViewBase.cs:line 373
at OxyPlot.Wpf.PlotViewBase.BeginInvoke(Action action) in C:\Users\Murdo\source\repos\oxyplot\Source\OxyPlot.Wpf.Shared\PlotViewBase.cs:line 430
at OxyPlot.Wpf.PlotViewBase.InvalidatePlot(Boolean updateData) in C:\Users\Murdo\source\repos\oxyplot\Source\OxyPlot.Wpf.Shared\PlotViewBase.cs:line 166
at OxyPlot.Wpf.PlotViewBase.OnModelChanged() in C:\Users\Murdo\source\repos\oxyplot\Source\OxyPlot.Wpf.Shared\PlotViewBase.cs:line 360
at OxyPlot.Wpf.PlotViewBase.ModelChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) in C:\Users\Murdo\source\repos\oxyplot\Source\OxyPlot.Wpf.Shared\PlotViewBase.cs:line 415
at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
at System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp, Boolean preserveCurrentValue)
at System.Windows.Data.BindingExpression.TransferValue(Object newValue, Boolean isASubPropertyChange)
at MS.Internal.Data.PropertyPathWorker.UpdateSourceValueState(Int32 k, ICollectionView collectionView, Object newValue, Boolean isASubPropertyChange)
at MS.Internal.Data.ClrBindingWorker.OnSourcePropertyChanged(Object o, String propName)
at System.Windows.WeakEventManager.ListenerList`1.DeliverEvent(Object sender, EventArgs e, Type managerType)
at System.ComponentModel.PropertyChangedEventManager.OnPropertyChanged(Object sender, PropertyChangedEventArgs args)
at ExampleBrowser.MainWindowViewModel.RaisePropertyChanged(String property) in C:\Users\Murdo\source\repos\oxyplot\Source\Examples\WPF\ExampleBrowser\MainWindowViewModel.cs:line 128
at ExampleBrowser.MainWindowViewModel.set_CanvasModel(PlotModel value) in C:\Users\Murdo\source\repos\oxyplot\Source\Examples\WPF\ExampleBrowser\MainWindowViewModel.cs:line 55
at ExampleBrowser.MainWindowViewModel.UpdatePlotModels() in C:\Users\Murdo\source\repos\oxyplot\Source\Examples\WPF\ExampleBrowser\MainWindowViewModel.cs:line 160
at ExampleBrowser.MainWindowViewModel.set_Transposed(Boolean value) in C:\Users\Murdo\source\repos\oxyplot\Source\Examples\WPF\ExampleBrowser\MainWindowViewModel.cs:line 121
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment