jamesbowman / openexrpython

OpenEXR bindings for Python
Other
95 stars 35 forks source link

Some errors about Segmentation fault (core dumped) #20

Open ningscapr opened 5 years ago

ningscapr commented 5 years ago

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 commented 5 years ago

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.

jamesbowman commented 5 years ago

Please download and try with this file:

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

ningscapr commented 5 years ago

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