StabilityMatrix icon indicating copy to clipboard operation
StabilityMatrix copied to clipboard

Crash on inference, checkpoint manager and model browser

Open lukytux opened this issue 10 months ago • 5 comments

What happened?

  1. Open stability matrix
  2. Go to inference --> did not respond anymore
  3. restart
  4. Go to checkpoint --> crash with message and log. LiteD encounter an error. Details in the inner exception.
  5. restart
  6. Go to model browser --> crash with message and log. LiteD encounter an error. Details in the inner exception.

Exception Details

Exception

LiteAsyncException: LiteDB encounter an error. Details in the inner exception. LiteException: page type must be collection page

Sentry ID

fcd24a21

Stack Trace

at StabilityMatrix.Core.Database.LiteDbContext.TryQueryWithClearOnExceptionAsync[T,TResult](ILiteCollectionAsync`1 collection, Task`1 task) in /Users/runner/work/StabilityMatrix/StabilityMatrix/StabilityMatrix.Core/Database/LiteDbContext.cs:line 293 at StabilityMatrix.Avalonia.ViewModels.CheckpointBrowser.CivitAiBrowserViewModel.SearchModels(Boolean isInfiniteScroll) in /Users/runner/work/StabilityMatrix/StabilityMatrix/StabilityMatrix.Avalonia/ViewModels/CheckpointBrowser/CivitAiBrowserViewModel.cs:line 592 at StabilityMatrix.Avalonia.ViewModels.CheckpointBrowser.CivitAiBrowserViewModel.OnInitialLoadedAsync() in /Users/runner/work/StabilityMatrix/StabilityMatrix/StabilityMatrix.Avalonia/ViewModels/CheckpointBrowser/CivitAiBrowserViewModel.cs:line 272 at AsyncAwaitBestPractices.SafeFireAndForgetExtensions.HandleSafeFireAndForget[TException](Task task, Boolean continueOnCapturedContext, Action`1 onException) at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state) at Avalonia.Threading.SendOrPostCallbackDispatcherOperation.InvokeCore() at Avalonia.Threading.DispatcherOperation.Execute() at Avalonia.Threading.Dispatcher.ExecuteJob(DispatcherOperation job) at Avalonia.Threading.Dispatcher.ExecuteJobsCore(Boolean fromExplicitBackgroundProcessingCallback) at Avalonia.Threading.Dispatcher.Signaled() at Avalonia.Native.Interop.Impl.__MicroComIAvnPlatformThreadingInterfaceEventsVTable.Signaled(Void* this) --- End of stack trace from previous location --- at Avalonia.Native.DispatcherImpl.RunLoop(CancellationToken token) at Avalonia.Native.DispatcherImpl.RunLoop(CancellationToken token) at Avalonia.Threading.DispatcherFrame.Run(IControlledDispatcherImpl impl) at Avalonia.Threading.Dispatcher.PushFrame(DispatcherFrame frame) at Avalonia.Threading.Dispatcher.MainLoop(CancellationToken cancellationToken) at Avalonia.Controls.ApplicationLifetimes.ClassicDesktopStyleApplicationLifetime.StartCore(String[] args) at StabilityMatrix.Avalonia.Program.Main(String[] args) in /Users/runner/work/StabilityMatrix/StabilityMatrix/StabilityMatrix.Avalonia/Program.cs:line 132

   at LiteDB.Engine.LiteEngine.AutoTransaction[T](Func`2 fn)
   at LiteDB.SharedEngine.DeleteMany(String collection, BsonExpression predicate)
   at LiteDB.Async.LiteDatabaseAsync.<>c__DisplayClass37_0`1.<EnqueueAsync>g__Function|0()```

### Version

v2.13.3

### What Operating System are you using?

macOS

lukytux avatar Feb 04 '25 17:02 lukytux

I have try to remove the application and reinstall it but without success. I have try to remove /Users/runner/work/StabilityMatrix directory, no success I have try to delete StabilityMatrix.db but this doesnt change anything...

Stability Matrix crash every time i go to inference, checkpoint manager and model browser... The application is not usable anymore...

What can i try now?

lukytux avatar Feb 05 '25 14:02 lukytux

After removing the .downloads folder and StabilityMatrix.db and StabilityMatrix-log.db the application doesn't crash anymore on inference and model browser but continue to crash on when i go to checkpoint.

lukytux avatar Feb 05 '25 14:02 lukytux

I really love this software it can really help a lot. Big thank's on the the dev! But for now this app is unusable. Anyone to help?

lukytux avatar Feb 07 '25 16:02 lukytux

This may happen when you have two folders or two models with the same name, but differing casing. Did you recently download any new models? It's possible one of them has the same name but capitalized slightly different.

mohnjiles avatar Feb 21 '25 04:02 mohnjiles

related

  • #1149
  • #1081

airtonix avatar Mar 02 '25 11:03 airtonix