`JZZ()` call fails on WSL(1,2) and Ubuntu without sound devices
See original GitHub issueReproduction 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
- Set up reproduction environment.
- Clone repository into WSL2.
- Run
npm i
- 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:
- Created 2 years ago
- Comments:11 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That makes sense. Hopefully it can be fixed on the jazz-midi side… Thanks a lot for bringing it up!
PS–would be great if you could update and re-release the JZZ/jzz-midi-smf etc. packages with
"jazz-midi": "^1.7.5"