Lunacy runtime Unhandled exception

OS: Zorin OS 16.1 x86_64
Kernel: 5.13.0-39-generic
Run Command : snap run lunacy

Unhandled exception. System.InvalidOperationException: Default font family name can’t be null or empty.
at Avalonia.Media.FontManager…ctor(IFontManagerImpl platformImpl) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Visuals\Media\FontManager.cs:line 33
at Avalonia.Media.FontManager.get_Current() in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Visuals\Media\FontManager.cs:line 50
at Avalonia.Media.TextFormatting.TextCharacters.TryGetRunProperties(ReadOnlySlice1 text, Typeface typeface, Typeface defaultTypeface, Int32& count) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Visuals\Media\TextFormatting\TextCharacters.cs:line 131 at Avalonia.Media.TextFormatting.TextCharacters.CreateShapeableRun(ReadOnlySlice1 text, TextRunProperties defaultProperties) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Visuals\Media\TextFormatting\TextCharacters.cs:line 70
at Avalonia.Media.TextFormatting.TextCharacters.GetShapeableCharacters() in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Visuals\Media\TextFormatting\TextCharacters.cs:line 48
at Avalonia.Media.TextFormatting.TextFormatterImpl.FetchTextRuns(ITextSource textSource, Int32 firstTextSourceIndex, TextLineBreak previousLineBreak, TextLineBreak& nextLineBreak) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Visuals\Media\TextFormatting\TextFormatterImpl.cs:line 341
at Avalonia.Media.TextFormatting.TextFormatterImpl.FormatLine(ITextSource textSource, Int32 firstTextSourceIndex, Double paragraphWidth, TextParagraphProperties paragraphProperties, TextLineBreak previousLineBreak) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Visuals\Media\TextFormatting\TextFormatterImpl.cs:line 15
at Avalonia.Media.TextFormatting.TextLayout.UpdateLayout() in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Visuals\Media\TextFormatting\TextLayout.cs:line 367
at Avalonia.Media.TextFormatting.TextLayout…ctor(String text, Typeface typeface, Double fontSize, IBrush foreground, TextAlignment textAlignment, TextWrapping textWrapping, TextTrimming textTrimming, TextDecorationCollection textDecorations, Double maxWidth, Double maxHeight, Double lineHeight, Int32 maxLines, IReadOnlyList`1 textStyleOverrides) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Visuals\Media\TextFormatting\TextLayout.cs:line 72
at Avalonia.Controls.TextBlock.CreateTextLayout(Size constraint, String text) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Controls\TextBlock.cs:line 502
at Avalonia.Controls.Primitives.AccessText.CreateTextLayout(Size constraint, String text) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Controls\Primitives\AccessText.cs:line 82
at Avalonia.Controls.TextBlock.get_TextLayout() in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Controls\TextBlock.cs:line 180
at Avalonia.Controls.TextBlock.MeasureOverride(Size availableSize) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Controls\TextBlock.cs:line 546
at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Layout\Layoutable.cs:line 559
at Avalonia.Layout.Layoutable.Measure(Size availableSize) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Layout\Layoutable.cs:line 364
at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Layout\LayoutHelper.cs:line 46
at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding, Thickness borderThickness) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Layout\LayoutHelper.cs:line 39
at Avalonia.Controls.Presenters.ContentPresenter.MeasureOverride(Size availableSize) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Controls\Presenters\ContentPresenter.cs:line 366
at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Layout\Layoutable.cs:line 559
at Avalonia.Layout.Layoutable.Measure(Size availableSize) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Layout\Layoutable.cs:line 364
at Avalonia.Controls.Grid.MeasureOverride(Size constraint) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Controls\Grid.cs:line 230
at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Layout\Layoutable.cs:line 559
at Avalonia.Layout.Layoutable.Measure(Size availableSize) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Layout\Layoutable.cs:line 364
at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Layout\LayoutHelper.cs:line 46
at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding, Thickness borderThickness) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Layout\LayoutHelper.cs:line 39
at Avalonia.Controls.Border.MeasureOverride(Size availableSize) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Controls\Border.cs:line 189
at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Layout\Layoutable.cs:line 559
at Avalonia.Layout.Layoutable.Measure(Size availableSize) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Layout\Layoutable.cs:line 364
at Avalonia.Layout.Layoutable.MeasureOverride(Size availableSize) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Layout\Layoutable.cs:line 625
at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Layout\Layoutable.cs:line 559
at Avalonia.Layout.Layoutable.Measure(Size availableSize) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Layout\Layoutable.cs:line 364
at Avalonia.Controls.StackPanel.MeasureOverride(Size availableSize) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Controls\StackPanel.cs:line 207
at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Layout\Layoutable.cs:line 559
at Avalonia.Layout.Layoutable.Measure(Size availableSize) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Layout\Layoutable.cs:line 364
at Avalonia.Controls.Presenters.ItemVirtualizer.MeasureOverride(Size availableSize) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Controls\Presenters\ItemVirtualizer.cs:line 221
at Avalonia.Controls.Presenters.ItemsPresenter.MeasureOverride(Size availableSize) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Controls\Presenters\ItemsPresenter.cs:line 139
at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Layout\Layoutable.cs:line 559
at Avalonia.Layout.Layoutable.Measure(Size availableSize) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Layout\Layoutable.cs:line 364
at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Layout\LayoutHelper.cs:line 46
at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding, Thickness borderThickness) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Layout\LayoutHelper.cs:line 39
at Avalonia.Controls.Border.MeasureOverride(Size availableSize) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Controls\Border.cs:line 189
at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Layout\Layoutable.cs:line 559
at Avalonia.Layout.Layoutable.Measure(Size availableSize) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Layout\Layoutable.cs:line 364
at Avalonia.Layout.Layoutable.MeasureOverride(Size availableSize) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Layout\Layoutable.cs:line 625
at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Layout\Layoutable.cs:line 559
at Avalonia.Layout.Layoutable.Measure(Size availableSize) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Layout\Layoutable.cs:line 364
at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Layout\LayoutHelper.cs:line 46
at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding, Thickness borderThickness) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Layout\LayoutHelper.cs:line 39
at Avalonia.Controls.Presenters.ContentPresenter.MeasureOverride(Size availableSize) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Controls\Presenters\ContentPresenter.cs:line 366
at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Layout\Layoutable.cs:line 559
at Avalonia.Layout.Layoutable.Measure(Size availableSize) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Layout\Layoutable.cs:line 364
at Avalonia.Layout.Layoutable.MeasureOverride(Size availableSize) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Layout\Layoutable.cs:line 625
at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Layout\Layoutable.cs:line 559
at Avalonia.Layout.Layoutable.Measure(Size availableSize) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Layout\Layoutable.cs:line 364
at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Layout\LayoutHelper.cs:line 46
at Lunacy.Controls.Lazy.MeasureOverride(Size availableSize) in /root/parts/lunacy/build/Lunacy/Lunacy.UI/Controls/Lazy.cs:line 245
at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Layout\Layoutable.cs:line 559
at Avalonia.Layout.Layoutable.Measure(Size availableSize) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Layout\Layoutable.cs:line 364
at Avalonia.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Controls\Grid.cs:line 1150
at Avalonia.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Controls\Grid.cs:line 1005
at Avalonia.Controls.Grid.MeasureOverride(Size constraint) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Controls\Grid.cs:line 436
at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Layout\Layoutable.cs:line 559
at Avalonia.Layout.Layoutable.Measure(Size availableSize) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Layout\Layoutable.cs:line 364
at Avalonia.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Controls\Grid.cs:line 1150
at Avalonia.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Controls\Grid.cs:line 1005
at Avalonia.Controls.Grid.MeasureOverride(Size constraint) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Controls\Grid.cs:line 438
at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Layout\Layoutable.cs:line 559
at Avalonia.Layout.Layoutable.Measure(Size availableSize) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Layout\Layoutable.cs:line 364
at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Layout\LayoutHelper.cs:line 46
at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding, Thickness borderThickness) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Layout\LayoutHelper.cs:line 39
at Avalonia.Controls.Presenters.ContentPresenter.MeasureOverride(Size availableSize) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Controls\Presenters\ContentPresenter.cs:line 366
at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Layout\Layoutable.cs:line 559
at Avalonia.Layout.Layoutable.Measure(Size availableSize) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Layout\Layoutable.cs:line 364
at Avalonia.Layout.LayoutHelper.MeasureChild(ILayoutable control, Size availableSize, Thickness padding) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Layout\LayoutHelper.cs:line 46
at Avalonia.Controls.Primitives.VisualLayerManager.MeasureOverride(Size availableSize) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Controls\Primitives\VisualLayerManager.cs:line 133
at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Layout\Layoutable.cs:line 559
at Avalonia.Layout.Layoutable.Measure(Size availableSize) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Layout\Layoutable.cs:line 364
at Avalonia.Layout.Layoutable.MeasureOverride(Size availableSize) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Layout\Layoutable.cs:line 625
at Avalonia.Controls.Window.MeasureOverride(Size availableSize) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Controls\Window.cs:line 888
at Avalonia.Controls.WindowBase.MeasureCore(Size availableSize) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Controls\WindowBase.cs:line 243
at Avalonia.Layout.Layoutable.Measure(Size availableSize) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Layout\Layoutable.cs:line 364
at Avalonia.Layout.LayoutManager.Measure(ILayoutable control) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Layout\LayoutManager.cs:line 287
at Avalonia.Layout.LayoutManager.ExecuteInitialLayoutPass() in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Layout\LayoutManager.cs:line 174
at Avalonia.Controls.Window.ShowCore(Window parent) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Controls\Window.cs:line 688
at Avalonia.Controls.Window.Show() in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Controls\Window.cs:line 626
at Avalonia.Controls.ApplicationLifetimes.ClassicDesktopStyleApplicationLifetime.ShowMainWindow() in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Controls\ApplicationLifetimes\ClassicDesktopStyleApplicationLifetime.cs:line 141
at Avalonia.Controls.ApplicationLifetimes.ClassicDesktopStyleApplicationLifetime.Start(String[] args) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Controls\ApplicationLifetimes\ClassicDesktopStyleApplicationLifetime.cs:line 130
at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime[T](T builder, String[] args, ShutdownMode shutdownMode) in C:\Users\brutal\source\repos\gitlab\Avalonia\src\Avalonia.Controls\ApplicationLifetimes\ClassicDesktopStyleApplicationLifetime.cs:line 187
at Lunacy.Program.Main(String[] args) in /root/parts/lunacy/build/Lunacy/Lunacy/Program.cs:line 16

================

Hey there,

Could you specify your issue a bit? If it’s the one with Lunacy crashing at the launch – we’re working on fixing it at the moment. We’re thinking that it’s probably connected with fonts.