Closed phoebe-p closed 5 years ago
Hi Phoebe,
There is a problem in the call to Eigensystem. You can check this commit from @jbuencuerpo. In particular the RCWA.cpp
file. After applying the patch everything works fine. I tested it with your fork and python example.
José.
PS: To localize the error it is useful to compile the extension with CFLAGS=-g
. After recompiling the extension you can debug the code
gdb python
run S4_script.py
backtrace
Hi José, it worked! Thank you very much for the helpful & very fast reply :)
This issue appears to be related to #42 and #67, however, it only occurs in Ubuntu 18.04.
When installing the S4 Python extension (specifically, this fork which has been modified to be compatible with Python3.x), trying to run any example with patterned layers results in 'Segmentation fault (core dumped)' in Ubuntu 18.04. However, this does not occur when following the same installation steps in Ubuntu 16.04 (other Ubuntu versions have not been tested). Running an example with no patterned layers does not cause a segmentation fault. This happens in Python3.5 and Python3.6.
Unfortunately, there is are no other errors or any traceback to help identify the problem. There are no errors during compilation.
Does anyone have any idea what could be causing this problem? Due to the lack of error messages, I am not sure where to start.
I used this simple example (from @jmllorens in #67) to check whether the segmentation fault occurs: