Crash on OS X when virtual ports encountered
See original GitHub issueGreat work on this library - it really is amazing.
Having an a crash when virtual ports have been created (either by Max/MSP or with a C++ JUCE application)
The issue seems to be in the _engine._refresh function (line 663)
_engine._refresh = function() {
_engine._outs = [];
_engine._ins = [];
var i, x;
--> for (i = 0; (x = **_engine._main.MidiOutInfo(i)**).length; i++) {
_engine._outs.push({ type: _engine._type, name: x[0], manufacturer: x[1], version: x[2] });
}
for (i = 0; (x = _engine._main.MidiInInfo(i)).length; i++) {
_engine._ins.push({ type: _engine._type, name: x[0], manufacturer: x[1], version: x[2] });
}
_engine._main.midiOutList() will list the correct ports - including the virtual ones.
However - when the for loop hits a virtual port and _engine._main.MidiOutInfo(i) is called, the program will crash. Happens in node JS with a simple JZZ() call.
const JZZ = require('jzz');
JZZ();
Any ideas?
Thanks!
OSX 10.12.6 Node 8.11.2
On OSX - you can drag this into a terminal window to create some virtual ports:
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Understanding a macOS crash log | Apple Developer Forums
The crash log is below which I don't understand where the problem is but someone has suggested I look at “frames from your...
Read more >Why does VirtualBox crash macOS? - Apple StackExchange
@bmike, yes. The crashes happen only when I start one of my Linux virtual machines. I press "start" and my computer reboots. –...
Read more >MacOS Monterey Problems – Fixing Issues with macOS 12
Often the “Volume Hash Mismatch” error appears after a major system crash, kernel panic, and reboot. Some Mac users have discovered their Mac...
Read more >V2201 keeps on crashing on MacBook - Receiver for Macintosh
Trying to run Citrix Workspace latest client v2201 on MacBook Pro M1 Max Monterey 12.1 The app loads initially and when I'm connecting...
Read more >macOS Ventura problems and how to fix them - MacPaw
And, unsurprisingly, they've found one or two Ventura update issues. So far, there is nothing major, and all the issues can be fixed....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It is fixed in Node.js version: https://www.npmjs.com/package/jazz-midi Will upload a new Jazz-Plugin installer shortly.
Working on it. I’ll close this ticket when done 😃