Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAVSDK Download Log is always error with missing chunk ?? #2339

Open
aminballoon opened this issue Jun 12, 2024 · 9 comments
Open

MAVSDK Download Log is always error with missing chunk ?? #2339

aminballoon opened this issue Jun 12, 2024 · 9 comments

Comments

@aminballoon
Copy link

if have use MAVSDK 2.12.2 Download Log feature bit while its downloading its always show

[03:11:56|Error] Timeout! (log_files_impl.cpp:380)
[03:11:56|Error] Requesting missing chunk:      513/757 (log_files_impl.cpp:381)
[03:12:03|Error] Timeout! (log_files_impl.cpp:380)
[03:12:03|Error] Requesting missing chunk:      599/757 (log_files_impl.cpp:381)
[03:12:04|Error] Timeout! (log_files_impl.cpp:380)
[03:12:04|Error] Requesting missing chunk:      600/757 (log_files_impl.cpp:381)
[03:12:11|Error] Timeout! (log_files_impl.cpp:380)
[03:12:11|Error] Requesting missing chunk:      674/757 (log_files_impl.cpp:381)
[03:12:17|Error] Timeout! (log_files_impl.cpp:380)
[03:12:17|Error] Requesting missing chunk:      729/757 (log_files_impl.cpp:381)

What happen with this ??

@julianoes
Copy link
Collaborator

Can you add steps how to reproduce this? What link is this over?

@aminballoon
Copy link
Author

What information does you want to know more about this issue ??

@julianoes
Copy link
Collaborator

What code do you run? E.g. an example? How is the Pixhawk connected? USB? Is it on Linux, macOS, Windows? Just more information. Which PX4 version?

@aminballoon
Copy link
Author

How is the Pixhawk connected > "UART/TTL" on "Linux", i have tried PX4 1.12.3, 1.14.3 its always get report missing chunk , Its can downloaded log but I want to know what happen of this error .

@dakejahl
Copy link
Contributor

@aminballoon chunks can get missed if your link isn't 100% lossless. Perhaps this would be a warning rather than an error

@git-lisx
Copy link

git-lisx commented Feb 8, 2025

I use this example https://github.com/mavlink/MAVSDK-Python/blob/main/examples/logfile_download.py, and this problem occurs. Environment: Ubuntu20.04, Python3.10, using the PX4 simulation environment (make px4_sitl jmavsim)

@julianoes
Copy link
Collaborator

@git-lisx ok, what MAVSDK version is this and which mavsdk_server version (if different from what is shipped with it)?

@git-lisx
Copy link

@julianoes mavsdk version is 3.0.1 mavsdk_server is used in mavsdk, start the command ./envs/python3.10/lib/python3.10/site-packages/mavsdk/bin/mavsdk_server -p 50051

I found the following situations: 1. mavsdk_server will report an error, but the log can also be downloaded; 2. If the code and mavsdk_server are not on the same machine, is this a bug or is it designed this way? The downloaded log file is on the computer where mavsdk_server is located, not on the machine running this code https://github.com/mavlink/MAVSDK-Python/blob/main/examples/logfile_download.py

@julianoes
Copy link
Collaborator

julianoes commented Feb 12, 2025

  1. mavsdk_server will report an error, but the log can also be downloaded;

This could be if there are messages dropped and then recovered by additional transfers. Have you made sure the file is correct? E.g. with a checksum?

The downloaded log file is on the computer where mavsdk_server is located

Yes, that's expected, although not super intuitive indeed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants