Closed soyeonm closed 3 years ago
@soyeonm, following the headless setup guide, have you set the right X_DISPLAY
here: https://github.com/askforalfred/alfred/blob/master/gen/constants.py#L88?
Can you do the check_thor.py
test before evaluation to see if everything is working?
Thanks for your reply, @MohitShridhar . Yes, I ran
$ALFRED_ROOT/scripts/startx.py 2
set X_DISPLAY = '2' in gen/constants.py, and set export DISPLAY=:2
in the command line.
check_thor.py
also hangs. When I press ctrl+c while running check_thor.py, I get
Traceback (most recent call last): File "scripts/check_thor.py", line 3, in
c = Controller() File "/usr0/soyeonm/anaconda3/lib/python3.8/site-packages/ai2thor/controller.py", line 440, in init self.start( File "/usr0/soyeonm/anaconda3/lib/python3.8/site-packages/ai2thor/controller.py", line 1123, in start self.check_x_display(env["DISPLAY"]) File "/usr0/soyeonm/anaconda3/lib/python3.8/site-packages/ai2thor/controller.py", line 929, in check_x_display subprocess.call("xdpyinfo", stdout=dn, env=env, shell=True) == 0 File "/usr0/soyeonm/anaconda3/lib/python3.8/subprocess.py", line 342, in call return p.wait(timeout=timeout) File "/usr0/soyeonm/anaconda3/lib/python3.8/subprocess.py", line 1079, in wait return self._wait(timeout=timeout) File "/usr0/soyeonm/anaconda3/lib/python3.8/subprocess.py", line 1804, in _wait (pid, sts) = self._try_wait(0) File "/usr0/soyeonm/anaconda3/lib/python3.8/subprocess.py", line 1762, in _try_wait (pid, sts) = os.waitpid(self.pid, wait_flags) KeyboardInterrupt
@soyeonm can you post the output of python startx.py 2
?
This still feels like something to do with setting the correct DISPLAY id. Can you also try different ids?
Closing due to inactivity.
Hello,
When I try to run evaluation code on a headless server, the code does not break but it just hangs and never proceeds. More specifically, when I run
, I get:
and then nothing happens/ prints even if I leave the code for an hour. (I have python
$ALFRED_ROOT/scripts/startx.py 1
(or whatever display number) running in a tmux session.)When I press ctrl + c, I get,
Could you please help me with this issue? Do you have any idea where this is coming from? Thanks!