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

Catch gRPC Deserialize error. It occurs when there are many requests in Core I/O #156

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mqcmd196
Copy link

In our application code, using AsyncTask and updating the robot info in the loop, sometimes DecodeError has been shown in the log, like

[grpc._common][ERROR] 2025-01-24 02:17:56,607: Exception deserializing message!
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/grpc/_common.py", line 89, in _transform
    return transformer(message)                                  
google.protobuf.message.DecodeError: Error parsing message with type 'bosdyn.api.RobotStateResponse'

then, nothing was updated, and our code hung.

I investigated and found that this line doesn't finish when this DecodeError occurs. So, I fixed it to catch it in this PR.

I've already reported this case as 00033849 to BostonDynamics support.

We deploy our application to Spot EAP2.

@mqcmd196 mqcmd196 marked this pull request as ready for review January 25, 2025 00:06
mqcmd196 added a commit to mqcmd196/spot_ros-arm that referenced this pull request Jan 26, 2025
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

Successfully merging this pull request may close these issues.

1 participant