mirror of
https://github.com/aome510/spotify-player.git
synced 2026-04-26 09:25:49 +03:00
[GH-ISSUE #69] spotify_player fails to play any track, Spotify changes? #21
Labels
No labels
bug
documentation
enhancement
good first issue
help wanted
pull-request
question
third-party
third-party
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-player#21
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @0323pin on GitHub (Aug 4, 2022).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/69
@aome510
The player jumps through songs and when reaching the end of the list it starts over again. Killing the app is the only way out of this loop.
Attached the log file, although it generates several of these one after the other.
Backtraces are empty :(
ClientID has been hidden on the log file.
If you need to check my configurations see, https://codeberg.org/pin/leftwm-netbsd/src/branch/main/.config/spotify-player
spotify-player-22-08-04-09:32.log
EDIT: Downgraded to 0.9.3 and the bug is already present there. I've been on holiday and just pushed the updates.
Downgraded to 0.9.2 and it's the same, then downgraded to 0.9.0 and the same happens.
I'm lost, I start to think that something else is causing this. I've also built 0.8.0 just to be sure, as I know this one worked before and it does the same :(
I've no clue how to fix this or what is causing it.
@0323pin commented on GitHub (Aug 4, 2022):
Ok! I've installed 0.9.3 from the binary repository and at least I got a panic,
Tried with RUST_BACKTRACE=full to get the debug symbols but got another empty backtrace.
But, I no longer think this is an issue with the player. I can't think of what may be causing it, though.
EDIT: I've rebuilt the package with rust-1.60 and llvm-13 (had been using llvm-14 and rust-1.62 before) and the track jumping is still there. Also if I pick a single track, I get no sound :(
Got the same backtrace as above.
@0323pin commented on GitHub (Aug 4, 2022):
@aome510 just got confirmed that
ncspotis behaving the same from a fellow NetBSD developer, that claims it was working yesterday but, not today. So, not an issue withspotify-playerafter all.Are you aware of any changes at the Spotify end? Are you having any issues yourself?
I've merged the latest
librespot, should that dependency be updated?A lot of questions, I know.
@aome510 commented on GitHub (Aug 4, 2022):
I'm not. Just quickly tested with
0.9.3on my local and still works. It also worked yesterday for me.I don't know there is a new update for
librespot. I can bump a new version.My best guess is this is because of some Spotify client bug, so let's wait for a few days to see if the issue still persists.
@0323pin commented on GitHub (Aug 5, 2022):
@aome510 Thanks for checking at your end, really appreciated.
I've tried today and it's still the same, I'll give it a few days.
The reason I was mentioning
librespotis the ChangeLog provided with the release of v0.4.2, quotingSo, I thought this could be related. Anyway,
librespotis preparing some major changes, I'd recommend to check it out, again quoting,Shall I close this issue? I'm convinced this is not an issue with
spotify-player.@aome510 commented on GitHub (Aug 6, 2022):
Ah, I see. Thanks for the information.
Let's close if for now. Will open again if I find any issues related to
spotify-player@0323pin commented on GitHub (Aug 10, 2022):
@aome510 Found the issue. It has been in front of my eyes all the time. From
ncspotrelease notesSee the referenced issue and https://github.com/librespot-org/librespot/issues/972 on
librespot.Locally adding
104.199.65.124 ap-gew4.spotify.comto/etc/hostsfixes the issue.Anyway, updating to
librespot-0.4.2 is the right solution.Regards,
pin
@aome510 commented on GitHub (Aug 10, 2022):
@0323pin Thanks for the context. Great to know that it's now fixed. I'll release a new version soon with the deps upgrade
@0323pin commented on GitHub (Aug 10, 2022):
Thanks!
I've posted a brief note for NetBSD users, https://mail-index.netbsd.org/pkgsrc-users/2022/08/10/msg036056.html
I want to avoid complains, as I'm the maintainer of all the Spotify clients 😄
@aome510 commented on GitHub (Aug 10, 2022):
@0323pin release new version
0.9.5with thelibrespotupgrade. I also specify the latest build ofsouvlakiin Cargo.toml, so you can build the app withmedia-controlfeature. Please lmk if something doesn't work.@0323pin commented on GitHub (Aug 10, 2022):
@aome510 Thank you so much! Unfortunately, pulling
souvlakifrom git is not such a good idea. Within pkgsrc distfiles should not be pulled from the internet at compile time and builds should be done in offline mode, so I hit the following error,I've patched this change away and it's building now.
Btw, my builds are faster now, so it should be ready in about 10 min. I will test and report back tomorrow.
@0323pin commented on GitHub (Aug 10, 2022):
@aome510 ok, just a few hours after and not tomorrow 😄
I couldn't resist.
All good, no hacks in
/etc/hostsneeded anymore and I can listen to music again.Thank you!
I'll merge this on the main repo before sleeping tonight.
@0323pin commented on GitHub (Aug 11, 2022):
I know this maybe unrelated but, I didn't want to create a new issue.
Yesterday, I streamed music without an itch for over an hour.
Today, I mostly get
No playback found. Please make sure there is a running Spotify client and try to connect to it using the 'SwitchDevice' command.Sometimes it works but mostly it doesn't and I get that error.
spotify-player-22-08-11-06:57.log
@aome510 commented on GitHub (Aug 11, 2022):
Did you get that during startup or after using the app for a while?
I just look into the log,
it seems the app failed to find a device to connect to on startup, which can be because of
get_deviceAPI is calledTo confirm 1, did you get any backtrace errors?
To confirm 2, does it show any devices when you press
D(SwitchDevicecommand)?@0323pin commented on GitHub (Aug 11, 2022):
@aome510 Thanks! This happens at startup, as you already figured out.
I only use the integrated device, I've never used the app to control another running device. Yes, I do get backtraces but, they are empty.
Pressing
Dshows an empty list, as I only use the integrated device.Could it be
librespotfailing to start?@aome510 commented on GitHub (Aug 11, 2022):
I guess it could be the case. But, it's pretty weird there is no error backtrace.
Even if you only use the integrated device, press
Dshould also show that device unless you don't specify your ownclient_idin theapp.toml. In that case,get_devicealways return empty.Does this issue happen every time you open the app? Also, does press
R(RestartIntegratedClientcommand) work?@0323pin commented on GitHub (Aug 11, 2022):
I've logged in on my working Windows machine on chrome, then launched the app on NetBSD and I can control the device.
No, sometimes it works as expected.
Logged off in Windows and re-launched the player. Got the same error but, got the device in the list when pressing
D.Killed and restarted the app 6 times and twice it worked as expected.
This is though to debug.
@0323pin commented on GitHub (Aug 11, 2022):
When failing it always generates a backtrace,
But these are all empty.
@aome510 commented on GitHub (Aug 11, 2022):
The app generates a backtrace file and a log file whenever it starts. Empty backtrace probably means no error.
Based on my experience, as I encountered a similar issue before [1]. This was more because,
The app starts by registering an integrated device then connecting to an available device. The connect process can fail if the newly registered device hasn't been notified to the Spotify server.
This can be addressed to use the app by either calling
SwitchDevice(D) command to manually connect to one orRestartIntegratedClient(R) to restart the integrated device then connect to it.[1] This issue used to happen more frequently for me before I made some changes to improve the register-connect progress. I'll take another look to see if I can fix this.
@0323pin commented on GitHub (Aug 11, 2022):
Thank you for the explanation.
It's running now, playing music while I work on some documents.
I'll try
DandRwhen this happens again or, I'll just restarts until it works.Awesome but, no rush, it does work.
@0323pin commented on GitHub (Aug 29, 2022):
@aome510 wrong place for this, I know ... just to let you know
souvlakihas provided a new release, https://github.com/Sinono3/souvlaki/issues/25So, next time I can allow the feature on NetBSD.
@aome510 commented on GitHub (Aug 30, 2022):
Thanks for letting me know. Will update the app shortly
@0323pin commented on GitHub (Aug 30, 2022):
@aome510 Take your time. This week I'm rather busy with real life work. I'm still doing package updates but, don't have that much time to play with package build options, even though it's not that difficult :)
Better focus on it when doing, so I don't miss anything.