# Gazebo not loading

**URL:** <https://discuss.px4.io/t/gazebo-not-loading/39733>\
**Category:** PX4 Autopilot\
**Created:** [July 16, 2024, 6:31pm UTC](https://discuss.px4.io/t/gazebo-not-loading/39733 "2024-07-16T18:31:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![unclegueralt](https://discuss.px4.io/letter_avatar_proxy/v4/letter/u/bb73d2/32.png) [@unclegueralt](https://discuss.px4.io/u/unclegueralt)\
**Post date:** [July 16, 2024, 6:31pm UTC](https://discuss.px4.io/t/gazebo-not-loading/39733/1 "2024-07-16T18:31:17Z")

</div>

Hi Everyone, I hope you are doing fine. I have been googling, reading forums and talking to people on discord but i cannot solve this. I try to run gazebo simulation for the first time but I have been having issues. This is the error I get, could you please guide me in the right direction? what am I missing here.

px4 starting.

INFO [px4] startup script: /bin/sh etc/init.d-posix/rcS 0  
INFO [init] found model autostart file as SYS\_AUTOSTART=4001  
INFO [param] selected parameter default file parameters.bson  
INFO [param] importing from ‘parameters.bson’  
INFO [parameters] BSON document size 496 bytes, decoded 496 bytes (INT32:15, FLOAT:9)  
INFO [param] selected parameter backup file parameters\_backup.bson  
SYS\_AUTOCONFIG: curr: 0 → new: 1

- SYS\_AUTOSTART: curr: 10017 → new: 4001  
SENS\_BOARD\_X\_OFF: curr: 0.0000 → new: 0.0000  
SENS\_DPRES\_OFF: curr: 0.0000 → new: 0.0010  
INFO [dataman] data manager file ‘./dataman’ size is 7872608 bytes  
INFO [init] Gazebo simulator  
INFO [init] starting gazebo with world: /home/nigh/Desktop/PX4-Autopilot/Tools/simulation/gz/worlds/default.sdf  
WARN [init] PX4\_GZ\_MODEL\_POSE not set, spawning at origin.  
INFO [gz\_bridge] world: default, model name: x500\_0, simulation model: x500  
INFO [gz\_bridge] Requested Model Position: 0,0,0,0,0,0  
INFO [gz\_bridge] Model position z is less or equal 0.0, moving upwards  
qt.qpa.plugin: Could not find the Qt platform plugin “wayland” in “”  
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

---

<div class="post-metadata">

**Author:** ![Gson-glitch](https://discuss.px4.io/user_avatar/discuss.px4.io/gson-glitch/32/17087_2.png) [@Gson-glitch](https://discuss.px4.io/u/Gson-glitch)\
**Post date:** [August 22, 2024, 7:50am UTC](https://discuss.px4.io/t/gazebo-not-loading/39733/2 "2024-08-22T07:50:47Z")

</div>

@unclegueralt Hi, I think the error you’re facing is related to the `GZ_SIM_RESOURCE_PATH` variable not set correctly. You can try setting it by running:

```auto
export GZ_SIM_RESOURCE_PATH=~/Desktop/PX4-Autopilot/Tools/simulation/gz/models:~/Desktop/PX4-Autopilot/Tools/simulation/gz/worlds

```

---

<div class="post-metadata">

**Author:** ![Muhammad-Usman](https://discuss.px4.io/user_avatar/discuss.px4.io/muhammad-usman/32/17253_2.png) [@Muhammad-Usman](https://discuss.px4.io/u/Muhammad-Usman)\
**Post date:** [October 6, 2024, 1:07pm UTC](https://discuss.px4.io/t/gazebo-not-loading/39733/3 "2024-10-06T13:07:33Z")

</div>

i trued but its not working

---

<div class="post-metadata">

**Author:** ![Muhammad-Usman](https://discuss.px4.io/user_avatar/discuss.px4.io/muhammad-usman/32/17253_2.png) [@Muhammad-Usman](https://discuss.px4.io/u/Muhammad-Usman)\
**Post date:** [October 7, 2024, 10:43am UTC](https://discuss.px4.io/t/gazebo-not-loading/39733/4 "2024-10-07T10:43:50Z")

</div>

/PX4-Autopilot$ make px4\_sitl gz\_x500  
[0/1] cd /home/usmannoor/PX4-Autopilot…topilot/build/px4\_sitl\_default/bin/px4

* * *

| \_\_\_ \ \ \ / / / |  
| |_/ / \ V / / /| |  
| \_\_/ / \ / /_| |  
| | / /^\ \ \_\_\_ |  
\_| / / |\_/

px4 starting.

INFO [px4] startup script: /bin/sh etc/init.d-posix/rcS 0  
INFO [init] found model autostart file as SYS\_AUTOSTART=4001  
INFO [param] selected parameter default file parameters.bson  
INFO [param] selected parameter backup file parameters\_backup.bson  
SYS\_AUTOCONFIG: curr: 0 → new: 1  
SYS\_AUTOSTART: curr: 0 → new: 4001  
CAL\_ACC0\_ID: curr: 0 → new: 1310988  
CAL\_GYRO0\_ID: curr: 0 → new: 1310988  
CAL\_ACC1\_ID: curr: 0 → new: 1310996  
CAL\_GYRO1\_ID: curr: 0 → new: 1310996  
CAL\_ACC2\_ID: curr: 0 → new: 1311004  
CAL\_GYRO2\_ID: curr: 0 → new: 1311004  
CAL\_MAG0\_ID: curr: 0 → new: 197388  
CAL\_MAG0\_PRIO: curr: -1 → new: 50  
CAL\_MAG1\_ID: curr: 0 → new: 197644  
CAL\_MAG1\_PRIO: curr: -1 → new: 50  
SENS\_BOARD\_X\_OFF: curr: 0.0000 → new: 0.0000  
SENS\_DPRES\_OFF: curr: 0.0000 → new: 0.0010  
INFO [dataman] data manager file ‘./dataman’ size is 7872608 bytes  
INFO [init] Gazebo simulator  
INFO [init] starting gazebo with world: /home/usmannoor/PX4-Autopilot/Tools/simulation/gz/worlds/default.sdf  
WARN [init] PX4\_GZ\_MODEL\_POSE not set, spawning at origin.  
INFO [gz\_bridge] world: default, model name: x500\_0, simulation model: x500  
INFO [gz\_bridge] Requested Model Position: 0,0,0,0,0,0  
INFO [gz\_bridge] Model position z is less or equal 0.0, moving upwards  
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  
^Cninja: build stopped: interrupted by user.  
make: \*\*\* [Makefile:232: px4\_sitl] Interrupt

---

<div class="post-metadata">

**Author:** ![Daniel\_Molina](https://discuss.px4.io/user_avatar/discuss.px4.io/daniel_molina/32/17640_2.png) [@Daniel\_Molina](https://discuss.px4.io/u/Daniel_Molina)\
**Post date:** [October 24, 2024, 9:15am UTC](https://discuss.px4.io/t/gazebo-not-loading/39733/5 "2024-10-24T09:15:27Z")

</div>

Although my logs still say that i need to check my GZ\_SIM\_RESOURCE\_PATH, I have been able to successfully launch the sim by disabling my firewall using the suggestion found [here](https://github.com/gazebosim/gz-sim/issues/1879#issuecomment-1531748276)
