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

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

Open
sentry-io bot opened this issue Dec 12, 2024 · 1 comment
Labels
Area: Runtime Issue labeled for runtime, Hi3Helper.Core and other libraries used by Collapse Bug Something isn't working Priority: High

Comments

@sentry-io
Copy link

sentry-io bot commented Dec 12, 2024

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-io sentry-io bot added Area: Runtime Issue labeled for runtime, Hi3Helper.Core and other libraries used by Collapse Bug Something isn't working Priority: High labels Dec 12, 2024
@bagusnl
Copy link
Member

bagusnl commented Dec 12, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Runtime Issue labeled for runtime, Hi3Helper.Core and other libraries used by Collapse Bug Something isn't working Priority: High
Projects
None yet
Development

No branches or pull requests

1 participant