Intermittent truncated/corrupt header in Blackbox logs (INAV 2.5) #5836
Replies: 12 comments
-
Issue-Label Bot is automatically applying the label Links: app homepage, dashboard and code for this bot. |
Beta Was this translation helpful? Give feedback.
-
@grahamcropley did you test on 2.5.0 stable? |
Beta Was this translation helpful? Give feedback.
-
Sorry, I thought this was on release - I will re-flash anyway... But just so I know, what info are you seeing that suggests it was on RC? |
Beta Was this translation helpful? Give feedback.
-
Ah ok.. the date next to the version... I will try again in the morning. thanks for the pointer @Mateyhv |
Beta Was this translation helpful? Give feedback.
-
It's likely you are using a slow sdcard. |
Beta Was this translation helpful? Give feedback.
-
Yes it was the date next to version. Inline with what giacomo892 pointed out I have been using a fast SD card on my 722 SE and has never gave me trouble. Regarding 2.5.0 stable, if you rely on RPM telemetry I would skip it in favor of the upcoming 2.5.1 which should be released shortly. |
Beta Was this translation helpful? Give feedback.
-
Samsung EVO 32GB SDHC Class 10 U1 and/or Sandisk Extreme 32GB SDHC U3 V30. I guess there's a chance they are wearing out, I'll pay more attention to the card I use when I test again. @Mateyhv I only just wired up ESC telemetry to get RPM filters working, I'll keep an eye out for 2.5.1 |
Beta Was this translation helpful? Give feedback.
-
Same experience on final release version of 2.5.0, different SD card Always in the exact same place in the header. INAV/MATEKF722SE 2.5.0 Jun 7 2020 / 11:43:20 (6947679) DIFF ALL - https://pastebin.com/Y7xBgc33 |
Beta Was this translation helpful? Give feedback.
-
I also get truncated headers most of the time with various bits randomly missing : First Log of the day: H Product:Blackbox flight data recorder by Nicholas Sherlock H Product:Blackbox flight data recorder by Nicholas Sherlock Explains why I've been getting odd values for vbat in Blackbox Explorer. If vbatref is missing from the header it defaults to 4050 or so even though it's a 3S battery. It's also been happening since at least 2.2.1 looking at old logs. |
Beta Was this translation helpful? Give feedback.
-
This issue / pull request has been automatically marked as stale because it has not had any activity in 60 days. The resources of the INAV team are limited, and so we are asking for your help. |
Beta Was this translation helpful? Give feedback.
-
I wanted to report I'm seeing the same issue on the latest stable release (2.5.2) w/ the latest bb analyzer app. I also have a Matek F722se, with a Sandisk Ultra 16GB card, using quad X, 1/1 logging. For me, the exact place where the header gets cropped appears to be random. Copying in headers from other logs is a workaround for now, but otherwise the gyro scaling is way off without the header of course. |
Beta Was this translation helpful? Give feedback.
-
Current Behaviour
I'm having intermittent issues with blackbox logging to SD card with INAV 2.5, anybody else experiencing this? the logs load in BBE but shows gyro values at 50,000dps and above and motors are all over 100% etc.
It seems like the header is getting truncated halfway through the 'Firmware type' field.. so BBE is interpreting the values incorrectly. If I copy/paste that top part from the previous flight, the rest of the data for the whole flight duration is read correctly in INAV Blackbox Explorer so I don't think it's a simple case of corruption there are no gaps in the logs at all. Just a problem with the header perhaps?
Steps to Reproduce
Fly a few packs, and check logs, it's intermittent. I've tried formatting the card inbetween, vs leaving files there, inconclusive. Some work, some don't.
Expected Behaviour
Every log file to have complete header so it can be read correctly. :P
Suggested Solution(s)
No idea, sorry. Maybe a buffer issue when composing the header for the file? but I'm no expert programmer :)
Additional context
Link to a broken log file - https://1drv.ms/u/s!AsYEmOjSaq2yg4dQxOSwUO6e2xdnSA?e=LlICXy
It happens in the exact same place in every file that isn't readable straight off the card... "H Firmware type:Cleanf" then it skips to later in the header. I have more examples if anybody needs them, as well as logs from the same quad/session/pack that DOES work.
CLI DUMP - https://pastebin.com/7RhB89B9
INAV/MATEKF722SE 2.5.0 May 26 2020 / 12:36:10 (d84bcb7)
GCC-9.2.1 20191025 (release) [ARM/arm-9-branch revision 277599]
Beta Was this translation helpful? Give feedback.
All reactions