{"action":"created","issue":{"url":"https://api.github.com/repos/mikebrady/shairport-sync/issues/201","labels_url":"https://api.github.com/repos/mikebrady/shairport-sync/issues/201/labels{/name}","comments_url":"https://api.github.com/repos/mikebrady/shairport-sync/issues/201/comments","events_url":"https://api.github.com/repos/mikebrady/shairport-sync/issues/201/events","html_url":"https://github.com/mikebrady/shairport-sync/issues/201","id":126214221,"number":201,"title":"Starts dropping packets after 1-2 mins of playback, and never recovers","user":{"login":"elsurudo","id":50223,"avatar_url":"https://avatars.githubusercontent.com/u/50223?v=3","gravatar_id":"","url":"https://api.github.com/users/elsurudo","html_url":"https://github.com/elsurudo","followers_url":"https://api.github.com/users/elsurudo/followers","following_url":"https://api.github.com/users/elsurudo/following{/other_user}","gists_url":"https://api.github.com/users/elsurudo/gists{/gist_id}","starred_url":"https://api.github.com/users/elsurudo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elsurudo/subscriptions","organizations_url":"https://api.github.com/users/elsurudo/orgs","repos_url":"https://api.github.com/users/elsurudo/repos","events_url":"https://api.github.com/users/elsurudo/events{/privacy}","received_events_url":"https://api.github.com/users/elsurudo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-12T16:14:24Z","updated_at":"2016-01-12T17:36:39Z","closed_at":null,"body":"Hello,\r\n\r\nStill trying to get shairport-sync running on my RPi Model B Rev 1 on Raspbian GNU/Linux 7.\r\n\r\nI can now connect to the server and start playing music. However, after 1-4 mins of playback (without fail), it starts dropping packets, and never seems to recover. I've tested both with iTunes, and with system-wide sound control (playing from Spotify).\r\n\r\nOutput:\r\n\r\n```\r\npi@ernspi ~ $ shairport-sync -vvv\r\nLooking for the configuration file \"/etc/shairport-sync.conf\".\r\nLooking for configuration file at full path \"/etc/shairport-sync.conf\"\r\nOutput device name is \"hw:0\".\r\nstartup\r\nstatistics_requester status is 0.\r\ndaemon status is 0.\r\nrtsp listening port is 5000.\r\nudp base port is 6001.\r\nudp port range is 100.\r\nShairport Sync player name is \"ernspi\".\r\nAudio Output name is \"alsa\".\r\non-start action is \"(null)\".\r\non-stop action is \"(null)\".\r\nwait-cmd status is 0.\r\nmdns backend \"avahi\".\r\nuserSuppliedLatency is 0.\r\nAirPlayLatency is -1.\r\niTunesLatency is -1.\r\nforkedDaapdLatency is -1.\r\nstuffing option is \"1\".\r\nresync time is 2205.\r\nallow a session to be interrupted: 0.\r\nbusy timeout time is 120.\r\ntolerance is 88 frames.\r\npassword is \"(null)\".\r\nignore_volume_control is 0.\r\naudio backend desired buffer length is 6615.\r\naudio backend latency offset is 0.\r\nvolume range in dB (zero means use the range specified by the mixer): 0.\r\nconfiguration file name \"/etc/shairport-sync.conf\" resolves to \"/etc/shairport-sync.conf\".\r\nmetdata enabled is 0.\r\nmetadata pipename is \"(null)\".\r\nget-coverart is 0.\r\navahi: avahi_register.\r\navahi: register_service.\r\nAvahi without metadata\r\nculling threads.\r\nnew RTSP connection.\r\n    CSeq: 1.\r\n    User-Agent: iTunes/12.3.2 (Macintosh; OS X 10.10.5).\r\n    Client-Instance: 2C81279EFA65080C.\r\n    DACP-ID: 2C81279EFA65080C.\r\n    Active-Remote: 125949526.\r\n    Apple-Challenge: xr/gWe6M1STNFQGPjp88dA.\r\n    Apple-Response: YftMiCXFmYYkyC13/R8Ce3+MPyQpi8HgNBDR3h/Qcoxth8/xInfRpGhL4Ik0AT71ed09JbeRJcHYQT/MuSmIPL7kwDRkTn3i6/aRMr7visTRUAxNR7V3tOHYusWqqqTvxa+TdZPtaLG1pvVHNxViqDioDxRWBRk/oYffBB6m9VeHrZvs59w5bIeOrtHZ0M8AIq019sPqgWNjZ9F/URzdQHaviQva0IEyRU219ggbvOosmIs37xhapScQr51pfClvbatm0fxeuAImpCYdQJenFstaoteMZDUeBVGnWr9htCEk9ssR8kJSiLyTA5JGd2WP0D7Mq1/wv+vi1JhdPnQxVA.\r\n    CSeq: 1.\r\n    Audio-Jack-Status: connected; type=analog.\r\n    Public: ANNOUNCE, SETUP, RECORD, PAUSE, FLUSH, TEARDOWN, OPTIONS, GET_PARAMETER, SET_PARAMETER.\r\nRTSP connection closed.\r\nclosing RTSP connection.\r\nterminating RTSP thread.\r\nculling threads.\r\none joined...\r\nnew RTSP connection.\r\n    CSeq: 1.\r\n    Content-Type: application/sdp.\r\n    Content-Length: 572.\r\n    User-Agent: iTunes/12.3.2 (Macintosh; OS X 10.10.5).\r\n    Client-Instance: 2C81279EFA65080C.\r\n    DACP-ID: 2C81279EFA65080C.\r\n    Active-Remote: 125949526.\r\nPlay connection from user agent \"iTunes/12.3.2 (Macintosh; OS X 10.10.5)\".\r\n    CSeq: 1.\r\n    Audio-Jack-Status: connected; type=analog.\r\n    CSeq: 2.\r\n    Transport: RTP/AVP/UDP;unicast;interleaved=0-1;mode=record;control_port=6001;timing_port=6002.\r\n    User-Agent: iTunes/12.3.2 (Macintosh; OS X 10.10.5).\r\n    Client-Instance: 2C81279EFA65080C.\r\n    DACP-ID: 2C81279EFA65080C.\r\n    Active-Remote: 125949526.\r\nActive-Remote string seen: \"125949526\".\r\nDACP-ID string seen: \"2C81279EFA65080C\".\r\nUser-Agent is iTunes 10 or better, (actual version is 12); selecting the iTunes latency of -1 frames.\r\nrtp_setup: cport=6001 tport=6002.\r\nConnection from IPv4: 192.168.0.100:54085\r\nlistening for audio, control and timing on ports 6001, 6002, 6003.\r\n    CSeq: 2.\r\n    Audio-Jack-Status: connected; type=analog.\r\n    Transport: RTP/AVP/UDP;unicast;interleaved=0-1;mode=record;control_port=6002;timing_port=6003;server_port=6001.\r\n    Session: 1.\r\n    CSeq: 3.\r\n    Session: 1.\r\n    Range: npt=0-.\r\n    RTP-Info: seq=46035;rtptime=3192964997.\r\n    User-Agent: iTunes/12.3.2 (Macintosh; OS X 10.10.5).\r\n    Client-Instance: 2C81279EFA65080C.\r\n    DACP-ID: 2C81279EFA65080C.\r\n    Active-Remote: 125949526.\r\n    CSeq: 3.\r\n    Audio-Jack-Status: connected; type=analog.\r\n    Audio-Latency: 11025.\r\n    CSeq: 4.\r\n    Session: 1.\r\n    Content-Type: text/parameters.\r\n    Content-Length: 19.\r\n    User-Agent: iTunes/12.3.2 (Macintosh; OS X 10.10.5).\r\n    Client-Instance: 2C81279EFA65080C.\r\n    DACP-ID: 2C81279EFA65080C.\r\n    Active-Remote: 125949526.\r\nSET_PARAMETER Content-Type:\"text/parameters\".\r\nreceived parameters in SET_PARAMETER request.\r\nvolume: -8.557630\r\n\r\n    CSeq: 4.\r\n    Audio-Jack-Status: connected; type=analog.\r\n    CSeq: 5.\r\n    Session: 1.\r\n    Content-Type: text/parameters.\r\n    Content-Length: 19.\r\n    User-Agent: iTunes/12.3.2 (Macintosh; OS X 10.10.5).\r\n    Client-Instance: 2C81279EFA65080C.\r\n    DACP-ID: 2C81279EFA65080C.\r\n    Active-Remote: 125949526.\r\nSET_PARAMETER Content-Type:\"text/parameters\".\r\nreceived parameters in SET_PARAMETER request.\r\nvolume: -8.557630\r\n\r\n    CSeq: 5.\r\n    Audio-Jack-Status: connected; type=analog.\r\nsyncing to seqno 46035.\r\n    CSeq: 6.\r\n    User-Agent: iTunes/12.3.2 (Macintosh; OS X 10.10.5).\r\n    Client-Instance: 2C81279EFA65080C.\r\n    DACP-ID: 2C81279EFA65080C.\r\n    Active-Remote: 125949526.\r\n    CSeq: 6.\r\n    Audio-Jack-Status: connected; type=analog.\r\n    Public: ANNOUNCE, SETUP, RECORD, PAUSE, FLUSH, TEARDOWN, OPTIONS, GET_PARAMETER, SET_PARAMETER.\r\n    CSeq: 7.\r\n    User-Agent: iTunes/12.3.2 (Macintosh; OS X 10.10.5).\r\n    Client-Instance: 2C81279EFA65080C.\r\n    DACP-ID: 2C81279EFA65080C.\r\n    Active-Remote: 125949526.\r\n    CSeq: 7.\r\n    Audio-Jack-Status: connected; type=analog.\r\n    Public: ANNOUNCE, SETUP, RECORD, PAUSE, FLUSH, TEARDOWN, OPTIONS, GET_PARAMETER, SET_PARAMETER.\r\nRTP: Packets out of sequence: expected: 55948, got 55949.\r\nrequesting resend on 1 packets starting at 55948.\r\nRTP: Packets out of sequence: expected: 55971, got 55975.\r\nRTP: Packets out of sequence: expected: 55980, got 56002.\r\nRTP: Packets out of sequence: expected: 56007, got 55971.\r\nRTP: Packets out of sequence: expected: 55974, got 56007.\r\nRTP: Packets out of sequence: expected: 56008, got 55974.\r\nRTP: Packets out of sequence: expected: 55975, got 56008.\r\nRTP: Packets out of sequence: expected: 56009, got 55980.\r\nRTP: Packets out of sequence: expected: 55986, got 56009.\r\nRTP: Packets out of sequence: expected: 56010, got 55986.\r\nRTP: Packets out of sequence: expected: 55992, got 56010.\r\nRTP: Packets out of sequence: expected: 56011, got 55992.\r\nRTP: Packets out of sequence: expected: 55994, got 55997.\r\nRTP: Packets out of sequence: expected: 55998, got 56011.\r\nRTP: Packets out of sequence: expected: 56012, got 56013.\r\nRTP: Packets out of sequence: expected: 56020, got 56012.\r\nRTP: Packets out of sequence: expected: 56013, got 56020.\r\nRTP: Packets out of sequence: expected: 56088, got 55948.\r\nRTP: Packets out of sequence: expected: 55949, got 56088.\r\nRTP: Packets out of sequence: expected: 56134, got 55994.\r\nRTP: Packets out of sequence: expected: 55995, got 56134.\r\nRTP: Packets out of sequence: expected: 56136, got 55995.\r\nRTP: Packets out of sequence: expected: 55996, got 56136.\r\nRTP: Packets out of sequence: expected: 56138, got 55996.\r\nRTP: Packets out of sequence: expected: 55997, got 56138.\r\nRTP: Packets out of sequence: expected: 56141, got 55998.\r\nRTP: Packets out of sequence: expected: 55999, got 56141.\r\nRTP: Packets out of sequence: expected: 56142, got 55999.\r\nRTP: Packets out of sequence: expected: 56000, got 56142.\r\nRTP: Packets out of sequence: expected: 56143, got 56000.\r\nRTP: Packets out of sequence: expected: 56001, got 56143.\r\nRTP: Packets out of sequence: expected: 56144, got 56001.\r\nRTP: Packets out of sequence: expected: 56002, got 56144.\r\n    CSeq: 8.\r\n    User-Agent: iTunes/12.3.2 (Macintosh; OS X 10.10.5).\r\n    Client-Instance: 2C81279EFA65080C.\r\n    DACP-ID: 2C81279EFA65080C.\r\n    Active-Remote: 125949526.\r\n    CSeq: 8.\r\n    Audio-Jack-Status: connected; type=analog.\r\n    Public: ANNOUNCE, SETUP, RECORD, PAUSE, FLUSH, TEARDOWN, OPTIONS, GET_PARAMETER, SET_PARAMETER.\r\n    CSeq: 9.\r\n    User-Agent: iTunes/12.3.2 (Macintosh; OS X 10.10.5).\r\n    Client-Instance: 2C81279EFA65080C.\r\n    DACP-ID: 2C81279EFA65080C.\r\n    Active-Remote: 125949526.\r\n    CSeq: 9.\r\n    Audio-Jack-Status: connected; type=analog.\r\n    Public: ANNOUNCE, SETUP, RECORD, PAUSE, FLUSH, TEARDOWN, OPTIONS, GET_PARAMETER, SET_PARAMETER.\r\n    CSeq: 10.\r\n    User-Agent: iTunes/12.3.2 (Macintosh; OS X 10.10.5).\r\n    Client-Instance: 2C81279EFA65080C.\r\n    DACP-ID: 2C81279EFA65080C.\r\n    Active-Remote: 125949526.\r\n    CSeq: 10.\r\n    Audio-Jack-Status: connected; type=analog.\r\n    Public: ANNOUNCE, SETUP, RECORD, PAUSE, FLUSH, TEARDOWN, OPTIONS, GET_PARAMETER, SET_PARAMETER.\r\nLost sync with source for 4 consecutive packets -- flushing and resyncing. Error: 3126.\r\nsyncing to seqno 64785.\r\nFirst packet is late! It should have played before now. Flushing 0.1 seconds\r\nDropping flushed packet in player_put_packet, seqno 64786, timestamp 3199565349, flushing to timestamp: 3199569407.\r\nDropping flushed packet in player_put_packet, seqno 64787, timestamp 3199565701, flushing to timestamp: 3199569407.\r\nDropping flushed packet in player_put_packet, seqno 64788, timestamp 3199566053, flushing to timestamp: 3199569407.\r\nDropping flushed packet in player_put_packet, seqno 64789, timestamp 3199566405, flushing to timestamp: 3199569407.\r\nDropping flushed packet in player_put_packet, seqno 64790, timestamp 3199566757, flushing to timestamp: 3199569407.\r\nDropping flushed packet in player_put_packet, seqno 64791, timestamp 3199567109, flushing to timestamp: 3199569407.\r\nDropping flushed packet in player_put_packet, seqno 64792, timestamp 3199567461, flushing to timestamp: 3199569407.\r\nDropping flushed packet in player_put_packet, seqno 64793, timestamp 3199567813, flushing to timestamp: 3199569407.\r\nDropping flushed packet in player_put_packet, seqno 64794, timestamp 3199568165, flushing to timestamp: 3199569407.\r\nDropping flushed packet in player_put_packet, seqno 64795, timestamp 3199568517, flushing to timestamp: 3199569407.\r\n... (this just continues forever)\r\n```\r\n\r\nMy only config changes from the default (as advised by other issues) are:\r\n\r\n```\r\noutput_device = \"hw:0\";\r\ninterpolation = \"soxr\";\r\n```\r\n\r\nNote I've also tried the default interpolation, but it seemed to play for even less time before failure.\r\n\r\nCurrently, I'm just using the basic audio jack on the RPi (no USB sound card).\r\n\r\nWhat could the issue be? Is it possible that my old RPi is simply too slow? I've checked CPU and memory usage, and it's not topping out, so I'm not sure.\r\n\r\nThanks in advance for any help!"},"comment":{"url":"https://api.github.com/repos/mikebrady/shairport-sync/issues/comments/170985313","html_url":"https://github.com/mikebrady/shairport-sync/issues/201#issuecomment-170985313","issue_url":"https://api.github.com/repos/mikebrady/shairport-sync/issues/201","id":170985313,"user":{"login":"mikebrady","id":4265913,"avatar_url":"https://avatars.githubusercontent.com/u/4265913?v=3","gravatar_id":"","url":"https://api.github.com/users/mikebrady","html_url":"https://github.com/mikebrady","followers_url":"https://api.github.com/users/mikebrady/followers","following_url":"https://api.github.com/users/mikebrady/following{/other_user}","gists_url":"https://api.github.com/users/mikebrady/gists{/gist_id}","starred_url":"https://api.github.com/users/mikebrady/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikebrady/subscriptions","organizations_url":"https://api.github.com/users/mikebrady/orgs","repos_url":"https://api.github.com/users/mikebrady/repos","events_url":"https://api.github.com/users/mikebrady/events{/privacy}","received_events_url":"https://api.github.com/users/mikebrady/received_events","type":"User","site_admin":false},"created_at":"2016-01-12T17:36:39Z","updated_at":"2016-01-12T17:36:39Z","body":"Just a guess that if the Pi is on WiFi, it might be caused by the WiFi dongle going into a low power mode – see #197. "}}