jpochyla / psst

Fast and multi-platform Spotify client with native GUI
MIT License
8.52k stars 218 forks source link

Crashes on Startup Arch Linux #353

Closed hughesjs closed 1 year ago

hughesjs commented 2 years ago

Describe the bug Start psst-gui and login. App immediately crashes.

STD_ERR reports (with RUST_BACKTRACE=full):

!  ~  RUST_BACKTRACE=full psst-gui Sat 22 Oct 2022 19:48:17 BST [2022-10-22T18:49:35Z INFO psst_gui::data::config] loading config: "/home/james/.config/Psst/config.json" [2022-10-22T18:49:35Z INFO psst_gui::webapi::local] parsing local tracks: "/home/james/.config/spotify/Users/tniu738flenbq0ormrdd3eaa3-user/local-files.bnk" [2022-10-22T18:49:35Z INFO psst_core::audio::output::cpal] using audio device: "default" ALSA lib pcm_dmix.c:999:(snd_pcm_dmix_open) unable to open slave thread 'main' panicked at 'called Result::unwrap() on an Err value: AudioOutputError(DeviceNotAvailable)', psst-gui/src/controller/playback.rs:53:49 stack backtrace: 0: 0x55dcbb251bd1 - 1: 0x55dcbaff001c - 2: 0x55dcbb22bdb4 - 3: 0x55dcbb252946 - 4: 0x55dcbb2539d8 - 5: 0x55dcbb2534b2 - 6: 0x55dcbb253426 - 7: 0x55dcbb2533e2 - 8: 0x55dcbaa9aa02 - 9: 0x55dcbaa9ac82 - 10: 0x55dcbabc53ed - 11: 0x55dcbad913bf - 12: 0x55dcbaea7dff - 13: 0x55dcbad913bf - 14: 0x55dcbab01acd - 15: 0x55dcbad913bf - 16: 0x55dcbabc0a38 - 17: 0x55dcbad913bf - 18: 0x55dcbad912bd - 19: 0x55dcbae12dcb - 20: 0x55dcbae11836 - 21: 0x55dcbad08ae9 - 22: 0x55dcbad045bb - 23: 0x55dcbaeb9b8c - 24: 0x55dcbad06d1a - 25: 0x55dcbafc6a5e - 26: 0x55dcbaca1dc3 - 27: 0x55dcbafd7506 - 28: 0x7f2663d51290 - 29: 0x7f2663d5134a - __libc_start_main 30: 0x55dcbaab3c75 - 31: 0x0 -

To Reproduce Start psst-gui and log-in

Expected behavior It logs in and gui launches.

Screenshots N/A

Environment

Additional context I'm using PulseAudio for my sound stack

hughesjs commented 2 years ago

This seems relevant: https://github.com/RustAudio/rodio/issues/267

And installing this seems to fix the issue but this definitely feels like a workaround, not a fix: https://archlinux.org/packages/extra/x86_64/pulseaudio-alsa

bemug commented 2 years ago

I confirm installing pulseaudio-alsa works.

Insprill commented 1 year ago

Duplicate of #230

kepi commented 7 months ago

Just for those who stumble here looking for solution and using pipewire, pipewire-alsa instead of pulseaudio one works too.