BlameTwo / GL

一个原神启动器,采用WPF-UI和WindowsAppSDK构建
MIT License
93 stars 11 forks source link

1.4 版本启动报错 Input string was not in a correct format #16

Closed AkashiCoin closed 2 years ago

AkashiCoin commented 2 years ago

以下为日志

Input string was not in a correct format.   at System.Number.ThrowOverflowOrFormatException(ParsingStatus status, TypeCode type)
   at System.Double.Parse(String s)
   at GenshinImpact_Lanucher.MainWindow.MainWindow_Loaded(Object sender, RoutedEventArgs e)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
   at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
   at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
   at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.Resize(ICompositionTarget resizedCompositionTarget)
   at System.Windows.Interop.HwndTarget.OnResize()
   at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
   at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
BlameTwo commented 2 years ago

如何重现此bug?

AkashiCoin commented 2 years ago

如何重现此bug?

这里下载下来都出现了这个错误,有好几个人都是这样

BlameTwo commented 2 years ago

这个错误提示仅仅是提示出现在什么函数中错误,而且我看了也找不到我的函数,这个BUG是怎么出现的,是点击什么按钮,执行什么操作后出现的

xuanerwa commented 2 years ago

直接打开exe就会这样,不知是不是.Net6版本不同的原因,我试了多个版本都是这个错

BlameTwo commented 2 years ago

https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/sdk-6.0.203-windows-x64-installer https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/sdk-6.0.203-windows-x86-installer

请尝试上面两个连接

xuanerwa commented 2 years ago

依然会报上面的错误

BlameTwo commented 2 years ago

请说一下系统版本

xuanerwa commented 2 years ago

win10

BlameTwo commented 2 years ago

可能是Mica不兼容的情况,到我的文档——GSIConfig——Config——LauncherConfig.ini

在Style之下修改或添加IsMica=False

BlameTwo commented 2 years ago

image

BlameTwo commented 2 years ago

修改完毕后,如果还出现错误,请等待今天晚上的修复

xuanerwa commented 2 years ago

好的,刚刚去这个文件看了没有生成Style配置 image 因为对修复有帮助

BlameTwo commented 2 years ago

https://github.com/123456fsdaf/GenshinImpact_Lanucher/releases/tag/1.4.1-bate

BlameTwo commented 2 years ago

已经发布临时修复

BlameTwo commented 2 years ago

https://github.com/123456fsdaf/GenshinImpact_Lanucher/releases/tag/1.4.1 正式修复

Stevwrz commented 2 years ago

我使用1.41仍然有同样的问题

BlameTwo commented 2 years ago

请删除配置文件,以及重启应用,尽量不要使用Win10以下系统,目前并未全部支持