Picard on MacOS loses network connection after sleeping

picard
macosx
network
Tags: #<Tag:0x00007f30a20b9760> #<Tag:0x00007f30a20b9558> #<Tag:0x00007f30a20b9260>

#1

When running MB Picard (currently 2.0.3) on MacOS High Sierra, Picard loses network connectivity after waking up from sleeping. I believe it’s a problem with static network configuration whereas it can be dynamic.

I’d suggest adding some basic network management functionality that allows to restart / re-initialize the network information in Picard.


#2

Can you provide the full debug log (as a link) ?
Is there any message showing up related to QNetwork ?

It is likely a Qt issue, perhaps https://bugreports.qt.io/browse/QTBUG-55180


#3

Here’s the relevant bit of the debug log (Picard 2.0.4):

D: 09:59:18,912 webservice.ratecontrol.decrement_requests:142: ('musicbrainz.org', 443): Decrementing requests to: 0

E: 09:59:18,913 webservice._handle_reply:372: Network request error for https://musicbrainz.org:443/ws/2/release/814c5ada-d2e6-4627-965e-9e3c386692d1?inc=release-groups+media+recordings+artist-credits+artists+aliases+labels+isrcs+collections+artist-rels+release-rels+url-rels+recording-rels+work-rels+recording-level-rels+work-level-rels: Network access is disabled. (QT code 99, HTTP code 0)

E: 09:59:18,916 album.error_append:200: Network access is disabled.

D: 09:59:18,919 webservice.ratecontrol._out_of_backoff:225: ('musicbrainz.org', 443): oobackoff; delay: 1000ms -&gt; 1000ms; slow start; window size 10.000 -&gt; 11.000

When I try to reload the album, I again get a similar error message:

D: 10:01:39,683 ui.mainwindow.set_statusbar_message:283: Loading album 814c5ada-d2e6-4627-965e-9e3c386692d1 ...

D: 10:01:39,692 webservice.ratecontrol.get_delay_to_next_request:114: ('musicbrainz.org', 443): Last request was 140914 ms ago, starting another one

D: 10:01:39,694 webservice.ratecontrol.increment_requests:134: ('musicbrainz.org', 443): Incrementing requests to: 1

D: 10:01:39,723 webservice.ratecontrol.decrement_requests:142: ('musicbrainz.org', 443): Decrementing requests to: 0

E: 10:01:39,724 webservice._handle_reply:372: Network request error for https://musicbrainz.org:443/ws/2/release/814c5ada-d2e6-4627-965e-9e3c386692d1?inc=release-groups+media+recordings+artist-credits+artists+aliases+labels+isrcs+collections+artist-rels+release-rels+url-rels+recording-rels+work-rels+recording-level-rels+work-level-rels: Network access is disabled. (QT code 99, HTTP code 0)

E: 10:01:39,726 album.error_append:200: Network access is disabled.

D: 10:01:39,727 webservice.ratecontrol._out_of_backoff:225: ('musicbrainz.org', 443): oobackoff; delay: 1000ms -&gt; 1000ms; slow start; window size 11.000 -&gt; 12.000

So there’s apparently no way of reloading an album once it gave an error.