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]: 未设置游戏路径时使用网页缓存获取抽卡记录时读取Unity日志崩溃 #2272

Closed
1 task done
kmizmal opened this issue Dec 9, 2024 · 5 comments
Closed
1 task done
Labels
area-Gacha 祈愿记录 已完成 This issue is completed
Milestone

Comments

@kmizmal
Copy link

kmizmal commented Dec 9, 2024

Windows 版本

22621.4317

Snap Hutao 版本

1.12.5.0

设备 ID

C01E366044CD2CBBA97694EC7A197278

问题分类

祈愿记录

发生了什么?

Image

[-](https://github.com/DGP-Studio/Snap.Hutao/issues/new?template=CHS-bug-report.yml#) <System>
  <Provider Name="Application Error" Guid="{a0e9b465-b939-57d7-b27d-95d8e925ff57}" /> 
  <EventID>1000</EventID> 
  <Version>0</Version> 
  <Level>2</Level> 
  <Task>100</Task> 
  <Opcode>0</Opcode> 
  <Keywords>0x8000000000000000</Keywords> 
  <TimeCreated SystemTime="2024-12-09T08:44:28.5662799Z" /> 
  <EventRecordID>4857</EventRecordID> 
  <Correlation /> 
  <Execution ProcessID="17320" ThreadID="7860" /> 
  <Channel>Application</Channel> 
  <Computer>zmal-</Computer> 
  <Security UserID="S[-](https://github.com/DGP-Studio/Snap.Hutao/issues/new?template=CHS-bug-report.yml#)1-5-21-1919888445-3207705138-3683256763-500" /> 
  </System>
- <EventData>
  <Data Name="AppName">Snap.Hutao.exe</Data> 
  <Data Name="AppVersion">1.0.0.0</Data> 
  <Data Name="AppTimeStamp">67200000</Data> 
  <Data Name="ModuleName">Microsoft.UI.Input.dll</Data> 
  <Data Name="ModuleVersion">10.0.26107.1015</Data> 
  <Data Name="ModuleTimeStamp">a11c6d93</Data> 
  <Data Name="ExceptionCode">c0000409</Data> 
  <Data Name="FaultingOffset">0000000000023df8</Data> 
  <Data Name="ProcessId">0x48b8</Data> 
  <Data Name="ProcessCreationTime">0x1db4a16844e6bdf</Data> 
  <Data Name="AppPath">C:\Program Files\WindowsApps\60568DGPStudio.SnapHutao_1.12.5.0_x64__wbnnev551gwxy\Snap.Hutao.exe</Data> 
  <Data Name="ModulePath">C:\Program Files\WindowsApps\60568DGPStudio.SnapHutao_1.12.5.0_x64__wbnnev551gwxy\Microsoft.UI.Input.dll</Data> 
  <Data Name="IntegratorReportId">716cd807-9663-4e61-a99b-21efd06a7cee</Data> 
  <Data Name="PackageFullName">60568DGPStudio.SnapHutao_1.12.5.0_x64__wbnnev551gwxy</Data> 
  <Data Name="PackageRelativeAppId">App</Data> 
  </EventData>
  </Event>

你期望发生的行为?

点击祈愿记录-刷新-网页缓存刷新 闪退

昨天同操作无法获取记录,但通过官方启动器启动一次解决。此次bug出现时仍为绕过官方启动器的情况,暂未尝试重新通过官方启动器重试

最后一步

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

dgp-bot bot commented Dec 9, 2024

device_id: C01E366044CD2CBBA97694EC7A197278

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()
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()
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-Gacha 祈愿记录 label Dec 9, 2024
@Lightczx
Copy link
Member

Lightczx commented Dec 9, 2024

去启动游戏里设置一下游戏路径

@Lightczx Lightczx closed this as completed Dec 9, 2024
@dgp-bot dgp-bot bot removed the priority:none Priority not set label Dec 9, 2024
@Lightczx Lightczx reopened this Dec 9, 2024
@dgp-bot dgp-bot bot added the priority:none Priority not set label Dec 9, 2024
@dgp-bot
Copy link

dgp-bot bot commented Dec 9, 2024

fb0510e 已完成此议题

@dgp-bot dgp-bot bot added 已完成 This issue is completed 等待发布 This issue fix is going to be applied in the next release labels Dec 9, 2024
@dgp-bot dgp-bot bot moved this to 完成 in Snap Hutao Development Dec 9, 2024
@dgp-bot dgp-bot bot removed the priority:none Priority not set label Dec 9, 2024
@Lightczx Lightczx changed the title [Bug]: 网页缓存获取抽卡记录出错 [Bug]: 未设置游戏路径时使用网页缓存获取抽卡记录时读取Unity日志崩溃 Dec 9, 2024
@dgp-bot dgp-bot bot added this to the 1.12.6 milestone Dec 13, 2024
@dgp-bot
Copy link

dgp-bot bot commented Dec 13, 2024

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

@dgp-bot dgp-bot bot removed the 等待发布 This issue fix is going to be applied in the next release label Dec 13, 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 Jan 13, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Gacha 祈愿记录 已完成 This issue is completed
Projects
Development

No branches or pull requests

2 participants