Skip to content
This repository has been archived by the owner on Jan 5, 2019. It is now read-only.

ROS arduino_handler.py node crashed when serial port not available #328

Open
rbaynes opened this issue Aug 4, 2017 · 2 comments
Open

ROS arduino_handler.py node crashed when serial port not available #328

rbaynes opened this issue Aug 4, 2017 · 2 comments
Assignees

Comments

@rbaynes
Copy link
Contributor

rbaynes commented Aug 4, 2017

I thought we had solved this problem, but apparently it is back. Or maybe we need to catch this exception too...

[WARN] [WallTime: 1501863601.753149] write failed: [Errno 5] Input/output error

[WARN] [WallTime: 1501863601.821312] could not open port /dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_85531303231351F09081-if00: [Errno 2] No such file or directory: '/dev/serial/by-id/usb-Arduino__www.arduino.cc__0042_85531303231351F09081-if00'

Traceback (most recent call last):
  File "/home/pi/catkin_ws/src/openag_brain/nodes/arduino_handler.py", line 389, in <module>
    serial_connection.write(message) # Write len(message) bytes or timeout
AttributeError: 'NoneType' object has no attribute 'write'
[ERROR] [1501863603.919463867]: VIDIOC_DQBUF error 19, No such device
[environments/environment_1/arduino_handler-18] process has died [pid 2183, exit code 1, cmd /home/pi/catkin_ws/src/openag_brain/nodes/arduino_handler.py
@rbaynes
Copy link
Contributor Author

rbaynes commented Aug 7, 2017

The fix for this, in PR #329 has been running for 3 days on the machine it crashed on. Looks like the serial port switching issue is now handled.

@sp4ghet
Copy link
Collaborator

sp4ghet commented Aug 12, 2017

That's weird, considering we explicitly solved this a while ago..
Good to see it's patched

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

No branches or pull requests

2 participants