Fatal Robot Code Crash

If you have a reproducible native crash, please see WPILib 2023.4.2 Release - #6 by Peter_Johnson for instructions on how to collect a core dump. I’ll also need to know what version of the libraries you’re using (at least the WPILib version in build.gradle and the vendor deps, preferably the whole project).

Unfortunately, the std::bad_alloc error can be very challenging to root cause even with a core dump, because unless the memory allocation request itself is corrupted in some way, the error simply means the Rio is running out of memory, and there aren’t good tools available for finding the source of the leak from a core dump alone.

2 Likes