Closed Macattack124 closed 1 year ago
Check versions of WPILib and everything. Upgrading to 2023.4.3 might help.
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.
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.