PyRep: Example program hangs in headless mode
Hi, when I ran an example in headless mode with xvfb, I got the following execution and it hangs there after Reached target 5!.
$ xvfb-run python ~/repos/PyRep/examples/example_panda_reach_target.py
Reached target 0!
Reached target 1!
Reached target 2!
Reached target 3!
Reached target 4!
Reached target 5!
^C (SIGINT)
The X11 connection broke (error 1). Did the X11 server die?
QMutex: destroying locked mutex
QMutex: destroying locked mutex
But the expected behavior with GUI should be:
$ python ~/repos/PyRep/examples/example_panda_reach_target.py
Reached target 0!
Reached target 1!
Reached target 2!
Reached target 3!
Reached target 4!
Reached target 5!
Reached target 6!
Reached target 7!
Reached target 8!
Reached target 9!
[CoppeliaSim:loadinfo] done.
QObject::~QObject: Timers cannot be stopped from another thread
Do you have any suggestions? Thanks!
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 18 (8 by maintainers)
Confirming that
glxgearsworks without any problem (have been running it for a few hours now)I think this is an issue regarding the X11 server hanging, but not sure what exactly is causing it. We could try and alternative to Xvfb?
Hmm, that is strange⦠What happens if you instead run the following: