mayavi icon indicating copy to clipboard operation
mayavi copied to clipboard

Segmentation fault on mlab.figure()

Open nicholasadr opened this issue 3 years ago • 3 comments

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: test

Any suggestions are appreciated.

nicholasadr avatar Jan 10 '22 03:01 nicholasadr

I confirm I get the same (on Ubuntu 20.04).

Just by importing mlab in the python interpreter.

Segmentation fault (core dumped)```

sercharpak avatar Jun 16 '22 07:06 sercharpak

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 .

sercharpak avatar Jun 16 '22 08:06 sercharpak

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?

Chan0081 avatar May 08 '23 07:05 Chan0081