mayavi
mayavi copied to clipboard
Segmentation fault on mlab.figure()
I'm running Ubuntu 18.04 and have installed mayavi2 via apt install
I tried to run a simple script:
from mayavi import mlab
mlab.figure()
However I keep running into a segmentation fault despite doing export ETS_TOOLKIT=wx as suggested in here:

Any suggestions are appreciated.
I confirm I get the same (on Ubuntu 20.04).
Just by importing mlab in the python interpreter.
Segmentation fault (core dumped)```
This mysterious segmentation fault appeared pretty much out of nowhere for me.
Found a way to workaround by re-installing my conda env and installed mayavi through conda-forge.
conda install -c conda-forge vtk mayavi .
This mysterious segmentation fault appeared pretty much out of nowhere for me. Found a way to workaround by re-installing my conda env and installed mayavi through conda-forge.
conda install -c conda-forge vtk mayavi.
Got the same issue: segmentation fault come from almost any mlab functions. Besides, the segmentation fault appeared randomly in a for-loop. The same code may or may not cause the fault.
I tried the above solution but it didn't work.
I also tried the solution from #450 :
export ETS_TOOLKIT=wx
It didn't work either.
In debug mode, the error says:
corrupted size vs. prev_size
Any idea?