{"action":"created","issue":{"url":"https://api.github.com/repos/streamlink/streamlink/issues/337","repository_url":"https://api.github.com/repos/streamlink/streamlink","labels_url":"https://api.github.com/repos/streamlink/streamlink/issues/337/labels{/name}","comments_url":"https://api.github.com/repos/streamlink/streamlink/issues/337/comments","events_url":"https://api.github.com/repos/streamlink/streamlink/issues/337/events","html_url":"https://github.com/streamlink/streamlink/issues/337","id":198127488,"number":337,"title":"python interpreter crash","user":{"login":"xkbd","id":24438502,"avatar_url":"https://avatars.githubusercontent.com/u/24438502?v=3","gravatar_id":"","url":"https://api.github.com/users/xkbd","html_url":"https://github.com/xkbd","followers_url":"https://api.github.com/users/xkbd/followers","following_url":"https://api.github.com/users/xkbd/following{/other_user}","gists_url":"https://api.github.com/users/xkbd/gists{/gist_id}","starred_url":"https://api.github.com/users/xkbd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xkbd/subscriptions","organizations_url":"https://api.github.com/users/xkbd/orgs","repos_url":"https://api.github.com/users/xkbd/repos","events_url":"https://api.github.com/users/xkbd/events{/privacy}","received_events_url":"https://api.github.com/users/xkbd/received_events","type":"User","site_admin":false},"labels":[{"id":443888408,"url":"https://api.github.com/repos/streamlink/streamlink/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-12-30T10:01:10Z","updated_at":"2017-01-14T16:12:47Z","closed_at":null,"body":"Environment: \r\nwindows 8.1 x64\r\nstreamlink: latest nightly build for windows\r\n\r\n\r\n\r\n- First, i get a message \"rtmpdump.exe has stopped working\"\r\nLike this:\r\n![error img](http://thewindowsclub.thewindowsclubco.netdna-cdn.com/wp-content/uploads/2014/02/sqlstoped2.png)\r\n\r\n- Then \"Python has stopped working\"\r\n\r\nstreamlink output:\r\n```\r\n[cli][info] Opening stream: high (rtmp)\r\n[cli][debug] Pre-buffering 8192 bytes\r\n[cli][error] Failed to read data from stream: Read timeout\r\nFatal Python error: could not acquire lock for <_io.BufferedReader name=5> at in\r\nterpreter shutdown, possibly due to daemon threads\r\n\r\nThread 0x000014bc (most recent call first):\r\n  File \"C:\\Program Files (x86)\\Streamlink\\pkgs\\streamlink\\stream\\wrappers.py\", line 67 in run\r\n  File \"threading.py\", line 914 in _bootstrap_inner\r\n  File \"threading.py\", line 882 in _bootstrap\r\n\r\nCurrent thread 0x000012f8 (most recent call first):\r\n  File \"C:\\Program Files (x86)\\Streamlink\\pkgs\\streamlink\\stream\\wrappers.py\", line 85 in stop\r\n  File \"C:\\Program Files (x86)\\Streamlink\\pkgs\\streamlink\\stream\\wrappers.py\", line 105 in close\r\n  File \"C:\\Program Files (x86)\\Streamlink\\pkgs\\streamlink\\stream\\streamprocess.py\", line 27 in close\r\n\r\n```\r\n\r\nI also have windows 7 x32 and error sometimes reproduced on win 8 only."},"comment":{"url":"https://api.github.com/repos/streamlink/streamlink/issues/comments/272633719","html_url":"https://github.com/streamlink/streamlink/issues/337#issuecomment-272633719","issue_url":"https://api.github.com/repos/streamlink/streamlink/issues/337","id":272633719,"user":{"login":"xkbd","id":24438502,"avatar_url":"https://avatars.githubusercontent.com/u/24438502?v=3","gravatar_id":"","url":"https://api.github.com/users/xkbd","html_url":"https://github.com/xkbd","followers_url":"https://api.github.com/users/xkbd/followers","following_url":"https://api.github.com/users/xkbd/following{/other_user}","gists_url":"https://api.github.com/users/xkbd/gists{/gist_id}","starred_url":"https://api.github.com/users/xkbd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xkbd/subscriptions","organizations_url":"https://api.github.com/users/xkbd/orgs","repos_url":"https://api.github.com/users/xkbd/repos","events_url":"https://api.github.com/users/xkbd/events{/privacy}","received_events_url":"https://api.github.com/users/xkbd/received_events","type":"User","site_admin":false},"created_at":"2017-01-14T16:12:47Z","updated_at":"2017-01-14T16:12:47Z","body":"Doesn't occur. \r\nstreamlink.exe from windows installer - runner streamlink-script.py. \r\nIn my case when i run streamlink from python-script also all is well.\r\n\r\nBut if i run `python.exe -c` [code from streamlink-script.py]:\r\n```\r\nC:\\Program Files\\Streamlink>Python\\python.exe -c \"import sys, os;installdir = os.path.dirname('bin');pkgdir = os.path.join(installdir, 'pkgs');sys.path.insert(0, pkgdir);os.environ['PYTHONPATH'] = pkgdir + os.pathsep + os.environ.get('PYTHONPATH', '');from streamlink_cli.main import main;main()\" \"vaughnlive.tv/MEGA_SIMPSON\" best --player=\"not-exists-file\"\r\n```\r\nI get 'python fatal error'\r\n```\r\n[cli][info] Found matching plugin vaughnlive for URL vaughnlive.tv/MEGA_SIMPSON\r\n[plugin.vaughnlive][debug] Using swf url: http://vaughnlive.tv/4451818440/swf/VaughnSoftPlayer.swf\r\n[plugin.vaughnlive][debug] Loading info url: http://mvn.vaughnsoft.net/video/edge/soon_depricated_Q2_2017-live_mega_simpson?0.1.1.782_860-86\r\n0-0.2722663476617663\r\n[cli][info] Available streams: live (worst, best)\r\n[cli][info] Opening stream: live (rtmp)\r\n[cli][debug] Pre-buffering 8192 bytes\r\n[cli][info] Starting player: not-exists-file\r\nerror: Failed to start player: not-exists-file ([WinError 2] Не удается найти указанный файл)\r\nFatal Python error: could not acquire lock for <_io.BufferedReader name=5> at interpreter shutdown, possibly due to daemon threads\r\n\r\nThread 0x00001f90 (most recent call first):\r\n  File \"C:\\Python35\\lib\\site-packages\\streamlink\\stream\\wrappers.py\", line 67 in run\r\n  File \"C:\\Python35\\lib\\threading.py\", line 914 in _bootstrap_inner\r\n  File \"C:\\Python35\\lib\\threading.py\", line 882 in _bootstrap\r\n\r\nCurrent thread 0x00001674 (most recent call first):\r\n  File \"C:\\Python35\\lib\\site-packages\\streamlink\\stream\\wrappers.py\", line 85 in stop\r\n  File \"C:\\Python35\\lib\\site-packages\\streamlink\\stream\\wrappers.py\", line 105 in close\r\n  File \"C:\\Python35\\lib\\site-packages\\streamlink\\stream\\streamprocess.py\", line 30 in close\r\n```"}}
{"actor":{"display_login":"xkbd"}}