{"action":"created","issue":{"url":"https://api.github.com/repos/cyoung/stratux/issues/174","labels_url":"https://api.github.com/repos/cyoung/stratux/issues/174/labels{/name}","comments_url":"https://api.github.com/repos/cyoung/stratux/issues/174/comments","events_url":"https://api.github.com/repos/cyoung/stratux/issues/174/events","html_url":"https://github.com/cyoung/stratux/issues/174","id":124483196,"number":174,"title":"RTL error messages when no UAT traffic ? - \"failed with -4\": also crash scenario","user":{"login":"bradanlane","id":14001599,"avatar_url":"https://avatars.githubusercontent.com/u/14001599?v=3","gravatar_id":"","url":"https://api.github.com/users/bradanlane","html_url":"https://github.com/bradanlane","followers_url":"https://api.github.com/users/bradanlane/followers","following_url":"https://api.github.com/users/bradanlane/following{/other_user}","gists_url":"https://api.github.com/users/bradanlane/gists{/gist_id}","starred_url":"https://api.github.com/users/bradanlane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradanlane/subscriptions","organizations_url":"https://api.github.com/users/bradanlane/orgs","repos_url":"https://api.github.com/users/bradanlane/repos","events_url":"https://api.github.com/users/bradanlane/events{/privacy}","received_events_url":"https://api.github.com/users/bradanlane/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":56,"created_at":"2015-12-31T16:12:57Z","updated_at":"2016-01-03T20:15:45Z","closed_at":null,"body":"Are the following messages \"normal\" with the new power savings mode (when not receiving UAT) ?\r\n\r\nThe timestamped lines make sense but all of the \"failed with -4\" are worrisome.\r\n````\r\n2015/12/31 15:58:07  - GPS vertical velocity: 0.00 ft/sec; GPS vertical accuracy: 0 m\r\n2015/12/31 15:58:07 Pausing UAT listening for 50 seconds - none received.\r\n2015/12/31 15:58:07 Entered UAT shutdown() ...\r\n2015/12/31 15:58:07 UAT shutdown(): calling uat_wg.Wait() ...\r\n2015/12/31 15:58:07 UAT read(): shutdown msg received...\r\n2015/12/31 15:58:07 UAT shutdown(): uat_wg.Wait() returned...\r\n2015/12/31 15:58:07 UAT shutdown(): closing device ...\r\nrtlsdr_demod_write_reg failed with -4\r\nrtlsdr_demod_read_reg failed with -4\r\nr82xx_write: i2c wr failed=-4 reg=06 len=1\r\nrtlsdr_demod_write_reg failed with -4\r\nrtlsdr_demod_read_reg failed with -4\r\nrtlsdr_write_reg failed with -4\r\n````"},"comment":{"url":"https://api.github.com/repos/cyoung/stratux/issues/comments/168537558","html_url":"https://github.com/cyoung/stratux/issues/174#issuecomment-168537558","issue_url":"https://api.github.com/repos/cyoung/stratux/issues/174","id":168537558,"user":{"login":"bradanlane","id":14001599,"avatar_url":"https://avatars.githubusercontent.com/u/14001599?v=3","gravatar_id":"","url":"https://api.github.com/users/bradanlane","html_url":"https://github.com/bradanlane","followers_url":"https://api.github.com/users/bradanlane/followers","following_url":"https://api.github.com/users/bradanlane/following{/other_user}","gists_url":"https://api.github.com/users/bradanlane/gists{/gist_id}","starred_url":"https://api.github.com/users/bradanlane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradanlane/subscriptions","organizations_url":"https://api.github.com/users/bradanlane/orgs","repos_url":"https://api.github.com/users/bradanlane/repos","events_url":"https://api.github.com/users/bradanlane/events{/privacy}","received_events_url":"https://api.github.com/users/bradanlane/received_events","type":"User","site_admin":false},"created_at":"2016-01-03T20:15:45Z","updated_at":"2016-01-03T20:15:45Z","body":"@jpoirier - do you know of any limitations related to concurrent code execution?\r\n\r\nIs it possible one GO process has called into rtlsdr while another GO process is already executing inside rtlsdr?\r\n\r\nSince we have multiple GO processes running concurrently - including the sdrWatcher and syncRead - we may be \"thread unsafe\"."}}