strawberrymusicplayer / strawberry

:strawberry: Strawberry Music Player
https://www.strawberrymusicplayer.org/
GNU General Public License v3.0
2.73k stars 192 forks source link

Network features stop working after computer suspends and resumes #1521

Open Slater91 opened 2 months ago

Slater91 commented 2 months ago

Describe the bug Some network-related features (lyrics, album cover search, etc) stop working when the computer is put to sleep and then woken up again. Subsonic streaming (from the local network) keeps on working, just like radio streaming.

To Reproduce Make the computer sleep while Strawberry is open.

Expected behavior All network-related features keep on working.

Screenshots: If applicable, add screenshots to help explain your problem.

System Information:

Additional context The command line output reports multiple incidences of QNetworkReply::NetworkSessionFailedError:

09:30:18.225 ERROR LoloLyricsProvider:150           LoloLyrics: "The specified configuration cannot be used. (8)"
09:30:18.225 ERROR HtmlLyricsProvider:84            "songlyrics.com" "The specified configuration cannot be used." QNetworkReply::NetworkSessionFailedError
09:30:18.225 ERROR HtmlLyricsProvider:84            "azlyrics.com" "The specified configuration cannot be used." QNetworkReply::NetworkSessionFailedError
09:30:18.225 ERROR HtmlLyricsProvider:84            "elyrics.net" "The specified configuration cannot be used." QNetworkReply::NetworkSessionFailedError

It should be noted that the computer can reach the domains and is currently connected to the Internet with no issues (I'm posting this!).

jonaski commented 2 weeks ago

I can't reproduce this. What Qt version were you using, are you using Networkmanager, or something else for setting up the network connection? Is it cabled Ethernet or Wifi?

Slater91 commented 2 weeks ago

I'm using Qt 6.6.1 and NetworkManager, and the computer is on a WiFi network. It is 100% reproducible on all my computers.