Program crashes when searching for images

Issue #5740 resolved
Markus Schreiber created an issue

Hello,

when I try to add the game Wings (Commodore Amiga) to the database, the program crashes with the following message

Value cannot be null. (Parameter 'input')

App: LaunchBox
Version: 11.7
Type: System.ArgumentNullException
Site: System.String Replace (System.String, System.String)
Source: System.Text.RegularExpressions

   at System.Text.RegularExpressions.Regex.Replace (String input, String replacement)
   at Unbroken.LaunchBox.NamingHelper.CoerceValidFileName (String filename)
   at Unbroken.LaunchBox.Windows.Data.Game.GetNewMusicFilePath (String extension)
   at Unbroken.LaunchBox.Windows.Desktop.ViewModels.DownloadImagesViewModel.ebwsPkbTGi ()
   at MbkUVqJpwUuqO60VZZc.aRGMKog3A (Object, MbkUVqJpwUuqO60VZZc)
   at Unbroken.LaunchBox.Windows.Desktop.ViewModels.DownloadImagesViewModel.kotsp9b4FN ()
   at Unbroken.LaunchBox.Windows.Threading. <> c__DisplayClass0_0.zHTefoTDT0k2uwGnhxIc (Object)
   at Unbroken.LaunchBox.Windows.Threading. <> c__DisplayClass0_0.LKvlHaSH5i ()
   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.ThreadHelper.ThreadStart ()

Recent Log:

   09:29:11 Exception

If you need more information, let me know

Skinn0r

Comments (3)

  1. Markus Schreiber reporter

    If I add the game first, save it, and then search for the media, it works. When I do everything in one step, Launchbox crashes.

  2. Markus Schreiber reporter

    Same Problem with the Game Wing Commander (Amiga).

    I added 1750 Windows and MS Dos games without Problems. I tried to add 2 Amiga games. I got the problem.

  3. Christian

    Hello Markus. Thank you for your report. You are right we do have a bug in production build. Good news is that it has been corrected and the fix will be in the next beta release. Until then you have two options to circumvent this.

    1. Save the game before grabbing media

    2. Don't grab manual or music from EmuMovies for the game being added (until after you save)

  4. Log in to comment