wpilibsuite / allwpilib

Official Repository of WPILibJ and WPILibC
https://wpilib.org/
Other
1.08k stars 611 forks source link

FRC Driver Station Saying there is No Code when Building/Deploying #5252

Closed Macattack124 closed 1 year ago

Macattack124 commented 1 year ago

I am trying to build a trajectory for the robot. I have it build it out and I just want it to drive straight. When I build and deploy the code I do not get any errors. When I go to the log I am getting this:

java.io.IOException: cscorejni could not be loaded from path or an embedded resource. attempted to load for platform /linux/athena/ Last Load Error: /usr/local/frc/third-party/lib/libcscorejni.so: /usr/local/frc/third-party/lib/libopencv_photo.so.4.5: invalid ELF header at edu.wpi.first.util.RuntimeLoader.loadLibrary(RuntimeLoader.java:94) at edu.wpi.first.cscore.CameraServerJNI.(CameraServerJNI.java:37) at edu.wpi.first.wpilibj.RobotBase.startRobot(RobotBase.java:430) at frc.robot.Main.main(Main.java:27) Error in `/usr/local/frc/JRE/bin/java': corrupted double-linked list: 0xad097030 java.io.IOException: cscorejni could not be loaded from path or an embedded resource. attempted to load for platform /linux/athena/ Last Load Error: /usr/local/frc/third-party/lib/libcscorejni.so: /usr/local/frc/third-party/lib/libopencv_photo.so.4.5: invalid ELF header at edu.wpi.first.util.RuntimeLoader.loadLibrary(RuntimeLoader.java:94) at edu.wpi.first.cscore.CameraServerJNI.(CameraServerJNI.java:37) at edu.wpi.first.wpilibj.RobotBase.startRobot(RobotBase.java:430) at frc.robot.Main.main(Main.java:27) java.io.IOException: cscorejni could not be loaded from path or an embedded resource. attempted to load for platform /linux/athena/

I do not know why I am getting this error.

Starlight220 commented 1 year ago

Check versions of WPILib and everything. Upgrading to 2023.4.3 might help.

PeterJohnson commented 1 year ago

It seems like something got corrupted in either your installation or the deployment (copying of the libraries) to the Rio. This sort of error should never happen. Building your project out of OneDrive can cause weird issues so be sure you’re not doing that.