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

Perpetually Downloading Resources (Even for empty Worlds) Garden Gazebo #1879

Closed
Bezalelohim opened this issue Feb 1, 2023 · 17 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@Bezalelohim
Copy link

Bezalelohim commented Feb 1, 2023

OS Version: Ubuntu 22.04 LTS
Gazebo Garden Version 7.2.0
Binary Build(SAME ISSUE WITH SOURCE BUILD
Intel Core i3
Integrated Graphic Card

MAIN REPEATING ERROR
[GUI] [Dbg] [Gui.cc:340] GUI requesting list of world names. The server may be busy downloading resources. Please be patient.

  • The GUI is unreponsive when opened using gz command taking a look using the verbose command.
  • I found an error log from the terminal.
  • One line keeps repeating, " the requesting list of world names and the server maybe busy downloading them" .
  • Even tried this with a locally downloaded world and same result.

Measures Taken

  • Tried reopening with and without network connectivity [same result] .
  • Reinstalled gazebo garden and ros2 humble multiple times.

FULL ERROR LOG FROM TERMINAL

joerops@joerops:~$ gz sim empty.sdf -v 4
[Msg] Gazebo Sim GUI    v7.2.0
[Dbg] [gz.cc:162] Subscribing to [/gazebo/starting_world].
[Dbg] [gz.cc:164] Waiting for a world to be set from the GUI...
[Dbg] [Gui.cc:260] Waiting for subscribers to [/gazebo/starting_world]...
[Wrn] [Gui.cc:268] Waited for 10s for a subscriber to [/gazebo/starting_world] and got none.
[Dbg] [Application.cc:96] Initializing application.
[Dbg] [Application.cc:122] Qt using OpenGL graphics interface
[GUI] [Dbg] [Application.cc:596] Create main window
[GUI] [Wrn] [Application.cc:845] [QT] qrc:/qml/StyleDialog.qml:112:3: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
[GUI] [Wrn] [Application.cc:845] [QT] qrc:/qml/StyleDialog.qml:105:3: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
[GUI] [Wrn] [Application.cc:845] [QT] qrc:/qml/StyleDialog.qml:98:3: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
[GUI] [Wrn] [Application.cc:845] [QT] qrc:qml/Main.qml:102:3: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
[GUI] [Wrn] [Application.cc:845] [QT] qrc:/qml/PluginMenu.qml:27:3: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
[GUI] [Dbg] [PathManager.cc:67] Requesting resource paths through [/gazebo/resource_paths/get]
[GUI] [Wrn] [Application.cc:845] [QT] file::/Gazebo/GazeboDrawer.qml:241:3: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>) { ... }
[GUI] [Wrn] [Application.cc:845] [QT] file::/Gazebo/GazeboDrawer.qml:147:3: QML Dialog: Binding loop detected for property "implicitHeight"
[GUI] [Wrn] [Application.cc:845] [QT] file::/Gazebo/GazeboDrawer.qml:147:3: QML Dialog: Binding loop detected for property "implicitHeight"
[GUI] [Dbg] [Gui.cc:340] GUI requesting list of world names. The server may be busy downloading resources. Please be patient.
[GUI] [Dbg] [Gui.cc:340] GUI requesting list of world names. The server may be busy downloading resources. Please be patient.
[GUI] [Dbg] [Gui.cc:340] GUI requesting list of world names. The server may be busy downloading resources. Please be patient.
[GUI] [Dbg] [Gui.cc:340] GUI requesting list of world names. The server may be busy downloading resources. Please be patient.
[GUI] [Dbg] [Gui.cc:340] GUI requesting list of world names. The server may be busy downloading resources. Please be patient.
[GUI] [Dbg] [Gui.cc:340] GUI requesting list of world names. The server may be busy downloading resources. Please be patient.
[GUI] [Dbg] [Gui.cc:340] GUI requesting list of world names. The server may be busy downloading resources. Please be patient.
[GUI] [Dbg] [Gui.cc:340] GUI requesting list of world names. The server may be busy downloading resources. Please be patient.
[GUI] [Dbg] [Gui.cc:340] GUI requesting list of world names. The server may be busy downloading resources. Please be patient.
@Bezalelohim Bezalelohim added the bug Something isn't working label Feb 1, 2023
@Bezalelohim Bezalelohim changed the title Perpetually Downloading Resources (Even for empty Worlds) Perpetually Downloading Resources (Even for empty Worlds) Garden Feb 1, 2023
@Bezalelohim Bezalelohim changed the title Perpetually Downloading Resources (Even for empty Worlds) Garden Perpetually Downloading Resources (Even for empty Worlds) Garden Gazebo Feb 1, 2023
@azeey azeey self-assigned this Feb 6, 2023
@azeey
Copy link
Contributor

azeey commented Feb 6, 2023

