Go to Post It's kind of magical how I went from legos to replacing most of the iron in my blood with aluminum, and all thanks to my elementary school science teacher. - Astrokid248 [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 18-03-2014, 10:45
DjScribbles DjScribbles is offline
Programming Mentor
AKA: Joe S
FRC #2474 (Team Excel)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2012
Location: Niles MI
Posts: 284
DjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to behold
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.
Reply With Quote
  #2   Spotlight this post!  
Unread 18-03-2014, 11:10
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
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.
Reply With Quote
  #3   Spotlight this post!  
Unread 18-03-2014, 12:29
Jefferson Jefferson is offline
Registered User
AKA: Jeff Clements
FRC #0016 (Bomb Squad)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Mountain Home, AR
Posts: 258
Jefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond reputeJefferson has a reputation beyond repute
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.
Reply With Quote
  #4   Spotlight this post!  
Unread 18-03-2014, 15:12
DjScribbles DjScribbles is offline
Programming Mentor
AKA: Joe S
FRC #2474 (Team Excel)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2012
Location: Niles MI
Posts: 284
DjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to behold
Re: Mid-Match hang due to smart dashboard?

Quote:
Originally Posted by Jefferson View Post
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.
Actually, we have a handful of values that are pushed each teleop periodic which could easily be moved. Thanks for the tip.
Reply With Quote
  #5   Spotlight this post!  
Unread 21-03-2014, 14:36
virtuald's Avatar
virtuald virtuald is offline
RobotPy Guy
AKA: Dustin Spicuzza
FRC #1418 (), FRC #1973, FRC #4796, FRC #6367 ()
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,067
virtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant future
Re: Mid-Match hang due to smart dashboard?

See this thread. You can download an official update using the link on that thread.
__________________
Maintainer of RobotPy - Python for FRC
Creator of pyfrc (Robot Simulator + utilities for Python) and pynetworktables/pynetworktables2js (NetworkTables for Python & Javascript)

2017 Season: Teams #1973, #4796, #6369
Team #1418 (remote mentor): Newton Quarterfinalists, 2016 Chesapeake District Champion, 2x Innovation in Control award, 2x district event winner
Team #1418: 2015 DC Regional Innovation In Control Award, #2 seed; 2014 VA Industrial Design Award; 2014 Finalists in DC & VA
Team #2423: 2012 & 2013 Boston Regional Innovation in Control Award


Resources: FIRSTWiki (relaunched!) | My Software Stuff
Reply With Quote
  #6   Spotlight this post!  
Unread 24-03-2014, 11:53
DjScribbles DjScribbles is offline
Programming Mentor
AKA: Joe S
FRC #2474 (Team Excel)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2012
Location: Niles MI
Posts: 284
DjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to behold
Re: Mid-Match hang due to smart dashboard?

Quote:
Originally Posted by virtuald View Post
See this thread. You can download an official update using the link on that thread.
That thread is about an issue that is different from what I've described; it could be related, but it didn't really seem to be.

From that thread:
Quote:
The TL;DR is basically this: if you are connected via SmartDashboard, and you disconnect the connected computer's wireless while the robot is writing a value to the SmartDashboard, the robot may hang until the write times out.. which can be a few minutes.
Reply With Quote
  #7   Spotlight this post!  
Unread 24-03-2014, 12:01
virtuald's Avatar
virtuald virtuald is offline
RobotPy Guy
AKA: Dustin Spicuzza
FRC #1418 (), FRC #1973, FRC #4796, FRC #6367 ()
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,067
virtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant future
Re: Mid-Match hang due to smart dashboard?

Quote:
Originally Posted by DjScribbles View Post
That thread is about an issue that is different from what I've described; it could be related, but it didn't really seem to be.
The SmartDashboard could become unsynchronized for any number of reasons, and cause writes to fail. If they do fail, then without the patch you will lose control of your robot. SmartDashboard uses a separate communications channel than the DS comms, so just because the DS didn't lose any packets doesn't mean SmartDashboard packets were not lost.

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.
__________________
Maintainer of RobotPy - Python for FRC
Creator of pyfrc (Robot Simulator + utilities for Python) and pynetworktables/pynetworktables2js (NetworkTables for Python & Javascript)

2017 Season: Teams #1973, #4796, #6369
Team #1418 (remote mentor): Newton Quarterfinalists, 2016 Chesapeake District Champion, 2x Innovation in Control award, 2x district event winner
Team #1418: 2015 DC Regional Innovation In Control Award, #2 seed; 2014 VA Industrial Design Award; 2014 Finalists in DC & VA
Team #2423: 2012 & 2013 Boston Regional Innovation in Control Award


Resources: FIRSTWiki (relaunched!) | My Software Stuff
Reply With Quote
  #8   Spotlight this post!  
Unread 24-03-2014, 12:12
MrRoboSteve MrRoboSteve is offline
Mentor
AKA: Steve Peterson
FRC #3081 (Kennedy RoboEagles)
Team Role: Mentor
 
Join Date: Mar 2012
Rookie Year: 2011
Location: Bloomington, MN
Posts: 578
MrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond reputeMrRoboSteve has a reputation beyond repute
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.
__________________
2016-17 events: 10000 Lakes Regional, Northern Lights Regional, FTC Burnsville Qualifying Tournament

2011 - present · FRC 3081 Kennedy RoboEagles mentor
2013 - present · event volunteer at 10000 Lakes Regional, Northern Lights Regional, North Star Regional, Lake Superior Regional, Minnesota State Tournament, PNW District 4 Glacier Peak, MN FTC, CMP
http://twitter.com/MrRoboSteve · www.linkedin.com/in/speterson
Reply With Quote
  #9   Spotlight this post!  
Unread 24-03-2014, 12:38
DjScribbles DjScribbles is offline
Programming Mentor
AKA: Joe S
FRC #2474 (Team Excel)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2012
Location: Niles MI
Posts: 284
DjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to behold
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.
Reply With Quote
  #10   Spotlight this post!  
Unread 08-04-2014, 17:27
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,572
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Mid-Match hang due to smart dashboard?

Did you have any more problems after applying the patch?
Reply With Quote
  #11   Spotlight this post!  
Unread 10-04-2014, 00:59
DjScribbles DjScribbles is offline
Programming Mentor
AKA: Joe S
FRC #2474 (Team Excel)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2012
Location: Niles MI
Posts: 284
DjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to behold
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.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 14:06.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi