Skip to content
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

Crash Log spam #26

Open
JaciBrunning opened this issue Feb 12, 2016 · 0 comments
Open

Crash Log spam #26

JaciBrunning opened this issue Feb 12, 2016 · 0 comments

Comments

@JaciBrunning
Copy link
Member

In the 2016 Update of the RoboRIO image, instead of running the frcKillRobot.sh -r -t command to restart robot code, the Java process is just killed and a watchdog checks to see if the program is running, and if not, to start it.

This has the side effect of if the robot crashes, the code will immediately start up again. This is good in some cases, but for cases where the robot crashes upon init (whether it be programmer error or what have you), the crash is on a loop and will write new crash logs to file until the robot program is replaced, or the power to the robot is unplugged.

This can make it hard to identify crash logs. We need a way to detect if the robot crashes consecutively with an identical stacktrace. This can be done by writing the crash conditions to file, and removing the file at bootup. Checking if a) this file exists and b) this file contains an identical exception signature will allow us to determine whether a new crash log should be written.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant