System.ArgumentException
System.ArgumentException: An item with the same key has already been added. Key: C:\Program Files (x86)\Common Files\Oracle\Java\javapath\javaw.exe
at System.Collections.Generic.Dictionary2.TryInsert(TKey key, TValue value, InsertionBehavior behavior) at System.Collections.Generic.Dictionary2.Add(TKey key, TValue value)
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable1 source, Func2 keySelector, Func2 elementSelector, IEqualityComparer1 comparer)
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable1 source, Func2 keySelector, Func`2 elementSelector)
at Natsurainko.FluentLauncher.Components.FluentCore.GameCore.GetSuitableJava()
at Natsurainko.FluentLauncher.Components.FluentCore.GameCore.GetLaunchSetting()
at Natsurainko.FluentLauncher.Models.LaunchArrangement..ctor(GameCore core)
at Natsurainko.FluentLauncher.Models.LaunchArrangement.StartNew(GameCore core)
at Natsurainko.FluentLauncher.ViewModels.Home.HomeViewModel.b17_0()
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
at CommunityToolkit.Mvvm.Input.AsyncRelayCommand.AwaitAndThrowIfFailed(Task executionTask)
at System.Threading.Tasks.Task.<>c.b__128_0(Object state)
at Microsoft.UI.Dispatching.DispatcherQueueSynchronizationContext.<>cDisplayClass2_0.b__0()
描述遇到的问题
启动器无法运作
复现问题的步骤
启动器无法运作
期望的表现
能运作
环境
No response
附件
System.ArgumentException System.ArgumentException: An item with the same key has already been added. Key: C:\Program Files (x86)\Common Files\Oracle\Java\javapath\javaw.exe at System.Collections.Generic.Dictionaryb17_0()
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
at CommunityToolkit.Mvvm.Input.AsyncRelayCommand.AwaitAndThrowIfFailed(Task executionTask)
at System.Threading.Tasks.Task.<>c.b__128_0(Object state)
at Microsoft.UI.Dispatching.DispatcherQueueSynchronizationContext.<>c DisplayClass2_0.b__0()
2.TryInsert(TKey key, TValue value, InsertionBehavior behavior) at System.Collections.Generic.Dictionary
2.Add(TKey key, TValue value) at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable1 source, Func
2 keySelector, Func2 elementSelector, IEqualityComparer
1 comparer) at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable1 source, Func
2 keySelector, Func`2 elementSelector) at Natsurainko.FluentLauncher.Components.FluentCore.GameCore.GetSuitableJava() at Natsurainko.FluentLauncher.Components.FluentCore.GameCore.GetLaunchSetting() at Natsurainko.FluentLauncher.Models.LaunchArrangement..ctor(GameCore core) at Natsurainko.FluentLauncher.Models.LaunchArrangement.StartNew(GameCore core) at Natsurainko.FluentLauncher.ViewModels.Home.HomeViewModel.