qgroundcontrol icon indicating copy to clipboard operation
qgroundcontrol copied to clipboard

Freezing on Windows

Open enetkilifatih opened this issue 3 years ago • 3 comments

Expected Behavior

Fast UI running on Windows like as fast on Linux.

Current Behavior

It's freezing sometimes, for example at the following operations;

  • When launching application, the UI sometimes appears 1-2 minutes later after double-click, and never happened on Linux.
  • When we click Application Settings, sometimes it's freezing for a while about 1 minutes.
  • When we click Firmware settings under Vehicle Setup, it's freezing for a while about 20 seconds.

Steps to Reproduce:

  1. Have a network connection without internet.
  2. Try above operations.

System Information

  • Operating System: Windows 10
  • QGC Version: 4.1.6, 4.2
  • QGC build: stable
  • Flight Controller: [e.g., Pixhawk I, Pixhawk Mini, Pixhawk 2, etc.]
  • Autopilot (with version): [e.g., PX4 1.8.1, Ardupilot Copter 3.6.1]

Detailed Description

I have faced these freezing issues more at unstable network connection. For example, set your ip statically to wrong subnet (you won't have internet connection). Your machine will be connected to a network but no internet. In this stuation, freezes are increasing. However these freezes never happened on Linux under same circumstances.

enetkilifatih avatar Feb 28 '22 11:02 enetkilifatih

References that I found related with this issue;

  • https://www.qtcentre.org/threads/60874-QFileDialog-freezes
  • https://bugreports.qt.io/browse/QTBUG-57832
  • https://bugreports.qt.io/browse/QTBUG-46477
  • https://bugreports.qt.io/browse/QTBUG-6039
  • https://bugreports.qt.io/browse/QTBUG-46477
  • https://bugreports.qt.io/browse/QTBUG-41373
  • https://code.qt.io/cgit/qt/qtbase.git/commit/?id=5382bf4220bb76055943678196a84387510ee059
  • https://codereview.qt-project.org/c/qt/qtbase/+/54983

enetkilifatih avatar Mar 01 '22 10:03 enetkilifatih

It seems that the problem is a bug in FileDialog of Qt. And I realized that the delta of my env and the others is to have some network drives. If explorer.exe freezes when opening a network drive without connecting the necessary network, then any Qt App which contain FileDialog freezes in the same way.

enetkilifatih avatar Mar 01 '22 10:03 enetkilifatih

This issue has been mentioned on Discussion Forum for PX4, Pixhawk, QGroundControl, MAVSDK, MAVLink. There might be relevant details there:

https://discuss.px4.io/t/freezing-of-qgroundcontrol-on-windows/36095/1

DronecodeBot avatar Dec 28 '23 12:12 DronecodeBot