midoshouse / ootr-multiworld

An alternative implementation of multiworld for the Ocarina of Time randomizer
https://midos.house/mw
MIT License
9 stars 1 forks source link

Error launching BizHawk after update #35

Closed fenhl closed 10 months ago

fenhl commented 11 months ago

After installing an update for the BizHawk frontend, BizHawk sometimes shows the following error message:

System.NotSupportedException: The given path's format is not supported.
    at System.Security.Util.StringExpressionSet.CanonicalizePath(String path, Boolean needFullPath)
    at System.Security.Util.StringExpressionSet.CreateListFromExpressions(String[] str, Boolean needFullPath)
    at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList)
    at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String path)
    at System.IO.FileSystemWatcher.StartRaisingEvents()
    at BizHawk.Client.EmuHawk.ExternalToolManager.Restart(Config config)
    at BizHawk.Client.EmuHawk.MainForm..ctor(ParsedCLIFlags cliFlags, IGL gl, Func`1 getConfigPath, Func`1 getGlobalConfig, Action`1 updateGlobalSound, String[] args, IMovieSession& movieSession, Boolean& exitEarly)
    at BizHawk.Client.EmuHawk.Program.SubMain(String[] args)

The update installs correctly and launching BizHawk and multiworld manually after the error works, so this is most likely a bug with how a path is formatted in the BizHawk invocation at the end (e.g. current directory), but I have been unable to reproduce in a test environment, so steps to reproduce, ideally from a fresh install (of an older version), would be helpful.

Workaround

If you see this error, simply close and reopen BizHawk and multiworld.