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

When scheduling an AuxilaryTask that hasn't been initialised, try to handle that gracefully #730

Open
giuliomoro opened this issue Oct 24, 2024 · 0 comments

Comments

@giuliomoro
Copy link
Contributor

giuliomoro commented Oct 24, 2024

Typical case: someone declared it a global and forgets to create a task on it. Bela_scheduleAuxiliaryTask() is passed a nullptr and segfaults. Can be handled better, e.g.: print an error message and return. I would not necessarily go as far as looking up the pointer in the list of current tasks to see if it's valid, as that could have some undesirable overhead (would it though?).

E.g.: https://forum.bela.io/d/5155-segmentation-fault-error-139-custom-render-mpr121/2

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