Xcube-Studio / Natsurainko.FluentLauncher

Natsurainko.FluentLauncher A Minecraft launcher designed for Windows 11
https://fluentlauncher.natsurainko.work/
MIT License
290 stars 15 forks source link

[Bug] FileVersionInfo.GetVersionInfo 引起的 Java检查 错误 #59

Closed OrangeNesss closed 1 year ago

OrangeNesss commented 1 year ago

请注意:一个issue仅报告一个问题。如果您有很多问题,请创建其他issues 请注意:如果您要反馈一些不重要的错误,请在讨论中发布

FluentLauncher错误报告:

FluentLauncher版本:2.X.XX 主要大意:启动失败 是游戏崩溃的问题吗:是

主要内容:

System.IO.FileNotFoundException System.IO.FileNotFoundException: C:\Windows\System32\信息: 用提供的模式无法找到文件。 at System.Diagnostics.FileVersionInfo.GetVersionInfo(String fileName) at Natsurainko.FluentCore.Extension.Windows.Service.JavaHelper.GetJavaRuntimeInfo(String file) at Natsurainko.FluentLauncher.Components.FluentCore.GameCore.<>c.b6_1(String x) at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](List1 source, Func2 keySelector, Func2 elementSelector, IEqualityComparer1 comparer) 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.Pages.Cores.<>c__DisplayClass11_0.b0() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- 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.b128_0(Object state) at Microsoft.UI.Dispatching.DispatcherQueueSynchronizationContext.<>c__DisplayClass2_0.b0() System.IO.FileNotFoundException System.IO.FileNotFoundException: C:\Windows\System32\信息: 用提供的模式无法找到文件。 at System.Diagnostics.FileVersionInfo.GetVersionInfo(String fileName) at Natsurainko.FluentCore.Extension.Windows.Service.JavaHelper.GetJavaRuntimeInfo(String file) at Natsurainko.FluentLauncher.Components.FluentCore.GameCore.<>c.b6_1(String x) at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](List1 source, Func2 keySelector, Func2 elementSelector, IEqualityComparer1 comparer) 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.Pages.Cores.<>c__DisplayClass11_0.b0() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- 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.b128_0(Object state) at Microsoft.UI.Dispatching.DispatcherQueueSynchronizationContext.<>c__DisplayClass2_0.b0() System.IO.FileNotFoundException System.IO.FileNotFoundException: C:\Windows\System32\信息: 用提供的模式无法找到文件。 at System.Diagnostics.FileVersionInfo.GetVersionInfo(String fileName) at Natsurainko.FluentCore.Extension.Windows.Service.JavaHelper.GetJavaRuntimeInfo(String file) at Natsurainko.FluentLauncher.Components.FluentCore.GameCore.<>c.b6_1(String x) at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](List1 source, Func2 keySelector, Func2 elementSelector, IEqualityComparer1 comparer) 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.Pages.Cores.<>c__DisplayClass11_0.b0() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- 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.b128_0(Object state) at Microsoft.UI.Dispatching.DispatcherQueueSynchronizationContext.<>c__DisplayClass2_0.b0()

部分附件:

这个问题严重嘛:(1-10 分)

xingxing2008 commented 1 year ago

能提供下你的java路径吗

natsurainko commented 1 year ago

https://github.com/Xcube-Studio/Natsurainko.FluentLauncher/issues/68#issuecomment-1454777852_