[GH-ISSUE #171] Audio stops working after pausing and resuming #125

Closed
opened 2026-02-28 14:30:48 +03:00 by kerem · 4 comments
Owner

Originally created by @redcathode on GitHub (Sep 7, 2021).
Original GitHub issue: https://github.com/jpochyla/psst/issues/171

Running on Arch Linux with PipeWire for audio, using KDE and Wayland.
When psst-gui is first started, I'm able to click on a song to play it, but after doing certain things related to playback, (i.e. pausing and resuming the song or manually switching to another song) the audio fails to play. Strangely, while pausing and resuming kills the playback, skipping through it via the playback bar or letting it continue to another song automatically doesn't.
Here are the logs, although they don't seem to give any notable information:

[2021-09-07T02:34:04Z INFO  psst_gui::data::config] loading config: "/home/maxwell/.config/Psst/config.json"
[2021-09-07T02:34:04Z INFO  psst_core::cache] using cache: "/home/maxwell/.cache/Psst"
[2021-09-07T02:34:04Z INFO  psst_gui::data::config] saved config: "/home/maxwell/.config/Psst/config.json"
[2021-09-07T02:34:04Z INFO  psst_core::access_token] access token expired, requesting
[2021-09-07T02:34:06Z INFO  psst_core::access_token] access token expired, requesting
[2021-09-07T02:34:07Z INFO  psst_core::audio_file] blocked at 9214096
[2021-09-07T02:34:07Z INFO  psst_core::audio_file] blocked at 9218070
[2021-09-07T02:34:07Z INFO  psst_core::audio_file] blocked at 9219441
[2021-09-07T02:34:07Z INFO  psst_core::audio_file] blocked at 9226296
[2021-09-07T02:34:07Z INFO  psst_core::audio_file] blocked at 9234454
[2021-09-07T02:34:07Z INFO  psst_core::audio_file] blocked at 9241309
[2021-09-07T02:34:07Z INFO  psst_core::audio_file] blocked at 9252277
[2021-09-07T02:34:07Z INFO  psst_core::audio_file] blocked at 9260503
[2021-09-07T02:34:07Z INFO  psst_core::audio_file] blocked at 9267358
[2021-09-07T02:34:07Z INFO  psst_core::audio_file] blocked at 9272842
[2021-09-07T02:34:07Z INFO  psst_core::audio_player] starting playback
[2021-09-07T02:34:07Z INFO  psst_gui::controller::playback] playing
<- this is where I clicked on another song, audio stops playing here -> 
[2021-09-07T02:34:13Z INFO  psst_core::audio_file] blocked at 5646820
[2021-09-07T02:34:13Z INFO  psst_core::audio_file] blocked at 5656159
[2021-09-07T02:34:13Z INFO  psst_core::audio_file] blocked at 5673914
[2021-09-07T02:34:13Z INFO  psst_core::audio_file] blocked at 5680769
[2021-09-07T02:34:13Z INFO  psst_core::audio_file] blocked at 5686253
[2021-09-07T02:34:13Z INFO  psst_core::audio_file] blocked at 5695731
[2021-09-07T02:34:13Z INFO  psst_core::audio_file] blocked at 5697102
[2021-09-07T02:34:13Z INFO  psst_core::audio_file] blocked at 5699844
[2021-09-07T02:34:13Z INFO  psst_core::audio_file] blocked at 5705328
[2021-09-07T02:34:13Z INFO  psst_core::audio_file] blocked at 5708070
[2021-09-07T02:34:13Z INFO  psst_core::audio_player] starting playback
[2021-09-07T02:34:13Z INFO  psst_gui::controller::playback] playing```
Originally created by @redcathode on GitHub (Sep 7, 2021). Original GitHub issue: https://github.com/jpochyla/psst/issues/171 Running on Arch Linux with PipeWire for audio, using KDE and Wayland. When psst-gui is first started, I'm able to click on a song to play it, but after doing certain things related to playback, (i.e. pausing and resuming the song or manually switching to another song) the audio fails to play. Strangely, while pausing and resuming kills the playback, skipping through it via the playback bar or letting it continue to another song automatically doesn't. Here are the logs, although they don't seem to give any notable information: ``` [2021-09-07T02:34:04Z INFO psst_gui::data::config] loading config: "/home/maxwell/.config/Psst/config.json" [2021-09-07T02:34:04Z INFO psst_core::cache] using cache: "/home/maxwell/.cache/Psst" [2021-09-07T02:34:04Z INFO psst_gui::data::config] saved config: "/home/maxwell/.config/Psst/config.json" [2021-09-07T02:34:04Z INFO psst_core::access_token] access token expired, requesting [2021-09-07T02:34:06Z INFO psst_core::access_token] access token expired, requesting [2021-09-07T02:34:07Z INFO psst_core::audio_file] blocked at 9214096 [2021-09-07T02:34:07Z INFO psst_core::audio_file] blocked at 9218070 [2021-09-07T02:34:07Z INFO psst_core::audio_file] blocked at 9219441 [2021-09-07T02:34:07Z INFO psst_core::audio_file] blocked at 9226296 [2021-09-07T02:34:07Z INFO psst_core::audio_file] blocked at 9234454 [2021-09-07T02:34:07Z INFO psst_core::audio_file] blocked at 9241309 [2021-09-07T02:34:07Z INFO psst_core::audio_file] blocked at 9252277 [2021-09-07T02:34:07Z INFO psst_core::audio_file] blocked at 9260503 [2021-09-07T02:34:07Z INFO psst_core::audio_file] blocked at 9267358 [2021-09-07T02:34:07Z INFO psst_core::audio_file] blocked at 9272842 [2021-09-07T02:34:07Z INFO psst_core::audio_player] starting playback [2021-09-07T02:34:07Z INFO psst_gui::controller::playback] playing <- this is where I clicked on another song, audio stops playing here -> [2021-09-07T02:34:13Z INFO psst_core::audio_file] blocked at 5646820 [2021-09-07T02:34:13Z INFO psst_core::audio_file] blocked at 5656159 [2021-09-07T02:34:13Z INFO psst_core::audio_file] blocked at 5673914 [2021-09-07T02:34:13Z INFO psst_core::audio_file] blocked at 5680769 [2021-09-07T02:34:13Z INFO psst_core::audio_file] blocked at 5686253 [2021-09-07T02:34:13Z INFO psst_core::audio_file] blocked at 5695731 [2021-09-07T02:34:13Z INFO psst_core::audio_file] blocked at 5697102 [2021-09-07T02:34:13Z INFO psst_core::audio_file] blocked at 5699844 [2021-09-07T02:34:13Z INFO psst_core::audio_file] blocked at 5705328 [2021-09-07T02:34:13Z INFO psst_core::audio_file] blocked at 5708070 [2021-09-07T02:34:13Z INFO psst_core::audio_player] starting playback [2021-09-07T02:34:13Z INFO psst_gui::controller::playback] playing```
kerem 2026-02-28 14:30:48 +03:00
  • closed this issue
  • added the
    bug
    linux
    labels
Author
Owner

@pablodz commented on GitHub (Sep 8, 2021):

Looks like error using pipewire due it controls alsa in different ways than pulseaudio

<!-- gh-comment-id:915367615 --> @pablodz commented on GitHub (Sep 8, 2021): Looks like error using pipewire due it controls alsa in different ways than pulseaudio
Author
Owner

@jpochyla commented on GitHub (Sep 14, 2021):

We will rework the audio output soon, and probably switch to cpal, which should help with PipeWire configs.

<!-- gh-comment-id:919263490 --> @jpochyla commented on GitHub (Sep 14, 2021): We will rework the audio output soon, and probably switch to `cpal`, which should help with PipeWire configs.
Author
Owner

@jacksongoode commented on GitHub (Sep 14, 2021):

We will rework the audio output soon, and probably switch to cpal, which should help with PipeWire configs.

https://github.com/H-M-H/psst/tree/cpal This would be a great branch to start with.

<!-- gh-comment-id:919457735 --> @jacksongoode commented on GitHub (Sep 14, 2021): > We will rework the audio output soon, and probably switch to `cpal`, which should help with PipeWire configs. https://github.com/H-M-H/psst/tree/cpal This would be a great branch to start with.
Author
Owner

@jpochyla commented on GitHub (Dec 24, 2021):

Closing as we're using cpal already.

<!-- gh-comment-id:1000836701 --> @jpochyla commented on GitHub (Dec 24, 2021): Closing as we're using `cpal` already.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/psst#125
No description provided.