byronknoll/cmix

decoding mismatch

futing1993 opened this issue · 2 comments

I use cmix v18 to compress a batch of file,and I found some of the decoded file do not match the original ones. It is a random issue, because I can't reproduce this bug with the same file. I encoded one file for 100 times, and several times the md5 of the encoded file are different. Do you have any idea solving this issue?

hmm, this might be tricky to debug. A couple things to try:

  1. run a diagnostic on your computer's RAM. I had an issue similar to what you are describing before, and it turned out due to some RAM failure that caused bit flipping.

  2. try compiling with -O3 instead of -Ofast, or switch to a different compiler. cmix uses some float operations that I have seen some nondeterminism before (with different compilers/option combinations).

Thanks a lot for such a prompt reply!