-
Notifications
You must be signed in to change notification settings - Fork 5
2024 Beta RIO 1 Out-Of-Memory's after some deploys #39
Comments
We have also encountered this issue, and we found a way to solve it temporarily until NI releases an update. From what we understand the issue is caused because of multiple processes that take a lot of memory. |
You could use this instead to force-kill all processes with JRE in their name: pgrep JRE | xargs kill -9 The following may work for remote kill, but I haven't tested whether ssh allows embedding pipes like that. ssh [email protected] 'pgrep JRE | xargs kill -9' |
When connected to roboRIO with USB the IP you want to SSH to is 172.22.11.2. |
We are also getting this issue. I'll test the remote kill ssh command. |
The problem in #40 is likely related but the symptoms are not quite the same... Some observations: Download of code seems to always be successful, the problem appears to be in the startup of the code. Sometimes starts ok, most other times starts with trash in the riolog or an incomplete riolog or an apparently good startup but starts logging lots of errors from CAN devices. Power off then on works. |
I'm not sure if it is related, but the "Restart Robot Code" option also does not work regardless of its state. |
Does this still occur with the WPILib beta 4? |
Have not had a chance to test B4 yet. Not sure when I can do it now that xmas is here. Will try sometime next week. |
I'm still reproducing this on the Kickoff release |
I am still reproducing this issue, albeit much less, in the kickoff release. After three days of testing, it failed one time. |
Our team has not seen any problems with deployment since kickoff release. |
Hello. This issue for me is still occurring. I'm not doing any heavy logging or heavy computing on the roboRIO. The memory leaks occasionally happened in WPILib 2024.2.1 but has gotten worse with 2024.3.1. The roboRIO is on the latest firmware. |
We're also having this issue whenever we add any sort of logging to our code: https://github.com/FRC-7525/2024-Robot |
An update on this for our team. We stopped having the fail to deploy issue and things seemed normal until we started loading Autos created with PathPlanner. With only a couple Autos we started having out of memory errors to the point we bit the bullet and took a RIO2 out of last year's robot and that solved the out of memory issue. I was being cheap trying to use a RIO1 for this years robot. |
Describe the bug
After a couple java project deploys, on a roboRIO 1, the DS will report an out of memory exception
To Reproduce
Steps to reproduce the behavior:
Talon
object with PWM channel 0Expected behavior
Out of memory exception does not occur.
Desktop (please complete the following information):
Additional context
I collected memory information before and after each deploy, available as a zip below:
Deploy 0 is collected immediately after power cycling the roboRIO, Deploy 5 is after the Out of Memory error occurred.
MemoryIssues.zip
I've also attached the log file of the out of memory error:
hs_err_pid7540.log
I've also repeated this experiment on the 2023_v3.2 image for a comparison, and stopped my testing after 30 consecutive deploys without issue. This appears to be a new or worsened issue for the 2024 libraries.
The text was updated successfully, but these errors were encountered: