|
Re: No robot code after running for a while (Java VM ran out of memory)
It may be helpful to note that we ran into similar issues, despite not using any vision tracking. Our diagnostics showed that it may have been an issue related to too many DirectByteBuffers being allocated. We couldn't figure out exactly why this happened, but it may be related to the fact that WPILibJ allocates a DirectByteBuffer and lets the Garbage Collector collect it ... every single time that it makes a JNI call. However, I couldn't seem to fix this by caching them, so I'm not sure if it was the issue.
It might be helpful to disable your vision tracking code to see if the problem is with vision tracking or a different part of your code.
__________________
Software manager alumnus. Developer of the CCRE, a powerful robot code framework based on dataflow and composibility.
Refer to as she/her/hers. Years of FRC: 2012, 2013, 2014, 2015, 2016. FLL for a few years beforehand.
Team 1540: The Flaming Chickens | Portland, Oregon | Twitter | Facebook
|