Closed danieleades closed 2 years ago
Any news on this? The recv error seems to appear on any file-related connections.
@patrickelectric if you can point to a likely reason, I might be able to tackle this, since I need to read messages from a log file for a project at work.
This is a problem of the ArduPilot organization where after a couple of months the tlog files are lost and are replaced by images.
file /tmp/testlogs/ArduSub-test.tlog
/tmp/testlogs/ArduSub-test.tlog: PNG image data, 600 x 600, 8-bit/color RGB, non-interlaced
The test is disable for now
Hi Patrick, you're right that the log files seem to be lost after some time. Would it make sense to add some test data to this repository, so you can keep the tests for log files?
I'm asking because the issue seems to be the same, even with valid binary log files.
I've attached an example for which mavlink_dump
fails, .zip
for GitHub to accept it as an attachment.
Is that expected?
ArduPlane-MAVFTP-00000111.zip
I used https://plot.ardupilot.org/ to quickly validate the log file is good.
Using the d8de261ddf66a270834a1931565224880631cf1c
master
, I get the following:
./target/debug/mavlink-dump file:/home/hs-predator/Downloads/ArduPlane-MAVFTP-00000111.bin
recv error: Error { kind: UnexpectedEof, message: "failed to fill whole buffer" }
I tried changing the Mavlink protocol version and file endings. Am I missing something?
With tcpin
, udpin
everything works as expected, so maybe something in the file-handling is broken?
Hi Patrick, you're right that the log files seem to be lost after some time. Would it make sense to add some test data to this repository, so you can keep the tests for log files?
I'm asking because the issue seems to be the same, even with valid binary log files. I've attached an example for which
mavlink_dump
fails,.zip
for GitHub to accept it as an attachment. Is that expected? ArduPlane-MAVFTP-00000111.zipI used https://plot.ardupilot.org/ to quickly validate the log file is good.
Using the
d8de261ddf66a270834a1931565224880631cf1c
master
, I get the following:./target/debug/mavlink-dump file:/home/hs-predator/Downloads/ArduPlane-MAVFTP-00000111.bin recv error: Error { kind: UnexpectedEof, message: "failed to fill whole buffer" }
I tried changing the Mavlink protocol version and file endings. Am I missing something? With
tcpin
,udpin
everything works as expected, so maybe something in the file-handling is broken?
You should run a tlog file and not a .bin file, .bin are dataflash files.
Done in # #110 #109
the
test process_files::all
test is failingcargo test --features all-dialects
seeing this locally, as well as in CI