-
Notifications
You must be signed in to change notification settings - Fork 626
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
Tiles/Ocean.exr core dumps on latest code built from git #671
Comments
In your slice declarations, you need to use HALF not UINT, since you have |
The issue happens with HALF too and other exr example files don't core dump with the UINT set so I don't think this is the issue. |
Could you provide an entire compilable program to show the problem using HALF, and with all the necessary I would expect only certain image dimensions to crash with UINT. That's because the memory allocator often allocates a few bytes of padding to keep memory nicely aligned. How much padding exists will depend on the array size, which depends on the image dimensions. It will only abort like this if there's no padding and the memory that is overwritten is that used by malloc to do its internal book keeping. I'm curious why you have IMF::UINT, not Imf::UINT, which is the normal name for the OpenEXR namespace, and wonder whether that might be related to any ongoing issues. In any case, UINT is incorrect - unless you have HALF your arrays will have garbage in them. |
You were right on the UINT being the issue (the reason why I thought it wasn't the issue was that I was testing on other files with out issues)! I will close this down as there isn't actually an issue. The reason why I am using UINT is purely to trigger the code which does the conversion from half to int. I am building an openexr reader in Java (for a vulkan project I have) and was using the conversion code to help debug. |
Hi
I took a new git clone and tried to load Tiles/Ocean.exr from the examples using the below code (which uses the newly built code from git) and I received the below error
double free or corruption (!prev)
Aborted (core dumped)
Other tile example files load fine
I can provide other info if required
The text was updated successfully, but these errors were encountered: