Skip to content
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

Zombie process when running without a display (e.g., over SSH) #4

Open
hello-amal opened this issue Jul 2, 2024 · 0 comments
Open
Assignees

Comments

@hello-amal
Copy link

Problem

If a user runs python3 visual_servoing_demo.py from an SSH session without X11 forwarding, it aborts due to there not being a display to show the OpenCV images. However, it doesn't terminate cleanly; running htop still shows python3 visual_servoing_demo.py as a process, and stretch_free_robot_process.sh is unable to free it. A user has to manually get the PID (e.g., from htop) and kill <pid>.

Suggested Solution(s)

The visual servoing demo should detect if there is a display or not (e.g., check if the DISPLAY environment variable is set). If not, it should either: (a) print an error and terminate cleanly; or (b) run as usual, without the cv2.imshow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants