ChewbaccaCookie / voicemeeter-connector

A Connector to use the Voicemeeter API
https://chewbaccacookie.github.io/voicemeeter-connector/
MIT License
28 stars 8 forks source link

Segmentation fault while disconnecting #23

Closed K4M1s closed 3 years ago

K4M1s commented 3 years ago

Node version: v10.23.3

ChewbaccaCookie commented 3 years ago

Hi, sorry for respondig so late. Which Version of Voicemeeter did you use?

K4M1s commented 3 years ago

Banana, Version: 2.0.5.4

ChewbaccaCookie commented 3 years ago

Okay, I will have a look at this

ChewbaccaCookie commented 3 years ago

Hi, i updated the package to version v1.0.2 with node support v10 - v15. Please update to this version and try again. If you encounter the same issue again try to add process.exit(0); after disconnecting:

// Disconnect voicemeeter client
setTimeout(() => {
  vm.disconnect();
  process.exit(0);
}, 5000);

Be aware that the default import has been changed in new version: Before:

import Voicemeeter, {StripProperties } from "voicemeeter-connector";

Now:

import { Voicemeeter, StripProperties } from "voicemeeter-connector";
ChewbaccaCookie commented 3 years ago

I will close this issue due to inactivity