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

Comments

Projects
None yet
6 participants
@peteflorence
Contributor

peteflorence commented Nov 14, 2014

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

This comment has been minimized.

Show comment
Hide comment
@peteflorence

peteflorence Nov 14, 2014

Contributor

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

Contributor

peteflorence commented Nov 14, 2014

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

@tkoolen

This comment has been minimized.

Show comment
Hide comment
@tkoolen

tkoolen Nov 14, 2014

Contributor

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.

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

This comment has been minimized.

Show comment
Hide comment
@peteflorence

peteflorence Nov 14, 2014

Contributor

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

Contributor

peteflorence commented Nov 14, 2014

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

This comment has been minimized.

Show comment
Hide comment
@peteflorence

peteflorence Nov 14, 2014

Contributor

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.

Contributor

peteflorence commented Nov 14, 2014

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

This comment has been minimized.

Show comment
Hide comment
@peteflorence

peteflorence Nov 14, 2014

Contributor

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

Contributor

peteflorence commented Nov 14, 2014

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

@peteflorence

This comment has been minimized.

Show comment
Hide comment
@peteflorence

peteflorence Nov 14, 2014

Contributor

Fixed:

-Djava.net.preferIPv4Stack=true

Note, my java.opts file also had:

-Dapple.awt.graphics.UseQuartz=true

Thanks Andy!

Contributor

peteflorence commented Nov 14, 2014

Fixed:

-Djava.net.preferIPv4Stack=true

Note, my java.opts file also had:

-Dapple.awt.graphics.UseQuartz=true

Thanks Andy!

@tkoolen

This comment has been minimized.

Show comment
Hide comment
@tkoolen

tkoolen Jan 28, 2015

Contributor

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

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

This comment has been minimized.

Show comment
Hide comment
@peteflorence

peteflorence Jan 28, 2015

Contributor

Glad it was helpful @tkoolen !

Contributor

peteflorence commented Jan 28, 2015

Glad it was helpful @tkoolen !

@RussTedrake

This comment has been minimized.

Show comment
Hide comment
@RussTedrake

RussTedrake Apr 14, 2015

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

Contributor

RussTedrake commented Apr 14, 2015

👍 -- 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

This comment has been minimized.

Show comment
Hide comment
@peteflorence

peteflorence Apr 14, 2015

Contributor

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)
.

Contributor

peteflorence commented Apr 14, 2015

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 from LCM failing on new drake installation to LCM failing on new drake installation (Was an OSX 10.10 Yosemite issue with IPV6) Apr 18, 2015

@peteflorence

This comment has been minimized.

Show comment
Hide comment
@peteflorence

peteflorence Apr 18, 2015

Contributor

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

Contributor

peteflorence commented Apr 18, 2015

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

@DiitsGp

This comment has been minimized.

Show comment
Hide comment
@DiitsGp

DiitsGp 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

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

This comment has been minimized.

Show comment
Hide comment
@tkoolen

tkoolen Aug 7, 2015

Contributor

Do you have two versions of Matlab maybe?

Contributor

tkoolen commented Aug 7, 2015

Do you have two versions of Matlab maybe?

@DiitsGp

This comment has been minimized.

Show comment
Hide comment
@DiitsGp

DiitsGp 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.

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

This comment has been minimized.

Show comment
Hide comment
@liangfok

liangfok Apr 7, 2016

Contributor

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

Contributor

liangfok commented Apr 7, 2016

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

@RussTedrake

This comment has been minimized.

Show comment
Hide comment
@RussTedrake

RussTedrake Apr 7, 2016

Contributor

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

Contributor

RussTedrake commented Apr 7, 2016

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

@liangfok

This comment has been minimized.

Show comment
Hide comment
@liangfok
Contributor

liangfok commented Apr 7, 2016

@pvarin

This comment has been minimized.

Show comment
Hide comment
@pvarin

pvarin Aug 26, 2016

Contributor

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.

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