-
Notifications
You must be signed in to change notification settings - Fork 91
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
Nan::ObjectWrap::Unref(): Assertion `!persistent().IsWeak()' failed. #142
Comments
Some logs right before the crash:
|
I'm running into the same issue, did you ever solve it? |
I worked around it using a function to "recover" after a crash. https://github.com/tbranyen/remote-camera-control/blob/master/index.js#L12-L28 Looks like no substantial commits have landed since I opened this issue years ago, so this might be your best bet for now if you want to use this module. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This error happens when I call the
list()
function on a 1s interval poll. I do this to ensure that the camera is still connected and detect if new cameras have been added. Doing this causes a crash consistently:Commenting out the following line prevents the fatal exception from being raised. I suspect this indicates a race condition around dereferencing. Will dig and see if there is a way to safely guard around this as it's pretty annoying to have the Node process hard crash.
The text was updated successfully, but these errors were encountered: