Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid bytes passed to HAL_SendError cause confusing unicode errors #113

Open
virtuald opened this issue Nov 29, 2024 · 0 comments
Open

Comments

@virtuald
Copy link
Member

I think the error occurs when pybind11 is converting the string arguments for the error handler to utf-8. Since there's no guarantee that the error message is actually valid utf-8, probably should change the error handler to take bytes instead and have it do the conversion so it can catch the error.

Reference: https://www.chiefdelphi.com/t/unicodedecodeerror-calling-sparkmax-iterate-with-2025-robotpy/475775

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant