Discussion:
[Oiio-dev] Segmentation fault when iterating on an image extra_attribs in python
Etienne Fleurant
2018-12-04 21:19:06 UTC
Permalink
Hi,

We are getting a seg fault when iterating on an image extra_attribs in
python.

Here's a code example:

srcBuf = OpenImageIO.ImageBuf( inputPath )
srcBufSpec = srcBuf.spec()
print attr.name
*---> OUTPUT:*
*oiio:ColorSpace*
*compression*
*nuke/full_layer_names*
*nuke/node_hash*
*nuke/version*
*PixelAspectRatio*
*screenWindowCenter*
*screenWindowWidth*
*openexr:version**Segmentation fault (core dumped)*
The inputPath is a simple .exr file exported from Nuke, just a simple
colorbar. Tested with a .tif file also with the same result. I could upload
one of those files somewhere if needed.

We are using OIIO v2.0.1-RC1 on CentOS7.

Thanks in advance,
Etienne
Larry Gritz
2018-12-04 22:14:52 UTC
Permalink
Can you send me (privately if you want) an example file to reproduce it?

If it's a sensitive image, you may be able to "sanitize" it like:

oiiotool private.exr -mulc 0,0,0,0 -o clean.exr

and see if that sill crashes (with all black pixels, but preserving the problematic metadata), then it'll be safe to send.
Hi,
We are getting a seg fault when iterating on an image extra_attribs in python.
srcBuf = OpenImageIO.ImageBuf( inputPath )
srcBufSpec = srcBuf.spec()
print attr.name <http://attr.name/>
oiio:ColorSpace
compression
nuke/full_layer_names
nuke/node_hash
nuke/version
PixelAspectRatio
screenWindowCenter
screenWindowWidth
openexr:version
Segmentation fault (core dumped)
The inputPath is a simple .exr file exported from Nuke, just a simple colorbar. Tested with a .tif file also with the same result. I could upload one of those files somewhere if needed.
We are using OIIO v2.0.1-RC1 on CentOS7.
Thanks in advance,
Etienne
_______________________________________________
Oiio-dev mailing list
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
--
Larry Gritz
***@larrygritz.com
Etienne Fleurant
2018-12-04 23:19:04 UTC
Permalink
I sent you the test image to you privately!

Thanks for the quick response!
Cheers
Post by Larry Gritz
Can you send me (privately if you want) an example file to reproduce it?
oiiotool private.exr -mulc 0,0,0,0 -o clean.exr
and see if that sill crashes (with all black pixels, but preserving the
problematic metadata), then it'll be safe to send.
Hi,
We are getting a seg fault when iterating on an image extra_attribs in python.
srcBuf = OpenImageIO.ImageBuf( inputPath )
srcBufSpec = srcBuf.spec()
print attr.name
*---> OUTPUT:*
*oiio:ColorSpace*
*compression*
*nuke/full_layer_names*
*nuke/node_hash*
*nuke/version*
*PixelAspectRatio*
*screenWindowCenter*
*screenWindowWidth*
*openexr:version**Segmentation fault (core dumped)*
The inputPath is a simple .exr file exported from Nuke, just a simple
colorbar. Tested with a .tif file also with the same result. I could upload
one of those files somewhere if needed.
We are using OIIO v2.0.1-RC1 on CentOS7.
Thanks in advance,
Etienne
_______________________________________________
Oiio-dev mailing list
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
--
Larry Gritz
_______________________________________________
Oiio-dev mailing list
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
Loading...