Description
I just updated my testing environment to the latest release of Nipype and I have been getting errors from my _redirect_x=True
CommandLine interfaces. The CLI completes without error, but then xvfb-run
errors out with:
/usr/bin/xvfb-run: line 171: kill: (25939) - No such process
Some quick Googling seems to point to the fact that xvfb-run
was not able to kill the display because it was assigned the same display as another instance. My thought is since this only happens on MultiProc/SGE runs of my workflows is that xvfb-run
is used almost simultaneously and hasn't acquired a lock for the display in use and the -a
option still reuses the same display for multiple commands. This way when any command after the first finishes, there is no display to kill, leading to the error. I rolled back my code to use @chrisfilo's hack with subprocess and Xvfb
and the problem resolved itself. I think we should start the -a
option from a random starting value using the -n
option.
Has anyone else seen this issue? Thoughts?