Reboot failure channel broken exception

When I try to reboot I get this error.
it’s kill me that I can’t reboot the boards. Any help would be appreciated.


ChannelBrokenException Traceback (most recent call last)
in
----> 1 odrv0.reboot()

/opt/anaconda3/lib/python3.7/site-packages/fibre/remote_object.py in call(self, *args)
160 for i in range(len(args)):
161 self._inputs[i].set_value(args[i])
–> 162 self._parent.channel.remote_endpoint_operation(self._trigger_id, None, True, 0)
163 if len(self._outputs) > 0:
164 return self._outputs[0].get_value()

/opt/anaconda3/lib/python3.7/site-packages/fibre/protocol.py in remote_endpoint_operation(self, endpoint_id, input, expect_ack, output_length)
307 try:
308 if wait_any(self._resend_timeout, ack_event, self._channel_broken) != 0:
–> 309 raise ChannelBrokenException()
310 except TimeoutError:
311 attempt += 1

ChannelBrokenException:

That always happens when rebooting. Looks like it’s working correctly :slight_smile:

Running 0.5.3 now and experience similar but not exact error. Error code I encounter was as below,

Exception in callback <CFunctionType object at 0x000001EF834FFA00>(<ctypes.winty…001EF833106C0>)
handle: <Handle <CFunctionType object at 0x000001EF834FFA00>(<ctypes.winty…001EF833106C0>)>
Traceback (most recent call last):
File “C:\Python39\lib\asyncio\events.py”, line 80, in _run
self._context.run(self._callback, *self._args)
OSError: exception: access violation reading 0x0000000000000010

b’\x1b[91;1m23:24:27.270051400 [USB] Transfer on EP 0x03 still in progress. This is gonna be messy.\x1b[0m\n’

This happen randomly while I repeatably connect then reboot. After this error occur, i will have to restart the program in order for it to work again.

Any suggestion to prevent this?

That looks like a problem in the Windows libusb driver… (userspace/python usb driver support in windows is notoriously terrible)
See OSError with wxPython · Issue #203 · pyusb/pyusb · GitHub
Try reinstalling/updating python-usb and libusb. Or use a raspberry pi to access the ODrive.

1 Like