Reported segfault in SmartDashboard.putStringArray
virtuald opened this issue · 3 comments
virtuald commented
/cc @celttechie
Windows 10, Python 3.8.1 64-bit. Might be robotpy/robotpy-wpiutil#7?
auscompgeek commented
Quite possibly if the strings are computed. I imagine constants would work by chance.
auscompgeek commented
Actually, hmm. ntcore stores a std::vector<std::string>
and references that. vector and string own their contents, right?
virtuald commented
I looked at this a bit deeper, and I haven't been able to reproduce. I think if this were to happen, it would be that somehow an invalid py::str was returned from a function somewhere and added to an array that was used. Lots of pybind11 churn this summer, including a bunch of string stuff, so it's likely this has been addressed.