{"action":"created","issue":{"url":"https://api.github.com/repos/drzowie/PDL-Graphics-Gnuplot/issues/57","repository_url":"https://api.github.com/repos/drzowie/PDL-Graphics-Gnuplot","labels_url":"https://api.github.com/repos/drzowie/PDL-Graphics-Gnuplot/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/drzowie/PDL-Graphics-Gnuplot/issues/57/comments","events_url":"https://api.github.com/repos/drzowie/PDL-Graphics-Gnuplot/issues/57/events","html_url":"https://github.com/drzowie/PDL-Graphics-Gnuplot/issues/57","id":181748882,"number":57,"title":"Simple line plot hangs on Windows","user":{"login":"bruceravel","id":638186,"avatar_url":"https://avatars.githubusercontent.com/u/638186?v=3","gravatar_id":"","url":"https://api.github.com/users/bruceravel","html_url":"https://github.com/bruceravel","followers_url":"https://api.github.com/users/bruceravel/followers","following_url":"https://api.github.com/users/bruceravel/following{/other_user}","gists_url":"https://api.github.com/users/bruceravel/gists{/gist_id}","starred_url":"https://api.github.com/users/bruceravel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bruceravel/subscriptions","organizations_url":"https://api.github.com/users/bruceravel/orgs","repos_url":"https://api.github.com/users/bruceravel/repos","events_url":"https://api.github.com/users/bruceravel/events{/privacy}","received_events_url":"https://api.github.com/users/bruceravel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-07T19:25:11Z","updated_at":"2016-11-10T22:05:38Z","closed_at":null,"body":"I don't understand what the purpose of this bit of code is:\n\nhttps://github.com/drzowie/PDL-Graphics-Gnuplot/blob/master/lib/PDL/Graphics/Gnuplot.pm#L3251-L3258\n\nI want to diagnose the problem, but I don't know what I am looking at.  \n\nI am sending two piddles to make a simple line plot, like so:\n\n``` perl\ngplot({xlabel=>'Emission energy (eV)', ylabel=>'XES'},\n        with=>'lines', lt=>1, lw=>1, legend=>$legend,\n        $energypdl, $xespdl)\n```\n\nwhere the two piddles are pretty short -- 200 points or fewer.\n\nIf I comment out the entire unless block, the plot happens just fine.  Otherwise the process hangs after 2 or 3 times through the `do ... until` loop.\n\nWithout an understanding of why that `sysread` voodoo is necessary, I am not sure how to raise a clearer issue or suggest a solution to the problem.\n"},"comment":{"url":"https://api.github.com/repos/drzowie/PDL-Graphics-Gnuplot/issues/comments/259821432","html_url":"https://github.com/drzowie/PDL-Graphics-Gnuplot/issues/57#issuecomment-259821432","issue_url":"https://api.github.com/repos/drzowie/PDL-Graphics-Gnuplot/issues/57","id":259821432,"user":{"login":"drzowie","id":1258294,"avatar_url":"https://avatars.githubusercontent.com/u/1258294?v=3","gravatar_id":"","url":"https://api.github.com/users/drzowie","html_url":"https://github.com/drzowie","followers_url":"https://api.github.com/users/drzowie/followers","following_url":"https://api.github.com/users/drzowie/following{/other_user}","gists_url":"https://api.github.com/users/drzowie/gists{/gist_id}","starred_url":"https://api.github.com/users/drzowie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drzowie/subscriptions","organizations_url":"https://api.github.com/users/drzowie/orgs","repos_url":"https://api.github.com/users/drzowie/repos","events_url":"https://api.github.com/users/drzowie/events{/privacy}","received_events_url":"https://api.github.com/users/drzowie/received_events","type":"User","site_admin":false},"created_at":"2016-11-10T22:05:38Z","updated_at":"2016-11-10T22:05:38Z","body":"That block is intended to scoop up characters written by Microsoft Windows to its end of the pipe.  Windows lacks input control signals and several other POSIX niceties, so we snarf up characters until we get either nothing or a '>' (presumably the end of the \"gnuplot>\" prompt).  It appears that instead your process is deadlocking.  It the loop buzzing?  If so, you could find out what character it is returning, and make that an exit condition.  If it's hanging, I'd welcome a fix."}}
{"actor":{"display_login":"drzowie"}}