Hey all, I know summer CD is slow and the C++ subsection is basically dead during the summer, so I decided I should put this in general programming to get a bit more attention.
So down to the issue. I was doing my yearly rewrite of our code from this year, and when I go to run the code on the robot, the robot code crashes the DS says "No Robot Code". So I added some couts right at the start of Robot::Init and no dice either. No text is output which is very strange to me considering the first line should at least execute.
My next thought is to run it as a debugging program and I catch a glimpse of two errors in the console which I did not see before. Here they are:
Code:
0xb6fd7d40 in ?? () from c:\frc/lib/ld-linux.so.3
warning: Could not load shared library symbols for 15 libraries, e.g. /usr/local/frc/lib/libFRC_NetworkCommunication.so.16.
Use the "info sharedlibrary" command to see the complete listing.
Do you need "set solib-search-path" or "set sysroot"?
[New Thread 7120]
[New Thread 7124]
[New Thread 7125]
[New Thread 7126]
[New Thread 7127]
[New Thread 7128]
[New Thread 7129]
Program received signal SIGSEGV, Segmentation fault.
0xb6e812a0 in pthread_mutex_lock () from c:\frc/lib/libpthread.so.0
Code:
ROBOT INIT!
AHRS Constructor!
[HAL] Starting task FRC_navX-MXP_IO...
SPI CRC err. Length: 18, Got: 0; Calculated: 9
SPI CRC err. Length: 18, Got: 15; Calculated: 97
SPI CRC err. Length: 18, Got: 0; Calculated: 103
SPI CRC err. Length: 82, Got: 255; Calculated: 63
Error at Requires [Command.cpp:115]: A pointer parameter to a method is nullptr: subsystem
at /home/lvuser/FRCUserProgram() [0x6c928]
at /home/lvuser/FRCUserProgram() [0x312ec]
at /home/lvuser/FRCUserProgram() [0x2e304]
at /home/lvuser/FRCUserProgram() [0x2b3e0]
at /home/lvuser/FRCUserProgram() [0x3800c]
at /home/lvuser/FRCUserProgram() [0x52c44]
at /home/lvuser/FRCUserProgram() [0x2bcb4]
at __libc_startc_main
I am digging through the c++ source code for wpilib and am stuck there. Any help would be greatly appreciated.
I also was looking through the debugger and this is what is shows. I am not really amazing at using and understanding the debugger, but I thought it would be useful.
My code is here:
https://github.com/team2053tigertron.../OffSeason2016
- Drew