question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crash on OS X when virtual ports encountered

See original GitHub issue

Great 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:

MM1UtilityAp.zip

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jazz-softcommented, Jun 19, 2018

It is fixed in Node.js version: https://www.npmjs.com/package/jazz-midi Will upload a new Jazz-Plugin installer shortly.

1reaction
jazz-softcommented, Jun 15, 2018

Working on it. I’ll close this ticket when done 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found