{"action":"created","issue":{"url":"https://api.github.com/repos/savonet/liquidsoap/issues/77","labels_url":"https://api.github.com/repos/savonet/liquidsoap/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/savonet/liquidsoap/issues/77/comments","events_url":"https://api.github.com/repos/savonet/liquidsoap/issues/77/events","html_url":"https://github.com/savonet/liquidsoap/issues/77","id":14351070,"number":77,"title":"Strange error flushing buffer","user":{"login":"leonardder","id":3049216,"avatar_url":"https://avatars.githubusercontent.com/u/3049216?v=3","gravatar_id":"","url":"https://api.github.com/users/leonardder","html_url":"https://github.com/leonardder","followers_url":"https://api.github.com/users/leonardder/followers","following_url":"https://api.github.com/users/leonardder/following{/other_user}","gists_url":"https://api.github.com/users/leonardder/gists{/gist_id}","starred_url":"https://api.github.com/users/leonardder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leonardder/subscriptions","organizations_url":"https://api.github.com/users/leonardder/orgs","repos_url":"https://api.github.com/users/leonardder/repos","events_url":"https://api.github.com/users/leonardder/events{/privacy}","received_events_url":"https://api.github.com/users/leonardder/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/savonet/liquidsoap/labels/minor","name":"minor","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"toots","id":871060,"avatar_url":"https://avatars.githubusercontent.com/u/871060?v=3","gravatar_id":"","url":"https://api.github.com/users/toots","html_url":"https://github.com/toots","followers_url":"https://api.github.com/users/toots/followers","following_url":"https://api.github.com/users/toots/following{/other_user}","gists_url":"https://api.github.com/users/toots/gists{/gist_id}","starred_url":"https://api.github.com/users/toots/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toots/subscriptions","organizations_url":"https://api.github.com/users/toots/orgs","repos_url":"https://api.github.com/users/toots/repos","events_url":"https://api.github.com/users/toots/events{/privacy}","received_events_url":"https://api.github.com/users/toots/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2013-05-15T09:55:45Z","updated_at":"2015-03-08T14:55:27Z","closed_at":null,"body":"I have a harbor input attached to an lame mp3 icecast stream. Fallible for the stream is enabled, so the stream connects as soon as there's input on the harbor. I however get \"strange error flashing buffer\" when liquidsoap starts. Here is a log:\r\n\r\n````\r\n2013/05/15 11:42:19 >>> LOG START\r\n2013/05/15 11:42:19 [protocols.external:3] Found \"wget.exe\".\r\n2013/05/15 11:42:19 [main:3] Liquidsoap 1.1.1\r\n2013/05/15 11:42:19 [main:3] Using: graphics=[distributed with Ocaml] pcre=0.1.0\r\n dtools=0.3.1 duppy=0.5.1 cry=0.2.2 mm=0.2.1 xmlplaylist=0.1.3 lastfm=0.3.0 ogg=\r\n0.4.5 vorbis=0.6.1 opus=0.1.0 speex=0.2.0 mad=0.4.4 flac=0.1.1 flac.ogg=0.1.1 dy\r\nnlink=[distributed with Ocaml] lame=0.3.2 shine=0.1.1 frei0r=0.1.0 aacplus=0.2.1\r\n voaacenc=0.1.0 fdkaac=0.1.0 theora=0.3.0 schroedinger=0.1.0 gavl=0.1.5 ao=0.2.0\r\n samplerate=0.1.2 taglib=0.3.1 camomile=0.8.4 faad=0.3.2 soundtouch=0.1.7 portau\r\ndio=0.2.0 ladspa=0.1.4 yojson=1.0.3 winsvc=0.0.1\r\n2013/05/15 11:42:19 [frame:3] Using 44100Hz audio, 25Hz video, 44100Hz master.\r\n2013/05/15 11:42:19 [frame:3] Frame size must be a multiple of 1764 ticks = 1764\r\n audio samples = 1 video samples.\r\n2013/05/15 11:42:19 [frame:3] Targetting 'frame.duration': 0.04s = 1764 audio sa\r\nmples = 1764 ticks.\r\n2013/05/15 11:42:19 [frame:3] Frames last 0.04s = 1764 audio samples = 1 video s\r\namples = 1764 ticks.\r\n2013/05/15 11:42:19 [harbor:3] Adding HTTP handler for 'GET ^/' on port 8005\r\n2013/05/15 11:42:19 [harbor:3] Adding HTTP handler for 'POST ^/(?!interact)' on\r\nport 8005\r\n2013/05/15 11:42:19 [harbor:3] Adding HTTP handler for 'POST /interact' on port\r\n8005\r\n2013/05/15 11:42:19 [threads:3] Created thread \"generic queue #1\".\r\n2013/05/15 11:42:19 [threads:3] Created thread \"generic queue #2\".\r\n2013/05/15 11:42:19 [threads:3] Created thread \"non-blocking queue #1\".\r\n2013/05/15 11:42:19 [threads:3] Created thread \"non-blocking queue #2\".\r\n2013/05/15 11:42:19 [harbor:3] Adding mountpoint '/bethel' on port 8005\r\n2013/05/15 11:42:19 [out_mb_mp3:3] Connecting mount bethel-mb.mp3 for source@loc\r\nalhost...\r\n2013/05/15 11:42:19 [out_mb_mp3:3] Connection setup was successful.\r\n2013/05/15 11:42:19 [threads:3] Created thread \"wallclock_main\" (1 total).\r\n2013/05/15 11:42:19 [clock.wallclock_main:3] Streaming loop starts, synchronized\r\n with wallclock.\r\n2013/05/15 11:42:19 [out_mb_mp3:3] Source failed (no more tracks) stopping outpu\r\nt...\r\nstrange error flushing buffer ...\r\nstrange error flushing buffer ...\r\n2013/05/15 11:42:19 [out_mb_mp3:3] Closing connection...\r\n````\r\n\r\nWhat we see here is that a connection to the icecast server is being made and immediately dropped, since there's no input on the harbor. May be this is a part which can be skipped when the only input is a harbor. Or the error, which isn't quite an error in this case since there's indeed no buffer to flush, could be suppressed?\r\n\r\nThanks,\r\nLeonard"},"comment":{"url":"https://api.github.com/repos/savonet/liquidsoap/issues/comments/77753434","html_url":"https://github.com/savonet/liquidsoap/issues/77#issuecomment-77753434","issue_url":"https://api.github.com/repos/savonet/liquidsoap/issues/77","id":77753434,"user":{"login":"bravadov","id":11376659,"avatar_url":"https://avatars.githubusercontent.com/u/11376659?v=3","gravatar_id":"","url":"https://api.github.com/users/bravadov","html_url":"https://github.com/bravadov","followers_url":"https://api.github.com/users/bravadov/followers","following_url":"https://api.github.com/users/bravadov/following{/other_user}","gists_url":"https://api.github.com/users/bravadov/gists{/gist_id}","starred_url":"https://api.github.com/users/bravadov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bravadov/subscriptions","organizations_url":"https://api.github.com/users/bravadov/orgs","repos_url":"https://api.github.com/users/bravadov/repos","events_url":"https://api.github.com/users/bravadov/events{/privacy}","received_events_url":"https://api.github.com/users/bravadov/received_events","type":"User","site_admin":false},"created_at":"2015-03-08T14:55:27Z","updated_at":"2015-03-08T14:55:27Z","body":"I have added this line to \"record\" my live input to the file on my server:\r\n```\r\noutput.file(%mp3, \"/var/records/radio-%d-%m-%Y_%H-%M-%S.mp3\", live,\r\nfallible=true)\r\n```\r\n\r\nAfter that every start (restart) of the liquidsoap service goes with a stuttering (appr. 10 seconds nobody can listen to the output stream normally), there is an error in the log file:\r\n```\r\n2015/03/02 11:53:20 [stderr:3] strange error flushing buffer ... \r\n2015/03/02 11:53:20 [stderr:3] strange error flushing buffer ... \r\n```\r\nI use liquidsoap 1.1.1 on the Ubuntu 14.04 server"}}