Yes, I had the same issue described here. The pybind11 work being done for
then-oiio-1.9-alpha fixed it for me, so I've just been awaiting the oiio-2
release as a solve.
YMMV.

On Tue, Nov 27, 2018 at 9:00 PM Etienne Fleurant <[email protected]>
wrote:

>
> Hi,
>
> We are getting a seg fault using ImageBufAlgo ociodisplay in python. We're
> using:
> oiio 1.8.10
> compiled on CentOS 7 64bit
>
> Here's a code snippet of what I'm doing:
>
> print os.getenv( 'OCIO' ) # ---> prints '<SOME_PATH>/spi-anim/config.ocio'
>> inputPath  = '<MY_PATH>/test_for_ocio.tif'
>> outputPath = '<MY_PATH>/output.tif'
>> srcBuf = OpenImageIO.ImageBuf( inputPath )
>> OpenImageIO.ImageBufAlgo.ociodisplay( srcBuf , dstBuf , 'sRGB' , 'Film' )
>> dstBuf.write( outputPath )
>
>
> ---> outputs : Segmentation fault (core dumped)
>
> I'm able to make it work through oiiotool though:
> oiiotool '<MY_PATH>/test_for_ocio.tif' --iscolorspace 'lnh' --ociodisplay
> 'sRGB' 'Film' -o '<MY_PATH>/output.tif'
>
> but ultimately I'd like to make it work in python. It's a bit hard to
> debug since I have no idea why it's seg faulting...
>
> By the way, I also tried adding:
> srcBuf.specmod().attribute( 'oiio:ColorSpace' , 'lnh' ) after my srcBuf
> declaration above to no avail.
>
> That was to replicate what I have in my oiiotool example, since if I omit
> this from that command line, I was getting the following error:
> oiiotool ERROR: ociodisplay : DisplayTransform error. Cannot find
> inputColorSpace, named 'Linear'.
>
> Maybe I'm having a similar error with python resulting in the seg fault,
> but I'm not sure.
>
> I'm using the spi-anim config with this example.
> Any help would be appreciated. I could send an example files if needed.
>
> Thanks in advance
>
> _______________________________________________
> Oiio-dev mailing list
> [email protected]
> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
>
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to