-
Notifications
You must be signed in to change notification settings - Fork 314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update pyvirtualdisplay to >1.0.0 version #694
Comments
First time contributor--could I look into this? |
Go right ahead :) Feel free to ask any questions you have here or in our Matrix channel |
I've been looking into this, and I think the interface change was in moving away from inheriting a class with cmd_params. I think we could get the display's port from display.new_display_var for an easy patch. |
Yes, by default we should just shut down properly and don't go around killing processes and deleting files manually. |
Closed by #831 |
In #682 we pinned
pyvirtualdisplay
to 0.2.5 due to an incompatible interface change. See the excerpt from this test run:We use
cmd_param
to retrieve the "display port", which is then used to identify a temporary lockfile placed in the users tmp folder. See:This was initially added because long-running crawls would fill the tmp directory with too many lock files and would eventually lead XVFB to fail because it would be assigned a port that already had a lock file.
This can probably be fixed by actually shutting down xvfb properly in https://github.com/mozilla/OpenWPM/blob/43922bc18cc458eab3aaea618c1f4bb4b14ccf8f/automation/BrowserManager.py#L503-L512 and not just killing the process like we do right now.
I think the new >1.0.0 interface still exposes the same info via the
display
property. See the lockfile creation code. But as Sarah points out in #682 (comment) this might not even be necessary, since a proper shutdown should clear the lockfile and loads of improper shutdowns point to another issue. We should verify that's the case (i.e., a proper shutdown removes the lockfile).The text was updated successfully, but these errors were encountered: