Crash when Using Tools->Scan For (Added|Removed) ROMs->For All

Issue #4633 resolved
Craig created an issue

Launchbox 9.0, 9.1, 9.2 (all Launchbox.Next) When using Scan for (Added|Removed) ROMs LB allows one to select For All which appears to be an invalid Key to the XML "DB", or is just not properly used. All Platforms is what we mean to use. and that works correctly.

Steps to Reproduce:

  1. Open Launchbox

  2. Select
    Tools->Scan For Removed ROMs->For All or Tools->Scan For Added ROMs->For All

  3. Encounter Crash

Expected Behavior - No Crash and the same result as All Platforms.

Traceback for Removed:

The given key was not present in the dictionary.

App:     LaunchBox
Version: 9.0
Type:    System.Collections.Generic.KeyNotFoundException
Site:    TValue get_Item(TKey)
Source:  mscorlib

   at System.Collections.Concurrent.ConcurrentDictionary`2.get_Item(TKey key)
   at (ScanForRemovedRomsForPlatformMenuAction , Object )
   at Unbroken.LaunchBox.Desktop.MenuActions.ScanForRemovedRomsForPlatformMenuAction.<OnSelect>b__2_0(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()

Recent Log:

   3:12:39 PM Music.Prepare Start
   3:12:39 PM Music.Kill Start
   3:12:39 PM Music.Kill Finished
   3:12:39 PM Music.NotifyTrackList Start
   3:12:39 PM Music.NotifyTrackList Invoke WPF
   3:12:56 PM Exception

Traceback for Added:

Version: 9.0
Type:    System.Collections.Generic.KeyNotFoundException
Site:    TValue get_Item(TKey)
Source:  mscorlib

   at System.Collections.Concurrent.ConcurrentDictionary`2.get_Item(TKey key)
   at (ScanForAddedRomsForPlatformMenuAction , Object )
   at Unbroken.LaunchBox.Desktop.MenuActions.ScanForAddedRomsForPlatformMenuAction.<OnSelect>b__2_0(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()

Recent Log:

   3:18:14 PM Music.Prepare Start
   3:18:14 PM Music.Kill Start
   3:18:14 PM Music.Kill Finished
   3:18:14 PM Music.NotifyTrackList Start
   3:18:14 PM Music.NotifyTrackList Invoke WPF
   3:19:01 PM Exception

Comments (10)

  1. Jason Carr repo owner

    Hi Craig, I'm having trouble pinning this one down. Can you zip up and email me your LaunchBox\Data folder? You can email it to jason@unbrokensoftware.com. Thanks!

  2. Craig reporter

    I just installed a new copy of Launchbox 9.2 on a virtual machine. Updated process below, screenshots, and Data Folder sent as requested.

    1. Open Launchbox
    2. Set the "view mode" to Platforms (Not Platform Categories, The Default view on initial install)
    3. Select Tools->Scan For Added->For All
    4. Crash.
  3. Jason Carr repo owner

    Thank you Craig; I have this fixed for the next beta. Thanks for the detailed info. :)

  4. Log in to comment