I'm unable to reproduce this error locally. " The server may be busy downloading resources...." message can be misleading because it is printed any time gz sim GUI (the client) is trying to communicate with the gz sim server and fails. The majority of the time, this communication failure happens because the server is downloading models from Fuel, but that's probably not the case here because you're loading empty.sdf.

Is it possible you have other instances of gz sim running? In my logs I see both "[Msg] Gazebo Sim GUI " and "[Msg] Gazebo Sim Server", but in yours I only see the former.

@Bezalelohim
Copy link
Author

I have deleted gazebo sim and command gz is not recognized in the terminal now
Also is there a process I should kill in system monitor/htop ?

@Bezalelohim
Copy link
Author

Bezalelohim commented Feb 7, 2023

This seems to be the start of error from error log

    [GUI] [Dbg] [Gui.cc:260] Waiting for subscribers to [/gazebo/starting_world]...
    [GUI] [Wrn] [Gui.cc:268] Waited for 10s for a subscriber to [/gazebo/starting_world] and got none.

Usually the message should be that subsribers should be recieved. And the world (empty.sdf) just begins loading.

You can cross check with my logs and the logs of the working gz sim on your system.

@Bezalelohim
Copy link
Author

Is it possible you have other instances of gz sim running? In my logs I see both "[Msg] Gazebo Sim GUI " and "[Msg] Gazebo Sim Server", but in yours I only see the former.

I have made sure to kill all other instances gone deleted all traces of gazebo (to my knowledge) and still the error remains

@Bezalelohim
Copy link
Author

In my logs I see both "[Msg] Gazebo Sim GUI " and "[Msg] Gazebo Sim Server", but in yours I only see the former.

Yeah probably as the gazebo gui doesn't connect with gazebo server and tries to initialize that connection with the server over and over again

@ShevaDavid
Copy link

ShevaDavid commented Mar 2, 2023

Have the same problem on mac OS Ventura
Gazebo Sim GUI v7.4.0
image

gz sim -v4 -r -g shapes.sdf

[Msg] Gazebo Sim GUI v7.4.0
[Dbg] [Application.cc:96] Initializing application.
[Dbg] [Application.cc:104] Qt using Metal graphics interface
[GUI] [Dbg] [Application.cc:596] Create main window
[GUI] [Wrn] [Application.cc:845] [QT] Populating font family aliases took 129 ms. Replace uses of missing font family "Roboto" with one that exists to avoid this cost.
[GUI] [Wrn] [Application.cc:845] [QT] qrc:/qml/StyleDialog.qml:112:3: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo() { ... }
[GUI] [Wrn] [Application.cc:845] [QT] qrc:/qml/StyleDialog.qml:105:3: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo() { ... }
[GUI] [Wrn] [Application.cc:845] [QT] qrc:/qml/StyleDialog.qml:98:3: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo() { ... }
[GUI] [Wrn] [Application.cc:845] [QT] qrc:qml/Main.qml:102:3: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo() { ... }
[GUI] [Wrn] [Application.cc:845] [QT] qrc:/qml/PluginMenu.qml:27:3: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo() { ... }
[GUI] [Dbg] [PathManager.cc:67] Requesting resource paths through [/gazebo/resource_paths/get]
[GUI] [Wrn] [Application.cc:845] [QT] file::/Gazebo/GazeboDrawer.qml:241:3: QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo() { ... }
[GUI] [Wrn] [Application.cc:845] [QT] file::/Gazebo/GazeboDrawer.qml:147:3: QML Dialog: Binding loop detected for property "implicitHeight"
[GUI] [Wrn] [Application.cc:845] [QT] file::/Gazebo/GazeboDrawer.qml:147:3: QML Dialog: Binding loop detected for property "implicitHeight"
[GUI] [Dbg] [Gui.cc:340] GUI requesting list of world names. The server may be busy downloading resources. Please be patient.
[GUI] [Dbg] [Gui.cc:340] GUI requesting list of world names. The server may be busy downloading resources. Please be patient.
[GUI] [Dbg] [Gui.cc:340] GUI requesting list of world names. The server may be busy downloading resources. Please be patient.
[GUI] [Dbg] [Gui.cc:340] GUI requesting list of world names. The server may be

@azeey
Copy link
Contributor

azeey commented Mar 2, 2023

@Bezalelohim can you run just the server with -s and see the logs, i.e., gz sim -v4 -s -r empty.world? Once that starts, you can inspect the services advertised by the server with gz service -l.

@ShevaDavid not sure why you're running with -g. That runs just the gui without the server. You need both to be running. Can you try without the -g?

@azeey
Copy link
Contributor

azeey commented Mar 13, 2023

Any update on this @Bezalelohim ?

@Bezalelohim
Copy link
Author

Bezalelohim commented Mar 16, 2023

Log
When running gz sim -v4 -s -r empty.sdf

