-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
PX4 reports no logs even though there are logs on the SD card #14157
Comments
I looked for missing |
Thanks @julianoes for having a look. I did some more investigating. Here is what I have learned so far:
The failure happens at the line Which fails with the |
If I do the sequence without requesting all logs to be deleted at the end, the error does not occur during an attempt to list the log entries, but while trying to download a log at: with the same errno 23. |
It looks like somehow we run out of file descriptors on NuttX. I've tried to debug this by wrapping And here is the output:
|
Thanks for the patch. I'll try reproducing the issue with it applied. |
It's an FD leak, and #14188 fixes it. Thanks for narrowing this down. |
Thanks @bkueng, I did not see that! |
Describe the bug
We are seeing the issue that PX4 lists no logs when using QGC to request a log list or using some other mavlink application to send
LOG_REQUEST_LIST
(the response hasnum_logs = 0
). This happens in situations where we are certain that there is at least one log file on the SD card. Soft-rebooting the flight controller fixes the issue.The issue does not occur all the time and usually only after the vehicle has been on for an extended period of time (several hours). Potentially the issue also only occurs after having listed the logs repeatedly.
To Reproduce
Steps to reproduce the behavior:
Additional context
This is happening on 1.10 but we also saw this in 1.7.4, so it's not a recent regression.
The text was updated successfully, but these errors were encountered: