|
Re: Robot code crashing after a while?
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.
|