-
Notifications
You must be signed in to change notification settings - Fork 5
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
With the RT Startup App disabled, Restart Robot Code on the DS permanently breaks comms between DS and Rio #70
Comments
Additional info: Deploy Robot Code from the WPILib menu in VSCode also kills communication if a robot program is already running (and RT Startup App is disabled). |
This actually doesn’t surprise me at all. When you try to deploy with rt startup app disabled, the deploy hangs as well sometimes. This is why there’s a warning in gradlerio where if it detects this setting it prints a message. My guess is the DS is hanging the same way as well, as it tries to run the same command that robot deploys run. The answer here is pretty much going to be don’t do this. You can actually stop the robot program by sshing in as admin and running frcKillRobot -t |
More info and a couple of proposals for changes. Possible fixes (so NetCommDaemon doesn't get killed): the proposed changes are only in code that is used when automatic app startup is disabled, thus hopefully relatively low risk.
|
I don't think this is NI's issue. frcKillRobot.sh is in the GradleRIO project. |
That’s still an NI script. We just do one modification to work around a Java issue from a few years ago. |
Describe the bug
When the Rio setting "Disable RT Startup App" is true and a robot program is running, pressing "Restart Robot Code" on DS causes communications to the roboRIO to be lost until it is rebooted.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The 2024 behavior when these steps are performed is that communications are lost briefly (<15s). To restart the robot code requires pushing the "Restart Robot Code" button a second time. That seems reasonable. There might be an argument that needing to "Restart Robot Code" a second time is undesirable, but it does have its uses -- if you're trying to explore the system state without the code running, for example. (Note: when I tried the 2024 code again today it behaved the same as 2025 which is what I'd expect because the script to kill the running code is unchanged since last year.)
Desktop (please complete the following information if applicable):
Project Version: 2025.1.1-beta-2
VS Code Version: 1.94.2
WPILib Extension Version: 2025.1.1-beta-2
C++ Extension Version: 1.22.9
Java Extension Version: 1.36.2024092708
Java Debug Extension Version: 0.58.2024090204
Java Dependencies Extension Version 0.24.0
Java Version: 17
Java Location: /home/hauser/wpilib/2025/jdk
Vendor Libraries:
PathplannerLib (2025.0.0-beta-5)
CTRE-Phoenix (v6) (25.0.0-beta-3)
REVLib (2025.0.0-beta-3)
Studica (2025.1.1-beta-3)
WPILib-New-Commands (1.0.0)
photonlib (v2025.0.0-beta-5)
I tested also with just the Arcade Drive example project and saw the same.
roboRIO (please complete the following information if applicable):
The text was updated successfully, but these errors were encountered: