simphony / simphony-mayavi

The mayavi adapters to the simphony framework
BSD 2-Clause "Simplified" License
0 stars 1 forks source link

Mesh data visualization don't work with multiblock mesh with mayavi2 #127

Closed khiltunen closed 8 years ago

khiltunen commented 8 years ago

Trying to visualize mesh made of multiple blocks on OpenFoam. If some module is added in mayavi2 (for example Vectors) Segmentation fault is gained. Using simple one block mesh everything seems to work. Attached are files to reproduce the error

vortex_shedding.py.txt vortex_shedding_mesh.py.txt

kitchoi commented 8 years ago

Couldn't reproduce it... Edit: Here it shows Glyph. But I just tried all of them. No Seg fault screenshot from 2016-01-22 16 09 53

khiltunen commented 8 years ago

Tried also glyph. It seems to crash with every module. In poiseuille example if i put directly to code s = Surface() mayavi.add_module(s) it works, put also in that example if i try to add module in mayavi2 it crashes.

With this vortex_shedding case if i add module directly in code, mayavi2 window is shown put its freezed with no control.

khiltunen commented 8 years ago

Just to remind my environment is VM ubuntu 12.04LTS and i'm connecting thru vnc.

kitchoi commented 8 years ago

And running unittest does not produce Seg Fault like in #111? The other day I reproduced the Seg Fault by installing paraview in the same virtual environment (and so fixed it by removing simphony-paraview). Just wondering if that is the case here as well.

khiltunen commented 8 years ago

Yes i have simphony-paraview installed. How did you uninstalled it ? Tried easy_install -m simphony-paraview ? Still produces same Seg fault.

kitchoi commented 8 years ago

Looks like paraview is interfering. Try pip unisntall simphony-paraview and if you have paraviewopenfoam in your PYTHONPATH and LD_LIBRARY_PATH, remove them too.

khiltunen commented 8 years ago

Done that. paraviewopenfoam was not in paths. When i add module in mayavi2 it flashes the visualization for a moment and then crashes with Seg fault.

kitchoi commented 8 years ago

Does your VM support OpenGL? Is it turned on?

khiltunen commented 8 years ago

I'm using through vnc and it uses Mesa i suppose

kitchoi commented 8 years ago

@khiltunen does this problem persist if you reinstall mayavi after removing paraview?

khiltunen commented 8 years ago

I get it to work after removing paraview.

kitchoi commented 8 years ago

Thanks!