Skip to content

NodeJS process with WebMIDI crashes upon closing Max 8, if Max was started before starting the NodeJS process #391

Description

@nnirror

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:

  • webmidi 3.1.6 for NodeJS
  • NodeJS v14.20.0
  • JavaScript
  • MacOS Catalina

Details

Here's the contents of a nodeJS process that's crashing on my machine. This test.js file contains only:

const {WebMidi} = require('webmidi');
WebMidi.enable();

Steps to reproduce:

  1. open Max 8.
  2. start the node process: node test.js
  3. close Max 8.

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Context: Node.jsProblem specific to Node.jsType: dependencyIssue that cannot be resolved until a dependency is fixed

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions