question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Program stuck in fifo_server.py

See original GitHub issue

I just installed the ai2thor package and tried running the minimal example as suggested in the Readme.md. However I run into this problem where the program is trapped in the fifo_server.py file.

Traceback (most recent call last):
File "test.py", line 2, in <module>
    controller = Controller(scene="FloorPlan10")
  File "/home/siteng/anaconda3/envs/thor/lib/python3.6/site-packages/ai2thor/controller.py", line 476, in __init__
    host=host,
  File "/home/siteng/anaconda3/envs/thor/lib/python3.6/site-packages/ai2thor/controller.py", line 1237, in start
    self.last_event = self.server.receive()
  File "/home/siteng/anaconda3/envs/thor/lib/python3.6/site-packages/ai2thor/fifo_server.py", line 179, in receive
    metadata, files = self._recv_message()
  File "/home/siteng/anaconda3/envs/thor/lib/python3.6/site-packages/ai2thor/fifo_server.py", line 103, in _recv_message
    self.server_pipe = open(self.server_pipe_path, "rb")

I understand that this issue has been brought up before but even after applying the fixed mentioned here I simply end up getting another error message.

Traceback (most recent call last):
  File "test.py", line 4, in <module>
    controller = Controller(scene="FloorPlan10", server_class=ai2thor.wsgi_server.WsgiServer)
  File "/home/siteng/anaconda3/envs/thor/lib/python3.6/site-packages/ai2thor/controller.py", line 476, in __init__
    host=host,
  File "/home/siteng/anaconda3/envs/thor/lib/python3.6/site-packages/ai2thor/controller.py", line 1237, in start
    self.last_event = self.server.receive()
  File "/home/siteng/anaconda3/envs/thor/lib/python3.6/site-packages/ai2thor/wsgi_server.py", line 264, in receive
    return queue_get(self.request_queue, unity_proc=self.unity_proc)
  File "/home/siteng/anaconda3/envs/thor/lib/python3.6/site-packages/ai2thor/wsgi_server.py", line 46, in queue_get
    raise Exception("Unity process exited %s" % unity_proc.returncode)
Exception: Unity process exited 1

System and program info:

ubuntu18.04
ai2thor3.3.4

Any help is greatly appreciated!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Tangolincommented, Jul 15, 2021

@mattdeitke okay sure! I will try it out and get back to you on how it goes.

1reaction
mattdeitkecommented, Jul 15, 2021

Can you try first running

sudo ai2thor-xorg start

and then running the minimal example?

This starts an xserver, which allows Unity to render images without a display. It will run this script: https://github.com/allenai/ai2thor/blob/e6a72999c667feeb4b158f4bdfcdf66910316785/scripts/ai2thor-xorg

Read more comments on GitHub >

github_iconTop Results From Across the Web

My program stuck in fifo_server.py file · Issue #543 · allenai ...
Hi, I have a question, I changed the source code of ai2thor, and built it successfully in macos. But when I run the...
Read more >
FIFO read() function gets stuck in c - linux
To use a FIFO or pipe, sender and receiver must run concurrently, but you are trying to run them sequentially.
Read more >
Prevent automatic EOFs to a named pipe, and send an ...
I have a program that exits automatically upon reading an EOF in a given stream ( in the following case, stdin ). Now...
Read more >
ReadFile hangs on reading from child process.
Hello: Strange hang problem with ReadFile. Here is the algorithm: The idea is to launch a python script from one Win32 GUI application,...
Read more >
open(2) Gets Stuck in Infinite Loop Under Odd ...
I was working on a program to test the size of my system(Linux)'s pipe buffer (it's ... It didn't work and got stuck...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found