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

closing a port twice crashes node #21

Closed
agoode opened this issue Jun 14, 2013 · 6 comments · Fixed by #44
Closed

closing a port twice crashes node #21

agoode opened this issue Jun 14, 2013 · 6 comments · Fixed by #44

Comments

@agoode
Copy link

agoode commented Jun 14, 2013

> input.closePort(0)
undefined
> input.closePort(0)
node: ../src/node_object_wrap.h:104: virtual void node::ObjectWrap::Unref(): Assertion `!handle_.IsWeak()' failed.
Aborted

node version v0.10.9

@hhromic
Copy link
Contributor

hhromic commented Feb 6, 2014

This issue seems to be fixed now, shouldn't be closed? :)

@drewish
Copy link
Collaborator

drewish commented Feb 7, 2014

Give it a try. I think it still crashes.

@keinstein
Copy link

For me it crashes. Playing around with node-midi I found out that it doesn't try to set the client name. So you could set the client name to the same name as the port name and check the first part of the returned name. Setting the client name should be supported by node-midi anyway. RtMidi already supports that.

@drewish
Copy link
Collaborator

drewish commented Mar 26, 2014

@keinstein you can set the name but it doesn't always return it, totally depends on the library you're linked against. But I see you've found thestk/rtmidi#6 too ;)

@keinstein
Copy link

As far as I know, RtMidi returns either the port name or the client name + some stuff. So, if you set port and client to the same name, you could be shure that this name is a part of the port description that is returned by RtMidi.

Btw. Switching to port names for ALSA wouldn't solve the issue as some drivers name their ports just “port 1” etc.

@drewish
Copy link
Collaborator

drewish commented Mar 26, 2014

Feel free to give it a go, I'm happy to review any patches. Try testing it on a couple of platforms though.

drewish added a commit to drewish/node-midi that referenced this issue Apr 6, 2014
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

Successfully merging a pull request may close this issue.

4 participants