You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 12, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 12, 2024. It is now read-only.
gzclient does not start unless the GAZEBO_IP env variable is set to 127.0.0.1 when a non-running interface is present in the machine #47
To investigate a bit the issue, I launched gzserver --verbose running C:\opt\rosdeps\x64\share\gazebo-9\setup.bat after C:\opt\ros\melodic\x64\setup.bat, without setting GAZEBO_IP. The output that I get is:
C:\Users\STraversaro\source>gzserver --verbose
Gazebo multi-robot simulator, version 9.5.0
Copyright (C) 2012 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org
[Msg] Waiting for master.
[Msg] Connected to gazebo master @ http://127.0.0.1:11345
[Msg] Publicized address: 169.254.220.186
Note that 169.254.220.186 is not a valid IP for any network interface of my laptop, at least according to the ipconfig output:
C:\Users\STraversaro\source>ipconfig
Windows IP Configuration
Wireless LAN adapter Local Area Connection* 11:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Wireless LAN adapter Wi-Fi:
Connection-specific DNS Suffix . : homenet.telecomitalia.it
Link-local IPv6 Address . . . . . : fe80::4fc:3eae:97f2:440a%2
IPv4 Address. . . . . . . . . . . : 192.168.1.44
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
Ethernet adapter Bluetooth Network Connection 2:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Tunnel adapter Teredo Tunneling Pseudo-Interface:
Connection-specific DNS Suffix . :
IPv6 Address. . . . . . . . . . . : 2001:0:5ef5:79fd:1833:23e5:b0e1:d102
Link-local IPv6 Address . . . . . : fe80::1833:23e5:b0e1:d102%5
Default Gateway . . . . . . . . . : ::
C:\Users\STraversaro\source>
changed the title [-]gzclient does not start unless the GAZEBO_IP env variable is set to 127.0.0.1[/-][+]gzclient does not start unless the GAZEBO_IP env variable is set to 127.0.0.1 when a non-running interface is present in the machine[/+]on Dec 31, 2018
Silvio Traversaro (@traversaro) That's an interesting issue. Did you try to use ipconfig /all to see if 169.254.*.* from any adapters?
I am not able to repro this issue on my end, so I cannot verify the fix. But I rebuilt with your suggested change and published the updated Gazebo9 package. You can do choco upgrade gazebo9 -y to refresh the new bits (9.4.1.1901022119). Let me know if it helps.
No trace of 169.254.*.*, but to be honest I am connected to a different Wi-Fi network w.r.t. to two days ago.
I am not able to repro this issue on my end, so I cannot verify the fix. But I rebuilt with your suggested change and published the updated Gazebo9 package. You can do choco upgrade gazebo9 -y to refresh the new bits (9.4.1.1901022119). Let me know if it helps.
The updated binary is working fine (no need to set GAZEBO_IP) and the issue seems to be solved, thanks a lot!
Activity
traversaro commentedon Dec 31, 2018
To investigate a bit the issue, I launched
gzserver --verboserunningC:\opt\rosdeps\x64\share\gazebo-9\setup.batafterC:\opt\ros\melodic\x64\setup.bat, without setting GAZEBO_IP. The output that I get is:Note that
169.254.220.186is not a valid IP for any network interface of my laptop, at least according to theipconfigoutput:Interestingly, a similar issue was analyized by Jonathan Bohren (@jbohren-hbr) when tryng to run Gazebo on WSL, see microsoft/WSL#3368 (comment) and microsoft/WSL#3368 (comment). Based on his analysis, I guess something is going wrong for some reason around this call to
GetAdaptersAddressesin https://bitbucket.org/seanyen-msft/gazebo/src/7eb033b4c8f891a9385fe2e50ba2db0310077fe9/gazebo/transport/Connection.cc?at=gazebo9_9.5.0_windows&fileviewer=file-view-default#Connection.cc-810 .traversaro commentedon Dec 31, 2018
If I understand correctly from a quick internet search (I am not 100% sure), apparently
169.254.*.*addresses are actualy part of APIPA support in Windows ( https://wiki.wireshark.org/APIPA and http://packetlife.net/blog/2008/sep/24/169-254-0-0-addresses-explained/ ), and so they are assigned to adapters that are listed as "Media disconnected" inipconfig. So the problem is just in Gazebo logic to find the IP of the adapter, and so it is affecting in the same way regular Windows and WSL.traversaro commentedon Dec 31, 2018
I am not completly sure on that, to be honest. I saw around ( http://www.tomshardware.co.uk/answers/id-3420985/media-disconnected-problem.html ) output of ipconfig in which a network adapter assigned to a
169.254.*.*address is explicitly listed, so probably my assumption that "Media disconnected" adapter have a169.254.*.*address was false.traversaro commentedon Dec 31, 2018
As correctly pointed out in the WSL issue, we probably need a fix similar to https://bitbucket.org/osrf/gazebo/pull-requests/3009/adding-check-to-make-sure-automatic/diff but for the Windows part of the code.
traversaro commentedon Dec 31, 2018
Based on the similar code contained in
ignition-transport(https://bitbucket.org/ignitionrobotics/ign-transport/src/f6f581a6852b0eccc8d9e27c398def9f174ca33a/src/NetUtils.cc#lines-292), I guess we should addbefore this line https://bitbucket.org/seanyen-msft/gazebo/src/7eb033b4c8f891a9385fe2e50ba2db0310077fe9/gazebo/transport/Connection.cc?at=gazebo9_9.5.0_windows&fileviewer=file-view-default#lines-824 .
Related ign-transport commit: https://bitbucket.org/ignitionrobotics/ign-transport/commits/3d7c03da63806fc39c40547175d4069d1f57a693 .
[-]gzclient does not start unless the GAZEBO_IP env variable is set to 127.0.0.1[/-][+]gzclient does not start unless the GAZEBO_IP env variable is set to 127.0.0.1 when a non-running interface is present in the machine[/+]seanyen commentedon Jan 2, 2019
Silvio Traversaro (@traversaro) That's an interesting issue. Did you try to use
ipconfig /allto see if169.254.*.*from any adapters?I am not able to repro this issue on my end, so I cannot verify the fix. But I rebuilt with your suggested change and published the updated Gazebo9 package. You can do
choco upgrade gazebo9 -yto refresh the new bits (9.4.1.1901022119). Let me know if it helps.traversaro commentedon Jan 2, 2019
No trace of
169.254.*.*, but to be honest I am connected to a different Wi-Fi network w.r.t. to two days ago.The updated binary is working fine (no need to set
GAZEBO_IP) and the issue seems to be solved, thanks a lot!traversaro commentedon Mar 4, 2019
Upstream Gazebo PR: https://bitbucket.org/osrf/gazebo/pull-requests/3079/in-windows-ignore-disabled-interfaces-in/diff .