Xcube-Studio / Natsurainko.FluentLauncher

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

[Bug] 无法添加minecraft文件夹 #199

Closed Liuyiyang888888 closed 9 months ago

Liuyiyang888888 commented 10 months ago

Describe the bug

System.NullReferenceException System.NullReferenceException: Object reference not set to an instance of an object. at Natsurainko.FluentLauncher.Components.Launch.GameLocator.TryGetIsVanillaAndAbsoluteVersion(GameInfo gameInfo, VersionJsonEntity jsonEntity) at Natsurainko.FluentLauncher.Components.Launch.GameLocator.EnumerateGames()+MoveNext() at Natsurainko.FluentLauncher.Services.Launch.GameService.RefreshGames() at Natsurainko.FluentLauncher.Services.Launch.GameService.InitFolder() at Natsurainko.FluentLauncher.Services.Launch.GameService.ActivateMinecraftFolder(String folder) at Natsurainko.FluentLauncher.Services.Launch.GameService..ctor(SettingsService settingsService) at InvokeStub_GameService..ctor(Object, Object, IntPtr) at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite callSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSite(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitDisposeCache(ServiceCallSite transientCallSite, RuntimeResolverContext context) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor2.VisitCallSite(ServiceCallSite callSite, TArgument argument) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope) at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>cDisplayClass2_0.b__0(ServiceProviderEngineScope scope) at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType, ServiceProviderEngineScope serviceProviderEngineScope) at Microsoft.Extensions.DependencyInjection.ServiceLookup.ServiceProviderEngineScope.GetService(Type serviceType) at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType) at Natsurainko.FluentLauncher.Services.UI.Navigation.NavigationService.ConfigureFrameContent(String key, Object parameter) at Natsurainko.FluentLauncher.Services.UI.Navigation.NavigationService.NavigateTo(String key, Object parameter) at Natsurainko.FluentLauncher.Views.MainWindow.WindowEx_Activated(Object sender, WindowActivatedEventArgs args) at WinRT._EventSource_globalWindows_Foundation_TypedEventHandler_objectglobalMicrosoft_UI_XamlWindowActivatedEventArgs.EventState.b__1_0(Object sender, WindowActivatedEventArgs args) at ABI.Windows.Foundation.TypedEventHandler`2.Do_Abi_Invoke[TSenderAbi,TResultAbi](Void thisPtr, TSenderAbi sender, TResultAbi args)

Steps to reproduce the bug

先添加我的文件夹,可能是文件太多,就崩溃了

Expected behavior

No response

Environment

No response

Attachment

No response

natsurainko commented 9 months ago

试试看这个最新的构建 https://github.com/Xcube-Studio/Natsurainko.FluentLauncher/actions/runs/7756990746、 手动安装里面的.msixbundle包

natsurainko commented 9 months ago

我觉得还是有必要看看具体的核心文件,感觉可能是解析问题

natsurainko commented 9 months ago

如果无法提供有效信息的话这个 issue 就只能作废了

Liuyiyang888888 commented 9 months ago

问题解决了,我原先安装的是商店版本 谢谢!