Hi all,
I'm getting crazy and without any ideas left to solve my problem.
I've got async tasks based program and after a while it stops raising a "queue overflow" error.
I would like to know how I can debug this fu..... program, and I'd like to know if there is a way of listing all the running and waiting tasks ?
Maybe there's another way of doing things to debug such async program.
I thank you in advance for your help.
Best regards.
Sebion
uasyncio - queue overflow !
Re: uasyncio - queue overflow !
Have you considered:
- posting some select code snippets
- posting an error traceback
- setting DEBUG to true: https://github.com/micropython/micropyt ... core.py#L8
- posting some select code snippets
- posting an error traceback
- setting DEBUG to true: https://github.com/micropython/micropyt ... core.py#L8
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: uasyncio - queue overflow !
The queue sizes of uasyncio V2 are fixed and determined by the first call to get_event_loop(). Default sizes are 16. So you could try increasing these by ensuring that the following is executed at the start of your program:
If it still fails after a (longer) period it would suggest that your code is creating coroutines more frequently than they are terminating.
Aside from that, as @tve says, it's har for us to help without more concrete information.
Code: Select all
get_event_loop(runq_len=64, waitq_len=64)
Aside from that, as @tve says, it's har for us to help without more concrete information.
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.
Re: uasyncio - queue overflow !
Hi all,
Thank you very much for your help.
I'll try both of your suggestions.
As I'm not familiar to the "Logging" Library, once DEBUG is set up in the uasyncio, how dose it work?
Where will I be able to get back all the debug information ?
Thank you once again for your help.
Sebion
Thank you very much for your help.
I'll try both of your suggestions.
As I'm not familiar to the "Logging" Library, once DEBUG is set up in the uasyncio, how dose it work?
Where will I be able to get back all the debug information ?
Thank you once again for your help.
Sebion