<div dir="ltr">Hello maintainers,<br><br>First, thanks for you hard work.<br><br>I hope you will not waste too much time with this one.<br><br>System: Debian 10 buster<br>Kernel 4.19<br><br>Step to reproduce:<br><br>Download ACES 1.2 from here and extract it: <a href="https://github.com/colour-science/OpenColorIO-Configs/releases/tag/v1.2">https://github.com/colour-science/OpenColorIO-Configs/releases/tag/v1.2</a><br><br>Open a terminal, set the OCIO variable:<br><br>export OCIO=/path/to/ACES/config.ocio<br><br>And execute this command with given file:<br><br>ocioconvert one_pixel.exr 'ACEScg' out.png 'Output - sRGB'<br><br>This will crash:<br><br>Loading one_pixel.exr<br><div>Segmentation fault</div><div><br></div><div>Notice this image is a cropped 1x1 pixel on a bigger image, but the problem is the same with a bigger image.<br></div><br>Using gdb, I can find it's related to OpenImageIO/PNG:<br><br>Thread 1 "ocioconvert" received signal SIGSEGV, Segmentation fault.<br>__sigsetjmp () at ../sysdeps/x86_64/setjmp.S:32<br>32 ../sysdeps/x86_64/setjmp.S: No such file or directory.<br>(gdb) bt<br>#0  0x00007ffff6e973b0 in __sigsetjmp () at ../sysdeps/x86_64/setjmp.S:32<br>#1  0x00007ffff7dbf7f9 in OpenImageIO_v2_0::PNG_pvt::write_row(png_struct_def*&, unsigned char*) ()<br>    at /lib/x86_64-linux-gnu/libOpenImageIO.so.2.0<br>#2  0x00007ffff7e00657 in OpenImageIO_v2_0::PNGOutput::write_scanline(int, int, OpenImageIO_v2_0::TypeDesc, void const*, long) () at /lib/x86_64-linux-gnu/libOpenImageIO.so.2.0<br>#3  0x00007ffff7caf90b in OpenImageIO_v2_0::ImageOutput::write_scanlines(int, int, int, OpenImageIO_v2_0::TypeDesc, void const*, long, long) () at /lib/x86_64-linux-gnu/libOpenImageIO.so.2.0<br>#4  0x00007ffff7cafc92 in OpenImageIO_v2_0::ImageOutput::write_image(OpenImageIO_v2_0::TypeDesc, void const*, long, long, long, bool (*)(void*, float), void*) () at /lib/x86_64-linux-gnu/libOpenImageIO.so.2.0<br>#5  0x000055555555c307 in main ()<br><br>If you try with jpeg or tif, it works:<br><br>$ ocioconvert one_pixel.exr 'ACEScg' out.jpg 'Output - sRGB'<br>Loading one_pixel.exr<br>Wrote out.jpg<br><br>$ ocioconvert one_pixel.exr 'ACEScg' out.tif 'Output - sRGB'<br>Loading one_pixel.exr<br>Wrote out.tif<br><br>And image is as expected.<br><br><div>I suspect its a bug in upstream OpenImageIO or OpenColorIO. Maybe it's fixed in upstream.</div><div><br></div><div>Hope you can report it.</div><br>Once again, thanks for the good work team!<br><br>Thanks, and have a nice day!<br><br>Dorian</div>