View Single Post
  #2   Spotlight this post!  
Unread 24-01-2013, 14:13
Toa Circuit's Avatar
Toa Circuit Toa Circuit is offline
Thaddeus Maximus
AKA: Thad Hughes
FRC #4213 (MetalCow Robotics)
Team Role: Leadership
 
Join Date: Nov 2012
Rookie Year: 2012
Location: Shirley, IL
Posts: 131
Toa Circuit is an unknown quantity at this point
Re: Robot code crashing after a while?

Quote:
Originally Posted by RufflesRidge View Post
Two things to check to figure out what is crashing:

1. Check the Free RAM on the Driver Station Chart tab, if this number is constantly decreasing to 0 while the robot is running your code leaks memory
2. Make sure NetConsole is enabled using he imaging tool, then open NetConsole, boot the cRIO (so you know Netconsole is working) then see if your code is reporting an exception when it crashes
3. If neither of the above is happening your code is likely hitting a semaphore deadlock. Running through the debugger may help locate it.
1. Ill try this tonight. If it is a memory leak, how would I fix this? (What would even cause this?)
2. It is enabled (The Console Out switch, yes?) and I will check this tonight.
3. I disabled the semaphores we have and am not starting the second task I have, so I dont think I have any semaphores to deadlock with.

Quote:
Originally Posted by virtuald View Post
You might try disabling the watchdog, and see if that fixes it. If it does, then re-enable it and figure out where you're forgetting to feed the watchdog.
I'm not getting any watchdog errors or messages or lights or anything, but if Ruffles' suggestions don't work, I will do this.
__________________

2012 Head of Programming and Electrical
2013-14 Overall Team Captain and Programming Head
2012-14 Mentor of FLL Team Power Surge
2014 Dean's List Finalist
2014 CIR Xerox Creativity Award
Webpage
Reply With Quote