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

"Connection Time Out" Error Handling #69

Open
anthonyrowe opened this issue Apr 15, 2021 · 0 comments
Open

"Connection Time Out" Error Handling #69

anthonyrowe opened this issue Apr 15, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@anthonyrowe
Copy link
Contributor

If I leave high-traffic (i.e. head motion test) programs running for a long time, I tend to see this failure state like below. I haven't looked more deeply, but maybe we can add a reconnect retry? I wonder if this is related to the ARTS issue?

`Exception thrown in update()! Terminating update...
Traceback (most recent call last):
File "headbanger.py", line 40, in update
scene.update_object( head, rotation=(0, i, 0),)
File "/home/agr/.local/lib/python3.6/site-packages/arena/scene.py", line 446, in update_object
res = self._publish(obj, "update")
File "/home/agr/.local/lib/python3.6/site-packages/arena/scene.py", line 504, in _publish
self.mqttc.publish(topic, payload, qos=0)
File "/home/agr/.local/lib/python3.6/site-packages/paho/mqtt/client.py", line 1274, in publish
local_mid, topic, local_payload, qos, retain, False, info, properties)
File "/home/agr/.local/lib/python3.6/site-packages/paho/mqtt/client.py", line 2563, in _send_publish
return self._packet_queue(PUBLISH, packet, mid, qos, info)
File "/home/agr/.local/lib/python3.6/site-packages/paho/mqtt/client.py", line 2911, in _packet_queue
self._sockpairW.send(sockpair_data)
TimeoutError: [Errno 110] Connection timed out

Exception thrown in network_latency_update()! Terminating network_latency_update...
Traceback (most recent call last):
File "/home/agr/.local/lib/python3.6/site-packages/arena/scene.py", line 161, in network_latency_update
self.mqttc.publish(self.latency_topic, "", qos=2)
File "/home/agr/.local/lib/python3.6/site-packages/paho/mqtt/client.py", line 1304, in publish
message.dup, message.info, message.properties)
File "/home/agr/.local/lib/python3.6/site-packages/paho/mqtt/client.py", line 2563, in _send_publish
return self._packet_queue(PUBLISH, packet, mid, qos, info)
File "/home/agr/.local/lib/python3.6/site-packages/paho/mqtt/client.py", line 2911, in _packet_queue
self._sockpairW.send(sockpair_data)
BrokenPipeError: [Errno 32] Broken pipe

Exception thrown in misc_loop()! Terminating misc_loop...
Traceback (most recent call last):
File "/home/agr/.local/lib/python3.6/site-packages/arena/event_loop/asyncio_mqtt.py", line 44, in misc_loop
while self.client.loop_misc() == mqtt.MQTT_ERR_SUCCESS:
File "/home/agr/.local/lib/python3.6/site-packages/paho/mqtt/client.py", line 1631, in loop_misc
self._message_retry_check()
File "/home/agr/.local/lib/python3.6/site-packages/paho/mqtt/client.py", line 2832, in _message_retry_check
self._out_messages, self._out_message_mutex)
File "/home/agr/.local/lib/python3.6/site-packages/paho/mqtt/client.py", line 2821, in _message_retry_check_actual
properties=m.properties,
File "/home/agr/.local/lib/python3.6/site-packages/paho/mqtt/client.py", line 2563, in _send_publish
return self._packet_queue(PUBLISH, packet, mid, qos, info)
File "/home/agr/.local/lib/python3.6/site-packages/paho/mqtt/client.py", line 2911, in _packet_queue
self._sockpairW.send(sockpair_data)
BrokenPipeError: [Errno 32] Broken pipe

Disconnect error! Result code: 1`

@anthonyrowe anthonyrowe added the enhancement New feature or request label Apr 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant