Open nnirror opened 1 year ago
WEBMIDI.js uses the jzz
package under the hood for MIDI communication on Node.js. Could you install the module and try this basic example to see if you get the same problem:
const navigator = require('jzz');
navigator.requestMIDIAccess({sysex: true}).then((access)=>{
console.log(Array.from(access.inputs.values()), Array.from(access.outputs.values()));
}, (err)=>{console.log(err)});
Thanks!
P.S. It might be related to this: https://github.com/jazz-soft/JZZ/issues/49 (follow-up here: https://github.com/jazz-soft/jazz-midi/issues/5)
@djipco Yes, I do get the exact same error in a test npm project that only has jzz 1.7.4 installed. When I open Max, start the Node process, and then close Max, I get Segmentation fault: 11
.
Description
My nodeJS process crashes when I include WebMIDI, under the following circumstance:
I first open Max 8, then start a nodeJS process, and then close Max.
Environment: Specify the environment where you are witnessing the problem:
Details
Here's the contents of a nodeJS process that's crashing on my machine. This
test.js
file contains only:Steps to reproduce:
node test.js
I see the following error in the console, and I see that the nodeJS process thread has terminated.
Segmentation fault: 11
I checked that the same workflow does not cause a crash with Ableton Live 11.