|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Mid-Match hang due to smart dashboard?
In a few matches in our week one district, we observed a few seemingly random losses of control on the field, mid-match. The FTA attributed this to an issue with smart dashboard (which we were using), and informed me that similar issues were seen by a team in California in week 1, and that a fix should be expected in the coming weeks.
We disabled smart dashboard, and removed several unused sensors from code; and didn't see the issue again in our remaining ~9 matches. In the match where it was decided that the issue must lie with Smart-Dashboard, the DS log was free of errors until robot control was lost (at which point motor watchdogs began barking), and we saw behavior that I would attribute to the main thread being stuck or crashed. No losses of communication/robot code were observed during the match. I'm curious if this issue has been observed elsewhere, and if there are any fixes planned to resolve it. I believe this issue is separate from the one identified in the other "Serious Bug" thread because it is not occurring when a connection is severed. |
|
#2
|
|||||
|
|||||
|
Re: Mid-Match hang due to smart dashboard?
There is indeed a patch for the C++ Network Tables issues. It is currently being validated, and ought to be available on an as-needed basis from the CSAs for teams competing this weekend. Unless something significantly bad is discovered, I would expect it to be released as an official update next week.
|
|
#3
|
|||
|
|||
|
Re: Mid-Match hang due to smart dashboard?
I'm not sure if it would help with your situation, but we write a LOT of data to the dashboard. The more we write and the longer we do it, the more issues we see with SmartDashboard.
Therefore, we link as many of the Dashboard writes as we can to a joystick button press, so the robot is only writing for a brief period. The majority of the writes are used for debug. Now if you're using NetworkTables to send back information to the robot (like vision processing) you can recompile SmartDashboard to use the available UDP port instead of the TCP port it uses now. This seemed to help us in 2012. We haven't attempted driver's station vision processing since. We decided keeping the camera off the network was a priority. |
|
#4
|
|||
|
|||
|
Re: Mid-Match hang due to smart dashboard?
Actually, we have a handful of values that are pushed each teleop periodic which could easily be moved. Thanks for the tip.
|
|
#5
|
||||
|
||||
|
Re: Mid-Match hang due to smart dashboard?
See this thread. You can download an official update using the link on that thread.
|
|
#6
|
|||
|
|||
|
Re: Mid-Match hang due to smart dashboard?
Quote:
From that thread: Quote:
|
|
#7
|
||||
|
||||
|
Re: Mid-Match hang due to smart dashboard?
Quote:
The fact that removing SmartDashboard from your code solved the problem indicates a high probability that you are affected by the issue, even if the cause isn't exactly the same. |
|
#8
|
|||
|
|||
|
Re: Mid-Match hang due to smart dashboard?
Based on the description of the issue, I agree with the other posters that you should take the patch.
Can you post DS Log Viewer snips of matches where the failure occurred? Very low CPU usage would point to this as the root cause. |
|
#9
|
|||
|
|||
|
Re: Mid-Match hang due to smart dashboard?
To clarify, I fully intend to apply the patch.
I simply saw a different set of symptoms than those described in the other thread; and I wanted to ensure that if the problem I've encountered is a separate issue, it is treated as such (which is why I acknowledged the thread in my OP). I will try to get our DS logs from that match to post tonight. |
|
#10
|
||||||
|
||||||
|
Re: Mid-Match hang due to smart dashboard?
Did you have any more problems after applying the patch?
|
|
#11
|
|||
|
|||
|
Re: Mid-Match hang due to smart dashboard?
We ran smart dashboard throughout the Lansing district event (14 matches) without removing any of our "excessive" PutNumber readouts, and did not encounter a problem on the field.
So I am fairly confident the patch fixed our issue, I'll report back if I see any sign of the issue again. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|