Closed Nongzhsh closed 3 weeks ago
os.system("pkill -u $(whoami) Xvfb")
works for me after all futures are completed.
However, I feel like this isn't a good idea. 😂
Added an experimental fix in 0.3.1. :+1:
Let me know how it works for you.
Added an experimental fix in 0.3.1. 👍
Let me know how it works for you.
version 0.3.2
works great!
I’ve tested it, much appreciated! 👍
Hello, @daijro ! The Xvfb auto-termination fix worked great, but I’m noticing a new issue when running multiple Camoufox instances at the same time. If I launch the example script in different shell sessions concurrently, the browser takes a really long time to start up successfully. I wonder if there’s some kind of resource contention happening, maybe around the DISPLAY
environment variable? Just a guess (I’m not super familiar with Python), but this might be a bug. 😅
Describe the bug:
When
headless='virtual'
is enabled in the Camoufox library, Xvfb does not terminate automatically at the end of the program. This behavior prevents the thread from exiting properly.To Reproduce:
Version:
OS: WSL2 (Ubuntu 22.04.4 LTS) Pip package: v0.3.0 Camoufox: v130.0.1-beta.13 (Up to date!)