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

LCM failing on new drake installation (Was an OSX 10.10 Yosemite issue with IPV6) #558

Closed
peteflorence opened this issue Nov 14, 2014 · 18 comments · Fixed by #1188
Closed

Comments

@peteflorence
Copy link
Contributor

Getting following error after calling LCM to set up visualizer outside of MATLAB:

"LC singleton fail: java.net.SocketException: Can't assign requested address"

Some notes:

  • Running MATLAB 2013b on Yosemite
  • Fresh install of drake from last night was working fine
  • Not sure what changed between last night and today, but anything calling lcm to set up the visualizer now crashes MATLAB
  • After the above error message, MATLAB instantly crashes
  • Captured screenshot below of error message

lcmissue

@peteflorence
Copy link
Contributor Author

Seems to be interference with networking setup... Andy is helping fix...

@tkoolen
Copy link
Contributor

tkoolen commented Nov 14, 2014

I had a similar issue last week. For me Matlab exited before it printed the error message, but running from the command line showed the same SocketException. It went away after I rebooted, but a real fix would be great.

@peteflorence
Copy link
Contributor Author

We have been able to avoid the issue when WiFi is turned off. Everything works fine with WiFi off, and can still plug in via ethernet to get Internet.

Still trying to find a fix without shutting off WiFi

@peteflorence
Copy link
Contributor Author

We've tried running sudo /Users/pflomacpro/drake-distro/drake/util/setup_loopback_multicast.sh

as was suggested in the error message, but does not work.

Also Twan, yes my Matlab exits almost instantaneously too. I just grabbed a cmd+shift+3 screenshot right as it was closing.

@peteflorence
Copy link
Contributor Author

Twan, we found a real fix, coming shortly...

@peteflorence
Copy link
Contributor Author

Fixed:

-Djava.net.preferIPv4Stack=true

Note, my java.opts file also had:

-Dapple.awt.graphics.UseQuartz=true

Thanks Andy!

@tkoolen
Copy link
Contributor

tkoolen commented Jan 28, 2015

Thanks for the detailed description @peteflorence, I had to do this again and your comment was very helpful.

@peteflorence
Copy link
Contributor Author

Glad it was helpful @tkoolen !

@RussTedrake
Copy link
Contributor

👍 -- just ran into this on the build server and luckily googling for a solution took me right back to this page. :) thanks again @andybarry and @peteflorence

@peteflorence
Copy link
Contributor Author

Glad it helped!

On Monday, April 13, 2015, Russ Tedrake notifications@github.com wrote:

[image: 👍] -- just ran into this on the build server and luckily
googling for a solution took me right back to this page. :) thanks again
@andybarry https://github.com/andybarry and @peteflorence
https://github.com/peteflorence


Reply to this email directly or view it on GitHub
#558 (comment)
.

@peteflorence peteflorence changed the title LCM failing on new drake installation LCM failing on new drake installation (Was an OSX 10.10 Yosemite issue with IPV6) Apr 18, 2015
@peteflorence
Copy link
Contributor Author

Added Yosemite and IPV6 to the title to help people find this, seems to keep coming up

@DiitsGp
Copy link

DiitsGp commented Aug 7, 2015

I got this error again today. It went away after I re-opened MATLAB, but I thought I'd let you know that somehow this can still happen...here's a screenshot of my java.opts file

(Error occurred while running solvers/trajectoryOptimization/test/contactImplicitBrick.m)

image

@tkoolen
Copy link
Contributor

tkoolen commented Aug 7, 2015

Do you have two versions of Matlab maybe?

@DiitsGp
Copy link

DiitsGp commented Aug 7, 2015

No, just a single install of R2014b. I couldn't replicate the problem so it's probably nothing to worry about, I just found it curious that LCM path thing happened again.

@liangfok
Copy link
Contributor

liangfok commented Apr 7, 2016

Can LCM be updated to support IPv6? Or, is this fundamentally a Java issue?

@RussTedrake
Copy link
Contributor

You could post this to the lcm issue page...?

@liangfok
Copy link
Contributor

liangfok commented Apr 7, 2016

Done: lcm-proj/lcm#59

@pvarin
Copy link
Contributor

pvarin commented Aug 26, 2016

My installation of Matlab (R2016a for maci64) didn't come with a java.opts file and I was having trouble with getting Matlab to read my java.opts file from the $MATLABROOT/bin/$ARCH directory, so I symlink-ed it to the startup directory (which can be found by running the userpath command from the Matlab command line) and it seemed to work.

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

Successfully merging a pull request may close this issue.

6 participants