Skip to content

Instantly share code, notes, and snippets.

@MonkAlex MonkAlex/Designer exception Secret
Created Jan 19, 2019

Embed
What would you like to do?
Designer process crashed
System.InvalidOperationException: Cannot call Measure using a size with NaN values.
at Avalonia.Layout.Layoutable.Measure(Size availableSize) in D:\a\1\s\src\Avalonia.Layout\Layoutable.cs:line 326
at Avalonia.Layout.Layoutable.MeasureOverride(Size availableSize) in D:\a\1\s\src\Avalonia.Layout\Layoutable.cs:line 565
at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in D:\a\1\s\src\Avalonia.Layout\Layoutable.cs:line 516
at Avalonia.Layout.Layoutable.Measure(Size availableSize) in D:\a\1\s\src\Avalonia.Layout\Layoutable.cs:line 317
at Avalonia.Controls.Grid.<>c__DisplayClass25_0.<MeasureOverride>g__MeasureOnce|2(Control child, Size size) in D:\a\1\s\src\Avalonia.Controls\Grid.cs:line 285
at Avalonia.Controls.Grid.<>c__DisplayClass25_0.<MeasureOverride>b__0(Control child) in D:\a\1\s\src\Avalonia.Controls\Grid.cs:line 250
at Avalonia.Controls.Utils.GridLayout.AppendMeasureConventions[T](IDictionary`2 source, Func`2 getDesiredLength) in D:\a\1\s\src\Avalonia.Controls\Utils\GridLayout.cs:line 133
at Avalonia.Controls.Grid.MeasureOverride(Size constraint) in D:\a\1\s\src\Avalonia.Controls\Grid.cs:line 251
at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in D:\a\1\s\src\Avalonia.Layout\Layoutable.cs:line 516
at Avalonia.Layout.Layoutable.Measure(Size availableSize) in D:\a\1\s\src\Avalonia.Layout\Layoutable.cs:line 317
at Avalonia.Controls.Grid.<>c__DisplayClass25_0.<MeasureOverride>g__MeasureOnce|2(Control child, Size size) in D:\a\1\s\src\Avalonia.Controls\Grid.cs:line 285
at Avalonia.Controls.Grid.<>c__DisplayClass25_0.<MeasureOverride>b__0(Control child) in D:\a\1\s\src\Avalonia.Controls\Grid.cs:line 250
at Avalonia.Controls.Utils.GridLayout.AppendMeasureConventions[T](IDictionary`2 source, Func`2 getDesiredLength) in D:\a\1\s\src\Avalonia.Controls\Utils\GridLayout.cs:line 133
at Avalonia.Controls.Grid.MeasureOverride(Size constraint) in D:\a\1\s\src\Avalonia.Controls\Grid.cs:line 251
at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in D:\a\1\s\src\Avalonia.Layout\Layoutable.cs:line 516
at Avalonia.Layout.Layoutable.Measure(Size availableSize) in D:\a\1\s\src\Avalonia.Layout\Layoutable.cs:line 317
at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding) in D:\a\1\s\src\Avalonia.Layout\LayoutHelper.cs:line 44
at Avalonia.Controls.Presenters.ContentPresenter.MeasureOverride(Size availableSize) in D:\a\1\s\src\Avalonia.Controls\Presenters\ContentPresenter.cs:line 319
at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in D:\a\1\s\src\Avalonia.Layout\Layoutable.cs:line 516
at Avalonia.Layout.Layoutable.Measure(Size availableSize) in D:\a\1\s\src\Avalonia.Layout\Layoutable.cs:line 317
at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding) in D:\a\1\s\src\Avalonia.Layout\LayoutHelper.cs:line 44
at Avalonia.Controls.Primitives.AdornerDecorator.MeasureOverride(Size availableSize) in D:\a\1\s\src\Avalonia.Controls\Primitives\AdornerDecorator.cs:line 24
at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in D:\a\1\s\src\Avalonia.Layout\Layoutable.cs:line 516
at Avalonia.Layout.Layoutable.Measure(Size availableSize) in D:\a\1\s\src\Avalonia.Layout\Layoutable.cs:line 317
at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding) in D:\a\1\s\src\Avalonia.Layout\LayoutHelper.cs:line 44
at Avalonia.Controls.Border.MeasureOverride(Size availableSize) in D:\a\1\s\src\Avalonia.Controls\Border.cs:line 106
at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in D:\a\1\s\src\Avalonia.Layout\Layoutable.cs:line 516
at Avalonia.Layout.Layoutable.Measure(Size availableSize) in D:\a\1\s\src\Avalonia.Layout\Layoutable.cs:line 317
at Avalonia.Layout.Layoutable.MeasureOverride(Size availableSize) in D:\a\1\s\src\Avalonia.Layout\Layoutable.cs:line 565
at Avalonia.Controls.Window.MeasureOverride(Size availableSize) in D:\a\1\s\src\Avalonia.Controls\Window.cs:line 503
at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in D:\a\1\s\src\Avalonia.Layout\Layoutable.cs:line 516
at Avalonia.Layout.Layoutable.Measure(Size availableSize) in D:\a\1\s\src\Avalonia.Layout\Layoutable.cs:line 317
at Avalonia.Layout.LayoutManager.Measure(ILayoutable control) in D:\a\1\s\src\Avalonia.Layout\LayoutManager.cs:line 172
at Avalonia.Layout.LayoutManager.ExecuteInitialLayoutPass(ILayoutRoot root) in D:\a\1\s\src\Avalonia.Layout\LayoutManager.cs:line 112
at Avalonia.Controls.Window.Show() in D:\a\1\s\src\Avalonia.Controls\Window.cs:line 384
at Avalonia.DesignerSupport.DesignWindowLoader.LoadDesignerWindow(String xaml, String assemblyPath) in D:\a\1\s\src\Avalonia.DesignerSupport\DesignWindowLoader.cs:line 73
at Avalonia.DesignerSupport.Remote.RemoteDesignerEntryPoint.<>c__DisplayClass18_0.<OnTransportMessage>b__0() in D:\a\1\s\src\Avalonia.DesignerSupport\Remote\RemoteDesignerEntryPoint.cs:line 199
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.