-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fail to load Gazebo #2
Comments
Hi, did you run the command immediately after installing? If so, please make sure to open a new terminal before running it. The installation script modifies the ~/.bashrc file, which is executed each time a new terminal is opened. If it’s still not working, could you let me know if you’re using a VM or if there’s anything unique about your setup that might differ from a fresh Ubuntu installation on a dedicated machine? |
I can reproduce this error by running the command in a virtual machine with limited hardware resources. The issue appears to be caused by gz_bridge taking too long to initialize. If you're using a virtual machine, could you try increasing the resources allocated to it? |
Thanks for the answers, I'm not using a VM, but I do have a dual boot setup. Maybe it's a resource issue because of that. I'll try using another laptop to see if I encounter the same problem. By the way, what is supposed to be modified in the ~/.bashrc file? I can't see any new lines, so maybe the installation didn't go well either |
The line added to .bashrc is: |
Hi, while launching this command : ~/PX4-Autopilot/build/px4_sitl_default/bin/px4, I always get the same error :
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
ERROR [gz_bridge] Service call timed out. Check GZ_SIM_RESOURCE_PATH is set correctly.
ERROR [gz_bridge] Task start failed (-1)
ERROR [init] gz_bridge failed to start and spawn model
ERROR [px4] Startup script returned with return value: 256
I tried multiple times, but gazebo always launches with a black screen, and then crashes. I also checked the GZ_SIM_RESOURCE_PATH variable and it's empty so i tried to export it with a path that contains worlds models : export GZ_SIM_RESOURCE_PATH=/home/users/PX4-Autopilot_PATCH/Tools/simulation/gz/worlds. But it doesn't change anything.
If you have any clue, thanks in advance
The text was updated successfully, but these errors were encountered: