BigBox Crash

Issue #5189 new
Ian Murray created an issue

Crashed after launch. Using Colorful theme.

Index was outside the bounds of the array.

App: Big Box
Version: 10.11
Type: System.IndexOutOfRangeException
Site: System.String (Unbroken.LaunchBox.Windows.Data.Game)
Source: Unbroken.LaunchBox.Windows

at (Game )
at Unbroken.LaunchBox.Windows.Data.Game.get_SortTitleOrTitle()
at Unbroken.LaunchBox.Windows.Data.Playlist.<>c.<Sort>b__170_2(Game g)
at System.Linq.EnumerableSorter2.ComputeKeys(TElement[] elements, Int32 count) at System.Linq.EnumerableSorter1.Sort(TElement[] elements, Int32 count)
at System.Linq.OrderedEnumerable1.<GetEnumerator>d__1.MoveNext() at System.Collections.Generic.List1..ctor(IEnumerable1 collection) at (Playlist , IEnumerable1 , String )
at Unbroken.LaunchBox.Windows.Data.Playlist.Sort(IEnumerable1 items, String sortBy) at (Playlist , Boolean , Boolean , Boolean , Boolean , Boolean , Boolean , Boolean ) at Unbroken.LaunchBox.Windows.Data.Playlist.GetGamesManual(Boolean includeHidden, Boolean includeBroken, Boolean excludeGamesMissingVideos, Boolean excludeGamesMissingBoxFrontImage, Boolean excludeGamesMissingScreenshotImage, Boolean excludeGamesMissingClearLogoImage, Boolean excludeGamesMissingBackgroundImage) at (Playlist , Boolean , Boolean , Boolean , Boolean , Boolean , Boolean , Boolean , Boolean ) at Unbroken.LaunchBox.Windows.Data.Playlist.GetGames(Boolean sort, Boolean includeHidden, Boolean includeBroken, Boolean excludeGamesMissingVideos, Boolean excludeGamesMissingBoxFrontImage, Boolean excludeGamesMissingScreenshotImage, Boolean excludeGamesMissingClearLogoImage, Boolean excludeGamesMissingBackgroundImage) at (Boolean , Boolean , Boolean , Boolean , Boolean , Boolean , Boolean , Boolean , IPlatform , HashSet1 )
at Unbroken.LaunchBox.Windows.Data.PlatformCategory.GetAllGamesRecursive(Boolean includePlaylists, Boolean includeHidden, Boolean includeBroken, Boolean excludeGamesMissingVideos, Boolean excludeGamesMissingBoxFrontImage, Boolean excludeGamesMissingScreenshotImage, Boolean excludeGamesMissingClearLogoImage, Boolean excludeGamesMissingBackgroundImage, IPlatform platform, HashSet`1 results)
at (PlatformCategory , Boolean , Boolean , Boolean , Boolean , Boolean , Boolean , Boolean )
at Unbroken.LaunchBox.Windows.Data.PlatformCategory.GetGames(Boolean includeHidden, Boolean includeBroken, Boolean excludeGamesMissingVideos, Boolean excludeGamesMissingBoxFrontImage, Boolean excludeGamesMissingScreenshotImage, Boolean excludeGamesMissingClearLogoImage, Boolean excludeGamesMissingBackgroundImage)
at (PlatformCategory , Boolean , Boolean , Boolean , Boolean , Boolean , Boolean , Boolean )
at Unbroken.LaunchBox.Windows.Data.PlatformCategory.GetGameCount(Boolean includeHidden, Boolean includeBroken, Boolean excludeGamesMissingVideos, Boolean excludeGamesMissingBoxFrontImage, Boolean excludeGamesMissingScreenshotImage, Boolean excludeGamesMissingClearLogoImage, Boolean excludeGamesMissingBackgroundImage)
at (<>c__DisplayClass68_0 )
at Unbroken.LaunchBox.Windows.Root.<>c__DisplayClass68_0.<PrecachePlaylistsAndCategories>b__0()
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.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

Recent Log:

7:51:22 PM Exception

Comments (4)

  1. Retro808

    Prior to the crash on startup did you make any changes to LaunchBox/BigBox. Like an update?

    Do you get the same crash if you try a different theme? If you cannot access BigBox to change the theme because of the crash just go to your \LaunchBox\Themes folder and remove the Colorful theme. (Don’t delete it just move it outside of the themes folder). When you restart BigBox it will use the Default theme. If BigBox does not crash try a different theme and test. Let’s see if we can rule out it being a theme issue.

  2. Ian Murray reporter

    It hasn’t happened again so far. I suspect there may be some issue with either my database files or the parsing, because I had one temporary problem and one ongoing problem.

    The temporary issue was that my Windows games would not update. I could add or remove games, but after exiting and relaunching, the changes were reset. I deleted the whole platform and manually removed the XML file, then loaded one from a backup afterwards and that fixed it.

    The ongoing problem I can reproduce almost every time:

    1. HTPC loads BigBox at launch (via Task Scheduler, set to load 30 seconds after login to give other tasks time to start).
    2. Unlock BigBox, select switch to desktop version
    3. Attempt to drag new ROMs/shortcuts into LaunchBox after it switches. Windows will not accept the window as a drop target, it shows the “circle with a line through it” cursor.
    4. Exit LaunchBox. Attempt to reload it. Splash window/progress bar will appear for a second then close, LaunchBox will not start up, no error messages show up.
    5. Reload it again. LaunchBox will start normally and allow new games to be dropped in from Explorer.

    Every once in a while, it will work without reloading, or reload on the first attempt. But it’s very rare, I have to go through those steps almost every time to add new games. I’m guessing that whatever causes the aborted LaunchBox startup may have caused the empty BigBox database crash. As far as I can tell, there’s no “verify xml integrity” function to check them myself.

  3. Jason Carr repo owner

    Hey all, we’re hoping this has been fixed in the latest beta. If you can test it and confirm, we’d appreciate it. :)

  4. Log in to comment