-
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
1.7 Crashes, log stops in-air #9271
Comments
Maybe #8263? |
@tops4u Thanks, I was not aware of that |
also #9185. |
I hope someone could take it seriouly, as I suffered 3 crashes like this. If flight goes well, log is fine as well, however if it crashes, the log could be stopped in mid-air. All recorded data is fine, attitude\altitude\sensors... but no data during crash. I couldn't find any clue in the log which might lead to crash. |
@JohnSnowball I think we only have one of your log files, could you also share the other two? |
First one, the main reason could be quad motor fail which leads to rotation, however the log stops in air and crashed. For these two flights, I'm 100% sure I have done nothing special. Two planes have already had about more than 5 normal flights. The same thing they share is, it's very warm outside, (about 35 celcius degree). Is it possible that the system is down? |
@JohnSnowball I'm looking into it right now. Those last logs are helpful. |
@JohnSnowball Thanks! Do you also happen to have the mavlink telemetry log for the flight? |
Please keep in mind that I am working from just an elf and current master. So the symbols I am seeing may be bogus. The hardfault log you sent me indicates a bad PC and corruption on the user stack. As I look up the stack for possible calling code I see 0x0801d9ff in sem_timeout possible called by 0x080f5ef5 in Bq78350::~Bq78350() Is that driver used on the craft? Where there changes to it? |
I believe it is. @philipoe This is a custom, non-contributed driver and there is no way for us to tell if that's at fault nor can we debug it. If you want support for that peripheral and debugging in situations like this one you would need to make the driver and hardware available (= commercially available or as open hardware). That is a general rule for upstream debugging. I'm closing the issue with a tentative conclusion that the fault is due to user-changed code and not an actual PX4 issue. |
Sorry, closing the right one. |
Based on this I can infer:
I tested with HIL and a VTOL model what happens when the SD card access starts to block during a mission, with similar, but not quite the same results as @JohnSnowball experienced:
Do you have the mavlink log for this crash? |
@bkueng thanks man!!!!thanks very much!!! I'm 100% sure that's what I got! That's exactly the same! Anyway, it is a serious bug, SD card hard fault shouldn't not lead to this kind of behavior! |
@bkueng by the way, how to do HIL with PX4? |
@JohnSnowball You can find instructions here Additionally, there is a pull request which enables HIL for VTOL (standard vtol). @bkueng successfully tested it yesterday and I want to merge it soon. |
You can zip it and you should be able to directly upload it here to github.
We're still trying to find the root cause, and will report the progress here. |
2018-04-13 16-40-31.zip |
@JohnSnowball Thanks for sharing the tlog! Do you happen to have the tlogs of the entire flight? The one you sent only embodies the data when the plane was not responding anymore. We have been looking at the message which have been streamed to QGC during the incident: Interestingly, we cannot find a mavlink stream config that matches the message profile seen in the mavlink inspector. E.g. we cannot see any LOCAL_POSITION_NED or ESTIMATOR_STATUS messages. Questions:
|
The conclusion here is that we found that all instances could be explained with systems crashing before the log could be written. We have robustified it to the extent possible. However, to be really robust a system needs to have a standby battery for the autopilot. |
This issue represents all the crash reports we've seen on 1.7 where the log stops in-air.
#9108
#9139
#9260
#8263
#9185
The text was updated successfully, but these errors were encountered: