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

Panic when trying to play specific songs #1260

Open
1 of 6 tasks
spoutn1k opened this issue Jan 25, 2024 · 5 comments
Open
1 of 6 tasks

Panic when trying to play specific songs #1260

spoutn1k opened this issue Jan 25, 2024 · 5 comments
Labels
bug A functionality or parts of a program that do not work as intended

Comments

@spoutn1k
Copy link

Description
Hello all, I experience repeated crashes when trying to play the latest Justice/Tame Impala song. It is really recent so time might be of the essence to reproduce.

To Reproduce
Play One night/All night to a device and switch to spotifyd, experience the crash.

Expected behavior
Playing the song.

Logs
I am putting the systemctl logs as attachment so not pasting here.
spotifyd.log

Compilation flags

  • dbus_mpris
  • dbus_keyring
  • alsa_backend
  • portaudio_backend
  • pulseaudio_backend
  • rodio_backend

Versions (please complete the following information):

  • OS: Linux arcV 6.7.1-arch1-1 1 SMP PREEMPT_DYNAMIC Sun, 21 Jan 2024 22:14:10 +0000 x86_64 GNU/Linux
  • Spotifyd: spotifyd 0.3.5
  • cargo: N/A Aur package
@spoutn1k spoutn1k added the bug A functionality or parts of a program that do not work as intended label Jan 25, 2024
@eladyn
Copy link
Member

eladyn commented Jan 28, 2024

Hmm, i'm not entirely sure what's happening here. FWIW, it seems to be playing fine on my instance. I can see in the metadata that Spotify is sending me regarding that song, that it has an earliest_live_timestampe set to Wednesday, 24. January 2024 18:00:00. But your logs look like your attempts are one day after that, so there should be no problem.
(One should not however, that current librespot is parsing that field incorrectly. I doubt that that is the issue however, since the wrongly parsed timestamp is much earlier than the real one.)

Can you still reproduce the problem or has it resolved itself due to the release being already some days in the past?

@spoutn1k
Copy link
Author

Thank you for looking into this. This is very interesting, I live in the Middle East but my country is still set to US, so maybe this was the issue ? I tried again this morning and it worked flawlessly. Is there another song with one such timestamp I can try to reproduce it ?

Btw is there notification support planned ? Due to the daemon nature of spotifyd it was very confusing what was happening.

@eladyn
Copy link
Member

eladyn commented Jan 28, 2024

Huh, interesting. I just looked through the code, and apparently the earliest_live_timestamp shouldn't be relevant to the issue. It rather seems that Spotify somehow didn't return any available audio files, potentially due to it being that new?

Btw is there notification support planned ? Due to the daemon nature of spotifyd it was very confusing what was happening.

We do have the option of an event hook (on_song_change_hook) that is triggered each time, when the song changes, playback is paused/resumed, ... So you can mostly implement the notifications you want yourself. (See here for examples.) But I'm not sure, if that is what you wanted to be notified of?

@spoutn1k
Copy link
Author

Really weird. Sorry I could not give more info I am a very new user of spotifyd. Great job btw pretty cool project.

The more I think about it the less it makes sense, but I would have really enjoyed having a notification of "Oops we panicked ! Log here" or something. Can you hook functions when panicking ? My big issue was figuring why the music stopped, as systemd restarted the daemon it appeared to be running, so I looked at my phone, internet connection and spotify as suspects.

@eladyn
Copy link
Member

eladyn commented Apr 8, 2024

FYI, it might be related to librespot-org/librespot#1268.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A functionality or parts of a program that do not work as intended
Projects
None yet
Development

No branches or pull requests

2 participants