Apr-11-2024, 11:09 AM
It's only a conjecture but I find the way you start the Xvfb process a little strange. Why use shell=True? Why use stdout=PIPE? The problem with stdout=PIPE is that if the process attempts to print some output it will block because you didn't add code to read in the pipe.
I suggest that you try
I suggest that you try
xproc = subprocess.Popen(['sudo', 'Xvfb', ':1'])You may also consider to terminate the subprocess at some point.
« We can solve any problem by introducing an extra level of indirection »