Repository navigation
Crash when using {author} on a CivitAI model by a deleted author #1414
Description
What happened?
This occurs when attempting to view the CivitAI model information on a model whose author has been deleted from CivitAI. For example, The Pit LoRA model. (I'm assuming the author was deleted; I have no proof of this except that the author's name is not on the model page on CivitAI.)
If the user changes the "File Name Pattern" field to include {author}, SM will immediately crash. And since that "File Name Pattern" field keeps the most recent pattern for every model detail page opened, the next model that is opened with a deleted author crashes SM again.
Workaround: Browse to a model with an active author account (most of them do) and modify or delete the custom "File Name Pattern."
Guess at a possible fix: Make the {author} variable (and possibly others) null-safe by using an empty string '' when the data for that variable from CivitAI is missing or null.
Exception Details
Exception
NullReferenceException: Object reference not set to an instance of an object.
Sentry ID
Stack Trace
at System.Linq.Enumerable.IListSelectIterator`2.MoveNext()
at System.String.Join(String separator, IEnumerable`1 values)
at StabilityMatrix.Avalonia.Models.Inference.FileNameFormat.GetFileName()
at StabilityMatrix.Avalonia.ViewModels.CheckpointBrowser.CivitDetailsPageViewModel.<OnInitialLoadedAsync>b__102_13(PropertyValue`2 formatProperty)
at System.Reactive.AnonymousSafeObserver`1.OnNext(T value)
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.X11.X11PlatformThreading.CheckSignaled()
at Avalonia.X11.X11PlatformThreading.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)
Version
2.15.0
What Operating System are you using?
Linux
Activity
mohnjiles commentedon Oct 9, 2025
This should be fixed as of v2.15.1, could you update and let me know if you still encounter this please?
SturmB commentedon Oct 20, 2025
Yes, it was fixed. Sorry, I didn't get a chance to try it out until now. Many thanks!