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

双击图标大概率重复窗口 #2368

Open
1 task done
leefwerr opened this issue Jan 10, 2025 · 2 comments
Open
1 task done

双击图标大概率重复窗口 #2368

leefwerr opened this issue Jan 10, 2025 · 2 comments
Labels
area-LifeCycle App生命周期问题 已完成 This issue is completed 等待发布 This issue fix is going to be applied in the next release

Comments

@leefwerr
Copy link

Windows 版本

win11 版本 24H2

Snap Hutao 版本

1.13.0.0

设备 ID

A3EB8770C05B163FF31797FF9FCC2A85

问题分类

安装和环境

发生了什么?

双击下方图标时候偶会出现两个窗口Image

你期望发生的行为?

希望能解决双击概率出现两个窗口的问题

最后一步

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

dgp-bot bot commented Jan 10, 2025

device_id: A3EB8770C05B163FF31797FF9FCC2A85

Exception Data:
----------------------------------------
System.IO.IOException: The process cannot access the file 'C:\Users\Administrator\AppData\Local\Packages\60568DGPStudio.SnapHutao_wbnnev551gwxy\LocalCache\ImageCache\0FD67BC6B22818331F6B7D065D2C7A5857CB6958' because it is being used by another process.
   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.File.Create(String path)
   at Snap.Hutao.Core.Caching.ImageCacheDownloadOperation.DownloadFileAsync(Uri uri, String baseFile) in C:\Users\Public\appveyor\Snap.Hutao-356hyp21t1wc7wck\src\Snap.Hutao\Snap.Hutao\Core\Caching\ImageCacheDownloadOperation.cs:line 81
   at Snap.Hutao.Core.Caching.ImageCache.GetFileFromCacheAsync(Uri uri, ElementTheme theme) in C:\Users\Public\appveyor\Snap.Hutao-356hyp21t1wc7wck\src\Snap.Hutao\Snap.Hutao\Core\Caching\ImageCache.cs:line 92
   at Snap.Hutao.Service.BackgroundImage.BackgroundImageService.<SkipOrInitAvailableBackgroundAsync>g__SetCurrentBackgroundPathSetAsync|7_0(Func`3 responseFactory, CancellationToken token) in C:\Users\Public\appveyor\Snap.Hutao-356hyp21t1wc7wck\src\Snap.Hutao\Snap.Hutao\Service\BackgroundImage\BackgroundImageService.cs:line 137
   at Snap.Hutao.Service.BackgroundImage.BackgroundImageService.SkipOrInitAvailableBackgroundAsync(CancellationToken token) in C:\Users\Public\appveyor\Snap.Hutao-356hyp21t1wc7wck\src\Snap.Hutao\Snap.Hutao\Service\BackgroundImage\BackgroundImageService.cs:line 117
   at Snap.Hutao.Service.BackgroundImage.BackgroundImageService.GetNextBackgroundImageAsync(BackgroundImage previous, CancellationToken token) in C:\Users\Public\appveyor\Snap.Hutao-356hyp21t1wc7wck\src\Snap.Hutao\Snap.Hutao\Service\BackgroundImage\BackgroundImageService.cs:line 37
   at Snap.Hutao.ViewModel.MainViewModel.UpdateBackgroundCoreAsync(Boolean forceRefresh) in C:\Users\Public\appveyor\Snap.Hutao-356hyp21t1wc7wck\src\Snap.Hutao\Snap.Hutao\ViewModel\MainViewModel.cs:line 70
   at Snap.Hutao.ViewModel.MainViewModel.UpdateBackgroundAsync() in C:\Users\Public\appveyor\Snap.Hutao-356hyp21t1wc7wck\src\Snap.Hutao\Snap.Hutao\ViewModel\MainViewModel.cs:line 57
   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.IO.IOException: The process cannot access the file 'C:\Users\Administrator\AppData\LocalLow\miHoYo\原神\output_log.txt' because it is being used by another process.
   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.AsyncWindowsFileStreamStrategy..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.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, Int64 preallocationSize)
   at System.IO.File.AsyncStreamReader(String path, Encoding encoding)
   at System.IO.File.InternalReadAllTextAsync(String path, Encoding encoding, CancellationToken cancellationToken)
   at Snap.Hutao.Service.Game.Locator.UnityLogGameLocator.LocateGamePathAsync() in C:\Users\Public\appveyor\Snap.Hutao-u3yxfrmy2t8yse7j\src\Snap.Hutao\Snap.Hutao\Service\Game\Locator\UnityLogGameLocator.cs:line 34
   at Snap.Hutao.Service.Game.PathAbstraction.GamePathService.SilentGetGamePathAsync() in C:\Users\Public\appveyor\Snap.Hutao-u3yxfrmy2t8yse7j\src\Snap.Hutao\Snap.Hutao\Service\Game\PathAbstraction\GamePathService.cs:line 21
   at Snap.Hutao.Service.GachaLog.QueryProvider.GachaLogQueryWebCacheProvider.GetQueryAsync() in C:\Users\Public\appveyor\Snap.Hutao-u3yxfrmy2t8yse7j\src\Snap.Hutao\Snap.Hutao\Service\GachaLog\QueryProvider\GachaLogQueryWebCacheProvider.cs:line 54
   at Snap.Hutao.ViewModel.GachaLog.GachaLogViewModel.RefreshCoreAsync(RefreshOption option) in C:\Users\Public\appveyor\Snap.Hutao-u3yxfrmy2t8yse7j\src\Snap.Hutao\Snap.Hutao\ViewModel\GachaLog\GachaLogViewModel.cs:line 146
   at Snap.Hutao.ViewModel.GachaLog.GachaLogViewModel.RefreshByWebCacheAsync() in C:\Users\Public\appveyor\Snap.Hutao-u3yxfrmy2t8yse7j\src\Snap.Hutao\Snap.Hutao\ViewModel\GachaLog\GachaLogViewModel.cs:line 128
   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-LifeCycle App生命周期问题 label Jan 10, 2025
Lightczx added a commit that referenced this issue Jan 13, 2025
@dgp-bot
Copy link

dgp-bot bot commented Jan 13, 2025

01c9c3f 已完成此议题

@dgp-bot dgp-bot bot added 已完成 This issue is completed 等待发布 This issue fix is going to be applied in the next release labels Jan 13, 2025
@dgp-bot dgp-bot bot moved this to 完成 in Snap Hutao Development Jan 13, 2025
@dgp-bot dgp-bot bot removed the priority:none Priority not set label Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-LifeCycle App生命周期问题 已完成 This issue is completed 等待发布 This issue fix is going to be applied in the next release
Projects
Development

No branches or pull requests

1 participant