"Index out of range" error when updating media

Issue #7944 open
Alex Carter created an issue

This error appeared after updating metadata and media. Media was not displaying for some reason on the last added platform (Atari 7800). Refreshing images or restarting didn’t help. Tried updating, and after completing the metadata, it threw up this error while finding media. Launchbox then crashed. After restarting, the media was showing correctly.

Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')

App: LaunchBox
Version: 13.6
Theme: Default
Type: System.ArgumentOutOfRangeException
Site: Void ThrowArgumentOutOfRange_IndexException()
Source: System.Private.CoreLib

at System.Linq.Enumerable.WhereListIterator1.ToList() at Unbroken.LaunchBox.Windows.Desktop.MenuActions.DownloadMetadataAndMediaMenuAction.<>c__DisplayClass16_1.PushAbstractUtils(Game game) at Unbroken.LaunchBox.Windows.Threading.<>c__DisplayClass7_11.SelectCommonFilter()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

Recent Log:

14:40:55 Exception

Comments (2)

  1. James Lott

    Same issue, occurred after fresh launch and selecting to update media:

    Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')

    App: LaunchBox
    Version: 13.6
    Theme: Default
    Type: System.ArgumentOutOfRangeException
    Site: Void ThrowArgumentOutOfRange_IndexException()
    Source: System.Private.CoreLib at System.Linq.Enumerable.WhereListIterator1.ToList() at Unbroken.LaunchBox.Windows.Desktop.MenuActions.DownloadMetadataAndMediaMenuAction.<>c__DisplayClass16_1.PushAbstractUtils(Game game) at Unbroken.LaunchBox.Windows.Threading.<>c__DisplayClass7_11.SelectCommonFilter() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
    --- End of stack trace from previous location ---
    at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

    Recent Log: 7:51:27 AM Exception

  2. Log in to comment