Skip to content

ArgumentOutOfRangeException Crash in Python Packages when typing package name #1229

Description

@Targren

What happened?

Trying to search for a python package (xformers) in the sd-webui package entry threw an exception (details pasted below, full zipped log attached)

Steps to reproduce

  1. Selected "Python Packages" from an installed package
  2. Typed "xfor"
  3. Received "An unexpected error occured" window.

stabilitymatrix-log-2025-04-25-18-19-52.zip

Relevant logs

## Exception
: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')
### Sentry ID
[`d34deb2a`](https://stability-matrix.sentry.io/issues/?query=id%3Ad34deb2a739a46ca810b527deb8d7cd8&referrer=sm-app-ex&statsPeriod=90d)
### Stack Trace
   at System.Collections.Generic.List`1.get_Item(Int32 index)
   at System.Collections.ObjectModel.Collection`1.System.Collections.IList.get_Item(Int32 index)
   at Avalonia.Controls.ItemsSourceView`1.GetAt(Int32 index)
   at Avalonia.Controls.Selection.SelectedItems`1.GetEnumerator()+MoveNext()
   at System.Linq.Enumerable.<ToArray>g__EnumerableToArray|314_0[TSource](IEnumerable`1 source)
   at Avalonia.Controls.Selection.InternalSelectionModel.OnSelectionChanged(Object sender, SelectionModelSelectionChangedEventArgs e)
   at Avalonia.Controls.Selection.SelectionModel`1.CommitOperation(Operation operation, Boolean raisePropertyChanged)
   at Avalonia.Controls.Selection.InternalSelectionModel.OnSourceCollectionChangeFinished()
   at Avalonia.Controls.Utils.CollectionChangedEventManager.Entry.<Avalonia.Utilities.IWeakEventSubscriber<System.Collections.Specialized.NotifyCollectionChangedEventArgs>.OnEvent>g__Notify|6_0(INotifyCollectionChanged incc, NotifyCollectionChangedEventArgs args, WeakReference`1[] listeners)
   at Avalonia.Threading.DispatcherOperation.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

v2.14.0

What Operating System are you using?

Linux

Activity

  1. Lord-Vibe commented on May 1, 2025

    @Lord-Vibe

    I can confirm that I've had a similar issue with one trainer. When I open the Python Packages for One Trainer and type "xf" into search, Matrix throws an error and crashes. If I search for anything else, and THEN "xf" it doesn't crash
    but then if I close and reopen python packages for one trainer, it crashes on a first search of "xf."
    A quick test on other packages doesn't have the same error

  2. github-actions commented on Jul 1, 2025

    @github-actions

    This issue is stale because it has been open 60 days with no activity. Remove the stale label or comment, else this will be closed in 7 days.

  3. added
    staleStale issue or inactive for long period of time
    on Jul 1, 2025
  4. Targren commented on Jul 1, 2025

    @Targren
    ContributorAuthor

    Bad bot. Problem still exists in 2.14.2

  5. removed
    staleStale issue or inactive for long period of time
    on Jul 2, 2025
  6. github-actions commented on Sep 1, 2025

    @github-actions

    This issue is stale because it has been open 60 days with no activity. Remove the stale label or comment, else this will be closed in 7 days.

  7. added
    staleStale issue or inactive for long period of time
    on Sep 1, 2025
  8. Targren commented on Sep 1, 2025

    @Targren
    ContributorAuthor

    Issue is still unresolved

  9. removed
    staleStale issue or inactive for long period of time
    on Sep 2, 2025
  10. Targren commented on Sep 8, 2025

    @Targren
    ContributorAuthor

    Still occurring, though now it's intermittent, in 2.15.0

    Confirmed multiple types by searching for "xformers" in "Python Packages" on A1111 and "OneTrainer" packages. Had to search/clear cycle a few times before the exception popped up.

    ArgumentOutOfRangeException
     
       at System.Collections.Generic.List`1.get_Item(Int32 index)
       at System.Collections.ObjectModel.Collection`1.System.Collections.IList.get_Item(Int32 index)
       at Avalonia.Controls.ItemsSourceView`1.GetAt(Int32 index)
       at Avalonia.Controls.Selection.SelectedItems`1.GetEnumerator()+MoveNext()
       at System.Linq.Enumerable.<ToArray>g__EnumerableToArray|314_0[TSource](IEnumerable`1 source)
       at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
       at Avalonia.Controls.Selection.InternalSelectionModel.OnSelectionChanged(Object sender, SelectionModelSelectionChangedEventArgs e)
       at Avalonia.Controls.Selection.SelectionModel`1.CommitOperation(Operation operation, Boolean raisePropertyChanged)
       at Avalonia.Controls.Selection.InternalSelectionModel.OnSourceCollectionChangeFinished()
       at Avalonia.Controls.Utils.CollectionChangedEventManager.Entry.<Avalonia.Utilities.IWeakEventSubscriber<System.Collections.Specialized.NotifyCollectionChangedEventArgs>.OnEvent>g__Notify|6_0(INotifyCollectionChanged incc, NotifyCollectionChangedEventArgs args, WeakReference`1[] listeners)
       at Avalonia.Threading.DispatcherOperation.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)
    
  11. github-actions commented on Nov 8, 2025

    @github-actions

    This issue is stale because it has been open 60 days with no activity. Remove the stale label or comment, else this will be closed in 7 days.

  12. added
    staleStale issue or inactive for long period of time
    on Nov 8, 2025
  13. github-actions commented on Nov 15, 2025

    @github-actions

    This issue was closed because it has been stale for 7 days with no activity.

  14. 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 workingstaleStale issue or inactive for long period of time

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions