Skip to content

Segmentation fault when building on ubuntu 24.04 #1346

@mhanberry1

Description

@mhanberry1

background

I'm trying to compile mayavi in a venv on ubuntu, but a segmentation fault occurs during the build on line 716 in mayavi/tvtk/vtk_parser.py:

del obj

system

OS: ubuntu 24.04
Python version: 3.12.3

steps to reproduce

python3 -m venv venv
source venv/bin/activate
pip install pyproject.toml
pip install vtk pyQt5
python3 setup.py build

error message

default: [0.0, 0.0, 0.0, 0.0], range: None
  Using super <class 'vtkmodules.vtkChartsCore.vtkColorTransferFunctionItem'> instead of <class 'vtkmodules.vtkChartsCore.vtkScalarsToColorsItem'>
  Using super <class 'vtkmodules.vtkIOXML.vtkXMLUniformGridAMRWriter'> instead of <class 'vtkmodules.vtkIOXML.vtkXMLCompositeDataWriter'>
  Using super <class 'vtkmodules.vtkIOParallelXML.vtkXMLPDataSetWriter'> instead of <class 'vtkmodules.vtkIOParallelXML.vtkXMLPDataWriter'>
  Using super <class 'vtkmodules.vtkIOParallelXML.vtkXMLPDataWriter'> instead of <class 'vtkmodules.vtkIOParallelXML.vtkXMLPDataObjectWriter'>
  Using super <class 'vtkmodules.vtkIOParallelXML.vtkXMLPDataSetWriter'> instead of <class 'vtkmodules.vtkIOParallelXML.vtkXMLPDataWriter'>
  Using super <class 'vtkmodules.vtkIOParallelXML.vtkXMLPDataWriter'> instead of <class 'vtkmodules.vtkIOParallelXML.vtkXMLPDataObjectWriter'>
  Using super <class 'vtkmodules.vtkIOXML.vtkXMLImageDataReader'> instead of <class 'vtkmodules.vtkIOXML.vtkXMLStructuredDataReader'>
  Using super <class 'vtkmodules.vtkIOXML.vtkXMLImageDataWriter'> instead of <class 'vtkmodules.vtkIOXML.vtkXMLStructuredDataWriter'>
  Using super <class 'vtkmodules.vtkIOXML.vtkXMLPolyDataWriter'> instead of <class 'vtkmodules.vtkIOXML.vtkXMLUnstructuredDataWriter'>
Fatal Python error: Segmentation fault

Current thread 0x0000727ce0444080 (most recent call first):
  File "/home/rhotate/Dev/mayavi/tvtk/vtk_parser.py", line 716 in _find_get_set_methods
  File "/home/rhotate/Dev/mayavi/tvtk/vtk_parser.py", line 490 in _organize_methods
  File "/home/rhotate/Dev/mayavi/tvtk/vtk_parser.py", line 156 in parse
  File "/home/rhotate/Dev/mayavi/tvtk/wrapper_gen.py", line 338 in _gen_methods
  File "/home/rhotate/Dev/mayavi/tvtk/wrapper_gen.py", line 239 in generate_code
  File "/home/rhotate/Dev/mayavi/tvtk/code_gen.py", line 241 in _write_wrapper_class
  File "/home/rhotate/Dev/mayavi/tvtk/code_gen.py", line 148 in generate_code
  File "/home/rhotate/Dev/mayavi/tvtk/_setup.py", line 58 in gen_tvtk_classes_zip
  File "/home/rhotate/Dev/mayavi/setup.py", line 247 in build_tvtk_classes_zip
  File "/home/rhotate/Dev/mayavi/setup.py", line 254 in run
  File "/home/rhotate/Dev/mayavi/venv/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 1021 in run_command
  File "/home/rhotate/Dev/mayavi/venv/lib/python3.12/site-packages/setuptools/dist.py", line 1106 in run_command
  File "/home/rhotate/Dev/mayavi/venv/lib/python3.12/site-packages/setuptools/_distutils/cmd.py", line 357 in run_command
  File "/home/rhotate/Dev/mayavi/venv/lib/python3.12/site-packages/setuptools/_distutils/command/build.py", line 135 in run
  File "/home/rhotate/Dev/mayavi/venv/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 1021 in run_command
  File "/home/rhotate/Dev/mayavi/venv/lib/python3.12/site-packages/setuptools/dist.py", line 1106 in run_command
  File "/home/rhotate/Dev/mayavi/venv/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 1002 in run_commands
  File "/home/rhotate/Dev/mayavi/venv/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 202 in run_commands
  File "/home/rhotate/Dev/mayavi/venv/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 186 in setup
  File "/home/rhotate/Dev/mayavi/venv/lib/python3.12/site-packages/setuptools/__init__.py", line 117 in setup
  File "/home/rhotate/Dev/mayavi/setup.py", line 322 in <module>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions