robotpy / robotpy-wpilib

Moved to https://github.com/robotpy/mostrobotpy
https://robotpy.github.io
Other
169 stars 59 forks source link

Exception in thread FRCDriverStation #418

Closed singofwalls closed 6 years ago

singofwalls commented 6 years ago

Whenever I reboot the robot, the DriverStation prints off this stacktrace.

The robot seems to continue running despite this crash although it does not seem to register any input from the gamepad afterward. However, considering that the gamepad works fine when running on the sim, I have a feeling robotpy may not be at fault for that problem. Then again, the sim has yet to experience this crash as far as I can tell.

Anyways, here's my current code if it is needed.

auscompgeek commented 6 years ago

Hi @VergilTheHuragok, thanks for reporting this. I guess we need to do more testing on roboRIOs.

This issue should be fixed by #419 once it's merged.

(If your team would like to test my fix, please be my guest; I would appreciate it as I don't have a roboRIO with me right now. You can use the devtools/build_and_deploy.sh bash script, whilst in a git bash window, from the git repo to deploy the fix to your robot.)

singofwalls commented 6 years ago

I would love to try it out but I can't seem to get build_and_deploy.sh to work (I am pretty new to git/gnu/msys). When I run it with MSYS, it prints:

.\build_and_deploy.sh: line 11: dirname: command not found .\build_and_deploy.sh: line 11: cd: HOME not set

I am not in a hurry, however, so I have no problem waiting for the merge if necessary.

auscompgeek commented 6 years ago

Huh, MSYS doesn't have dirname? That's odd.

I think you should be able to replace line 11 with cd ${0%/*} or similar. I also only just noticed the devtools/_windows_env.sh is quite outdated - you'll probably want to replace the entire body of the if statement in there with alias python3='py -3'.

singofwalls commented 6 years ago

I just went ahead and entered the entire path to devtools\ which seems to have fixed that problem.

Now it's printing:

fatal: No names found, cannot describe anything.  

Thanks for the help!

auscompgeek commented 6 years ago

Hm. How did you clone the git repo?

(Feel free to pop in the Gitter chat over at https://gitter.im/robotpy/robotpy-wpilib, if you'd rather not clutter this issue.)