-
Notifications
You must be signed in to change notification settings - Fork 119
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
Remove unmatched uv_unref() causing segfault #32
Conversation
Also, properly close the async watcher when closing the port. Fixes justinlatimer#16
So per https://github.com/joyent/libuv/blob/master/include/uv.h#L1287 it sounds like the watcher needs to be explicitly closed. Once I added that the tests run and exit normally. |
I just tested this branch on Ubuntu 13.04 with Node 0.10.24 and hit the following:
Stacktrace:
So I'll dig into that more. |
Okay so a lot of digging in to the Linux side and it looks like the issue is that on the ALSA side when opening the virtual port it uses the client name ( I think this patch is still good to go. |
For reference here's the output of the tests:
Compare it to the run at the top and you'll see the port names don't match. |
I opened up thestk/rtmidi#6 to try to address the return value of |
This looks good. Before merging I'd like to confirm that this still works with older versions of uv, i.e. node-08. If not, we need to change the package engine versions for the correct versions of node that work. Thanks! |
Yeah it works fine in 0.8.x:
|
Remove unmatched uv_unref() causing segfault
Fixes #16
The tests seem to hang but I'm not sure if that's normal:Tests now run correctlyI'll try building it on 0.8.x and see what the tests do there.