LB Boot Loop w Error

Issue #5955 resolved
Dave Nelson created an issue

Boot loop with error:

Value cannot be null. (Parameter 'key')

App: Big Box
Version: 11.10-beta-2
Type: System.ArgumentNullException
Site: Void ThrowArgumentNullException(System.ExceptionArgument)
Source: System.Private.CoreLib

at System.Collections.Generic.Dictionary2.FindEntry(TKey key) at Unbroken.LaunchBox.Windows.Data.PlaylistGame.GetGame(Dictionary2& platformFileNames, Dictionary2& platformTitles, Dictionary2& platformRoughTitles)
at PagePolicy.StartStatelessRule(Object , Dictionary2& platformFileNames, Dictionary2& platformTitles, Dictionary2& platformRoughTitles, PagePolicy ) at Unbroken.LaunchBox.Windows.Data.Playlist.<>c__DisplayClass174_0.InitDataBridge(PlaylistGame g) at System.Linq.Enumerable.SelectEnumerableIterator2.MoveNext()
at System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext() at System.Collections.Generic.LargeArrayBuilder1.AddRange(IEnumerable1 items) at System.Collections.Generic.EnumerableHelpers.ToArray[T](IEnumerable1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable1 source) at Unbroken.LaunchBox.Windows.Data.Playlist.ValidateDataPublisher(IEnumerable1 init, String cust)
at ProccesorPolicy.StartStatelessRule(Object , IEnumerable`1 init, String cust, ProccesorPolicy )
at Unbroken.LaunchBox.Windows.Data.Playlist.InvokeDataPublisher(Boolean vneeded, Boolean usevisitor, Boolean allowdir, Boolean isord2, Boolean setup3stop, Boolean useconnection4, Boolean iscfg5)
at ContextPolicy.StartStatelessRule(Object , Boolean includeHidden, Boolean includeBroken, Boolean excludeGamesMissingVideos, Boolean excludeGamesMissingBoxFrontImage, Boolean excludeGamesMissingScreenshotImage, Boolean excludeGamesMissingClearLogoImage, Boolean excludeGamesMissingBackgroundImage, ContextPolicy )
at Unbroken.LaunchBox.Windows.Data.Playlist.GetGames(Boolean sort, Boolean includeHidden, Boolean includeBroken, Boolean excludeGamesMissingVideos, Boolean excludeGamesMissingBoxFrontImage, Boolean excludeGamesMissingScreenshotImage, Boolean excludeGamesMissingClearLogoImage, Boolean excludeGamesMissingBackgroundImage)
at BridgePolicy.StartStatelessRule(Object , Boolean sort, Boolean includeHidden, Boolean includeBroken, Boolean excludeGamesMissingVideos, Boolean excludeGamesMissingBoxFrontImage, Boolean excludeGamesMissingScreenshotImage, Boolean excludeGamesMissingClearLogoImage, Boolean excludeGamesMissingBackgroundImage, BridgePolicy )
at Unbroken.LaunchBox.Windows.Data.Playlist.GetGameCount(Boolean includeHidden, Boolean includeBroken, Boolean excludeGamesMissingVideos, Boolean excludeGamesMissingBoxFrontImage, Boolean excludeGamesMissingScreenshotImage, Boolean excludeGamesMissingClearLogoImage, Boolean excludeGamesMissingBackgroundImage)
at DecoratorPolicy.StartStatelessRule(Object , Boolean includeBroken, Boolean includeHidden, Boolean excludeGamesMissingVideos, Boolean excludeGamesMissingBoxFrontImage, Boolean excludeGamesMissingScreenshotImage, Boolean excludeGamesMissingClearLogoImage, Boolean excludeGamesMissingBackgroundImage, DecoratorPolicy )
at Unbroken.LaunchBox.Windows.Root.<>c__DisplayClass71_0.CountDataWrapper()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

Recent Log:

11:14:27 AM Exception

Comments (11)

  1. Christian

    Thanks for the report. I am seeing in the code HOW this error was thrown and am correcting it, but the cause wouldn’t happen in a normal use case, leading me to believe some of your data files may be corrupted. Would it be possible for you to zip up your data folder (\\LaunchBox\Data) and attach it to the ticket so I can review it.

  2. Dave Nelson reporter
      <div class="preview-container wiki-content"><!-- loaded via ajax --></div>
      <div class="mask"></div>
    </div>
    

    </div> </form>

  3. Dave Nelson reporter

    If this is just a mess up on my end and not a widely reported bug with this beta version, I’d like to know (if possible) what I did wrong to prevent this in the future. Thanks in advance for your help.

  4. Christian

    I haven’t looked at the files just yet. The typical causes for what I expect to have happened are: Disk write issue/error, User manually editing files, 3rd party application/plugin corrupted the file by saving bad values. I will be reviewing the data files later today and let you know if anything stands out. They won’t unfortunately tell me HOW it happened though, only that it did.

  5. Christian

    I’m going to assume you are using a third party plugin to import Flashpoint. It would appear the way it saved the data in the playlists caused the issue. It isn’t saving the GameFileName in the data and caused the issue. The code change should eliminate this moving forward and will be in the 11.10 release. Thanks again for this report.

  6. Dave Nelson reporter

    Thanks for looking into it, but I won't be able to benefit from a code change if I can't open LB. Do you have a fixed data folder zip or have any suggestions as to how I can bypass this error to load LB?

  7. Christian

    You would need to remove any manual playlists you have with the issue. From what I saw they were all your playlists for your “Flash” platform. To vet it out yourself go to \\LaunchBox\Data\Playlists\. Open the XML files and look for a <PlaylistGame> tag/group. If you don’t see a <GameFilePath> tag in that PlaylistGame grouping, it will cause this issue.

    You could also look in your \\LaunchBox\Backups\ folder and restore a backup from before you created those playlists

  8. Dave Nelson reporter

    Everything works now after I deleted the imported Flashpoint playlists. Thanks again for all your prompt assistance and guidance, and have a great day!

  9. Christian

    Thanks again for the report. If you don’t mind the ask, what plugin did you use to import Flash? Would like to reach out to the plugin creator and see if we can do anything to improve the experience for those using the plugins and hopefully avoid complications like this.

  10. Log in to comment