System.Argument.Exception - Illegal characters in path

Issue #4932 resolved
Peter Cumminsky created an issue

Illegal characters in path.

App: LaunchBox
Version: 9.9
Type: System.ArgumentException
Site: Void CheckInvalidPathChars(System.String, Boolean)
Source: mscorlib

at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)
at System.IO.Path.GetFileName(String path)
at System.IO.Path.GetFileNameWithoutExtension(String path)
at (Game )
at Unbroken.LaunchBox.LedBlinky.GameSelect(Game game)
at (<>c__DisplayClass55_0 , Object )
at Unbroken.LaunchBox.Desktop.ViewModels.ContentViewModelBase.<>c__DisplayClass55_0.<OnSelectionChanged>b__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:

10:19:02 Music.NotifyTrackList Invoke WPF
10:19:02 Music.Pause Start
10:19:02 Music.Pause Start
10:19:15 Music.Pause Start
10:19:15 Music.Pause Start
10:19:15 Music.Play Start
10:19:15 Music.Kill Start
10:19:15 Music.Kill Finished
10:19:15 Music.Play Empty Music Path
10:19:15 Music.NotifyTrackList Start
10:19:15 Music.NotifyTrackList Invoke WPF
10:19:33 Music.Play Start
10:19:33 Music.Kill Start
10:19:33 Music.Kill Finished
10:19:33 Music.Play Empty Music Path
10:19:33 Music.NotifyTrackList Start
10:19:33 Music.NotifyTrackList Invoke WPF
10:19:33 Music.Pause Start
10:19:33 Music.Pause Start
10:19:40 Music.Play Start
10:19:40 Music.Kill Start
10:19:40 Music.Kill Finished
10:19:40 Music.Play Empty Music Path
10:19:40 Music.NotifyTrackList Start
10:19:40 Music.NotifyTrackList Invoke WPF
10:19:40 Music.Pause Start
10:19:40 Music.Pause Start
10:19:47 Music.Play Start
10:19:47 Music.Kill Start
10:19:47 Music.Kill Finished
10:19:47 Music.Play Empty Music Path
10:19:47 Music.NotifyTrackList Start
10:19:47 Music.NotifyTrackList Invoke WPF
10:19:47 Music.Pause Start
10:19:47 Music.Pause Start
10:19:56 Music.Play Start
10:19:56 Music.Kill Start
10:19:56 Music.Kill Finished
10:19:56 Music.Play Empty Music Path
10:19:56 Music.NotifyTrackList Start
10:19:56 Music.NotifyTrackList Invoke WPF
10:19:56 Music.Pause Start
10:19:57 Music.Pause Start
10:20:04 Music.Play Start
10:20:04 Music.Kill Start
10:20:04 Music.Kill Finished
10:20:04 Music.Play Empty Music Path
10:20:04 Music.NotifyTrackList Start
10:20:04 Music.NotifyTrackList Invoke WPF
10:20:04 Music.Pause Start
10:20:04 Music.Pause Start
10:20:19 Music.Play Start
10:20:19 Music.Kill Start
10:20:19 Music.Kill Finished
10:20:19 Music.Play Empty Music Path
10:20:19 Music.NotifyTrackList Start
10:20:19 Music.NotifyTrackList Invoke WPF
10:20:19 Music.Pause Start
10:20:19 Music.Pause Start
10:22:22 Music.Play Start
10:22:22 Music.Kill Start
10:22:22 Music.Kill Finished
10:22:22 Music.Play Empty Music Path
10:22:22 Music.NotifyTrackList Start
10:22:22 Music.NotifyTrackList Invoke WPF
10:22:25 Music.Pause Start
10:22:25 Music.Pause Start
10:22:33 Music.Play Start
10:22:33 Music.Kill Start
10:22:33 Music.Kill Finished
10:22:33 Music.Play Empty Music Path
10:22:33 Music.NotifyTrackList Start
10:22:33 Music.NotifyTrackList Invoke WPF
10:22:34 Music.Pause Start
10:22:34 Music.Pause Start
10:29:04 Music.Play Start
10:29:04 Music.Kill Start
10:29:04 Music.Kill Finished
10:29:04 Music.Play Empty Music Path
10:29:04 Music.NotifyTrackList Start
10:29:04 Music.NotifyTrackList Invoke WPF
10:29:07 Music.Stop Start
10:29:07 Music.Kill Start
10:29:07 Music.Kill Finished
10:32:02 Exception

Comments (6)

  1. Peter Cumminsky reporter

    It’s consistent, adding Keystone Kapers to Atari 2600 just after downloading pictures - that must be the source of the illegal characters. Not sure how to remove the pictures - if I select it in the grid it throws the error and crashes.

  2. Peter Cumminsky reporter

    No “Keystone” in images - might be a corrupted GamesDB update - how do I fix that?

  3. Peter Cumminsky reporter

    OK, found the bad image in the online DB - “Advertisement Flyer - Front” for Keystone Kapers. It can’t find the image to download. Not cool that it crashes LauncBox. Removed the image from “Edit” form and now works OK.

  4. Peter Cumminsky reporter

    The way I got it to work was to remove KK entirely from Atari 2600.xml, add a new game, renamed it to Keystone Kapers and downloaded the images which threw a lot of errors but no crash this time; saw that the first image, “Advertisement Flyer - Front” gave a no-image icon and removed that image in the Edit form. Hope this helps.

  5. Jason Carr repo owner

    This appears to be caused by having improper characters in game file paths. Not sure how that would happen, but I've fixed it for the next beta.

  6. Log in to comment