2024Beta
2024Beta copied to clipboard
2024 Beta RIO 1 Out-Of-Memory's after some deploys
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:
- Format/power cycle roboRIO 1
- Create a new Timed Robot Skeleton Java Project
- Construct a
Talon
object with PWM channel 0 - Deploy project to roboRIO 1
- Increment channel
- Repeat steps 4-5
- Eventually (in less then 10 repeats), get the following error:
OpenJDK Client VM warning: INFO: os::commit_memory(0xb0000000, 4194304, 0) failed; error='Not enough space' (errno=12)
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 4194304 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /tmp/hs_err_pid7540.log
Expected behavior Out of memory exception does not occur.
Desktop (please complete the following information):
- OS: Windows 10
- Project Information:
WPILib Information:
Project Version: 2024.1.1-beta-1
VS Code Version: 1.83.1
WPILib Extension Version: 2024.1.1-beta-1
C++ Extension Version: 1.17.5
Java Extension Version: 1.23.0
Java Debug Extension Version: 0.52.0
Java Dependencies Extension Version 0.23.0
Java Version: 17
Java Location: C:\Users\Public\wpilib\2024\jdk
Vendor Libraries:
WPILib-New-Commands (1.0.0)
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.