mavlink / qgroundcontrol

Cross-platform ground control station for drones (Android, iOS, Mac OS, Linux, Windows)
http://qgroundcontrol.io
3.19k stars 3.53k forks source link

video streaming in gazebo crashes qgroundcontrol #9921

Open ocpalo opened 2 years ago

ocpalo commented 2 years ago

QGroundControl exits after launching px4_sitl gazebo_typhoon_h480 which streams video in gazebo.

Error message is:

Settings location "/home/berke/.config/QGroundControl.org/QGroundControl Daily.ini" Is writable?: true
Filter rules "*Log.debug=false\nGStreamerAPILog.debug=true\n"
System reported locale: QLocale(English, Latin, United States) ; Name "en_US" ; Preffered (used in maps):  "en-US"
MAVLinkLogManagerLog: MAVLink logs directory: "/home/berke/Documents/QGroundControl Daily/Logs"
Map Cache in: "/home/berke/.cache/QGCMapCache300" / "qgcMapCache.db"
qml: QGCCorePlugin(0x55c8c2a0d670) []
"v4.1.3"
Adding target QHostAddress("127.0.0.1") 14530
Adding target QHostAddress("127.0.0.1") 18570
ParameterManagerLog: Attemping load from cache
ParameterManagerLog: Parameters cache match failed /home/berke/.config/QGroundControl.org/ParamCache/1_1.v2
VideoReceiverLog: Failed
VideoReceiverLog: Failed
VideoReceiverLog: Failed
...

(QGroundControl:42225): GLib-ERROR **: 04:59:55.581: Creating pipes for GWakeup: Too many open files
Trace/breakpoint trap (core dumped)

To produce bug:

  1. ./QGC
  2. make px4_sitl gazebo_typhoon_h480
dkati commented 2 years ago

same problem here

ocpalo commented 2 years ago

Actual problem might be on gazebo_typhoon_h480. I added camera to iris model, streamed video and QGroundControl works fine.

dkati commented 2 years ago

can i somehow remove camera from typhoon? (kinda offtopic but...needed :P )

ocpalo commented 2 years ago

@dkati There is supposed to be an .sdf file in the path PX4-Autopilot/Tools/sitl_gazebo/models/typhoon_h480/. You can modify that file to remove the camera I guess. If you don't need a camera, why don't you use iris? By default, the iris does not have a camera iirc. You can use iris, use the following command: make px4_sitl gazebo

dkati commented 2 years ago

Removing camera doesn't make qgc NOT crash.

I would like to have hexa copter