Page 1 of 1

uasyncio - queue overflow !

Posted: Mon Jan 20, 2020 9:02 pm
by sebion
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

Re: uasyncio - queue overflow !

Posted: Mon Jan 20, 2020 9:29 pm
by tve
Have you considered:
- posting some select code snippets
- posting an error traceback
- setting DEBUG to true: https://github.com/micropython/micropyt ... core.py#L8

Re: uasyncio - queue overflow !

Posted: Tue Jan 21, 2020 8:31 am
by pythoncoder
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:

Code: Select all

get_event_loop(runq_len=64, waitq_len=64)
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.

Re: uasyncio - queue overflow !

Posted: Tue Jan 21, 2020 1:22 pm
by sebion
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