loyso / Scarab

A system to patch your content files.
45 stars 8 forks source link

[bug] errors: Encoding error: Can't encode memory with xdelta. Error code: ♀ / Bad allocation / FAILED. #9

Open gomoku opened 8 years ago

gomoku commented 8 years ago

Something is wrong when trying to diff some pair of folders, it throws errors:

Encoding error: Can't encode memory with xdelta. Error code: ♀ Bad allocation.

or

Encoding error: Can't encode memory with xdelta. Error code: ♀ Encoding xdelta diff file game1/file1.dll.diff Gathering SHA1 digests for files in old directory... Creating registry file... FAILED.

What's going on?

Perhaps the errors are more related to Xdelta than to Scarab? - since there are some big sized files (over 500mb) in both folders, which Xdelta has some troubles with? Perhaps updating Scarab with the newest version of Xdelta can fix the errors?

http://xdelta.org/

anonymi-de commented 7 years ago

Same problem here. I guess its because this app is compiled as a 32bit program. It should be a 64bit program.

jeffnmock commented 6 years ago

Anyone find a solution to this? Encountering the same issue

loyso commented 6 years ago

Scarab tries to load a whole file into memory now (which was a temporary decision). It needs to be re-written a little bit. Maybe I'll fix it soon. Also, xdelta is free to use these days.

JustMyGithub commented 2 years ago

4.5 year later, but there is a x64 build provided in https://github.com/loyso/Scarab/issues/11 now that solved the "Bad allocation" error for me. However it still has issues as posted in Issue 11