-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running out of pty devices when building workspace #46
Comments
I just ran into the same issue. |
@qiao-tw Did you hit this running the same configuration as the original reporter? |
@nuclearsandwich Yes. I met this problem while building the ROS source following the steps provided by Mike Purvis' repo, and it happened on command |
@qiao-tw I don't remember specifically, but you can also try the |
@wjwwood I just tried the --no-color option but the issue is still there. |
Quick note to confirm I'm also seeing this issue now...
|
FWIW, a hack to fix is to preface Line 56 of async_execute_process_trollius with I can't quite determine what I'm losing by doing this - perhaps someone can weigh in? |
@jonfink the purpose of the has_pty is to use pty's to emulate a tty for the called process. This makes it appear to the called process that it is being called from a terminal, which in most programs does things like turn on colored output and sometimes some other behaviors like how the stdout is buffered. So specifically this is required for the make file generated by cmake to output colors and for catkin_tools to capture the colors. That's why I suggested elsewhere that using without colors would workaround this as well, but apparently that's not sufficient. Sorry, I don't have time to dig into it more just yet. |
You likely ran into the same problem I had on High Sierra with Emacs shell windows (https://stackoverflow.com/questions/53531777/cannot-open-pty-under-mac-os-high-sierra/53581958#53581958) -- High Sierra uses a different mechanism for allocating pty's than earlier Mac OS X releases, so if your code isn't reconfigured for it, it will fail to allocate a pty. |
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.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
andstderr_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?The text was updated successfully, but these errors were encountered: