fury-gl / fury

FURY - Free Unified Rendering in pYthon.
https://fury.gl
Other
227 stars 165 forks source link

Segmentation Fault while plotting (diffusion tractography) images on a non-interactive remote cluster #787

Closed man-shu closed 1 year ago

man-shu commented 1 year ago

Description

I wanted to plot diffusion tractography images as in viz_bundles.py example, but I want to do that a non-interactive remote high-performance computing cluster (because the tractography files are huge ~5Gb). But when I do that, or even if I simply run python viz_bundles.py I get a segmentation fault error. I suspect this is because vtk tries to render a GUI window in the background, which can't be done because the resources aren't available on the non-interactive cluster.

So I just wanna know if this is at all possible with dipy/fury yet? If so, please let me know how.

Way to reproduce

I ran viz_bundles.py on my local machine, and it works fine there but fails on the remote cluster. I have attached the gdb traceback for the run on remote cluster here: traceback.txt

{'fury_version': '0.9.0', 'pkg_path': '/scratch/haggarwa/qmri_condapy/lib/python3.9/site-packages/fury', 'commit_hash': '', 'sys_version': '3.9.5 (default, Jun 4 2021, 12:28:51) \n[GCC 7.5.0]', 'sys_executable': '/scratch/haggarwa/qmri_condapy/bin/python', 'sys_platform': 'linux', 'numpy_version': '1.22.1', 'scipy_version': '1.9.1', 'vtk_version': '9.2.6', 'matplotlib_version': '3.5.0', 'dipy_version': '1.7.0'}

skoudoro commented 1 year ago

Hi @man-shu,

Are you using the offscreen=True option ?

Which line is crashing ?

o I just wanna know if this is at all possible with dipy/fury yet?

yes, it is

ps: sorry for the late reply