populse / capsul

Collaborative Analysis Platform : Simple, Unifying, Lean
Other
7 stars 14 forks source link

Segmentation fault in MIA unitary tests when run locally #203

Open LStruber opened 2 years ago

LStruber commented 2 years ago

Minimum steps to reproduce:

UT pass (OK at the end) but a segmentation fault occurs:

Fatal Python error: Segmentation fault
Current thread 0x00007f70cdefa740 (most recent call first):
File
"/casa/host/src/capsul/master/capsul/qt_gui/widgets/pipeline_developer_view.py",
line 2816 in release_pipeline
File
"/casa/host/src/capsul/master/capsul/qt_gui/widgets/pipeline_developer_view.py",
line 2698 in __del__
Segmentation fault

I do not know exactly from where does it come from but I have the intuition that this could be due to recent changes in release_pipeline function that allowed to properly delete a scene (https://github.com/populse/capsul/issues/196).

When I go back to older commits (https://github.com/populse/populse_mia/commit/f1e29bfd7a233aa9d4756c599e2dbb2b04a03d86 for MIA and https://github.com/populse/capsul/commit/9ad538206c71ccd8ba760e02d5b81aa0900efb65 for Capsul), the segmentation fault disappears in tests.

Maybe sip.transferback() did not completely solve the issue of PyQt/sip ownership management (as suggested by @denisri) ?.