-
Notifications
You must be signed in to change notification settings - Fork 138
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
Failed to load RLE encoded file #34
Comments
I have investigated your EXR file and offset tables looks corrupted. http://www.openexr.com/openexrfilelayout.pdf (See page 10 for Offset tables) First element of offset tables contains the byte offset to 1023th scanline correctly, but other elements are filled with zeros, so tinyexr reads pixel data from invalid location, resulting an assertion. Also,
How do you create your EXR file? (For some reason, it looks OpenEXR can handle such an incomplete data, whereas tinyexr is not) |
The file was produced by a legacy toolchain, so I don't exactly have control over it. Anyway, I will see whether I can hack around the issue. |
I found OpenEXR try to reconstruct offset information for incomplete EXR file. https://github.com/openexr/openexr/blob/develop/OpenEXR/IlmImf/ImfScanLineInputFile.cpp#L338 And adding similar code to BTW, Is it ok to add your EXR file to unit tests? @zeroeffects |
It seems that the latest version is crashing with null pointer dereference in rleDecompress. Also, you can use the image. It is a rectified image of alcantara material measured in camera dome under specific lighting and viewing conditions. |
Ah, I found memory bug and fixed it. Now recent
Thank you. But I found the image has 5.8MB which is too large to add into |
The newer versions of TinyEXR seem to include RLE support. However, it seems that there is some issue with the determination of the block offsets as I am having an issue with loading some of our data. It basically triggers the assert in tinyexr.h:10383 (assert(num_lines > 0)). You can find a sample at the following address: http://3dgraphics.guru/sites/default/files/sample-tinyexr-bug.exr.
The text was updated successfully, but these errors were encountered: