robotpy/robotpy-wpilib

Reported segfault in SmartDashboard.putStringArray

virtuald opened this issue · 3 comments

/cc @celttechie

Windows 10, Python 3.8.1 64-bit. Might be robotpy/robotpy-wpiutil#7?

Quite possibly if the strings are computed. I imagine constants would work by chance.

Actually, hmm. ntcore stores a std::vector<std::string> and references that. vector and string own their contents, right?

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.