Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Microphone crash #1324

Open
shawwn opened this issue Jul 17, 2019 · 1 comment
Open

Microphone crash #1324

shawwn opened this issue Jul 17, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@shawwn
Copy link
Contributor

shawwn commented Jul 17, 2019

To Reproduce
Create examples/microphone2.html:

<html>
<head>
<script>
  var handleSuccess = function(stream) {
    var context = new AudioContext();
    console.log('1');
    var source = context.createMediaStreamSource(stream);
    console.log('2');
    var processor = context.createScriptProcessor(1024, 1, 1);
    console.log('3');

    source.connect(processor);
    console.log('4');
    processor.connect(context.destination);
    console.log('5');

    processor.onaudioprocess = function(e) {
      console.log('6');
      // Do something with the data, i.e Convert this to WAV
      console.log(e.inputBuffer);
      console.log('7');
    };
  };

  navigator.mediaDevices.getUserMedia({ audio: true, video: false })
      .then(handleSuccess);
</script>
</head>
<body>
</body>
</html>

then run it:

$ node . examples/microphone2.html 
1
2
3
4
5
Segmentation fault: 11

Additional context
Add any other context about the problem here.

System information:

  • OS: macOS Catalina

  • Exokit Version 0.0.525

  • Node version v11.13.0

  • Is your Exokit downloaded or built?
    built

Screenshots
If applicable, add screenshots to help explain your problem.

@shawwn
Copy link
Contributor Author

shawwn commented Jul 17, 2019

backtrace
image

@avaer avaer added the bug Something isn't working label Jul 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants