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

ubuntu 22.04 report Unhandled exception. System.InvalidOperationException: Default font family name can't be null or empty. #145

Closed
eccsatan opened this issue Feb 26, 2024 · 1 comment

Comments

@eccsatan
Copy link

~/SukiUI/SukiUI.Demo/bin/Debug/net8.0$ dotnet SukiUI.Demo.dll

Unhandled exception. System.InvalidOperationException: Default font family name can't be null or empty.
at Avalonia.Media.FontManager..ctor(IFontManagerImpl platformImpl)
at Avalonia.Media.FontManager.get_Current()
at Avalonia.AppBuilder.<>c__DisplayClass62_0.b__0(AppBuilder appBuilder)
at Avalonia.AppBuilder.SetupUnsafe()
at Avalonia.AppBuilder.Setup()
at Avalonia.AppBuilder.SetupWithLifetime(IApplicationLifetime lifetime)
at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime(AppBuilder builder, String[] args, ShutdownMode shutdownMode)
at SukiUI.Demo.Program.Main(String[] args) in /home/ubuntu-2204/SukiUI/SukiUI.Demo/Program.cs:line 13

@kikipoulet
Copy link
Owner

Feel like it's more an Avalonia issue than SukiUI.

AvaloniaUI/Avalonia#4427

I tried on Ubuntu to reproduce the bug and it didn't appeared, so I suppose you're up to read all these issues to find a workaround for you, sadly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants