Open
Description
I am installing Lunar on my Mac using Mike Purvis' OSX install script. When executing catkin build
, this error pops up after a while, and with different packages. It seems like my computer is running out of pty's.
Errors << control_msgs:install /Users/kdh/ros-install-osx/lunar_desktop_full_ws/logs/control_msgs/build.install.001.log
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/catkin_tools/execution/executor.py", line 109, in async_job
**stage.async_execute_process_kwargs))
File "/usr/local/lib/python2.7/site-packages/trollius/tasks.py", line 259, in _step
result = coro.send(value)
File "/usr/local/lib/python2.7/site-packages/osrf_pycommon/process_utils/async_execute_process_trollius.py", line 69, in _async_execute_process_pty
stderr_master, stderr_slave = pty.openpty()
File "/usr/local/Cellar/python/2.7.14_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pty.py", line 29, in openpty
master_fd, slave_name = _open_terminal()
File "/usr/local/Cellar/python/2.7.14_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pty.py", line 70, in _open_terminal
raise os.error, 'out of pty devices'
OSError: out of pty devices
I would suggest to check whether there is available pty's before opening a new. I will not try and fix it my self as I have no idea what the code does :)
The problem might also be that the code is leaking pty's; that the OS is waiting for the code to close them. In the code line 65 to 69 I can see that stdout_master
and stderr_master
is opened but never closed. I guess that is because they would close upon termination of the process, but the process might be hanging?