Open alipnicky opened 5 years ago
The casaclean script has an option to remove all existing Xvfb processes. Unclear if this works on a Mac.
There is a xvfb-run command (in ubuntu the package xvfb installs it), that one can run casa scripts as follows: xvfb-run casa -c script.py thus wondering if that way it would guarantee that our zombie would be killed naturally.
Hi @teuben, just to note, that is how I run all the ADMIT recipes and how they end up hanging in the first place. Unless you're talking about using xvfb-run for your individual CASA calls?
JAO people were mentioning the -a flag, but I didn't have much luck with that
While running ADMIT recipes 1 and/or 2 sequentially on many images, eventually it will start failing with the following error:
This is caused by a piling up of Xvfb windows that fail to close after ADMIT finishes with a recipe as running a
ps aux | grep -i Xvfb
reveals many currently open (but idle) Xvfb processes. Basically, ADMIT opens a new virtual window with each recipe call and does not close it when it is finished. Therefore, eventually all virtual windows are filled with idle processes until no open virtual displays are left. After that point, the above error message will display until the windows are closed manually. As a work-around, I now manually close all Xvfb sessions before executing another recipe through the following bit of code:This solution still results in some failures since sometimes multiple sessions of ADMIT are running at the same time which results in them closing each other's still active windows.
When performing similar tasks in CASA (i.e. running imview in --nogui mode), a virtual window is created through Xvfb until the task is completed however it is then closed when the task exits. For some reason that isn't obvious to me, when ADMIT calls this task, the window isn't closed when the task completes. Perhaps it is a subtle difference between using the imview "task" versus the imview "tool"?
This happens when using the newest version of ADMIT downloaded from this github or the one installed on the NAASC lustre under ~pteuben/admit.