CollapseLauncher / Collapse

An Advanced Launcher for miHoYo/HoYoverse Games
MIT License
1.41k stars 64 forks source link

[Bug]: Crush while downloading pre-Installation files (Genshin Impact) #589

Closed Devyatyi9 closed 1 month ago

Devyatyi9 commented 1 month ago

Affected Version

1.80.19

Bug Behavior

Pre-download error: An error occurred while starting preload process: System.IO.IOException: IO_SharingViolation_File, E:\Games\Genshin Impact Game\chunk_collapse\f21e1b2f432ec11c84513b3543c736d7.verified

The error ``` System.IO.IOException: IO_SharingViolation_File, E:\Games\Genshin Impact Game\chunk_collapse\f21e1b2f432ec11c84513b3543c736d7.verified at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String, FileMode, FileAccess, FileShare, FileOptions, Int64, Nullable`1 ) at System.IO.Strategies.OSFileStreamStrategy..ctor(String, FileMode, FileAccess, FileShare, FileOptions, Int64, Nullable`1) at System.IO.FileStream..ctor(String, FileMode, FileAccess, FileShare, Int32, Boolean) at Hi3Helper.Sophon.SophonAsset.PerformWriteDiffChunksThreadAsync(HttpClient, String, SophonChunk, CancellationToken , DelegateWriteStreamInfo , DelegateWriteDownloadInfo , Boolean ) at Hi3Helper.Sophon.SophonAsset.<>c__DisplayClass3_0.<b__0>d.MoveNext() --- End of stack trace from previous location --- at System.Threading.Tasks.Parallel.<>c__53`1.<b__53_0>d.MoveNext() --- End of stack trace from previous location --- at Hi3Helper.Sophon.SophonAsset.DownloadDiffChunksAsync(HttpClient, String, ParallelOptions , DelegateWriteStreamInfo , DelegateWriteDownloadInfo , DelegateDownloadAssetComplete , Boolean ) at CollapseLauncher.InstallManager.Base.InstallManagerBase`1.<>c__DisplayClass97_0.<b__2>d.MoveNext() --- End of stack trace from previous location --- at System.Threading.Tasks.Parallel.<>c__53`1.<b__53_0>d.MoveNext() --- End of stack trace from previous location --- at CollapseLauncher.InstallManager.Base.InstallManagerBase`1.StartPackageUpdateSophon(GameInstallStateEnum gameState, Boolean isPreloadMode) at CollapseLauncher.InstallManager.Base.InstallManagerBase`1.StartPackageDownload(Boolean skipDialog) at CollapseLauncher.Pages.HomePage.PredownloadDialog(Object sender, RoutedEventArgs e) ```

Expected Behavior

It should download game files

Steps to reproduce

Pre-download Genshin Impact 5.1

Related Issues

No response

Screenshot(s)

No response

Additional Information

log-2024-10-07-sta1.80.19-id0.log log-2024-10-08-sta1.80.19-id0.log

neon-nyan commented 1 month ago

Hi there, currently there's some issue with Sophon module on stable release. I would recommend you to switch to preview release for downloading the preload