Open eknyazhe opened 4 years ago
Hi @eknyazhe I am not sure why this happened... I am running the QC code in the folder you have. Everything seems working well.
Here is what I used, and I am running this in Nomachine.
source /data/pnl/soft/bashrc cd /data/pnl/clk7/TRACTS/QC/CC2 wm_quality_control_tractography.py . qc
Can you try this and see if it works for you?
Fan
Hi @zhangfanmark , your set up worked for me!
Looks like the issue is that I was sourced to /data/pnl/soft/pnlpipe3/bashrc3
and running wm_quality_control_tractography
in that environment. From now on, should we only run WMA scripts when sourced to /data/pnl/soft/bashrc
?
Hi @eknyazhe Please use this only of the QC code. I assume other scripts works properly? I had issues with using this code in the new environment also. I think somehow related to the QT, which exists on the cluster for quite a while and we could not fix. But not sure if it is the same issue you have. I will take a look later. For now, you can use bashrc for qc.
@zhangfanmark , more debug info: this is the line where the above fails with just one message Segmentation fault (core dumped)
.
I believe the problem traces its root in self.renderer = vtk.vtkRenderer()
:
https://github.com/SlicerDMRI/whitematteranalysis/blob/master/whitematteranalysis/render.py#L127
It just doesn't make sense that for some tract your program succeeds and for some it fails.
Anyways, is it safe to migrate to python3 now?
@tashrifbillah That's strange. Segmentation fault usually is related memory. This need to be debugged. Does his happen always or just for this dataset?
We have performed a bunch of test for the python3 version. It is ready to be used now. But for the existing projects with python2, please keep using that, in case of any inconsistency.
Does [t]his happen always or just for this dataset?
I can't say but we observed it for this one.
By the way, whoever wrote the bashrc you are rooting for, has the following line in it:
41 export LIBGL_ALWAYS_INDIRECT=1 # so vtk rendering does not crash
I tried but to no avail.
The old bashrc is running vtk=7.0
while the new one is vtk=8.1
. I can think of this as the only difference between the two environments. I tried pip install vtk==7.0
but it looks like they deleted that old version from pypi server so didn't succeed downgrading.
Hi @zhangfanmark I am getting the following error when running wm_quality_control_tractography. It goes through a few subjects in a loop and then gives the
Segmentation fault (core dumped)
error`Subject 2 / 180 ID: TRT_0017_CC1