Skip to content
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

Flow stopped with error: Execution queue is full #735

Open
mustafayondes opened this issue Feb 24, 2025 · 8 comments
Open

Flow stopped with error: Execution queue is full #735

mustafayondes opened this issue Feb 24, 2025 · 8 comments
Assignees
Labels

Comments

@mustafayondes
Copy link

Image

Hi,

I'm working on a project using EEZ Flow. I don't use a touchscreen, so I control my screen through buttons.

I have created multiple pages, and they work fine. However, after adding some more pages with my own widget, I encountered this error:

"Flow stopped with error: Execution queue is full."

I tried increasing the execution queue size, but it didn't solve the issue.

Has anyone experienced this before? Any help would be greatly appreciated!

Thanks in advance!

@mvladic
Copy link
Contributor

mvladic commented Feb 24, 2025

Do you use version 0.22.0?

@mustafayondes
Copy link
Author

mustafayondes commented Feb 24, 2025

Yes , I use version 0.22.0 @mvladic

Image

@mvladic
Copy link
Contributor

mvladic commented Feb 24, 2025

Do you use any kind of loop in you flow? It can be either Loop action or something like this:

Image

If you have a loop make sure you don't have multiple return paths to the start of loop. This can happen if you have multiple output lines for some action that is inside the loop. Something like this will full execution queue:

Image

This should be corrected as this:

Image

@mustafayondes
Copy link
Author

Yes I know, I do not use this kind of thing. My program is work fine with my widgets till I add more.
However, when I try to add more widgets, I encounter an issue. If I delete one widget, I can add another one in its place, which suggests that the problem is related to the number of widgets rather than a specific widget itself.

It seems like there might be a limit affecting the number of widgets I can add. Could this be related to execution queue size or memory limitations?

@mvladic
Copy link
Contributor

mvladic commented Feb 24, 2025

It seems like there might be a limit affecting the number of widgets I can add. Could this be related to execution queue size or memory limitations?

There was a limit regarding the number of widgets and execution queue size which is fixed in the latest Studio. This means that eez-flow.cpp and eez-flow.h will have required fix. But, if you are using eez-framework library then you should also update this library to the latest version.

@mvladic
Copy link
Contributor

mvladic commented Feb 24, 2025

Also, check #706 if your project is getting larger and you have a problem fitting it on your hardware.

@mustafayondes
Copy link
Author

Also, check #706 if your project is getting larger and you have a problem fitting it on your hardware.

Thank you, my problem is solved. In the beginning, all pages are created, and the queue becomes full.

However, after using it for some time, the queue will fill up again, so I need to delete pages when they are unloaded. But I'm facing an issue: when I activate "Delete on Unload," the next page does not appear.

How can I fix this?

Image

Image

@mvladic
Copy link
Contributor

mvladic commented Feb 25, 2025

It is difficult to say without looking into your project. If you use "Delete on unload" then screen widgets will only be alive when screen is active. So, be sure not to work with widgets when page is inactive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants