Skip to content

Stability Matrix Checkpoint Manager crashes #1232

Closed

Description

@Todgins

What happened?

  1. Open Stability Matrix
  2. Open Checkpoint Manager
  3. Crash

Have recently moved the install from a older drive, Data Directory was re-directed, have deleted "StabilityMatrix.db" and rebooted to no avail.

Exception Details

Exception

LiteAsyncException: LiteDB encounter an error. Details in the inner exception.
NullReferenceException: Object reference not set to an instance of an object.

Sentry ID

2ea76683

Stack Trace

   at StabilityMatrix.Avalonia.ViewModels.CheckpointsPageViewModel.Refresh()
   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.Win32.Win32Platform.WndProc(IntPtr hWnd, UInt32 msg, IntPtr wParam, IntPtr lParam)
   at Avalonia.Win32.Interop.UnmanagedMethods.DispatchMessage(MSG& lpmsg)
   at Avalonia.Win32.Win32DispatcherImpl.RunLoop(CancellationToken cancellationToken)
   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)```
```   at lambda_method141(Closure, Object)
   at LiteDB.BsonMapper.SerializeObject(Type type, Object obj, Int32 depth)
   at LiteDB.BsonMapper.Serialize(Type type, Object obj, Int32 depth)
   at LiteDB.BsonMapper.ToDocument(Type type, Object entity)
   at LiteDB.BsonMapper.ToDocument[T](T entity)
   at LiteDB.LiteCollection`1.GetBsonDocs(IEnumerable`1 documents)+MoveNext()
   at LiteDB.Engine.LiteEngine.<>c__DisplayClass7_0.<Insert>b__0(TransactionService transaction)
   at LiteDB.Engine.LiteEngine.AutoTransaction[T](Func`2 fn)
   at LiteDB.SharedEngine.Insert(String collection, IEnumerable`1 docs, BsonAutoId autoId)
   at LiteDB.Async.LiteDatabaseAsync.<>c__DisplayClass37_0`1.<EnqueueAsync>g__Function|0()```


### Version

2.14.0

### What Operating System are you using?

Windows

Activity

  1. added
    bugSomething isn't working
    crashBugs involving the app crashing to desktop
    on Apr 30, 2025
  2. changed the title [-]Stability Matrix Model Browser crashes[/-] [+]Stability Matrix Checkpoint Manager crashes[/+] on May 1, 2025
  3. Todgins commented on May 1, 2025

    @Todgins
    Author

    Fix/workaround.

    Backup to another drive and delete "models" folder. Slowly migrate models back and boot the Checkpoint Manager to check for errors.
    In my case it was two Loras with bad .cm-info.json files, I imported the .safetensors and used "Edit Metadata" from the Checkpoint Manager to regenerate these.

  4. NMJohns commented on Oct 6, 2025

    @NMJohns

    Fix/workaround.

    Backup to another drive and delete "models" folder. Slowly migrate models back and boot the Checkpoint Manager to check for errors. In my case it was two Loras with bad .cm-info.json files, I imported the .safetensors and used "Edit Metadata" from the Checkpoint Manager to regenerate these.

    How do you identify these bad JSON files?

    Nevermind, deleting StabilityMatrix.db resolved my issue.

  5. added a commit that references this issue on Apr 12, 2026
  6. added a commit that references this issue on Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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