question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`JZZ()` call fails on WSL(1,2) and Ubuntu without sound devices

See original GitHub issue

Reproduction Repository

https://github.com/lhl2617/jzz-wsl2-repro

Issue Summary

JZZ() call fails crashes on WSL2 without any catch-able exceptions.

Reproduction environment

Windows Version

Windows 10 Version 20H2 (OS Build 19042.867)

WSL2 Version

2

WSL Ubuntu Version

$ cat /etc/issue 
Ubuntu 20.04.2 LTS \n \l

$ uname -a
Linux <REDACTED> 5.4.72-microsoft-standard-WSL2 #1 SMP Wed Oct 28 23:40:43 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Node version

v12.22.1

Reproduction Steps

  1. Set up reproduction environment.
  2. Clone repository into WSL2.
  3. Run npm i
  4. Run npm start

Expected Behavior

Runs without any logs (succeeded), or fails gracefully with the exception caught.

Obtained Behavior

$ npm run start

> jzz-testing@1.0.0 start /home/$USER/experimental/jzz
> node index.js

ALSA lib seq_hw.c:466:(snd_seq_hw_open) open /dev/snd/seq failed: No such file or directory
node: seq.c:1880: snd_seq_query_next_client: Assertion `seq && info' failed.
Aborted
npm ERR! code ELIFECYCLE
npm ERR! errno 134
npm ERR! jzz-testing@1.0.0 start: `node index.js`
npm ERR! Exit status 134
npm ERR! 
npm ERR! Failed at the jzz-testing@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/$USER/.npm/_logs/2021-05-14T11_23_57_411Z-debug.log

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jazz-softcommented, May 14, 2021

That makes sense. Hopefully it can be fixed on the jazz-midi side… Thanks a lot for bringing it up!

0reactions
lhl2617commented, May 16, 2021

PS–would be great if you could update and re-release the JZZ/jzz-midi-smf etc. packages with "jazz-midi": "^1.7.5"

Read more comments on GitHub >

github_iconTop Results From Across the Web

Wsl2 sound support · Issue #5816 · microsoft/WSL - GitHub
Maybe I am misunderstanding but when my docker container runs, is it connecting DIRECTLY to my windows pulse server or via my WSL...
Read more >
SoundTroubleshootingProcedure - Community Help Wiki
You may want to follow this guide to gather essential troubleshooting information about your sound card. This information will be useful in ...
Read more >
Setting Up WSL with Graphics and Audio
first, because it will not work, and you are likely to see the following error message:
Read more >
(K)Ubuntu 17.10 - No Audio devices found, no settings, no ...
I had the same problem and seeing the logs in /var/log/syslog I had an error for pulseaudio daemon: [pulseaudio] module.c: Module ...
Read more >
Enabling sound in WSL / Ubuntu - Let It Sing! - X410.dev
WSL doesn't currently support sound devices. Hence when you open a GUI desktop or apps in X410, you will not hear anything other...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found