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

(Linux) Doesn't launch #22

Open
AzureWings0 opened this issue Jun 16, 2023 · 6 comments
Open

(Linux) Doesn't launch #22

AzureWings0 opened this issue Jun 16, 2023 · 6 comments

Comments

@AzureWings0
Copy link

Arch Linux XFCE
GPU: AMD RX 6700XT

I downloaded the mod manager for linux but it doesn't launch at all. I tried running it from the terminal and there was no output.

@YTJVDCM
Copy link

YTJVDCM commented Jul 4, 2023

Arch Linux with KDE Plasma
CPU : AMD Ryzen 7 5800X
GPU : AMD Radeon RX 7900 XTX

On version 0.0.5, it doesn't work in my environment either.
No errors or other messages and it exits with status 255.

On 0.0.4, it fails with this message with SIGABRT

Unhandled exception. System.InvalidOperationException: Default font family name can't be null or empty.
   at Avalonia.Media.FontManager..ctor(IFontManagerImpl) in /_/src/Avalonia.Base/Media/FontManager.cs:line 33
   at Avalonia.Media.FontManager.get_Current() in /_/src/Avalonia.Base/Media/FontManager.cs:line 53
   at Avalonia.Media.Typeface.get_GlyphTypeface() in /_/src/Avalonia.Base/Media/Typeface.cs:line 84
   at Avalonia.Rendering.Composition.Server.ServerCompositionTarget..ctor(ServerCompositor, Func`1) in /_/src/Avalonia.Base/Rendering/Composition/Server/ServerCompositionTarget.cs:line 28
   at Avalonia.Rendering.Composition.Compositor.CreateCompositionTarget(Func`1) in /_/src/Avalonia.Base/Rendering/Composition/Compositor.Factories.cs:line 17
   at Avalonia.Rendering.Composition.CompositingRenderer..ctor(IRenderRoot, Compositor) in /_/src/Avalonia.Base/Rendering/Composition/CompositingRenderer.cs:line 47
   at Avalonia.X11.X11Window.CreateRenderer(IRenderRoot) in /_/src/Avalonia.X11/X11Window.cs:line 394
   at Avalonia.Controls.TopLevel..ctor(ITopLevelImpl, IAvaloniaDependencyResolver ) in /_/src/Avalonia.Controls/TopLevel.cs:line 147
   at Avalonia.Controls.WindowBase..ctor(IWindowBaseImpl, IAvaloniaDependencyResolver ) in /_/src/Avalonia.Controls/WindowBase.cs:line 61
   at Avalonia.Controls.WindowBase..ctor(IWindowBaseImpl) in /_/src/Avalonia.Controls/WindowBase.cs:line 57
   at Avalonia.Controls.Window..ctor(IWindowImpl) in /_/src/Avalonia.Controls/Window.cs:line 230
   at Avalonia.Controls.Window..ctor() in /_/src/Avalonia.Controls/Window.cs:line 221
   at Avalonia.ReactiveUI.ReactiveWindow`1..ctor() in /_/src/Avalonia.ReactiveUI/ReactiveWindow.cs:line 26
   at BeatSaberModManager.Views.Windows.MainWindow..ctor(MainWindowViewModel, ISettings`1)
   at BeatSaberModManager.Program.Container.GetMainWindowField27()
   at BeatSaberModManager.Program.Container.<GetWindowField25>b__162_0()
   at System.Lazy`1.ViaFactory(LazyThreadSafetyMode)
   at System.Lazy`1.ExecutionAndPublication(LazyHelper, Boolean)
   at System.Lazy`1.CreateValue()
   at System.Lazy`1.get_Value()
   at BeatSaberModManager.Program.ViewsModule.CreateMainWindow(Uri , Lazy`1, Lazy`1)
   at BeatSaberModManager.Program.Container.GetWindowField25()
   at BeatSaberModManager.Program.Container.<GetAppField1>b__197_0()
   at System.Lazy`1.ViaFactory(LazyThreadSafetyMode)
   at System.Lazy`1.ExecutionAndPublication(LazyHelper, Boolean)
   at System.Lazy`1.CreateValue()
   at System.Lazy`1.get_Value()
   at BeatSaberModManager.Views.App.OnFrameworkInitializationCompleted()
   at Avalonia.Controls.AppBuilderBase`1.Setup() in /_/src/Avalonia.Controls/AppBuilderBase.cs:line 289
   at Avalonia.Controls.AppBuilderBase`1.SetupWithLifetime(IApplicationLifetime) in /_/src/Avalonia.Controls/AppBuilderBase.cs:line 148
   at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime[T](T, String[], ShutdownMode ) in /_/src/Avalonia.Controls/ApplicationLifetimes/ClassicDesktopStyleApplicationLifetime.cs:line 208
   at BeatSaberModManager.Startup.RunAvaloniaApp()
   at BeatSaberModManager.Startup.RunAsync()
   at BeatSaberModManager.Program.Container.global::StrongInject.IAsyncContainer<BeatSaberModManager.Startup>.RunAsync[TResult,TParam](Func`3, TParam)
   at BeatSaberModManager.Program.Main(String[])
   at BeatSaberModManager.Program.Main(String[])
   at BeatSaberModManager.Program.<Main>(String[] )
fish: Job 1, './BeatSaberModManager' terminated by signal SIGABRT (Abort)

@YTJVDCM
Copy link

YTJVDCM commented Jul 4, 2023

I've solved this problem.

This problem occurs when the system language is set to non-Latin characters such as Japanese and Korean.
So it works when the locale environment variable is changed like this.

$ LC_ALL=C ./BeatSaberModManager

@affederaffe
Copy link
Owner

That's an upstream issue unfortunately, see AvaloniaUI/Avalonia#4427

@SlipperyPete
Copy link

Just had the same issue, needed to install fonts mentioned in upstream issue to workaround, upstream issue looks like it has a integrated workaround now and is close to being actually solved though.

@appleneko2001
Copy link

I've solved this problem.

This problem occurs when the system language is set to non-Latin characters such as Japanese and Korean. So it works when the locale environment variable is changed like this.

$ LC_ALL=C ./BeatSaberModManager

LC_CTYPE=en_US.UTF-8 are also works

@909oce
Copy link

909oce commented Aug 27, 2024

This still happens to me even when trying both LC_ALL and LC_CTYPE, any other fixes?

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

6 participants