apm_planner icon indicating copy to clipboard operation
apm_planner copied to clipboard

Uploading/downloading mission times out

Open AndKe opened this issue 4 years ago • 20 comments

interestingly: uploading mission fails with timeout, but the process actually suceeds (the mission is actually uploaded)

[20210702 15:19:23.570 WARN ] - Finally timed out - going to idle. Current state was: 4 [20210702 15:19:27.568 WARN ] - Timeout requesting waypoint count - retrying. [20210702 15:19:29.560 WARN ] - Timeout requesting waypoint count - retrying. [20210702 15:19:31.564 WARN ] - Timeout requesting waypoint count - retrying. [20210702 15:19:33.572 WARN ] - Timeout requesting waypoint count - retrying.

AndKe avatar Jul 02 '21 13:07 AndKe

I've connected to an existing vehicle that has an existing mission on it. I can't download the mission from the vehicle. I get a timeout.

timtuxworth avatar Oct 18 '22 18:10 timtuxworth

@timtuxworth could you please tell some details? Linux or macOS? Version of Apm-Planner? It would also be cool if you could copy the content of the log.

Arne-W avatar Oct 31 '22 15:10 Arne-W

Hi @Arne-W this is on MacOS, 2.0.30-rc1. Happy to get you a log - from where? I'm assuming you don't mean the flight log.

timtuxworth avatar Oct 31 '22 19:10 timtuxworth

Hmm - I have no idea where you can find the log on macOS. On Linux there is a file called "apmlog_yyyymmdd.txt" in your "home/apmplanner2" directory. Perhaps its there on macOS too??

Arne-W avatar Nov 01 '22 16:11 Arne-W

Yes - pretty much the same - under my "/users/tim/apmplanner2". Here's an example.

apmlog_20221025.txt

timtuxworth avatar Nov 01 '22 16:11 timtuxworth

Cool - I will have a closer look in the next days. :+1:

Arne-W avatar Nov 01 '22 16:11 Arne-W

@timtuxworth Sorry but I am not able to reproduce it. Have you tried to refresh the list manually? On the bottom there should be a refresh button. The Implementation requests the next waypoint as soon as a waypoint is received. So if it times out I would say either the request or the answer is lost.... What sort of connection are you using?? I tested with USB.

Arne-W avatar Nov 10 '22 17:11 Arne-W

@timtuxworth is that by any chance a 3DR Solo with OpenSolo ? (or anything else with Sololink/IMX6) - I remember that there was some issues with the controller-scripts that were/are not fully MAVLink2 compatible.

AndKe avatar Nov 10 '22 17:11 AndKe

@timtuxworth is that by any chance a 3DR Solo with OpenSolo ? (or anything else with Sololink/IMX6) - I remember that there was some issues with the controller-scripts that were/are not fully MAVLink2 compatible.

This is on a QioTek Zealot H743. Testing using various different connections, including USB.

timtuxworth avatar Nov 10 '22 18:11 timtuxworth

This is fully reproducible with a serial connection to a ArduPilot, and SITL. I also believe this issue https://github.com/ArduPilot/apm_planner/issues/1270 is related .. he points to a specific issue with more than one message sending events

AndKe avatar Feb 02 '23 20:02 AndKe

FWIW: APM-Planner_2-2.0.30-rc1-x86_64.AppImage works fine.. that's only 16 commits since..

I tried to build 2.0.30 .. and still get the issue.. I start to believe it is something with my build environment - very strange. (Qt version 5.15.2)

AndKe avatar Feb 02 '23 20:02 AndKe

@timtuxworth @Arne-W I did review the commits since the official .appimage was made. I start to suspect the issue is somehow related to the build environment. It would be of great help to have a new .appimage build from current master.

  • Who can build an appimage? the daily auto-build is broken.

AndKe avatar Feb 03 '23 14:02 AndKe

@AndKe I can do a new build this weekend - sorry but you know SOOOOOOO many things to do and so little time

Arne-W avatar Feb 03 '23 16:02 Arne-W

If it's about priorities, perhaps better to fix the auto-build?

timtuxworth avatar Feb 03 '23 17:02 timtuxworth

absolutely .. is there some way I can help- please say .. I am a Linux user, but never fiddled with building on github. If it is trivial - like change in upload paths or something - might be of help...otherwise, I doubt it. Autobuilds would certainly help many more people.

AndKe avatar Feb 03 '23 17:02 AndKe

Autobuild isn't that trivial because we need at least Linux and Macos. Windows would be nice too. Moreover there is the Qt incompatibility with OpenSSL 3.x which makes it complicated to build on Ubuntu 22.04.

I made a new release candidate and a new Appimage. You can find it here. Unfortunately I am not able to build a Mac release - so sorry.

Arne-W avatar Feb 04 '23 13:02 Arne-W

@Arne-W Thank you very much. The appimage works perfectly with both waypoints, and firmware-fetching - (where both fail on my local builds (ubuntu 22.10)

Please tell about Qt incompatibilty with OpenSSL 3.x (which OpenSSL version is required/you use) Also: which distro did you use to build it?

AndKe avatar Feb 04 '23 14:02 AndKe

@timtuxworth Is this issue still active? Did you try to build the newest version (2.30.rc3)?

Arne-W avatar Jul 10 '23 16:07 Arne-W

Hi Arne I don't have a build environment for APM Planner. If there was a dmg I would try it.

timtuxworth avatar Jul 10 '23 21:07 timtuxworth

We will do a release including Mac in the next weeks - I will inform you.

Arne-W avatar Jul 11 '23 10:07 Arne-W