Collapse icon indicating copy to clipboard operation
Collapse copied to clipboard

System.IO.InvalidDataException: [PatchSingle::Patch] The patch directory is expecting old size to be equivalent as: 5494645 bytes...

Open sentry[bot] opened this issue 1 year ago • 1 comments

Sentry Issue: COLLAPSE-LAUNCHER-6E

System.IO.InvalidDataException: [PatchSingle::Patch] The patch directory is expecting old size to be equivalent as: 5494645 bytes, but the input file has unmatch size: 3551076 bytes!
  ?, in void PatchSingle.Patch(string input, string output, bool useBufferedPatch, bool useFullBuffer, bool useFastBuffer)
  File "InstallManagerBase.cs", line 2252, in ValueTask InstallManagerBase.FileHdiffPatcherInner(string patchPath, string sourceBasePath, string destPath, CancellationToken token)+() => { }
    patcher.Patch(sourceBasePath, destPath, true, token, false, true);
  File "InstallManagerBase.cs", line 2272, in async ValueTask InstallManagerBase.FileHdiffPatcherInner(string patchPath, string sourceBasePath, string destPath, CancellationToken token)
    await task;
  File "InstallManagerBase.cs", line 2317, in async ValueTask InstallManagerBase.ApplyHdiffListPatch()+(?) => { }
    await FileHdiffPatcherInner(patchPath, sourceBasePath, destPath, innerToken);

sentry[bot] avatar Dec 12 '24 06:12 sentry[bot]

There needs to be at least a pkg_version size matching check before any update occurs to prevent corruption post-update

bagusnl avatar Dec 12 '24 06:12 bagusnl