[Msg] Loading SDF world file[/usr/share/gz/gz-sim7/worlds/empty.sdf].
[Msg] Serving entity system service on [/entity/system/add]
[Dbg] [Physics.cc:869] Loaded [gz::physics::dartsim::Plugin] from library [/usr/lib/x86_64-linux-gnu/gz-physics-6/engine-plugins/libgz-physics-dartsim-plugin.so]
[Dbg] [SystemManager.cc:74] Loaded system [gz::sim::systems::Physics] for entity [1]
[Msg] Create service on [/world/empty/create]
[Msg] Remove service on [/world/empty/remove]
[Msg] Pose service on [/world/empty/set_pose]
[Msg] Pose service on [/world/empty/set_pose_vector]
[Msg] Light configuration service on [/world/empty/light_config]
[Msg] Physics service on [/world/empty/set_physics]
[Msg] SphericalCoordinates service on [/world/empty/set_spherical_coordinates]
[Msg] Enable collision service on [/world/empty/enable_collision]
[Msg] Disable collision service on [/world/empty/disable_collision]
[Msg] Material service on [/world/empty/visual_config]
[Msg] Material service on [/world/empty/wheel_slip]
[Dbg] [SystemManager.cc:74] Loaded system [gz::sim::systems::UserCommands] for entity [1]
[Dbg] [SystemManager.cc:74] Loaded system [gz::sim::systems::SceneBroadcaster] for entity [1]
[Dbg] [SystemManager.cc:74] Loaded system [gz::sim::systems::Contact] for entity [1]
[Msg] Loaded level [3]
[Msg] Serving world controls on [/world/empty/control], [/world/empty/control/state] and [/world/empty/playback/control]
[Msg] Serving GUI information on [/world/empty/gui/info]
[Msg] World [empty] initialized with [1ms] physics profile.
[Msg] Serving world SDF generation service on [/world/empty/generate_world_sdf]
[Msg] Serving world names on [/gazebo/worlds]
[Msg] Resource path add service on [/gazebo/resource_paths/add].
[Msg] Resource path get service on [/gazebo/resource_paths/get].
[Msg] Resource path resolve service on [/gazebo/resource_paths/resolve].
[Msg] Resource paths published on [/gazebo/resource_paths].
[Msg] Server control service on [/server_control].
[Msg] Found no publishers on /stats, adding root stats topic
[Msg] Found no publishers on /clock, adding root clock topic
[Dbg] [SimulationRunner.cc:513] Creating PostUpdate worker threads: 3
[Dbg] [SimulationRunner.cc:524] Creating postupdate worker thread (0)
[Dbg] [SimulationRunner.cc:524] Creating postupdate worker thread (1)
[Msg] Serving scene information on [/world/empty/scene/info]
[Msg] Serving graph information on [/world/empty/scene/graph]
[Msg] Serving full state on [/world/empty/state]
[Msg] Serving full state (async) on [/world/empty/state_async]
[Msg] Publishing scene information on [/world/empty/scene/info]
[Msg] Publishing entity deletions on [/world/empty/scene/deletion]
[Msg] Publishing state changes on [/world/empty/state]
[Msg] Publishing pose messages on [/world/empty/pose/info]
[Msg] Publishing dynamic pose messages on [/world/empty/dynamic_pose/info]

Exception sending a multicast message : Network is unreachable (after a long period of running)

@Bezalelohim
Copy link
Author

Bezalelohim commented Mar 16, 2023

When running gz service -l while the above gz sim command runs yields no services.
No service name is output

@Bezalelohim
Copy link
Author

@azeey Sorry for the late response.

@azeey
Copy link
Contributor

azeey commented Mar 16, 2023

It looks like you have a network configuration issue. Do you have a firewall that disables multicast messages? Can you try disabling it?

@azeey
Copy link
Contributor

azeey commented May 1, 2023

Any luck testing it with my suggestion above? If it is working for you, please go ahead and close the issue.

@Bezalelohim
Copy link
Author

Yes @azeey the Ubuntu firewall was the culprit
Solution was simply
~$ sudo ufw disable
Thank You @azeey its fixed :)

@Bezalelohim
Copy link
Author

Can I use gz sim without disabling ufw ?
Is there a fix for that ?

@azeey
Copy link
Contributor

azeey commented May 2, 2023

I think it's possible to allow multicast without disabling ufw. See https://docs.ros.org/en/rolling/How-To-Guides/Installation-Troubleshooting.html#enable-multicast

@vudala
Copy link

vudala commented Sep 29, 2023

Running Gazebo Garden on a fresh Ubuntu 22.04 causes this issue.
As suggested by @azeey:

I think it's possible to allow multicast without disabling ufw. See https://docs.ros.org/en/rolling/How-To-Guides/Installation-Troubleshooting.html#enable-multicast

Doing these steps will solve the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

4 participants