vtkbool icon indicating copy to clipboard operation
vtkbool copied to clipboard

Unable to import the module into a python script "Segmentation Fault".

Open anasshaddad opened this issue 3 years ago • 3 comments

First of all, I want to thank you for the work you are doing. I was able to compile the package but I can't import it into my python script, it gives me a segmentation error as shown in the figure below image (2) .

anasshaddad avatar Aug 02 '22 13:08 anasshaddad

This is also a problem for me, the segfault occurs when this snippet is called:

PyTypeObject *pytype = PyVTKClass_Add(
    &PyvtkPolyDataBooleanFilter_Type, PyvtkPolyDataBooleanFilter_Methods,
    "vtkPolyDataBooleanFilter",
 &PyvtkPolyDataBooleanFilter_StaticNew);

It's called from vtkbool/build/CMakeFiles/vtkBoolPython/vtkPolyDataBooleanFilterPython.cxx, which is a file generated as part of cmake. I think it's generated from this macro (but I'm not sure since I don't know how vtk builds things): https://github.com/zippy84/vtkbool/blob/eed1106bec1e91dc0ed4a86060bcad3a220b292d/vtkPolyDataBooleanFilter.cxx#L54

The C++ version of the module appears to work fine for me, I'm using that for now, thanks for building this!

CalumFreeman avatar Aug 09 '22 14:08 CalumFreeman

@anasshaddad Please say something about your environment.

zippy84 avatar Aug 14 '22 16:08 zippy84

@CalumFreeman What about you?

zippy84 avatar Aug 22 '22 10:08 zippy84

I'm closing this as no additional information was added.

zippy84 avatar May 28 '23 13:05 zippy84