enthought / mayavi

3D visualization of scientific data in Python
http://docs.enthought.com/mayavi/mayavi/
Other
1.3k stars 284 forks source link

Segmentation fault on mlab.figure() #1121

Open nicholasadr opened 2 years ago

nicholasadr commented 2 years ago

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.

sercharpak commented 2 years ago

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

Just by importing mlab in the python interpreter.


Segmentation fault (core dumped)```
sercharpak commented 2 years ago

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.

Chan0081 commented 1 year ago

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?