Just to clarify, are you using a cRIO or a roboRIO? The subject says roboRIO but cRIO is in the error code.
I am not sure if this is related to your problem, but last year our team had a lot of trouble getting the roboRIO to stop crashing. We had a nav6 connected to the the roboRIO via the RS-232 port. Eventually we disconnected the nav6 and tried connecting, and running code again. Everything worked.
Try disconnecting the nav6 and see if your code crashes or not. If it does not crash,
go to the roboRIO Webdashboard and uncheck "Enable Console Out" even though the recommended setting is checked. The option is shown in the attachment. Then try your code again with the nav6 connected.
We also noticed a bug in the nav6 (LabVIEW) code where the code would get stuck in an infinite running loop in the Begin VI if the nav6 was not connected.