Hello, I am receiving this error while running my vision processing program inspired by ChickenVision, I have made many modifications and all seems to have worked and all of a sudden I can no longer run my program and I am getting this error “Received an invalid UTF-8 string: b’PE\x8e\x01and_N3frc7CommandE’”. If you have any idea what this means or require me to post anything additional that would be greatly appreciated.
That is a warning, not an error. This would not be the cause of your vision processing breaking (unless your vision processing actually uses that string).
From the sounds of things, your robot code is sending a string over NetworkTables that appears to be gibberish. Do you have your source code available anywhere that we could investigate? (If not, what language is your robot code in?)
I have just uploaded our main file to GitHub where I am getting the error.
Link: https://github.com/DisplayedAim/IonaVision
You have an infinite loop here:
… where you grab a frame from the camera, and then proceed to do nothing with it.
I do use it from lines 530 - 541
Those lines are never reached due to the infinite loop directly before.
OHHH! I didn’t realise they weren’t in the loop.
Thanks a lot for your help.
No worries. Good luck, and see you at the regionals!
I would still love to figure out why your robot code is sending gibberish over NetworkTables though…
What camera? It may be a known issue. See https://github.com/robotpy/robotpy-cscore/issues/58
That’s a completely different issue. This thread is related to this one:
I’ve had a look at outline viewer and I’m getting this spam, I’ve tried deleting that and it won’t let me :?
The last time I saw gibberish like that was from a C++ team that improperly initialized a command with a temporary string instead of a ‘real’ string. Are you using C++ for your robot code?
Yes sir.
Well. You’re doing something weird when initializing one of your commands.
If you can point me at your code (or send it to me), I can take a look and tell you what’s wrong.