Skip to content

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

Description

@hello-amal

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions