StabilityMatrix icon indicating copy to clipboard operation
StabilityMatrix copied to clipboard

Crash on attempt to change model sharing to "None" on ComfyUI packet

Open SCP002 opened this issue 2 months ago • 0 comments

What happened?

StabilityMatrix was installed in standalone mode with data directory the same as executable. After reinstalling Windows, ran SM again and choose different data directory. Moved all old data except executable to the new data directory. Removed all old broken symbolic links in it (ComfyUI had symbolic link model sharing). Selected installed ComfyUI packet and choose model sharing to "None".

Exception Details

Exception

IOException: Папка не пуста. : 'D:\AI\StabilityMatrix\Data\Packages\ComfyUI\models\checkpoints'.

Sentry ID

1f431d8b

Stack Trace

   at System.IO.FileSystem.RemoveDirectory(String fullPath, Boolean recursive)
   at StabilityMatrix.Core.Helper.SharedFolders.RemoveLinksForPackage[T](Dictionary`2 sharedFolders, DirectoryPath installPath)
   at StabilityMatrix.Core.Models.Packages.BaseGitPackage.RemoveModelFolderLinks(DirectoryPath installDirectory, SharedFolderMethod sharedFolderMethod)
   at StabilityMatrix.Avalonia.ViewModels.PackageManager.PackageCardViewModel.OnIsSharedModelSymlinkChanged(Boolean oldValue, Boolean newValue)
   at StabilityMatrix.Avalonia.ViewModels.PackageManager.PackageCardViewModel.set_IsSharedModelSymlink(Boolean value)
   at StabilityMatrix.Avalonia.ViewModels.PackageManager.PackageCardViewModel.OnIsSharedModelDisabledChanged(Boolean value)
   at StabilityMatrix.Avalonia.ViewModels.PackageManager.PackageCardViewModel.set_IsSharedModelDisabled(Boolean value)
   at Avalonia.Data.Core.ExpressionNodes.MethodCommandNode.Command.Execute(Object parameter)
   at Avalonia.Controls.MenuItem.OnClick(RoutedEventArgs e)
   at Avalonia.Reactive.LightweightObservableBase`1.PublishNext(T value)
   at Avalonia.Interactivity.EventRoute.RaiseEventImpl(RoutedEventArgs e)
   at Avalonia.Interactivity.EventRoute.RaiseEvent(Interactive source, RoutedEventArgs e)
   at Avalonia.Interactivity.Interactive.RaiseEvent(RoutedEventArgs e)
   at Avalonia.Controls.Platform.DefaultMenuInteractionHandler.Click(IMenuItem item)
   at Avalonia.Controls.Platform.DefaultMenuInteractionHandler.PointerReleased(Object sender, PointerReleasedEventArgs e)
   at Avalonia.Interactivity.EventRoute.RaiseEventImpl(RoutedEventArgs e)
   at Avalonia.Interactivity.EventRoute.RaiseEvent(Interactive source, RoutedEventArgs e)
   at Avalonia.Interactivity.Interactive.RaiseEvent(RoutedEventArgs e)
   at Avalonia.Input.MouseDevice.MouseUp(IMouseDevice device, UInt64 timestamp, IInputRoot root, Point p, PointerPointProperties props, KeyModifiers inputModifiers, IInputElement hitTest)
   at Avalonia.Input.MouseDevice.ProcessRawEvent(RawPointerEventArgs e)
   at Avalonia.Controls.TopLevel.<>c.<HandleInput>b__150_0(Object state)
   at Avalonia.Threading.Dispatcher.Send(SendOrPostCallback action, Object arg, Nullable`1 priority)
   at Avalonia.Controls.TopLevel.HandleInput(RawInputEventArgs e)
   at Avalonia.Win32.WindowImpl.AppWndProc(IntPtr hWnd, UInt32 msg, IntPtr wParam, IntPtr lParam)
   at Avalonia.Win32.PopupImpl.WndProc(IntPtr hWnd, UInt32 msg, IntPtr wParam, IntPtr lParam)
   at Avalonia.Win32.WindowImpl.WndProcMessageHandler(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)```

[stabilitymatrix-log-2025-11-04-23-05-53.zip](https://github.com/user-attachments/files/23344720/stabilitymatrix-log-2025-11-04-23-05-53.zip)

### Version

2.15.4

### What Operating System are you using?

Windows

SCP002 avatar Nov 04 '25 20:11 SCP002