Can you try a newer version? The currently supported release is 2.1. A lot has 
been fixed since 1.8, which dates from 1 Oct 2018.

But, to be honest, I'm not sure you should expect getpixel() to work on a deep 
image, though of course I would like to think it wouldn't crash. For a deep 
image, there are a bunch of special deep_samples() and deep_value() methods.



> On Feb 28, 2020, at 9:31 AM, Søren Ragsdale <sor...@gmail.com> wrote:
> 
> I've been getting an OSL crash in Python while reading a deep image file. Is 
> this expected? Am I doing something wrong?
> 
> Python 2.7.13 (default, Dec 12 2019, 17:15:51)
> [GCC 4.9.4] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import OpenImageIO
> >>> OpenImageIO.openimageio_version
> 10815
> >>> buf = OpenImageIO.ImageBuf("object_deep_id_left.1001.id 
> >>> <http://object_deep_id_left.1001.id/>")
> >>> buf.getpixel(0,0)
> Segmentation fault
> 
> 
> Here's the info on the file I'm trying to read:
> 
> $ iinfo -v object_deep_id_left.1001.id <http://object_deep_id_left.1001.id/>
> object_deep_id_left.1001.id <http://object_deep_id_left.1001.id/> : 2252 x  
> 942, 4 channel, deep float openexr
>     channel list: A, Z, ZBack, id
>     pixel data origin: x=-102, y=-42
>     full/display size: 2048 x 858
>     full/display origin: 0, 0
>     oiio:ColorSpace: "Linear"
>     compression: "zips"
>     DateTime: "2020:02:28 17:08:58"
>     openexr:chunkCount: 942
>     clipFar: 10000
>     clipNear: 0.1
>     ImageDescription: "Created using: Pixar PhotoRealistic RenderMan 
> 22.7\nCreated on: bierton"
>     PixelAspectRatio: 1
>     screenWindowCenter: 0 0
>     screenWindowWidth: 0.382401
>     tagfile: "object_deep_id_left.1001.json"
>     utcOffset: 0
>     openexr:version: 1
>     worldtocamera: 1 0 -0 0 0 1 -0 0 0 0 -1 0 0 -12 17 1
>     worldtoscreen: 5.2301 0 0 0 0 12.484 0 0 0 0 -1.00001 -1 0 -149.808 
> 16.9002 17
> _______________________________________________
> Oiio-dev mailing list
> Oiio-dev@lists.openimageio.org
> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

--
Larry Gritz
l...@larrygritz.com




_______________________________________________
Oiio-dev mailing list
Oiio-dev@lists.openimageio.org
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to