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

Reset then re-configure throws invalid pointer. #7

Open
fusionstream opened this issue Sep 25, 2020 · 3 comments
Open

Reset then re-configure throws invalid pointer. #7

fusionstream opened this issue Sep 25, 2020 · 3 comments

Comments

@fusionstream
Copy link

Not really sure what other info to put here. Seems like a race condition via the 'addon' tbh.

@meg768
Copy link
Owner

meg768 commented Oct 30, 2020

I really need more information to be helpful...

@fusionstream
Copy link
Author

If one does a configure(), then calls a reset(), in that order, one will get an invalid pointer.

fhernand added a commit to fhernand/lightbrushserver that referenced this issue Jan 31, 2021
@geekbleek
Copy link

Can confirm on node 14.x and RPi 4 8gb model, this occurs. Appears to be open execution threads against the library when .reset() is called. I was watching for SIGINT signals and then calling .reset(); to clear the strip before exiting. I ended up writing a separate function to set all pixels to off and then exiting.

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

3 participants