affederaffe / BeatSaberModManager

Yet another mod installer for Beat Saber, heavily inspired by ModAssistant.
MIT License
103 stars 5 forks source link

(Linux) Doesn't launch #22

Open AzureWings0 opened 1 year ago

AzureWings0 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

That's an upstream issue unfortunately, see https://github.com/AvaloniaUI/Avalonia/issues/4427

SlipperyPete commented 1 year ago

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 commented 12 months ago

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 commented 1 month ago

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