{"action":"created","issue":{"url":"https://api.github.com/repos/l3tnun/EPGStation/issues/180","repository_url":"https://api.github.com/repos/l3tnun/EPGStation","labels_url":"https://api.github.com/repos/l3tnun/EPGStation/issues/180/labels{/name}","comments_url":"https://api.github.com/repos/l3tnun/EPGStation/issues/180/comments","events_url":"https://api.github.com/repos/l3tnun/EPGStation/issues/180/events","html_url":"https://github.com/l3tnun/EPGStation/issues/180","id":387342221,"node_id":"MDU6SXNzdWUzODczNDIyMjE=","number":180,"title":"\"recordedEndCommand\"で呼び出したtsselectが途中で停止する","user":{"login":"tokohito","id":24762095,"node_id":"MDQ6VXNlcjI0NzYyMDk1","avatar_url":"https://avatars3.githubusercontent.com/u/24762095?v=4","gravatar_id":"","url":"https://api.github.com/users/tokohito","html_url":"https://github.com/tokohito","followers_url":"https://api.github.com/users/tokohito/followers","following_url":"https://api.github.com/users/tokohito/following{/other_user}","gists_url":"https://api.github.com/users/tokohito/gists{/gist_id}","starred_url":"https://api.github.com/users/tokohito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tokohito/subscriptions","organizations_url":"https://api.github.com/users/tokohito/orgs","repos_url":"https://api.github.com/users/tokohito/repos","events_url":"https://api.github.com/users/tokohito/events{/privacy}","received_events_url":"https://api.github.com/users/tokohito/received_events","type":"User","site_admin":false},"labels":[{"id":688341180,"node_id":"MDU6TGFiZWw2ODgzNDExODA=","url":"https://api.github.com/repos/l3tnun/EPGStation/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-12-04T15:31:35Z","updated_at":"2018-12-05T03:33:52Z","closed_at":null,"author_association":"NONE","body":"### 環境\r\n* Version of EPGStation: `1.2.3`\r\n* Version of Mirakurun: `2.7.4`\r\n* Version of Node: `v8.14.0`\r\n* Version of NPM: `6.4.1'`\r\n* OS: Ubuntu18.04.1\r\n* Architecture: x64\r\n\r\n### Issue\r\nお世話になっております。\r\n\"recordedEndCommand\"で録画後に追加で欲しい処理をいくつかシェルスクリプトに\r\nまとめて実行させているのですが、tsselectが途中で停止してしまうケースがあります。\r\ntsselect \"recorded_file.ts\" >> \"tsselect_log.txt\"\r\n\r\n単独で実行させる分には問題は無いのですが、複数番組が重なると発生するようです。\r\ntsselectが停止している状態でpsコマンドを実行すると、以下のように\r\ntsselectがスリープ状態になっていることが確認できます。\r\n\r\n$ ps ax | grep tsselect\r\n  PID TTY      STAT   TIME COMMAND\r\n15300 ?        S      0:00 tsselect recorded_file.ts\r\n\r\n実行中のシェルスクリプトをkillすると後続のシェルスクリプト\r\n(\"recordedEndCommand\"で実行されているので環境変数が違うだけの同じもの)\r\nが動き出しますが、またtsselect部分の処理で止まってしまいます。\r\n\r\n下記のように標準エラー出力(tsselectでは進捗の%表示)を捨てると、\r\n複数番組の録画が重なっても止まらなくなったようです。\r\ntsselect \"recorded_file.ts\" 2> /dev/null >> \"tsselect_log.txt\"\r\n\r\n状況からcronでスクリプトを実行した際などに発生するバッファ不足の\r\n症状に似ていますが、ここから先確認する方法がわかりませんでした。\r\n\r\ntsselectはこちらで公開されているものを使わせていただいてます。\r\nhttps://github.com/shesee/tsselect-linux\r\n\r\n\r\n以上、よろしくお願いします。\r\n"},"comment":{"url":"https://api.github.com/repos/l3tnun/EPGStation/issues/comments/444346628","html_url":"https://github.com/l3tnun/EPGStation/issues/180#issuecomment-444346628","issue_url":"https://api.github.com/repos/l3tnun/EPGStation/issues/180","id":444346628,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NDM0NjYyOA==","user":{"login":"l3tnun","id":16516088,"node_id":"MDQ6VXNlcjE2NTE2MDg4","avatar_url":"https://avatars0.githubusercontent.com/u/16516088?v=4","gravatar_id":"","url":"https://api.github.com/users/l3tnun","html_url":"https://github.com/l3tnun","followers_url":"https://api.github.com/users/l3tnun/followers","following_url":"https://api.github.com/users/l3tnun/following{/other_user}","gists_url":"https://api.github.com/users/l3tnun/gists{/gist_id}","starred_url":"https://api.github.com/users/l3tnun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/l3tnun/subscriptions","organizations_url":"https://api.github.com/users/l3tnun/orgs","repos_url":"https://api.github.com/users/l3tnun/repos","events_url":"https://api.github.com/users/l3tnun/events{/privacy}","received_events_url":"https://api.github.com/users/l3tnun/received_events","type":"User","site_admin":false},"created_at":"2018-12-05T03:33:52Z","updated_at":"2018-12-05T03:33:52Z","author_association":"OWNER","body":"お二人の言うとおり、stderr 出力が溢れているのかもしれないですね。\r\nEPGStation 側でスクリプトを呼び出す際に何らかの設定が必要かもしれないので、土日にでも見てみます。"}}
{"actor":{"display_login":"l3tnun"}}