Code deployment problems

Hey all,
Me and my team have lately been having issues deploying code on the RIO (already posted a similar post). When trying to deploy our robot project code, the RIO deploys it very slowly and then can’t be discovered the next deployment. Rebooting the RIO didn’t work, since it loads the same .jar that doesn’t work (the compiled code) into it’s filesystem.

To reset it and let us try deploying again, we directly SSH’d into the RIO and removed the .jar. After trying to deploy, the same problem repeats (code takes a long time to deploy, and then when trying to redeploy it can’t be discovered).

I suspect that the problem may be in dependencies configured in our build.gradle, would love to know if someone has had a problem with them:

dependencies {
implementation wpi.java.deps.wpilib()
implementation wpi.java.vendor.java()

roborioDebug wpi.java.deps.wpilibJniDebug(wpi.platforms.roborio)
roborioDebug wpi.java.vendor.jniDebug(wpi.platforms.roborio)

roborioRelease wpi.java.deps.wpilibJniRelease(wpi.platforms.roborio)
roborioRelease wpi.java.vendor.jniRelease(wpi.platforms.roborio)

nativeDebug wpi.java.deps.wpilibJniDebug(wpi.platforms.desktop)
nativeDebug wpi.java.vendor.jniDebug(wpi.platforms.desktop)
simulationDebug wpi.sim.enableDebug()

nativeRelease wpi.java.deps.wpilibJniRelease(wpi.platforms.desktop)
nativeRelease wpi.java.vendor.jniRelease(wpi.platforms.desktop)
simulationRelease wpi.sim.enableRelease()

testImplementation 'org.junit.jupiter:junit-jupiter:5.10.1'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'



implementation files('libs/jna.jar')
implementation files('libs/Jama-1.0.3.jar')
implementation files('libs/commons-collections4-4.4.jar')
implementation files('libs/commons-compress-1.19.jar')
implementation files('libs/mysql-connector.jar')
implementation files('libs/poi-4.1.2.jar')
implementation files('libs/poi-ooxml-4.1.2.jar')
implementation files('libs/poi-ooxml-schemas-4.1.2.jar')
implementation files('libs/xmlbeans-3.1.0.jar')

implementation "com.github.sarxos:webcam-capture:0.3.12"
implementation "com.github.sarxos:webcam-capture-driver-ipcam:0.3.12"

}

Anyways, if anybody has any other suggestions, I would love to hear them.

Thanks in advance,
Niran Schneller,
BumbleB 3339

I’d create a fresh project, then add stuff piece by piece until you hit this problem again. That way you’ll see the root cause of the issue.

2 Likes

Uhhmmm… what?

Me thinks AI was involved in this process.

3 Likes

I would just re image the rio if I were you. Trying to ssh in and repair it manually will take more work then just re imaging it

Hello all,
the problem ended up being assigning an invalid PWM Port in the software, which caused the RIO to crash.

It didn’t output any invalid port issues, because no port sanity check is done on ports < 0 on WPI’s side, see:

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.