Skip to content
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

rosgraph - roscore crash on OSX, depending on network setup #845

Closed
luke-gumbley opened this issue Jul 23, 2016 · 3 comments
Closed

rosgraph - roscore crash on OSX, depending on network setup #845

luke-gumbley opened this issue Jul 23, 2016 · 3 comments

Comments

@luke-gumbley
Copy link
Contributor

Crashes for me with a fresh Yosemite install. For a similar report, see http://answers.ros.org/question/220631/roscore-bug-errno8/

The issue is caused by OSX being categorised as non-unix-like in network.py, meaning the less sophisticated local address lookup is used. PR inbound.

@dirk-thomas
Copy link
Member

The references questions seems to have been resolved by resetting the environment variables and setting the hostname. Can you please describe what your exact problem is?

@luke-gumbley
Copy link
Contributor Author

On OSX, the machine name is not automatically resolvable to the local machine. You must either append ".local" or add the machine name to the hosts file as 127.0.0.1.

In the referenced example, the initial report did have problems with environment variables but the follow-up comment beneath refers to the actual issue ("my computer couldn't ping itself under its own name").

Resolution is straightforward - rosgraph already includes a more sophisticated method of obtaining local addresses, but it's not used as the OS check for it excludes OSX. My PR just adds OSX back in.

@dirk-thomas
Copy link
Member

Addressed by #846.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants