qgroundcontrol icon indicating copy to clipboard operation
qgroundcontrol copied to clipboard

QGC 4.2.3: When runnig QGC for Linux, The map is broken in WSL2 environment.

Open Arccoma opened this issue 2 years ago • 3 comments

97c2bbc9-cb58-4ff7-a553-fbbe87ef9bc5 < Figure1. PX4 on SITL simulatoin with Gazebo without QGC >

I am currently trying to simulate PX4 using Gazebo. When "command takeoff" was entered without a connection to the QGC, the FailSafe was activated and the drone's prop stopped immediately and failed to take off.

After reding https://github.com/PX4/PX4-Autopilot/issues/19205#issuecomment-1046306704, I downloaded the QGC daily version for Linux (v4.2.3) under WSL2 environment following the instructions in the link below to connect the QGC to Gazebo to avoid FailSafe and succeed in Takeoff. https://docs.qgroundcontrol.com/master/en/getting_started/download_and_install.html

However, when running QGroundContrl.AppImage, I encountered the following error. 48d3b756-e07a-4bd5-8668-249ca1950914 < Figure 2. Fail to run QGroundContrl.AppImage >

/tmp/.mount_QGrounXXXXXX/QGroundControl: error while loading shared libraries: libpulse-mainloop-glib.so.0: cannot open shared object file: No such file or directory ( 'XXXXXX' keeps changing every time )

https://github.com/mavlink/qgroundcontrol/issues/10306 After seeing this help and doing

sudo apt-get install -y libpulse-dev

I was able to run QGC. But the QGC screen comes out like this. 57e7bb9b-0a42-4232-937a-7b325084cc3c < Figure 3. Broken Map >

image < Figure 4. QGC test in 3 computers >

Besides the computer(Ryzen Desktop) that breaks the QGC map, I tested it on two other laptops, where the map doesn't break. I don't know why the map is broken or not. ( The map of QGC for Windows does not break in all three computers.) I'd appreciate your help.

Arccoma avatar Jul 19 '22 09:07 Arccoma

this also happens in docker

mnumanuyar avatar Aug 05 '23 10:08 mnumanuyar

So I want to run PX4 in docker, and I need to install QGC in my docker environment, how to solve this ?

I fixed the broken map issue by installing the latest onboard GPU drivers for my AMD CPU.

lars-nagel avatar Dec 08 '23 08:12 lars-nagel