Skip to content

IndexError: pop from empty list #6

Description

@comotion

I have this infinite loop problem in PoneBiometrics/fido2ble#37:

Jun 25 12:01:48 arbor fido2ble[1472]: IndexError: pop from empty list
Jun 25 12:01:48 arbor fido2ble[1472]: 12:01:48.086 Exception in callback AsyncioBlockingUHID._async_writer()
Jun 25 12:01:48 arbor fido2ble[1472]: handle: <Handle AsyncioBlockingUHID._async_writer()>
Jun 25 12:01:48 arbor fido2ble[1472]: Traceback (most recent call last):
Jun 25 12:01:48 arbor fido2ble[1472]:   File "/usr/lib/python3.12/asyncio/events.py", line 88, in _run
Jun 25 12:01:48 arbor fido2ble[1472]:     self._context.run(self._callback, *self._args)
Jun 25 12:01:48 arbor fido2ble[1472]:   File "/usr/lib/python3/dist-packages/fido2ble/vendored/uhid/__init__.py", line 374, in _async_writer
Jun 25 12:01:48 arbor fido2ble[1472]:     self._write(self._write_queue.pop(0))
Jun 25 12:01:48 arbor fido2ble[1472]:                 ^^^^^^^^^^^^^^^^^^^^^^^^

seems to be because the fd is ready for write while the queue is empty.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions