affederaffe/BeatSaberModManager

"Refresh Mods" crashes BSMM

Closed this issue · 4 comments

Rycia commented

When hitting "Refresh Mods," sometimes at the end of it BSMM will just.. close.

Rycia commented

for the love of god add more error catching pls

Getting the same issue, but running it in a terminal returns
Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object. at Avalonia.Utilities.WeakEvent2.Subscription.OnEvent(Object , TEventArgs) in //src/Avalonia.Base/Utilities/WeakEvent.cs:line 162
at Avalonia.Utilities.WeakEvents.<>c__DisplayClass5_1.<.cctor>b__7(Object , PropertyChangedEventArgs) in /
/src/Avalonia.Base/Utilities/WeakEvents.cs:line 29
at ReactiveUI.ReactiveObject.ReactiveUI.IReactiveObject.RaisePropertyChanged(PropertyChangedEventArgs) in //src/ReactiveUI/ReactiveObject/ReactiveObject.cs:line 96
at System.Reactive.AnonymousSafeObserver1.OnNext(T) in /_/Rx.NET/Source/src/System.Reactive/AnonymousSafeObserver.cs:line 54 at System.Reactive.Linq.ObservableImpl.SelectMany2.EnumerableSelector.
.OnNext(TSource) in //Rx.NET/Source/src/System.Reactive/Linq/Observable/SelectMany.cs:line 1379
at System.Reactive.Linq.ObservableImpl.Buffer2.Boundaries._.BufferClosingObserver.OnNext(TBufferClosing) in /_/Rx.NET/Source/src/System.Reactive/Linq/Observable/Buffer.cs:line 829 at System.Reactive.Linq.ObservableImpl.Merge1.Observables.
.InnerObserver.OnNext(TSource) in //Rx.NET/Source/src/System.Reactive/Linq/Observable/Merge.cs:line 240
at System.Reactive.Linq.ObservableImpl.Select2.Selector._.OnNext(TSource) in /_/Rx.NET/Source/src/System.Reactive/Linq/Observable/Select.cs:line 48 at System.Reactive.Subjects.Subject1.OnNext(T) in /
/Rx.NET/Source/src/System.Reactive/Subjects/Subject.cs:line 141
at ReactiveUI.IReactiveObjectExtensions.ExtensionState1.RaisePropertyChanged(String) in /_/src/ReactiveUI/ReactiveObject/IReactiveObjectExtensions.cs:line 397 at ReactiveUI.IReactiveObjectExtensions.RaisingPropertyChanged[TSender](TSender, String) in /_/src/ReactiveUI/ReactiveObject/IReactiveObjectExtensions.cs:line 240 at ReactiveUI.OAPHCreationHelperMixin.<>c__DisplayClass14_02.b__0(TRet) in //src/ReactiveUI/ObservableForProperty/OAPHCreationHelperMixin.cs:line 797
at ReactiveUI.ObservableAsPropertyHelper1.<>c__DisplayClass8_0.<.ctor>b__2(T) in /_/src/ReactiveUI/ObservableForProperty/ObservableAsPropertyHelper.cs:line 161 at System.Reactive.AnonymousSafeObserver1.OnNext(T) in /
/Rx.NET/Source/src/System.Reactive/AnonymousSafeObserver.cs:line 43
at System.Reactive.Sink1.ForwardOnNext(TTarget) in /_/Rx.NET/Source/src/System.Reactive/Internal/Sink.cs:line 49 at System.Reactive.ObserveOnObserverNew1.DrainStep(ConcurrentQueue1) in /_/Rx.NET/Source/src/System.Reactive/Internal/ScheduledObserver.cs:line 561 at System.Reactive.ObserveOnObserverNew1.DrainShortRunning(IScheduler) in //Rx.NET/Source/src/System.Reactive/Internal/ScheduledObserver.cs:line 507
at System.Reactive.ObserveOnObserverNew1.<>c.<.cctor>b__17_0(IScheduler, ObserveOnObserverNew1) in /
/Rx.NET/Source/src/System.Reactive/Internal/ScheduledObserver.cs:line 497
at Avalonia.Threading.AvaloniaScheduler.<>c__DisplayClass4_11.<Schedule>b__1() in /_/src/Avalonia.Base/Threading/AvaloniaScheduler.cs:line 47 at Avalonia.Threading.JobRunner.RunJobs(Nullable1) in //src/Avalonia.Base/Threading/JobRunner.cs:line 38
at Avalonia.X11.X11PlatformThreading.CheckSignaled() in /
/src/Avalonia.X11/X11PlatformThreading.cs:line 164
at Avalonia.X11.X11PlatformThreading.RunLoop(CancellationToken) in //src/Avalonia.X11/X11PlatformThreading.cs:line 244
at Avalonia.Threading.Dispatcher.MainLoop(CancellationToken) in /
/src/Avalonia.Base/Threading/Dispatcher.cs:line 61
at Avalonia.Controls.ApplicationLifetimes.ClassicDesktopStyleApplicationLifetime.Start(String[]) in //src/Avalonia.Controls/ApplicationLifetimes/ClassicDesktopStyleApplicationLifetime.cs:line 120
at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime[T](T, String[], ShutdownMode ) in /
/src/Avalonia.Controls/ApplicationLifetimes/ClassicDesktopStyleApplicationLifetime.cs:line 209
at BeatSaberModManager.Startup.RunAvaloniaApp()
at BeatSaberModManager.Startup.RunAsync()
at BeatSaberModManager.Program.Container.global::StrongInject.IAsyncContainer<BeatSaberModManager.Startup>.RunAsync[TResult,TParam](Func3, TParam) at BeatSaberModManager.Program.Main(String[]) at BeatSaberModManager.Program.Main(String[]) at BeatSaberModManager.Program.<Main>(String[] ) Aborted (core dumped)
Which looks like a wayland issue, so I ran it with GDK_BACKEND=x11 and then a window came up with

Screenshot_20230109_230043

Which this looks like one of the mods might not exist anymore? Not entirely sure.

Okay, I figured out what's going on, it's crashing because it's getting over loaded, if you keep hitting "refresh mods" eventually it gets through them all, but after maybe 6, it just dies for some reason.

See #7.