Log in

View Full Version : Help with constant code crashing


Programming191
14-02-2016, 10:24
Whenever I run my program on eclipse the robot code crashes before even starting. The robotInit() method does not even run. We have tried commenting out all of our code yet this does not seem to solve our problems.
Here is the riolog output:
➔ Launching «'/home/lvuser/FRCUserProgram'»
➔ Launching «'/home/lvuser/FRCUserProgram'»
➔ Launching «'/home/lvuser/FRCUserProgram'»
➔ Launching «'/home/lvuser/FRCUserProgram'»
➔ Launching «'/home/lvuser/FRCUserProgram'»
➔ Launching «'/home/lvuser/FRCUserProgram'»
➔ Launching «'/home/lvuser/FRCUserProgram'»
➔ Launching «'/home/lvuser/FRCUserProgram'»
etc....

Jaci
14-02-2016, 10:38
The unspoken rule: Post your code before asking for help

(for real though we can't tell what's going on unless you give us your code, since there is no output. It looks like you're using C++, and since there's no output, I'd suggest deploying again)

Programming191
14-02-2016, 11:07
The unspoken rule: Post your code before asking for help

(for real though we can't tell what's going on unless you give us your code, since there is no output. It looks like you're using C++, and since there's no output, I'd suggest deploying again)

I have attached a zip folder containing my code. Thank you for your help.

Jaci
14-02-2016, 11:39
My first guess would be that the "CougarLib" dependency isn't compiled and/or loaded on your RoboRIO. This would cause a fault at startup, which I don't believe is picked up by RioLog.

Programming191
14-02-2016, 11:42
My first guess would be that the "CougarLib" dependency isn't compiled and/or loaded on your RoboRIO. This would cause a fault at startup, which I don't believe is picked up by RioLog.

I found the issue. I was trying to write to a log file and their was an error in the way I was doing it. Thank you for your help!

Jaci
14-02-2016, 11:57
No problem, I'm glad the issue is resolved c: