Skip to content

Uasyncio Uart Stream Close Bug #402

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

Closed
gtomassi opened this issue Oct 28, 2020 · 1 comment
Closed

Uasyncio Uart Stream Close Bug #402

gtomassi opened this issue Oct 28, 2020 · 1 comment

Comments

@gtomassi
Copy link

gtomassi commented Oct 28, 2020

When calling aclose (maps to Stream.wait_closed) on the new implementation of Stream, something goes awry in the stream read process and begins raising exceptions.

After calling aclose the following stack trace is seen:

  File "uasyncio/stream.py", line 30, in read
  File "uasyncio/core.py", line 94, in queue_read
  File "uasyncio/core.py", line 82, in _enqueue

Steps to reproduce:

  1. Open a UART connection using the stream reader 'streamReader = asyncio.StreamReader(uart)'
  2. Close the stream reader
  3. Not sure if this is required, but open a new stream reader on the same UART again
@gtomassi
Copy link
Author

Moving to micropython/micropython#6576

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

No branches or pull requests

1 participant