{"action":"created","issue":{"url":"https://api.github.com/repos/komby/RFShowControl/issues/32","labels_url":"https://api.github.com/repos/komby/RFShowControl/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/komby/RFShowControl/issues/32/comments","events_url":"https://api.github.com/repos/komby/RFShowControl/issues/32/events","html_url":"https://github.com/komby/RFShowControl/issues/32","id":117257135,"number":32,"title":"Renard Out sketch overwrites data array","user":{"login":"dkulp","id":91569,"avatar_url":"https://avatars.githubusercontent.com/u/91569?v=3","gravatar_id":"","url":"https://api.github.com/users/dkulp","html_url":"https://github.com/dkulp","followers_url":"https://api.github.com/users/dkulp/followers","following_url":"https://api.github.com/users/dkulp/following{/other_user}","gists_url":"https://api.github.com/users/dkulp/gists{/gist_id}","starred_url":"https://api.github.com/users/dkulp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkulp/subscriptions","organizations_url":"https://api.github.com/users/dkulp/orgs","repos_url":"https://api.github.com/users/dkulp/repos","events_url":"https://api.github.com/users/dkulp/events{/privacy}","received_events_url":"https://api.github.com/users/dkulp/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-11-17T01:09:04Z","updated_at":"2015-11-17T15:32:03Z","closed_at":"2015-11-17T07:43:02Z","body":"\r\nThe code in the Rendard Out sketch looks like:\r\n\r\n```\r\n  for (int i = 0; i < strip.GetElementCount(); i++)\r\n  {\r\n    strip.SetElementColor(i, strip.Color(0, 0, 0));\r\n  }\r\n```\r\nThe GetElementCount is returning \"64\" as I have HARDCODED_NUM_CHANNELS set to 64.   However, the SetElementColor is assuming 3 bytes per element and is then overwriting the data array and then causing memory corruption.   For me, this is resulting in a continuous reboot.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/komby/RFShowControl/issues/comments/157404402","html_url":"https://github.com/komby/RFShowControl/issues/32#issuecomment-157404402","issue_url":"https://api.github.com/repos/komby/RFShowControl/issues/32","id":157404402,"user":{"login":"dkulp","id":91569,"avatar_url":"https://avatars.githubusercontent.com/u/91569?v=3","gravatar_id":"","url":"https://api.github.com/users/dkulp","html_url":"https://github.com/dkulp","followers_url":"https://api.github.com/users/dkulp/followers","following_url":"https://api.github.com/users/dkulp/following{/other_user}","gists_url":"https://api.github.com/users/dkulp/gists{/gist_id}","starred_url":"https://api.github.com/users/dkulp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkulp/subscriptions","organizations_url":"https://api.github.com/users/dkulp/orgs","repos_url":"https://api.github.com/users/dkulp/repos","events_url":"https://api.github.com/users/dkulp/events{/privacy}","received_events_url":"https://api.github.com/users/dkulp/received_events","type":"User","site_admin":false},"created_at":"2015-11-17T15:32:03Z","updated_at":"2015-11-17T15:32:03Z","body":"Did some more testing... I grabbed the latest code from github and I'm still getting a complete hang in the setup() method in the call to GetControllerDataBase.    It looks like 1.6.6 on the Mac isn't initializing stdout correctly.   I ended up doing:\r\n'''\r\n\r\n#ifndef DEBUG\r\nint null_out_function(char c, FILE *stream) {return 0;}\r\n#endif\r\nvoid setup(void)\r\n{\r\n#ifndef DEBUG\r\nfdevopen( &null_out_function, 0 );\r\n#endif\r\n'''\r\nto make sure stdout is sent nowhere.   Once I did that, things look OK."}}