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

stream diff run an error: bad allocation ERROR! #404

Open
Soi9x opened this issue Feb 14, 2025 · 3 comments
Open

stream diff run an error: bad allocation ERROR! #404

Soi9x opened this issue Feb 14, 2025 · 3 comments

Comments

@Soi9x
Copy link

Soi9x commented Feb 14, 2025

[17:12:20 INF] Generating diff files: 53%
[17:12:20 INF] Successfully generated diff file: Z:\DiffMd5\ShooterGame\Binaries\Win64\tbb.dll.diff
[17:12:20 INF] input oldDataSize: 393712 (384.48 KB)
[17:12:20 INF] input newDataSize: 393712 (384.48 KB)
[17:12:20 INF] out diffDataSize: 573 (573 B)
[17:12:20 INF] hdiffz time: 0 seconds
[17:12:20 INF] Generating diff files: 61%
[17:12:20 ERR] stream diff run an error: bad allocation ERROR!
[17:12:20 ERR] Error generating diff file. Exit code: 6
[17:12:20 ERR] Failed to generate diff file: Z:\DiffMd5\ShooterGame\Content\Paks\ShooterGame-Windows.ucas.diff
[17:12:20 ERR] Create diff failed!

hi, i have this problem, although i have adjusted the parameter as in the section: #200, my configuration is 16GB ram, CPU I310100F, how to fix it?

Arguments = $"-s-16 -SD -c-zstd-21-24 -d \"{oldPath}\" \"{newPath}\" \"{outDiffFile}\""

@sisong
Copy link
Owner

sisong commented Feb 18, 2025

"bad allocation" means memory allocation failed.
But the file datas you process is very small, -s or -m should be able to execute; so I don't know what happened, it's too strange.
Can you provide me(housisong@hotmail.com) with your 2 files for test?

@Soi9x
Copy link
Author

Soi9x commented Feb 18, 2025

"bad allocation" means memory allocation failed. But the file datas you process is very small, -s or -m should be able to execute; so I don't know what happened, it's too strange. Can you provide me(housisong@hotmail.com) with your 2 files for test?

sorry, the game file in compressed format .pak for unreal engine is 183gb in size, i think this is the problem

@sisong
Copy link
Owner

sisong commented Feb 19, 2025

For such a large file, it is indeed because of insufficient memory. You should increase the -s parameter to reduce memory requirements, such as changing -s-16 to -s-512.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants