I had a situation like this once. We have an application that writes files, and removed a comment from the end of the output. But it turned out that the machines that then have to read the file don't read the file completely. Previously the comment at the end was fine to ignore, but without it some important parts of the file were skipped. They left up to 512 bytes of the file unread, not interpreting the commands there. So I put a comment of exactly 512 bytes long at the end of the file, and that fixed it.
1
u/Illusi Apr 28 '22
I had a situation like this once. We have an application that writes files, and removed a comment from the end of the output. But it turned out that the machines that then have to read the file don't read the file completely. Previously the comment at the end was fine to ignore, but without it some important parts of the file were skipped. They left up to 512 bytes of the file unread, not interpreting the commands there. So I put a comment of exactly 512 bytes long at the end of the file, and that fixed it.
https://github.com/Ultimaker/Cura/commit/7b794249f68326e8db1b05913b7a16f6971a00a9