Closed calcmogul closed 3 years ago
Well, I know why I think... but will need to confirm. SmartDashboard.PutData() is given the pointer to the templated class, but the remove in the destructor removes the pointer to the non template base class.
We might need to not use the helper class in this case, or pull in the helper at the template class level instead of the base class. Really any derived classes from the helper class need to be final, or we need to change the helper class to not be CRTP.
-- Peter
I encountered this bug when trying to obtain a list of autonomous mode names to run in the instantiation macro of a TEST_P(), but this bug would occur in any test suite that instantiates the robot more than once (say, making a new robot in each TEST() block). The following minimal example reproduces the bug with version
2020.3.2-286-g7ae8c7b
.Here's the gdb backtrace: