There is (was) a bug in rtmidi which leads to crashes when enumerating ports on MacOS: https://github.com/thestk/rtmidi/issues/155 Luckily the pull request which mitigates this was just merged: https://github.com/thestk/rtmidi/pull/220 Can you please have a look into this?