You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm trying to debug my code, which uses the following line:
with rawpy.imread(img_arw_path) as img_raw:
Whenever I set a break point after the scope of the 'with', PyCharm throws the following error: Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)
Has this happened to anyone here? How do I resolve it?
The text was updated successfully, but these errors were encountered:
letmaik
changed the title
rawpy.imread(...) as img_raw leads to Process finished with exit code 139 (interrupted by signal 11: SIGSEGV) in debug mode
SIGSEGV when debugging in PyCharm
Dec 12, 2021
The only way rawpy can crash is when raw.raw_image is accessed after the file is closed, which is documented. I'm guessing that you have some code like im = raw.raw_image inside the with and then Python being Python, this variable still exists after the with block. The debugger in PyCharm probably tries to visualize everything and accesses this variable. A work-around would be to del im at the end inside the with block. Then the variable is gone for good.
Hi, I'm trying to debug my code, which uses the following line:
with rawpy.imread(img_arw_path) as img_raw:
Whenever I set a break point after the scope of the 'with', PyCharm throws the following error:
Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)
Has this happened to anyone here? How do I resolve it?
The text was updated successfully, but these errors were encountered: