openexrpython icon indicating copy to clipboard operation
openexrpython copied to clipboard

Some errors about Segmentation fault (core dumped)

Open ningscapr opened this issue 7 years ago • 3 comments

Hi, This is my code running on Ubuntu 16.07 python 3.5.

import OpenEXR 
infile = OpenEXR.InputFile("7_31.VRayID.0000.exr")
print(infile.header())

It can't print out anything but an error Segmentation fault (core dumped). I don't know how to fix this. Can you help me?

This exr file is 86kB. I tried another one is 41kB, it works fine. I guess it is something about the storage. But i really can't identify it.

Thanks in advance.

ningscapr avatar Oct 21 '18 08:10 ningscapr

And i have used gdb to debug, got the answer

Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f1ab1c057d0 in ?? ()
[Current thread is 1 (LWP 11741)]

I am new to this, i don't know how to do it.

ningscapr avatar Oct 21 '18 08:10 ningscapr

Please download and try with this file:

https://github.com/jamesbowman/openexrpython/blob/master/GoldenGate.exr

jamesbowman avatar Oct 21 '18 13:10 jamesbowman

Thanks, problem solved. It seems some errors in my EXR file. I haven't figured it out, but my code is correct.

ningscapr avatar Nov 09 '18 06:11 ningscapr