Hi, I'm trying to use a Romi and also run Photon Vision on the same Pi. I see the 2023 version of WPILibPi has Romi support but the last release of 2024 doesn't.
I tried running Photon on the 2023 version but got a Libc version error, so I upgraded the 2023 in place to Bookworm. I'm past that, but I'm getting JNI problems now:
[2025-03-29 06:06:11] [General - TimedTaskManager] [ERROR] Exception thrown by threadpool: 'boolean org.photonvision.raspi.LibCameraJNI.isLibraryWorking()': 'boolean org.photonvision.raspi.LibCameraJNI.isLibraryWorking()'
[2025-03-29 06:06:11] [General - TimedTaskManager] [ERROR] java.lang.UnsatisfiedLinkError: 'boolean org.photonvision.raspi.LibCameraJNI.isLibraryWorking()'
at org.photonvision.raspi.LibCameraJNI.isLibraryWorking(Native Method)
at org.photonvision.raspi.LibCameraJNI.isSupported(LibCameraJNI.java:65)
at org.photonvision.raspi.LibCameraJNILoader.isSupported(LibCameraJNILoader.java:77)
at org.photonvision.vision.processes.VisionSourceManager.getConnectedCameras(VisionSourceManager.java:303)
at org.photonvision.vision.processes.VisionSourceManager.getVsmState(VisionSourceManager.java:282)
at org.photonvision.vision.processes.VisionSourceManager.pushUiUpdate(VisionSourceManager.java:291)
at org.photonvision.common.util.TimedTaskManager$CaughtScheduledThreadPoolExecutor.lambda$wrap$0(TimedTaskManager.java:56)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)
I'm guessing there's some other library I need to update but I'm not sure what it is. I've also tried building Photonvision from source and I get the same problem.
Hi, I'm trying to use a Romi and also run Photon Vision on the same Pi. I see the 2023 version of WPILibPi has Romi support but the last release of 2024 doesn't.
I tried running Photon on the 2023 version but got a Libc version error, so I upgraded the 2023 in place to Bookworm. I'm past that, but I'm getting JNI problems now:
I'm guessing there's some other library I need to update but I'm not sure what it is. I've also tried building Photonvision from source and I get the same problem.