StabilityMatrix
StabilityMatrix copied to clipboard
InvalidOperationException when using Find Connected Meta Data
Throws an exception when trying to the the Find Connected Meta Data button on files that are foldered in one post.
Civitai model in question: https://civitai.com/models/348561/honkai-star-rail-girls-or-ponyxl
Exception
InvalidOperationException: Sequence contains no matching element
Sentry ID
680d976d98a448e9819304b33de75c91
Stack Trace
at System.Linq.ThrowHelper.ThrowNoMatchException()
at System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate)
at StabilityMatrix.Core.Helper.ModelFinder.RemoteFindModel(String hashBlake3)
at StabilityMatrix.Core.Services.MetadataImportService.GetMetadataForFile(FilePath filePath, IProgress`1 progress, Boolean forceReimport)
at StabilityMatrix.Avalonia.ViewModels.CheckpointManager.CheckpointFile.FindConnectedMetadata(Boolean forceReimport)
at CommunityToolkit.Mvvm.Input.AsyncRelayCommand.AwaitAndThrowIfFailed(Task executionTask)
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.Start(String[] args)
at StabilityMatrix.Avalonia.Program.Main(String[] args)