It can not launch on Arch Linux
xezzon
Posts: 2Member
Unhandled exception. System.InvalidOperationException: Default font family name can't be null or empty. at Avalonia.Media.FontManager..ctor(IFontManagerImpl platformImpl) in /Users/tibring/builds/s1x4wF2K/0/lunacy/Avalonia/src/Avalonia.Visuals/Media/FontManager.cs:line 28 at Avalonia.Media.FontManager.get_Current() in /Users/tibring/builds/s1x4wF2K/0/lunacy/Avalonia/src/Avalonia.Visuals/Media/FontManager.cs:line 48 at Avalonia.Media.TextFormatting.TextCharacters.TryGetRunProperties(ReadOnlySlice`1 text, Typeface typeface, Typeface defaultTypeface, Int32& count) in /Users/tibring/builds/s1x4wF2K/0/lunacy/Avalonia/src/Avalonia.Visuals/Media/TextFormatting/TextCharacters.cs:line 138 at Avalonia.Media.TextFormatting.TextCharacters.CreateShapeableRun(ReadOnlySlice`1 text, TextRunProperties defaultProperties) in /Users/tibring/builds/s1x4wF2K/0/lunacy/Avalonia/src/Avalonia.Visuals/Media/TextFormatting/TextCharacters.cs:line 70 ... at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime[T](T builder, String[] args, ShutdownMode shutdownMode) in /Users/tibring/builds/s1x4wF2K/0/lunacy/Avalonia/src/Avalonia.Controls/ApplicationLifetimes/ClassicDesktopStyleApplicationLifetime.cs:line 175 at Lunacy.Program.Main(String[] args) in /builds/lunacy/lunacy/Lunacy/Lunacy.Avalonia/Program.cs:line 46 [1] 173511 abort (core dumped) lunacy
Here is my device information:
Operating System: Manjaro Linux KDE Plasma Version: 5.22.5 KDE Frameworks Version: 5.87.0 Qt Version: 5.15.2 Kernel Version: 5.14.10-1-MANJARO (64-bit) Graphics Platform: X11 Processors: 8 × AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx Memory: 6.7 GiB of RAM Graphics Processor: AMD Radeon Vega 8 Graphics
Detailed logs have been uploaded as attachments.
Comments
One more thing. The version of lunacy I install is 8.0.4.
Hi, xezzon!
Could you try Lunacy snap version? https://snapcraft.io/lunacy
Alex, Lunacy default font family is Inter maybe it was not placed in the right directory during installation. This error is strange because the String value who is returned by Avalonia.Media.FontManager.get_Current() is null or empty string.
This can be help:
first run:
unzip and move all the .ttf to: