Skip to content

Crash on inference, checkpoint manager and model browser #1142

@lukytux

Description

@lukytux

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcrashBugs involving the app crashing to desktop

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions