Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: 重启后分辨率设置无法保存 #2229

Closed
4 tasks done
UN-AF opened this issue Nov 23, 2024 · 4 comments
Closed
4 tasks done

[Bug]: 重启后分辨率设置无法保存 #2229

UN-AF opened this issue Nov 23, 2024 · 4 comments
Labels
area-GameLauncher 游戏启动器 已完成 This issue is completed
Milestone

Comments

@UN-AF
Copy link

UN-AF commented Nov 23, 2024

检查清单

  • 我已阅读 Snap Hutao 文档中的常见问题常见程序异常,我的问题没有在文档中得到解答
  • 我知道文档站的导航栏中有搜索功能,且已经搜索过相关关键词
  • 我的问题不是已完成的问题也不是一个别人已发布的重复的问题

Windows 版本

19045.5131

Snap Hutao 版本

1.12.3.0

设备 ID

7020793F3DCD1A0F6731BF16F3EB4779

问题分类

游戏启动器

发生了什么?

设置好启动分辨率的宽度和高度后关闭胡桃再重新打开分辨率会回到默认设置

你期望发生的行为?

重启胡桃之后能保留原来设置的分辨率

最后一步

  • 我认为上述的描述已经足以详细,以允许开发人员能复现该问题
@UN-AF UN-AF added the priority:none Priority not set label Nov 23, 2024
@dgp-bot
Copy link

dgp-bot bot commented Nov 23, 2024

device_id: 7020793F3DCD1A0F6731BF16F3EB4779

Exception Data:
----------------------------------------
System.IO.IOException: 指定不存在的设备。 : 'G:\Genshin Impact\Genshin Impact Game\config.ini'
   at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
   at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
   at System.IO.Strategies.FileStreamHelpers.ChooseStrategyCore(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
   at System.IO.StreamReader.ValidateArgsAndOpenPath(String path, Encoding encoding, Int32 bufferSize)
   at System.IO.File.OpenText(String path)
   at Snap.Hutao.Core.IO.Ini.IniSerializer.DeserializeFromFile(String filePath) in C:\Users\Public\appveyor\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\Core\IO\Ini\IniSerializer.cs:line 12
   at Snap.Hutao.Service.Game.GameFileSystemExtension.TryFixScriptVersion(GameFileSystem gameFileSystem) in C:\Users\Public\appveyor\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\Service\Game\GameFileSystemExtension.cs:line 88
   at Snap.Hutao.Service.Game.Configuration.GameChannelOptionsService.GetChannelOptions() in C:\Users\Public\appveyor\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\Service\Game\Configuration\GameChannelOptionsService.cs:line 38
   at Snap.Hutao.Service.Game.GameServiceFacade.GetChannelOptions() in C:\Users\Public\appveyor\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\Service\Game\GameServiceFacade.cs:line 34
   at Snap.Hutao.ViewModel.Game.LaunchGameShared.GetCurrentLaunchSchemeFromConfigFile() in C:\Users\Public\appveyor\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\ViewModel\Game\LaunchGameShared.cs:line 29
   at Snap.Hutao.ViewModel.Game.LaunchGameViewModelSlim.LoadAsync() in C:\Users\Public\appveyor\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\ViewModel\Game\LaunchGameViewModelSlim.cs:line 45
   at CommunityToolkit.Mvvm.Input.AsyncRelayCommand.AwaitAndThrowIfFailed(Task executionTask)
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
   at Microsoft.UI.Dispatching.DispatcherQueueSynchronizationContext.<>c__DisplayClass2_0.<Post>b__0()
Exception Data:
[string]:Description:操作标识符不正确。

[string]:RestrictedDescription:The WinUI Desktop Window object has already been closed.
[string]:RestrictedErrorReference:
[string]:RestrictedCapabilitySid:
[WinRT.ObjectReferenceWithContext<WinRT.Interop.IUnknownVftbl>]:__RestrictedErrorObjectReference:WinRT.ObjectReferenceWithContext`1[WinRT.Interop.IUnknownVftbl]
[bool]:__HasRestrictedLanguageErrorObject:False
----------------------------------------
System.Runtime.InteropServices.COMException (0x800710DD): 操作标识符不正确。

The WinUI Desktop Window object has already been closed.
   at WinRT.ExceptionHelpers.<ThrowExceptionForHR>g__Throw|38_0(Int32 hr)
   at ABI.Microsoft.UI.Xaml.IWindowMethods.get_Content(IObjectReference _obj)
   at Microsoft.UI.Xaml.Window.get_Content()
   at Snap.Hutao.Core.LifeCycle.CurrentXamlWindowReferenceExtension.GetXamlRoot(ICurrentXamlWindowReference reference) in C:\Users\Public\appveyor\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\Core\LifeCycle\CurrentXamlWindowReferenceExtension.cs:line 15
   at Snap.Hutao.Factory.ContentDialog.ContentDialogFactory.CreateForConfirmCancelAsync(String title, String content, ContentDialogButton defaultButton) in C:\Users\Public\appveyor\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\Factory\ContentDialog\ContentDialogFactory.cs:line 48
   at Snap.Hutao.ViewModel.TitleViewModel.DoCheckUpdateAsync() in C:\Users\Public\appveyor\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\ViewModel\TitleViewModel.cs:line 122
   at Snap.Hutao.ViewModel.TitleViewModel.InitializeOverrideAsync() in C:\Users\Public\appveyor\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\ViewModel\TitleViewModel.cs:line 69
   at Snap.Hutao.ViewModel.Abstraction.ViewModel.InitializeAsync() in C:\Users\Public\appveyor\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\ViewModel\Abstraction\ViewModel.cs:line 48
   at CommunityToolkit.Mvvm.Input.AsyncRelayCommand.AwaitAndThrowIfFailed(Task executionTask)
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
   at Microsoft.UI.Dispatching.DispatcherQueueSynchronizationContext.<>c__DisplayClass2_0.<Post>b__0()
Exception Data:
----------------------------------------
System.ObjectDisposedException: Cannot access a closed Stream.
   at System.IO.MemoryStream.get_Length()
   at System.Net.Http.HttpContent.ReadBufferedContentAsString()
   at System.Net.Http.HttpContent.WaitAndReturnAsync[TState,TResult](Task waitTask, TState state, Func`2 returnFunc)
   at Snap.Hutao.Web.Hoyolab.DataSigning.DataSignOptions.CreateFromHttpRequestMessageBuilderAsync(HttpRequestMessageBuilder builder, SaltType type, Boolean includeChars, DataSignAlgorithmVersion version) in C:\Users\Public\appveyor\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\Web\Hoyolab\DataSigning\DataSignOptions.cs:line 44
   at Snap.Hutao.Web.Hoyolab.DataSigning.DataSignHttpRequestMessageBuilderExtension.SignDataAsync(HttpRequestMessageBuilder builder, DataSignAlgorithmVersion version, SaltType saltType, Boolean includeChars) in C:\Users\Public\appveyor\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\Web\Hoyolab\DataSigning\DataSignHttpRequestMessageBuilderExtension.cs:line 12
   at Snap.Hutao.Web.Hoyolab.Takumi.Event.BbsSignReward.SignInClient.SignAsync(UserAndUid userAndUid, CancellationToken token) in C:\Users\Public\appveyor\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\Web\Hoyolab\Takumi\Event\BbsSignReward\SignInClient.cs:line 119
   at Snap.Hutao.Service.SignIn.SignInService.ClaimRewardAsync(UserAndUid userAndUid, CancellationToken token) in C:\Users\Public\appveyor\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\Service\SignIn\SignInService.cs:line 32
   at Snap.Hutao.ViewModel.User.UserViewModel.ClaimSignInRewardAsync() in C:\Users\Public\appveyor\Snap.Hutao\src\Snap.Hutao\Snap.Hutao\ViewModel\User\UserViewModel.cs:line 315
   at CommunityToolkit.Mvvm.Input.AsyncRelayCommand.AwaitAndThrowIfFailed(Task executionTask)
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
   at Microsoft.UI.Dispatching.DispatcherQueueSynchronizationContext.<>c__DisplayClass2_0.<Post>b__0()

@dgp-bot dgp-bot bot added the area-GameLauncher 游戏启动器 label Nov 23, 2024
@dgp-bot
Copy link

dgp-bot bot commented Nov 23, 2024

3af7d17 已完成此议题

@dgp-bot dgp-bot bot added 已完成 This issue is completed 等待发布 This issue fix is going to be applied in the next release labels Nov 23, 2024
@dgp-bot dgp-bot bot moved this to 完成 in Snap Hutao Development Nov 23, 2024
@dgp-bot dgp-bot bot removed the priority:none Priority not set label Nov 23, 2024
@dgp-bot dgp-bot bot added this to the 1.12.4 milestone Nov 25, 2024
@dgp-bot
Copy link

dgp-bot bot commented Nov 25, 2024

包含解决该问题的程序版本 1.12.4 已发布。

@dgp-bot dgp-bot bot removed the 等待发布 This issue fix is going to be applied in the next release label Nov 25, 2024
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related topic.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-GameLauncher 游戏启动器 已完成 This issue is completed
Projects
Development

No branches or pull requests

1 participant