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

System.Threading.Thread.Start not supported on webassembly #9

Closed
wieslawsoltes opened this issue Feb 2, 2022 · 21 comments
Closed

System.Threading.Thread.Start not supported on webassembly #9

wieslawsoltes opened this issue Feb 2, 2022 · 21 comments
Labels
help wanted Extra attention is needed

Comments

@wieslawsoltes
Copy link

Unhandled exception rendering component: Operation is not supported on this platform.
System.PlatformNotSupportedException: Operation is not supported on this platform.
   at System.Threading.Thread.Start()
   at TextMateSharp.Model.TMModel.TokenizerThread.Run() in /_/src/TextMateSharp/Model/TMModel.cs:line 63
   at TextMateSharp.Model.TMModel.Start() in /_/src/TextMateSharp/Model/TMModel.cs:line 334
   at TextMateSharp.Model.TMModel.SetGrammar(IGrammar grammar) in /_/src/TextMateSharp/Model/TMModel.cs:line 282
   at AvaloniaEdit.TextMate.TextMateColoringTransformer.SetGrammar(IGrammar grammar)
   at AvaloniaEdit.TextMate.TextMate.Installation.SetGrammar(String scopeName)

Found while trying AvaloniaEdit running on the webassembly.

AvaloniaUI/AvaloniaEdit#201

@danipen
Copy link
Owner

danipen commented Feb 2, 2022

@wieslawsoltes thanks for reporting.

Yes, the TMModel uses a thread to tokenize the document in the background.

I'm sorry I'm not familiar with WASM, so I don't really know what could be an alternative for it. How background tasks are executed in WASM? If you provide some tips about I'll be happy to change.

@danipen
Copy link
Owner

danipen commented Feb 2, 2022

I'm reading a little bit about it. It seems that under Mono runtime, threads can be enabled. It's described in this article.

Here is a working example:
https://github.com/jeromelaban/Wasm.Samples/tree/master/Threading/WasmThreading

AFAIK it uses
<MonoWasmRuntimeConfiguration>threads-release</MonoWasmRuntimeConfiguration>

@wieslawsoltes
Copy link
Author

I'm reading a little bit about it. It seems that under Mono runtime, threads can be enabled. It's described in this article.

Here is a working example: https://github.com/jeromelaban/Wasm.Samples/tree/master/Threading/WasmThreading

AFAIK it uses <MonoWasmRuntimeConfiguration>threads-release</MonoWasmRuntimeConfiguration>

This does not work with AvaloniaUI that use under the hood Blazor.

System.PlatformNotSupportedException: Operation is not supported on this platform.
blazor.webassembly.js:1    at System.Threading.Thread.Start()

@danipen
Copy link
Owner

danipen commented Feb 3, 2022

Any ideas about this?

I don't really know what could be an alternative for it. How background tasks are executed in Avalonia WASM? If you provide some tips about I'll be happy to change.

@ljcollins25
Copy link

I recently ran into this issue as well. My understanding is that with .net 5/6, this functionality is no longer available. That said, Task.Run() can be used, but the work should be split into small chunks to avoid blocking the UI since ultimately, its running single-threaded.

References:
https://github.com/unoplatform/Uno.Wasm.Bootstrap#threads-support
dotnet/aspnetcore#17730

@mattkanwisher
Copy link

https://docs.microsoft.com/en-us/dotnet/api/system.threading.tasks.task.run?view=net-6.0

We are running into same issue. I may take a stab at doing a port

@danipen
Copy link
Owner

danipen commented May 16, 2022

@wieslawsoltes could you please check if #18 allows you now to use AvaloniaEdit with WebAssembly? Thanks!

@danipen
Copy link
Owner

danipen commented May 16, 2022

@mattkanwisher could you take a look into the changes to see if the implementation looks good? Thanks!

@danipen
Copy link
Owner

danipen commented May 16, 2022

I already tested it with AvaloniaEdit and it works as expected (in Desktop).

@danipen
Copy link
Owner

danipen commented May 16, 2022

In WebAssembly, parsing the tokens may block the UI thread (as there is no real multithreading yet), but I guess this is not going to be an issue since the execution is split into chunks of 5ms max.

BTW, the good news is that it seems that blazor real multi-threading is coming for .net 7.

@wieslawsoltes
Copy link
Author

@wieslawsoltes could you please check if #18 allows you now to use AvaloniaEdit with WebAssembly? Thanks!

I tested but got different exception

image

