goatcorp / FFXIVQuickLauncher

Custom launcher for FFXIV
https://goatcorp.github.io/
GNU General Public License v3.0
2.8k stars 325 forks source link

Unexpected error has occurred (Item has already been added. Key in dictionary: 'Path' Key being added: 'PATH') #1161

Open affiniti81 opened 2 years ago

affiniti81 commented 2 years ago

Update disclaimer

What did you do?

Installed XIVLauncher & tried to run it for the very first time. I don't have any plugins downloaded or installed yet. I tried google'ing for this issue but didn't find anything. Sorry, first time posting on Github, not very familiar with this site, hope I did it right!

Platform

Windows

Wine/Proton runner version

No response

Relevant log output

System.ArgumentException: Item has already been added. Key in dictionary: 'Path'  Key being added: 'PATH'
   at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add)
   at System.Diagnostics.ProcessStartInfo.get_EnvironmentVariables()
   at XIVLauncher.Common.Windows.WindowsDalamudRunner.Run(FileInfo runner, Boolean fakeLogin, FileInfo gameExe, String gameArgs, IDictionary`2 environment, DalamudLoadMethod loadMethod, DalamudStartInfo startInfo) in C:\goatsoft\xl\XIVLauncher.Common.Windows\WindowsDalamudRunner.cs:line 52
   at XIVLauncher.Common.Dalamud.DalamudLauncher.Run(FileInfo gameExe, String gameArgs, IDictionary`2 environment) in C:\goatsoft\xl\XIVLauncher.Common\Dalamud\DalamudLauncher.cs:line 85
   at XIVLauncher.Common.Game.Launcher.LaunchGame(IGameRunner runner, String sessionId, Int32 region, Int32 expansionLevel, Boolean isSteamServiceAccount, String additionalArguments, DirectoryInfo gamePath, Boolean isDx11, ClientLanguage language, Boolean encryptArguments, DpiAwareness dpiAwareness) in C:\goatsoft\xl\XIVLauncher.Common\Game\Launcher.cs:line 268
   at XIVLauncher.Windows.ViewModel.MainWindowViewModel.<StartGameAndAddon>d__29.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at XIVLauncher.Windows.ViewModel.MainWindowViewModel.<TryProcessLoginResult>d__24.MoveNext() in D:\a\FFXIVQuickLauncher\FFXIVQuickLauncher\src\XIVLauncher\Windows\ViewModel\MainWindowViewModel.cs:line 616

Version: 6.2.44.0
Git Hash: 6.2.44-0-g9f0b8dd
Context: Login
OS: Microsoft Windows NT 6.2.9200.0
64bit? True
DX11? True
Addons Enabled? True
Auto Login Enabled? False
Language: English
LauncherLanguage: English
Game path: C:\Program Files (x86)\Games\SquareEnix\FINAL FANTASY XIV - A Realm Reborn
affiniti81 commented 2 years ago

Ok so I went into settings and disabled Dalmud and it worked. But without Dalmud, I can't load addons if I want to, correct?

reiichi001 commented 2 years ago

Could we see your full launcher log please?

You can either get this by posting %appdata%\xivlauncher\output.log or you can upload a troubleshooting pack by going into XIVLauncher's settings -> About tab, and clicking on the large logo image. (This will generate one for you)

affiniti81 commented 2 years ago

Could we see your full launcher log please?

You can either get this by posting %appdata%\xivlauncher\output.log or you can upload a troubleshooting pack by going into XIVLauncher's settings -> About tab, and clicking on the large logo image. (This will generate one for you)

I actually got it to work. I exited the game, switched Dalmud to "legacy", and logged-in without any issue. So I then logged back out, switched it back to "New", and now it works without errors.