# Gazebo Classic takeoff issues and errors

**URL:** <https://discuss.px4.io/t/gazebo-classic-takeoff-issues-and-errors/39907>\
**Category:** PX4 Autopilot\
**Created:** [July 28, 2024, 2:48pm UTC](https://discuss.px4.io/t/gazebo-classic-takeoff-issues-and-errors/39907 "2024-07-28T14:48:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![iftikharumrani](https://discuss.px4.io/user_avatar/discuss.px4.io/iftikharumrani/32/16774_2.png) [@iftikharumrani](https://discuss.px4.io/u/iftikharumrani)\
**Post date:** [July 28, 2024, 2:48pm UTC](https://discuss.px4.io/t/gazebo-classic-takeoff-issues-and-errors/39907/1 "2024-07-28T14:48:29Z")

</div>

Hi folks, I am using WSL 2 “Ubuntu 20.04”, successfully cloned PX4 autopilot by following [instruction.](https://docs.px4.io/main/en/dev_setup/dev_env_windows_wsl.html) I’m trying to run the [gazebo classic](https://docs.px4.io/main/en/sim_gazebo_classic/) simulation, but its not making any progress, can be seen in the following

**Errors summary:**

_Warning [parser.cc:833] XML Attribute[version] in element[sdf] not defined in SDF, ignoring._

[Err] [RenderEngine.cc:749] Can’t open display:  
[Wrn] [RenderEngine.cc:292] Cannot initialize render engine since render path type is NONE. Ignore this warning if rendering has been turned off on purpose.  
[Wrn] [GuiIface.cc:114] could not connect to display  
[Msg] Could not load the Qt platform plugin “xcb” in “” even though it was found.  
[Err] [GuiIface.cc:118] This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

WARN [health\_and\_arming\_checks] Preflight Fail: ekf2 missing data

_ **Detailed response** _

iftikhar@DESKTOP-GH9UI2B:~/PX4-Autopilot$ make px4\_sitl gazebo-classic  
[0/4] Performing build step for ‘sitl\_gazebo-classic’  
ninja: no work to do.  
[3/4] cd /home/iftikhar/PX4-Autopilot/build/px4\_sitl\_defau…opilot /home/iftikhar/PX4-Autopilot/build/px4\_sitl\_default  
SITL ARGS  
sitl\_bin: /home/iftikhar/PX4-Autopilot/build/px4\_sitl\_default/bin/px4  
debugger: none  
model: iris  
world: none  
src\_path: /home/iftikhar/PX4-Autopilot  
build\_path: /home/iftikhar/PX4-Autopilot/build/px4\_sitl\_default  
GAZEBO\_PLUGIN\_PATH :/home/iftikhar/PX4-Autopilot/build/px4\_sitl\_default/build\_gazebo-classic  
GAZEBO\_MODEL\_PATH :/home/iftikhar/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl\_gazebo-classic/models  
LD\_LIBRARY\_PATH :/home/iftikhar/PX4-Autopilot/build/px4\_sitl\_default/build\_gazebo-classic  
empty world, setting empty.world as default  
Using: /home/iftikhar/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl\_gazebo-classic/models/iris/iris.sdf  
Warning [parser.cc:833] XML Attribute[version] in element[sdf] not defined in SDF, ignoring.  
SITL COMMAND: “/home/iftikhar/PX4-Autopilot/build/px4\_sitl\_default/bin/px4” “/home/iftikhar/PX4-Autopilot/build/px4\_sitl\_default”/etc

* * *

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

px4 starting.

INFO [px4] startup script: /bin/sh etc/init.d-posix/rcS 0  
INFO [init] found model autostart file as SYS\_AUTOSTART=10015  
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: 10015  
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  
Gazebo multi-robot simulator, version 11.14.0  
Copyright (C) 2012 Open Source Robotics Foundation.  
Released under the Apache 2 License.

> **[Gazebo](https://gazebosim.org/)**
>
> Simulation Driven Robotics. Iterate quickly on design concepts and control strategies with Gazebo's rich suite of tools, libraries, and cloud services.

[Msg] Waiting for master.  
[Msg] Connected to gazebo master @ [http://127.0.0.1:11345](http://127.0.0.1:11345)  
[Msg] Publicized address: 172.28.34.171  
[Err] [RenderEngine.cc:749] Can’t open display:  
[Wrn] [RenderEngine.cc:89] Unable to create X window. Rendering will be disabled  
[Wrn] [RenderEngine.cc:292] Cannot initialize render engine since render path type is NONE. Ignore this warning if rendering has been turned off on purpose.  
[Wrn] [GuiIface.cc:114] could not connect to display  
[Msg] Could not load the Qt platform plugin “xcb” in “” even though it was found.  
[Err] [GuiIface.cc:118] This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.

INFO [dataman] data manager file ‘./dataman’ size is 7872608 bytes  
INFO [init] PX4\_SIM\_HOSTNAME: localhost  
INFO [simulator\_mavlink] Waiting for simulator to accept connection on TCP port 4560  
INFO [simulator\_mavlink] Simulator connected on TCP port 4560.  
INFO [lockstep\_scheduler] setting initial absolute time to 3884000 us  
INFO [commander] LED: open /dev/led0 failed (22)  
WARN [health\_and\_arming\_checks] Preflight Fail: ekf2 missing data  
INFO [uxrce\_dds\_client] init UDP agent IP:127.0.0.1, port:8888  
INFO [mavlink] mode: Normal, data rate: 4000000 B/s on udp port 18570 remote port 14550  
INFO [mavlink] mode: Onboard, data rate: 4000000 B/s on udp port 14580 remote port 14540  
INFO [mavlink] mode: Onboard, data rate: 4000 B/s on udp port 14280 remote port 14030  
INFO [mavlink] mode: Gimbal, data rate: 400000 B/s on udp port 13030 remote port 13280  
INFO [tone\_alarm] home set  
INFO [logger] logger started (mode=all)  
INFO [logger] Start file log (type: full)  
INFO [logger] [logger] .//log/2024-07-29/11\_37\_42.ulg  
INFO [mavlink] MAVLink only on localhost (set param MAV\_{i}_BROADCAST = 1 to enable network)  
INFO [logger] Opened full log file: .//log/2024-07-29/11\_37\_42.ulg  
INFO [mavlink] MAVLink only on localhost (set param MAV_{i}\_BROADCAST = 1 to enable network)  
INFO [px4] Startup script returned successfully  
pxh\> INFO [commander] Ready for takeoff!

pxh\> commander takeoff  
pxh\> INFO [commander] Armed by internal command  
INFO [navigator] Using default takeoff altitude: 2.5 m  
INFO [tone\_alarm] arming warning  
INFO [commander] Takeoff detected

[Showing no progress after the final script]  
Can you please suggest the solutions.