Unhandled Exception:
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 System.NullReferenceException: Object reference not set to an instance of an object.
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at AvaloniaEdit.TextMate.TextMateColoringTransformer.TransformLine(DocumentLine line, ITextRunConstructionContext context)
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at AvaloniaEdit.TextMate.GenericLineTransformer.ColorizeLine(DocumentLine line)
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at AvaloniaEdit.Rendering.DocumentColorizingTransformer.Colorize(ITextRunConstructionContext context)
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at AvaloniaEdit.Rendering.ColorizingTransformer.Transform(ITextRunConstructionContext context, IList`1 elements)
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at AvaloniaEdit.Rendering.VisualLine.RunTransformers(ITextRunConstructionContext context, IVisualLineTransformer[] transformers)
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at AvaloniaEdit.Rendering.TextView.BuildVisualLine(DocumentLine documentLine, TextRunProperties globalTextRunProperties, TextParagraphProperties paragraphProperties, VisualLineElementGenerator[] elementGeneratorsArray, IVisualLineTransformer[] lineTransformersArray, Size availableSize)
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at AvaloniaEdit.Rendering.TextView.CreateAndMeasureVisualLines(Size availableSize)
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at AvaloniaEdit.Rendering.TextView.MeasureOverride(Size availableSize)
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 46
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding, Thickness borderThickness) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 39
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Presenters.ContentPresenter.MeasureOverride(Size availableSize) in /_/src/Avalonia.Controls/Presenters/ContentPresenter.cs:line 366
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.DockPanel.MeasureOverride(Size constraint) in /_/src/Avalonia.Controls/DockPanel.cs:line 112
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureOverride(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 625
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 46
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding, Thickness borderThickness) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 39
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Presenters.ContentPresenter.MeasureOverride(Size availableSize) in /_/src/Avalonia.Controls/Presenters/ContentPresenter.cs:line 366
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Presenters.ScrollContentPresenter.MeasureOverride(Size availableSize) in /_/src/Avalonia.Controls/Presenters/ScrollContentPresenter.cs:line 246
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV) in /_/src/Avalonia.Controls/Grid.cs:line 1150
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged) in /_/src/Avalonia.Controls/Grid.cs:line 1005
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV) in /_/src/Avalonia.Controls/Grid.cs:line 968
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Grid.MeasureOverride(Size constraint) in /_/src/Avalonia.Controls/Grid.cs:line 489
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureOverride(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 625
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 46
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding, Thickness borderThickness) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 39
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Border.MeasureOverride(Size availableSize) in /_/src/Avalonia.Controls/Border.cs:line 187
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureOverride(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 625
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 46
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding, Thickness borderThickness) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 39
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Presenters.ContentPresenter.MeasureOverride(Size availableSize) in /_/src/Avalonia.Controls/Presenters/ContentPresenter.cs:line 366
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.DockPanel.MeasureOverride(Size constraint) in /_/src/Avalonia.Controls/DockPanel.cs:line 112
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 46
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding, Thickness borderThickness) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 39
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Border.MeasureOverride(Size availableSize) in /_/src/Avalonia.Controls/Border.cs:line 187
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureOverride(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 625
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.DockPanel.MeasureOverride(Size constraint) in /_/src/Avalonia.Controls/DockPanel.cs:line 112
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 46
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding, Thickness borderThickness) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 39
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Presenters.ContentPresenter.MeasureOverride(Size availableSize) in /_/src/Avalonia.Controls/Presenters/ContentPresenter.cs:line 366
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureOverride(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 625
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 46
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding, Thickness borderThickness) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 39
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Presenters.ContentPresenter.MeasureOverride(Size availableSize) in /_/src/Avalonia.Controls/Presenters/ContentPresenter.cs:line 366
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV) in /_/src/Avalonia.Controls/Grid.cs:line 1150
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged) in /_/src/Avalonia.Controls/Grid.cs:line 1005
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV) in /_/src/Avalonia.Controls/Grid.cs:line 968
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Grid.MeasureOverride(Size constraint) in /_/src/Avalonia.Controls/Grid.cs:line 489
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.DockPanel.MeasureOverride(Size constraint) in /_/src/Avalonia.Controls/DockPanel.cs:line 112
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureOverride(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 625
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 46
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding, Thickness borderThickness) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 39
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Presenters.ContentPresenter.MeasureOverride(Size availableSize) in /_/src/Avalonia.Controls/Presenters/ContentPresenter.cs:line 366
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureOverride(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 625
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 46
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding, Thickness borderThickness) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 39
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Presenters.ContentPresenter.MeasureOverride(Size availableSize) in /_/src/Avalonia.Controls/Presenters/ContentPresenter.cs:line 366
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 46
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Decorator.MeasureOverride(Size availableSize) in /_/src/Avalonia.Controls/Decorator.cs:line 54
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Primitives.VisualLayerManager.MeasureOverride(Size availableSize) in /_/src/Avalonia.Controls/Primitives/VisualLayerManager.cs:line 133
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 46
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding, Thickness borderThickness) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 39
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Border.MeasureOverride(Size availableSize) in /_/src/Avalonia.Controls/Border.cs:line 187
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureOverride(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 625
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureOverride(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 625
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Embedding.EmbeddableControlRoot.MeasureOverride(Size availableSize) in /_/src/Avalonia.Controls/Embedding/EmbeddableControlRoot.cs:line 45
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutManager.Measure(ILayoutable control) in /_/src/Avalonia.Layout/LayoutManager.cs:line 287
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutManager.ExecuteInitialLayoutPass() in /_/src/Avalonia.Layout/LayoutManager.cs:line 174
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Embedding.EmbeddableControlRoot.Prepare() in /_/src/Avalonia.Controls/Embedding/EmbeddableControlRoot.cs:line 28
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Web.Blazor.AvaloniaView.<OnAfterRenderAsync>b__40_1() in /_/src/Web/Avalonia.Web.Blazor/AvaloniaView.razor.cs:line 303
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_1(Object state)
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at System.Threading.QueueUserWorkItemCallbackDefaultContext.Execute()
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at System.Threading.ThreadPoolWorkQueue.Dispatch()
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at System.Threading.ThreadPool.Callback()
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 ThreadPool Callback threw an unhandled exception of type System.NullReferenceException
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 Unhandled Exception:
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 System.NullReferenceException: Object reference not set to an instance of an object.
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at AvaloniaEdit.TextMate.TextMateColoringTransformer.TransformLine(DocumentLine line, ITextRunConstructionContext context)
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at AvaloniaEdit.TextMate.GenericLineTransformer.ColorizeLine(DocumentLine line)
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at AvaloniaEdit.Rendering.DocumentColorizingTransformer.Colorize(ITextRunConstructionContext context)
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at AvaloniaEdit.Rendering.ColorizingTransformer.Transform(ITextRunConstructionContext context, IList`1 elements)
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at AvaloniaEdit.Rendering.VisualLine.RunTransformers(ITextRunConstructionContext context, IVisualLineTransformer[] transformers)
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at AvaloniaEdit.Rendering.TextView.BuildVisualLine(DocumentLine documentLine, TextRunProperties globalTextRunProperties, TextParagraphProperties paragraphProperties, VisualLineElementGenerator[] elementGeneratorsArray, IVisualLineTransformer[] lineTransformersArray, Size availableSize)
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at AvaloniaEdit.Rendering.TextView.CreateAndMeasureVisualLines(Size availableSize)
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at AvaloniaEdit.Rendering.TextView.MeasureOverride(Size availableSize)
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 46
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding, Thickness borderThickness) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 39
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Presenters.ContentPresenter.MeasureOverride(Size availableSize) in /_/src/Avalonia.Controls/Presenters/ContentPresenter.cs:line 366
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.DockPanel.MeasureOverride(Size constraint) in /_/src/Avalonia.Controls/DockPanel.cs:line 112
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureOverride(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 625
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 46
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding, Thickness borderThickness) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 39
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Presenters.ContentPresenter.MeasureOverride(Size availableSize) in /_/src/Avalonia.Controls/Presenters/ContentPresenter.cs:line 366
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Presenters.ScrollContentPresenter.MeasureOverride(Size availableSize) in /_/src/Avalonia.Controls/Presenters/ScrollContentPresenter.cs:line 246
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV) in /_/src/Avalonia.Controls/Grid.cs:line 1150
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged) in /_/src/Avalonia.Controls/Grid.cs:line 1005
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV) in /_/src/Avalonia.Controls/Grid.cs:line 968
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Grid.MeasureOverride(Size constraint) in /_/src/Avalonia.Controls/Grid.cs:line 489
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureOverride(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 625
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 46
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding, Thickness borderThickness) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 39
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Border.MeasureOverride(Size availableSize) in /_/src/Avalonia.Controls/Border.cs:line 187
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureOverride(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 625
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 46
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding, Thickness borderThickness) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 39
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Presenters.ContentPresenter.MeasureOverride(Size availableSize) in /_/src/Avalonia.Controls/Presenters/ContentPresenter.cs:line 366
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.DockPanel.MeasureOverride(Size constraint) in /_/src/Avalonia.Controls/DockPanel.cs:line 112
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 46
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding, Thickness borderThickness) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 39
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Border.MeasureOverride(Size availableSize) in /_/src/Avalonia.Controls/Border.cs:line 187
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureOverride(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 625
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.DockPanel.MeasureOverride(Size constraint) in /_/src/Avalonia.Controls/DockPanel.cs:line 112
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 46
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding, Thickness borderThickness) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 39
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Presenters.ContentPresenter.MeasureOverride(Size availableSize) in /_/src/Avalonia.Controls/Presenters/ContentPresenter.cs:line 366
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureOverride(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 625
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 46
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding, Thickness borderThickness) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 39
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Presenters.ContentPresenter.MeasureOverride(Size availableSize) in /_/src/Avalonia.Controls/Presenters/ContentPresenter.cs:line 366
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV) in /_/src/Avalonia.Controls/Grid.cs:line 1150
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged) in /_/src/Avalonia.Controls/Grid.cs:line 1005
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV) in /_/src/Avalonia.Controls/Grid.cs:line 968
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Grid.MeasureOverride(Size constraint) in /_/src/Avalonia.Controls/Grid.cs:line 489
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.DockPanel.MeasureOverride(Size constraint) in /_/src/Avalonia.Controls/DockPanel.cs:line 112
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureOverride(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 625
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 46
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding, Thickness borderThickness) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 39
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Presenters.ContentPresenter.MeasureOverride(Size availableSize) in /_/src/Avalonia.Controls/Presenters/ContentPresenter.cs:line 366
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureOverride(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 625
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 46
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding, Thickness borderThickness) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 39
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Presenters.ContentPresenter.MeasureOverride(Size availableSize) in /_/src/Avalonia.Controls/Presenters/ContentPresenter.cs:line 366
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 46
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Decorator.MeasureOverride(Size availableSize) in /_/src/Avalonia.Controls/Decorator.cs:line 54
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Primitives.VisualLayerManager.MeasureOverride(Size availableSize) in /_/src/Avalonia.Controls/Primitives/VisualLayerManager.cs:line 133
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 46
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding, Thickness borderThickness) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 39
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Border.MeasureOverride(Size availableSize) in /_/src/Avalonia.Controls/Border.cs:line 187
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureOverride(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 625
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureOverride(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 625
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Embedding.EmbeddableControlRoot.MeasureOverride(Size availableSize) in /_/src/Avalonia.Controls/Embedding/EmbeddableControlRoot.cs:line 45
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutManager.Measure(ILayoutable control) in /_/src/Avalonia.Layout/LayoutManager.cs:line 287
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutManager.ExecuteMeasurePass() in /_/src/Avalonia.Layout/LayoutManager.cs:line 251
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutManager.InnerLayoutPass() in /_/src/Avalonia.Layout/LayoutManager.cs:line 233
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutManager.ExecuteLayoutPass() in /_/src/Avalonia.Layout/LayoutManager.cs:line 135
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.TopLevel.HandleResized(Size clientSize, PlatformResizeReason reason) in /_/src/Avalonia.Controls/TopLevel.cs:line 397
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Web.Blazor.RazorViewTopLevelImpl.SetClientSize(SKSize size, Double dpi) in /_/src/Web/Avalonia.Web.Blazor/RazorViewTopLevelImpl.cs:line 66
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Web.Blazor.AvaloniaView.OnSizeChanged(SKSize newSize) in /_/src/Web/Avalonia.Web.Blazor/AvaloniaView.razor.cs:line 367
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Web.Blazor.Interop.SizeWatcherInterop.<>c__DisplayClass8_0.<.ctor>b__0(Single x, Single y) in /_/src/Web/Avalonia.Web.Blazor/Interop/SizeWatcherInterop.cs:line 34
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Web.Blazor.Interop.FloatFloatActionHelper.Invoke(Single width, Single height) in /_/src/Web/Avalonia.Web.Blazor/Interop/FloatFloatActionHelper.cs:line 18
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 --- End of stack trace from previous location ---
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Microsoft.JSInterop.Infrastructure.DotNetDispatcher.InvokeSynchronously(JSRuntime jsRuntime, DotNetInvocationInfo& callInfo, IDotNetObjectReference objectReference, String argsJson)
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Microsoft.JSInterop.Infrastructure.DotNetDispatcher.Invoke(JSRuntime jsRuntime, DotNetInvocationInfo& invocationInfo, String argsJson)
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Microsoft.AspNetCore.Components.WebAssembly.Services.DefaultWebAssemblyJSRuntime.InvokeDotNet(String assemblyName, String methodIdentifier, String dotNetObjectId, String argsJson)
window.Module.s.printErr @ blazor.webassembly.js:1
dotnet..1syv0yqefl.js:10166 Uncaught Error: System.NullReferenceException: Object reference not set to an instance of an object.
   at AvaloniaEdit.TextMate.TextMateColoringTransformer.TransformLine(DocumentLine line, ITextRunConstructionContext context)
   at AvaloniaEdit.TextMate.GenericLineTransformer.ColorizeLine(DocumentLine line)
   at AvaloniaEdit.Rendering.DocumentColorizingTransformer.Colorize(ITextRunConstructionContext context)
   at AvaloniaEdit.Rendering.ColorizingTransformer.Transform(ITextRunConstructionContext context, IList`1 elements)
   at AvaloniaEdit.Rendering.VisualLine.RunTransformers(ITextRunConstructionContext context, IVisualLineTransformer[] transformers)
   at AvaloniaEdit.Rendering.TextView.BuildVisualLine(DocumentLine documentLine, TextRunProperties globalTextRunProperties, TextParagraphProperties paragraphProperties, VisualLineElementGenerator[] elementGeneratorsArray, IVisualLineTransformer[] lineTransformersArray, Size availableSize)
   at AvaloniaEdit.Rendering.TextView.CreateAndMeasureVisualLines(Size availableSize)
   at AvaloniaEdit.Rendering.TextView.MeasureOverride(Size availableSize)
   at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
   at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
   at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 46
   at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding, Thickness borderThickness) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 39
   at Avalonia.Controls.Presenters.ContentPresenter.MeasureOverride(Size availableSize) in /_/src/Avalonia.Controls/Presenters/ContentPresenter.cs:line 366
   at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
   at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
   at Avalonia.Controls.DockPanel.MeasureOverride(Size constraint) in /_/src/Avalonia.Controls/DockPanel.cs:line 112
   at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
   at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
   at Avalonia.Layout.Layoutable.MeasureOverride(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 625
   at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
   at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
   at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 46
   at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding, Thickness borderThickness) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 39
   at Avalonia.Controls.Presenters.ContentPresenter.MeasureOverride(Size availableSize) in /_/src/Avalonia.Controls/Presenters/ContentPresenter.cs:line 366
   at Avalonia.Controls.Presenters.ScrollContentPresenter.MeasureOverride(Size availableSize) in /_/src/Avalonia.Controls/Presenters/ScrollContentPresenter.cs:line 246
   at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
   at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
   at Avalonia.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV) in /_/src/Avalonia.Controls/Grid.cs:line 1150
   at Avalonia.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged) in /_/src/Avalonia.Controls/Grid.cs:line 1005
   at Avalonia.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV) in /_/src/Avalonia.Controls/Grid.cs:line 968
   at Avalonia.Controls.Grid.MeasureOverride(Size constraint) in /_/src/Avalonia.Controls/Grid.cs:line 489
   at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
   at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
   at Avalonia.Layout.Layoutable.MeasureOverride(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 625
   at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 559
   at Avalonia.Layout.Layoutable.Measure(Size availableSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 364
   at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 46
   at Avalonia.Layout.Lay
blazor.webassembly.js:1 
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 Unhandled Exception:
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 System.NullReferenceException: Object reference not set to an instance of an object.
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at AvaloniaEdit.TextMate.TextMateColoringTransformer.TransformLine(DocumentLine line, ITextRunConstructionContext context)
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at AvaloniaEdit.TextMate.GenericLineTransformer.ColorizeLine(DocumentLine line)
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at AvaloniaEdit.Rendering.DocumentColorizingTransformer.Colorize(ITextRunConstructionContext context)
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at AvaloniaEdit.Rendering.ColorizingTransformer.Transform(ITextRunConstructionContext context, IList`1 elements)
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at AvaloniaEdit.Rendering.VisualLine.RunTransformers(ITextRunConstructionContext context, IVisualLineTransformer[] transformers)
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at AvaloniaEdit.Rendering.TextView.BuildVisualLine(DocumentLine documentLine, TextRunProperties globalTextRunProperties, TextParagraphProperties paragraphProperties, VisualLineElementGenerator[] elementGeneratorsArray, IVisualLineTransformer[] lineTransformersArray, Size availableSize)
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at AvaloniaEdit.Rendering.TextView.CreateAndMeasureVisualLines(Size availableSize)
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at AvaloniaEdit.Rendering.TextView.MeasureOverride(Size availableSize)
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at AvaloniaEdit.Rendering.TextView.EnsureVisualLines()
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at AvaloniaEdit.Rendering.TextView.ArrangeOverride(Size finalSize)
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.ArrangeCore(Rect finalRect) in /_/src/Avalonia.Layout/Layoutable.cs:line 676
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Arrange(Rect rect) in /_/src/Avalonia.Layout/Layoutable.cs:line 409
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Presenters.ContentPresenter.ArrangeOverrideImpl(Size finalSize, Vector offset) in /_/src/Avalonia.Controls/Presenters/ContentPresenter.cs:line 434
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Presenters.ContentPresenter.ArrangeOverride(Size finalSize) in /_/src/Avalonia.Controls/Presenters/ContentPresenter.cs:line 372
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.ArrangeCore(Rect finalRect) in /_/src/Avalonia.Layout/Layoutable.cs:line 676
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Arrange(Rect rect) in /_/src/Avalonia.Layout/Layoutable.cs:line 409
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.DockPanel.ArrangeOverride(Size arrangeSize) in /_/src/Avalonia.Controls/DockPanel.cs:line 205
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.ArrangeCore(Rect finalRect) in /_/src/Avalonia.Layout/Layoutable.cs:line 676
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Arrange(Rect rect) in /_/src/Avalonia.Layout/Layoutable.cs:line 409
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.ArrangeOverride(Size finalSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 728
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.ArrangeCore(Rect finalRect) in /_/src/Avalonia.Layout/Layoutable.cs:line 676
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Arrange(Rect rect) in /_/src/Avalonia.Layout/Layoutable.cs:line 409
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Presenters.ContentPresenter.ArrangeOverrideImpl(Size finalSize, Vector offset) in /_/src/Avalonia.Controls/Presenters/ContentPresenter.cs:line 434
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Presenters.ContentPresenter.ArrangeOverride(Size finalSize) in /_/src/Avalonia.Controls/Presenters/ContentPresenter.cs:line 372
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Presenters.ScrollContentPresenter.ArrangeOverride(Size finalSize) in /_/src/Avalonia.Controls/Presenters/ScrollContentPresenter.cs:line 262
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.ArrangeCore(Rect finalRect) in /_/src/Avalonia.Layout/Layoutable.cs:line 676
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Arrange(Rect rect) in /_/src/Avalonia.Layout/Layoutable.cs:line 409
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Grid.ArrangeOverride(Size arrangeSize) in /_/src/Avalonia.Controls/Grid.cs:line 556
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.ArrangeCore(Rect finalRect) in /_/src/Avalonia.Layout/Layoutable.cs:line 676
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Arrange(Rect rect) in /_/src/Avalonia.Layout/Layoutable.cs:line 409
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.ArrangeOverride(Size finalSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 728
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.ArrangeCore(Rect finalRect) in /_/src/Avalonia.Layout/Layoutable.cs:line 676
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Arrange(Rect rect) in /_/src/Avalonia.Layout/Layoutable.cs:line 409
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutHelper.ArrangeChild(ILayoutable child, Size availableSize, Thickness padding) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 60
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutHelper.ArrangeChild(ILayoutable child, Size availableSize, Thickness padding, Thickness borderThickness) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 55
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Border.ArrangeOverride(Size finalSize) in /_/src/Avalonia.Controls/Border.cs:line 197
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.ArrangeCore(Rect finalRect) in /_/src/Avalonia.Layout/Layoutable.cs:line 676
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Arrange(Rect rect) in /_/src/Avalonia.Layout/Layoutable.cs:line 409
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.ArrangeOverride(Size finalSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 728
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.ArrangeCore(Rect finalRect) in /_/src/Avalonia.Layout/Layoutable.cs:line 676
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Arrange(Rect rect) in /_/src/Avalonia.Layout/Layoutable.cs:line 409
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Presenters.ContentPresenter.ArrangeOverrideImpl(Size finalSize, Vector offset) in /_/src/Avalonia.Controls/Presenters/ContentPresenter.cs:line 434
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Presenters.ContentPresenter.ArrangeOverride(Size finalSize) in /_/src/Avalonia.Controls/Presenters/ContentPresenter.cs:line 372
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.ArrangeCore(Rect finalRect) in /_/src/Avalonia.Layout/Layoutable.cs:line 676
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Arrange(Rect rect) in /_/src/Avalonia.Layout/Layoutable.cs:line 409
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.DockPanel.ArrangeOverride(Size arrangeSize) in /_/src/Avalonia.Controls/DockPanel.cs:line 205
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.ArrangeCore(Rect finalRect) in /_/src/Avalonia.Layout/Layoutable.cs:line 676
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Arrange(Rect rect) in /_/src/Avalonia.Layout/Layoutable.cs:line 409
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutHelper.ArrangeChild(ILayoutable child, Size availableSize, Thickness padding) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 60
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutHelper.ArrangeChild(ILayoutable child, Size availableSize, Thickness padding, Thickness borderThickness) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 55
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Border.ArrangeOverride(Size finalSize) in /_/src/Avalonia.Controls/Border.cs:line 197
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.ArrangeCore(Rect finalRect) in /_/src/Avalonia.Layout/Layoutable.cs:line 676
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Arrange(Rect rect) in /_/src/Avalonia.Layout/Layoutable.cs:line 409
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.ArrangeOverride(Size finalSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 728
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.ArrangeCore(Rect finalRect) in /_/src/Avalonia.Layout/Layoutable.cs:line 676
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Arrange(Rect rect) in /_/src/Avalonia.Layout/Layoutable.cs:line 409
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.DockPanel.ArrangeOverride(Size arrangeSize) in /_/src/Avalonia.Controls/DockPanel.cs:line 205
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.ArrangeCore(Rect finalRect) in /_/src/Avalonia.Layout/Layoutable.cs:line 676
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Arrange(Rect rect) in /_/src/Avalonia.Layout/Layoutable.cs:line 409
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Presenters.ContentPresenter.ArrangeOverrideImpl(Size finalSize, Vector offset) in /_/src/Avalonia.Controls/Presenters/ContentPresenter.cs:line 434
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Presenters.ContentPresenter.ArrangeOverride(Size finalSize) in /_/src/Avalonia.Controls/Presenters/ContentPresenter.cs:line 372
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.ArrangeCore(Rect finalRect) in /_/src/Avalonia.Layout/Layoutable.cs:line 676
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Arrange(Rect rect) in /_/src/Avalonia.Layout/Layoutable.cs:line 409
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.ArrangeOverride(Size finalSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 728
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.ArrangeCore(Rect finalRect) in /_/src/Avalonia.Layout/Layoutable.cs:line 676
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Arrange(Rect rect) in /_/src/Avalonia.Layout/Layoutable.cs:line 409
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Presenters.ContentPresenter.ArrangeOverrideImpl(Size finalSize, Vector offset) in /_/src/Avalonia.Controls/Presenters/ContentPresenter.cs:line 434
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Presenters.ContentPresenter.ArrangeOverride(Size finalSize) in /_/src/Avalonia.Controls/Presenters/ContentPresenter.cs:line 372
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.ArrangeCore(Rect finalRect) in /_/src/Avalonia.Layout/Layoutable.cs:line 676
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Arrange(Rect rect) in /_/src/Avalonia.Layout/Layoutable.cs:line 409
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Grid.ArrangeOverride(Size arrangeSize) in /_/src/Avalonia.Controls/Grid.cs:line 556
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.ArrangeCore(Rect finalRect) in /_/src/Avalonia.Layout/Layoutable.cs:line 676
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Arrange(Rect rect) in /_/src/Avalonia.Layout/Layoutable.cs:line 409
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.DockPanel.ArrangeOverride(Size arrangeSize) in /_/src/Avalonia.Controls/DockPanel.cs:line 205
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.ArrangeCore(Rect finalRect) in /_/src/Avalonia.Layout/Layoutable.cs:line 676
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Arrange(Rect rect) in /_/src/Avalonia.Layout/Layoutable.cs:line 409
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.ArrangeOverride(Size finalSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 728
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.ArrangeCore(Rect finalRect) in /_/src/Avalonia.Layout/Layoutable.cs:line 676
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Arrange(Rect rect) in /_/src/Avalonia.Layout/Layoutable.cs:line 409
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Presenters.ContentPresenter.ArrangeOverrideImpl(Size finalSize, Vector offset) in /_/src/Avalonia.Controls/Presenters/ContentPresenter.cs:line 434
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Presenters.ContentPresenter.ArrangeOverride(Size finalSize) in /_/src/Avalonia.Controls/Presenters/ContentPresenter.cs:line 372
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.ArrangeCore(Rect finalRect) in /_/src/Avalonia.Layout/Layoutable.cs:line 676
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Arrange(Rect rect) in /_/src/Avalonia.Layout/Layoutable.cs:line 409
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.ArrangeOverride(Size finalSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 728
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.ArrangeCore(Rect finalRect) in /_/src/Avalonia.Layout/Layoutable.cs:line 676
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Arrange(Rect rect) in /_/src/Avalonia.Layout/Layoutable.cs:line 409
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Presenters.ContentPresenter.ArrangeOverrideImpl(Size finalSize, Vector offset) in /_/src/Avalonia.Controls/Presenters/ContentPresenter.cs:line 434
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Presenters.ContentPresenter.ArrangeOverride(Size finalSize) in /_/src/Avalonia.Controls/Presenters/ContentPresenter.cs:line 372
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.ArrangeCore(Rect finalRect) in /_/src/Avalonia.Layout/Layoutable.cs:line 676
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Arrange(Rect rect) in /_/src/Avalonia.Layout/Layoutable.cs:line 409
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutHelper.ArrangeChild(ILayoutable child, Size availableSize, Thickness padding) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 60
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Decorator.ArrangeOverride(Size finalSize) in /_/src/Avalonia.Controls/Decorator.cs:line 60
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Primitives.VisualLayerManager.ArrangeOverride(Size finalSize) in /_/src/Avalonia.Controls/Primitives/VisualLayerManager.cs:line 140
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.ArrangeCore(Rect finalRect) in /_/src/Avalonia.Layout/Layoutable.cs:line 676
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Arrange(Rect rect) in /_/src/Avalonia.Layout/Layoutable.cs:line 409
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutHelper.ArrangeChild(ILayoutable child, Size availableSize, Thickness padding) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 60
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutHelper.ArrangeChild(ILayoutable child, Size availableSize, Thickness padding, Thickness borderThickness) in /_/src/Avalonia.Layout/LayoutHelper.cs:line 55
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Controls.Border.ArrangeOverride(Size finalSize) in /_/src/Avalonia.Controls/Border.cs:line 197
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.ArrangeCore(Rect finalRect) in /_/src/Avalonia.Layout/Layoutable.cs:line 676
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Arrange(Rect rect) in /_/src/Avalonia.Layout/Layoutable.cs:line 409
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.ArrangeOverride(Size finalSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 728
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.ArrangeCore(Rect finalRect) in /_/src/Avalonia.Layout/Layoutable.cs:line 676
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Arrange(Rect rect) in /_/src/Avalonia.Layout/Layoutable.cs:line 409
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.ArrangeOverride(Size finalSize) in /_/src/Avalonia.Layout/Layoutable.cs:line 728
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.ArrangeCore(Rect finalRect) in /_/src/Avalonia.Layout/Layoutable.cs:line 676
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.Layoutable.Arrange(Rect rect) in /_/src/Avalonia.Layout/Layoutable.cs:line 409
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutManager.Arrange(ILayoutable control) in /_/src/Avalonia.Layout/LayoutManager.cs:line 308
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutManager.ExecuteArrangePass() in /_/src/Avalonia.Layout/LayoutManager.cs:line 264
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutManager.InnerLayoutPass() in /_/src/Avalonia.Layout/LayoutManager.cs:line 234
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Layout.LayoutManager.ExecuteLayoutPass() in /_/src/Avalonia.Layout/LayoutManager.cs:line 135
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Threading.JobRunner.Job.Avalonia.Threading.JobRunner.IJob.Run() in /_/src/Avalonia.Base/Threading/JobRunner.cs:line 166
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Threading.JobRunner.RunJobs(Nullable`1 priority) in /_/src/Avalonia.Base/Threading/JobRunner.cs:line 37
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Web.Blazor.BlazorWindowingPlatform.<>c__DisplayClass16_0.<Signal>b__0() in /_/src/Web/Avalonia.Web.Blazor/WindowingPlatform.cs:line 85
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at Avalonia.Web.Blazor.BlazorRuntimePlatform.<>c__DisplayClass1_0.<StartSystemTimer>b__0(Object _) in /_/src/Web/Avalonia.Web.Blazor/BlazorRuntimePlatform.cs:line 13
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at System.Threading.TimerQueueTimer.<>c.<.cctor>b__27_0(Object state)
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 --- End of stack trace from previous location ---
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at System.Threading.TimerQueueTimer.CallCallback(Boolean isThreadPool)
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at System.Threading.TimerQueueTimer.Fire(Boolean isThreadPool)
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at System.Threading.TimerQueue.FireNextTimers()
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at System.Threading.TimerQueue.PumpTimerQueue(Int64 currentTimeMs)
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1    at System.Threading.TimerQueue.TimeoutCallback()
window.Module.s.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 timeout callback threw a System.NullReferenceException

@danipen
Copy link
Owner

danipen commented May 28, 2022

@wieslawsoltes please can you share a branch in AvaloniaEdit that setups a project for WebAssembly ... so I can try it myself? I can try to provide a fix...

@wieslawsoltes
Copy link
Author

@wieslawsoltes please can you share a branch in AvaloniaEdit that setups a project for WebAssembly ... so I can try it myself? I can try to provide a fix...

I don't have that, I just copied changes into my project I originally used. I can create one in Avalonia Edit repo.

@danipen
Copy link
Owner

danipen commented May 28, 2022

Yes that would be ok.

@danipen
Copy link
Owner

danipen commented May 29, 2022

@wieslawsoltes I did some tests and I noticed that the onigwrap native dll (that provides interop between Oniguruma and dotnet managed code) is not available in wasm. I think it needs to be compiled for wasm. I don't have any experience with wasm, so any help would be appreciated.

@wieslawsoltes
Copy link
Author

@wieslawsoltes I did some tests and I noticed that the onigwrap native dll (that provides interop between Oniguruma and dotnet managed code) is not available in wasm. I think it needs to be compiled for wasm. I don't have any experience with wasm, so any help would be appreciated.

Sorry I do not have experience compiling for wasm either.

@danipen danipen added the help wanted Extra attention is needed label Sep 19, 2022
@danipen
Copy link
Owner

danipen commented Oct 23, 2022

Some progress: #18 (comment)

But still getting issues...

@Numpsy
Copy link
Contributor

Numpsy commented Oct 26, 2022

I had a go at rebuilding a test app using .NET 7 and the nightly builds of Avalonia, and using the WasmEnableThreads setting and immediately fell over mono/SkiaSharp#2285 .
I'll give it another go when the fix for that one makes it into a release.

@danipen
Copy link
Owner

danipen commented Oct 26, 2022

Awesome thanks for the update. cc/ @danwalmsley may be interested on this topic.

@Numpsy
Copy link
Contributor

Numpsy commented Nov 6, 2022

A small update on my experimenting:

I managed to get an Avalonia based test app compiled in multi-threaded mode using the latest versions of your TextMateSharp Wasm package and the preview builds of SkiaSharp/HarfBuzzSharp, although I had to fiddle the native file references in Avalonia.Web.targets in order for it to pick up the right version of the binaries.

However - I then fell over another issue about needing to set some CORS headers in order for the browser to allow the threading stuff to work, and I couldn't manage to get that going, so now i'm going to have a go at 'simplifying' things by trying a more self contained Avalonia.Web app rather than something that uses Blazor.

/Hopes that some of the many moving pieces here might settle down when all the .NET 7 versions of everything get released!

@danipen
Copy link
Owner

danipen commented Nov 6, 2022

cc/ @danwalmsley

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants