I am the senior mentor for Team 4464. We have just installed robotpy 2024.2.1. We are trying to use vision processing and are seeing CameraServer fail on the RoboRIO, returning exitcode 6 on the code examples, both Quick Vision and Intermediate Vision. Attempting to load cscore directlyr on the RoboRIO results in Abort, just after the network initializes. It is odd, because I can run the C versions of the Quick Vision and the Intermediate Vision and they both work. Is there any help?
The current working theory is that RoboRIO 1 is running out of memory. See QuickVision example fails with SIGABRT · Issue #61 · robotpy/mostrobotpy · GitHub
What’s the output of python -m robotpy installer list
when connected to the robot?
I am trying to figure out memory usage now. The robotpy list gave ths result.
Package Version
iniconfig 2.0.0
numpy 1.25.2+r2
packaging 23.2
photonlibpy 2024.2.2
pip 23.2.1
pluggy 1.4.0
pyntcore 2024.2.1.2
pytest 8.0.0
robotpy 2024.2.1.1
robotpy-apriltag 2024.2.1.2
robotpy-cli 2024.0.0
robotpy-commands-v2 2024.2.2
robotpy-cscore 2024.2.1.2
robotpy-hal 2024.2.1.2
robotpy-libgfortran5 12.1.0+r5
robotpy-navx 2024.1.0
robotpy-openblas 0.3.24+r3
robotpy-opencv 4.8.0+r2
robotpy-opencv-core 4.8.0+r2
robotpy-pathplannerlib 2024.1.6
robotpy-playingwithfusion 2024.0.0
robotpy-rev 2024.2.0
robotpy-wpilib-utilities 2024.0.0
robotpy-wpimath 2024.2.1.2
robotpy-wpinet 2024.2.1.2
robotpy-wpiutil 2024.2.1.2
typing_extensions 4.9.0
wpilib 2024.2.1.2
Memory is at least one of the culprits. I disabled niweb following the text of that topic and can run the example code from robotpy just as well as I can the C code. Thanks.
Glad to hear that worked for you.
Looking at your list of packages, you have the updated versions of the packages that I tried adjusting the memory usage for, so that’s good (though it seems like it wasn’t super effective either).
I’m not sure if this is related, but I’m getting an exit code of 11 as shown below. I’ve disabled the NI webserver as mentioned above, and my robotpy versions match what is shown in the list above too.
I believe exitcode -11 is a segmentation fault. This is probably not the memory issue, but I do not have much more help than that.
-11 is a segmentation fault. It can sometimes occur in low memory conditions, so my guess is that there’s still not enough memory to go around.
A couple of years ago one could do image processing on the rio using Python, but it does seem that numpy et al are a bit more bloated now – as I note in QuickVision example fails with SIGABRT · Issue #61 · robotpy/mostrobotpy · GitHub just importing numpy bumps up vsz by 50m.
There’s probably ways to address this, but I suspect the real answer is use a coprocessor or upgrade to a roborio II.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.