Binary File Comparator seems to miss a difference

Discussion of bugs and problems found in Altap Salamander. In your reports, please be as descriptive as possible, and report one incident per report. Do not post crash reports here, send us the generated bug report by email instead, please.
User avatar
mdruiter
Posts: 263
Joined: 22 Feb 2006, 15:33
Location: Amsterdam, The Netherlands
Contact:

Binary File Comparator seems to miss a difference

Post by mdruiter »

I have two large files, both 2,877,913,471 bytes of binary stuff. Only a few bytes differ between them, just after the start of the files: 1 byte at 0x23, and 3 bytes at 0x27.

When I use the File Comparator (that I cannot live without!), the first difference is found. But: the second is not! It is not in the Difference list, Alt-Down does not go there, and clicking on it also does nothing. However, the difference *is* highlighted (at least in the right pane, I cannot really distinguish the dark blue in the left).

If I truncate both files to under 2Gb, it does not happen: both differences are found.
I created two large files that have the same problem. I tried to attach them, but even 7-zipped both come larger than 1 Mb...
Groente, Michel.
Jan Rysavy
ALTAP Staff
ALTAP Staff
Posts: 5231
Joined: 08 Dec 2005, 06:34
Location: Novy Bor, Czech Republic
Contact:

Re: File Comparator misses a difference

Post by Jan Rysavy »

Could you please email it to jan.rysavy@altap.cz?
Or use http://www.uschovna.cz/en/

Thank you.
therube
Posts: 681
Joined: 14 Dec 2006, 06:22

Re: File Comparator misses a difference

Post by therube »

Assuming that this has to do with the (large) file size itself, this utility may help in creating a BIG FILE. (Which you could then make a simple byte change with a hex editor, or the like.)
BIGFILE.ZIP
Creates a large file with desired size; useful to force other files to the end of the disk, e.g. container files of compressed drives and temporary fill of drives >2GB to fix problems with install-software on very large drives with more than 2GB free space
(Now if I happened to have anywhere close to 4 GB of free disk space, I'd try it myself ;-).)
WinXP Pro SP3 or Win7 x86 | SS 2.54
User avatar
mdruiter
Posts: 263
Joined: 22 Feb 2006, 15:33
Location: Amsterdam, The Netherlands
Contact:

Re: File Comparator misses a difference

Post by mdruiter »

I just e-mailed the files to Jan.
BTW, you do not need 4Gb of disk space, if you use NTFS compression: that saves almost half of it. :)
Groente, Michel.
Jan Rysavy
ALTAP Staff
ALTAP Staff
Posts: 5231
Joined: 08 Dec 2005, 06:34
Location: Novy Bor, Czech Republic
Contact:

Re: File Comparator misses a difference

Post by Jan Rysavy »

Thank you!
Jan Patera
Plugin Developer
Plugin Developer
Posts: 707
Joined: 08 Dec 2005, 14:33
Location: Prague, Czech Republic
Contact:

Re: File Comparator seems to miss a difference

Post by Jan Patera »

mdruiter wrote:I have two large files, both 2,877,913,471 bytes of binary stuff. Only a few bytes differ between them, just after the start of the files: 1 byte at 0x23, and 3 bytes at 0x27.
When I use the File Comparator (...), the first difference is found. But: the second is not!
Uh, it took me a long time to notice that the window title says "... Computing Differences".
It is a feature by design that needs to be changed: When the files are being compared as binary, the first difference is found (and shown in the "Differences" combobox). Then the rest of comparing is moved to a background thread - you can (reasonably) work with the FC window while the remaining differences are being calculated in background. When *everything* is compared (i.e. all 4GB retrieved from HDD), the Differences combobox and window title get updated. I.e. it is not a question of less or more than 2 GB, but the time linearly grows with the size of the files.
The combobox should be updated on the fly. I will fix it for the next release of Salamander.
User avatar
mdruiter
Posts: 263
Joined: 22 Feb 2006, 15:33
Location: Amsterdam, The Netherlands
Contact:

Re: File Comparator seems to miss a difference

Post by mdruiter »

Ah! Great feature, but very much disguised... I think at least the combobox should say "Computing more differences" too.
Thanks for clarifying.
Groente, Michel.
Jan Patera
Plugin Developer
Plugin Developer
Posts: 707
Joined: 08 Dec 2005, 14:33
Location: Prague, Czech Republic
Contact:

Re: File Comparator seems to miss a difference

Post by Jan Patera »

Jan Patera wrote:The combobox should be updated on the fly.
Fixed for the next release of Salamander.
Post Reply