-
Notifications
You must be signed in to change notification settings - Fork 30
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
reconnect errors #63
Comments
I wonder if this is an ntcore bug as well that we've inherited. Both Shuffleboard and pynetworktables2js proved to be not entirely reliable at competitions for my team this year. (I've also seen other teams have to restart SmartDashboard whilst on the field, so definitely not just my team.) |
@PeterJohnson thoughts on that possibility? |
As I mentioned in that CD thread, waiting until we could ping the roboRIO has a much higher success rate for us. It went from about a 30% chance of working when we booted the roboRIO and vision code simultaneously, but adding the delayed start spiked that up to something around 80% from all my tests. Still not perfect and there's still some funkiness going on, but still a heck of a lot better. I'd suggest that as a temporary workaround until a fix for this is discovered. |
Seems like this fix stopped working today. We're getting connection to networktables (logs show that we get all the initial data on the coproccessor) but NetworkTables.isConnected is still false and we're unable to add new values. We have connection to the roboRIO and port 1735 on the roboRIO. |
I haven't taken the time to dig into this yet... unfortunately I imagine it has to difficult to reproduce (seeing as I haven't had the issue). Have you upgraded to pynetworktables 2018.1.1 yet? That addresses some unicode handling issues that could cause a connection to fail. |
@andrewda do you use networktables flush in your code anywhere? wpilibsuite/ntcore#275 sounds vaguely related. |
Apologies for not replying to your message from a week ago: I did update to A while ago, in an attempt to find a fix for this problem, I did try adding a NetworkTables.initialize(server="10.25.21.2")
NetworkTables.flush() I never removed this since my tests on |
Actually, that would be a good thing to try -- calling flush continuously. If you're not already calling flush more than once, I wouldn't expect that bug to affect you. If calling flush a lot of times fixes it for you, that would be very interesting to know and would narrow down the potential culprits. |
Some kind of queue buildup or race condition during reconnects...
Reference: https://www.chiefdelphi.com/forums/showthread.php?t=164590
The text was updated successfully, but these errors were encountered: