{"action":"created","issue":{"url":"https://api.github.com/repos/ev3dev/ev3dev/issues/243","labels_url":"https://api.github.com/repos/ev3dev/ev3dev/issues/243/labels{/name}","comments_url":"https://api.github.com/repos/ev3dev/ev3dev/issues/243/comments","events_url":"https://api.github.com/repos/ev3dev/ev3dev/issues/243/events","html_url":"https://github.com/ev3dev/ev3dev/issues/243","id":53613838,"number":243,"title":"Hard freeze/hang issue with I2C devices","user":{"login":"dsharlet","id":2181376,"avatar_url":"https://avatars.githubusercontent.com/u/2181376?v=3","gravatar_id":"","url":"https://api.github.com/users/dsharlet","html_url":"https://github.com/dsharlet","followers_url":"https://api.github.com/users/dsharlet/followers","following_url":"https://api.github.com/users/dsharlet/following{/other_user}","gists_url":"https://api.github.com/users/dsharlet/gists{/gist_id}","starred_url":"https://api.github.com/users/dsharlet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsharlet/subscriptions","organizations_url":"https://api.github.com/users/dsharlet/orgs","repos_url":"https://api.github.com/users/dsharlet/repos","events_url":"https://api.github.com/users/dsharlet/events{/privacy}","received_events_url":"https://api.github.com/users/dsharlet/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ev3dev/ev3dev/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/ev3dev/ev3dev/labels/fix%20committed","name":"fix committed","color":"eb6420"},{"url":"https://api.github.com/repos/ev3dev/ev3dev/labels/kernel","name":"kernel","color":"009800"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":29,"created_at":"2015-01-07T09:37:37Z","updated_at":"2015-02-22T22:54:30Z","closed_at":"2015-02-22T22:54:30Z","body":"I'm trying to get NXTcam to work in C++ on ev3dev. I've basically got it working (it's giving me tracking data), but I have a really annoying problem: after closing my program using NXTcam, there is a sporadic issue where the brick freezes hard, such that I have to remove the battery to reboot it. No SSH/user interface responds to any kind of input.\r\n\r\nAn interesting thing I found is that this commit:\r\n\r\nhttps://github.com/dsharlet/DeltaRobot/commit/c842ef9c86aeae7781d57df6fc605d4984b5cb62\r\n\r\nSeemed to significantly reduce the probability of this occurring, but it still does happen. I can't say my sample size is very large (basically an evening of having to remove the battery 20-30 times) so it could just be random chance.\r\n\r\nI've also been working on programming another I2C device, one based on the 8574 serial IO expander. I haven't seen any similar issues there, though I'm using a slightly different API to talk to it (still using open/ioctl, but using the I2C_SMBUS commands instead of the I2C_RDWR command, I wasn't able to get NXTcam to work with the former so I switched to the latter).\r\n\r\nI just ran a full apt-get update/upgrade and I still see the same behavior.\r\n\r\nI have two motivations for the issue: \r\n\r\n- Reporting this problem regarding hard freezes/hangs. This seems like a serious bug. I really don't think I'm doing anything crazy enough to justify this as working behavior.\r\n- Find out if anyone else has built a driver/code to support NXTcam in ev3dev?"},"comment":{"url":"https://api.github.com/repos/ev3dev/ev3dev/issues/comments/75469053","html_url":"https://github.com/ev3dev/ev3dev/issues/243#issuecomment-75469053","issue_url":"https://api.github.com/repos/ev3dev/ev3dev/issues/243","id":75469053,"user":{"login":"dlech","id":963645,"avatar_url":"https://avatars.githubusercontent.com/u/963645?v=3","gravatar_id":"","url":"https://api.github.com/users/dlech","html_url":"https://github.com/dlech","followers_url":"https://api.github.com/users/dlech/followers","following_url":"https://api.github.com/users/dlech/following{/other_user}","gists_url":"https://api.github.com/users/dlech/gists{/gist_id}","starred_url":"https://api.github.com/users/dlech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlech/subscriptions","organizations_url":"https://api.github.com/users/dlech/orgs","repos_url":"https://api.github.com/users/dlech/repos","events_url":"https://api.github.com/users/dlech/events{/privacy}","received_events_url":"https://api.github.com/users/dlech/received_events","type":"User","site_admin":false},"created_at":"2015-02-22T22:54:30Z","updated_at":"2015-02-22T22:54:30Z","body":"Fix has been release in [v3.16.7-ckt6-ev3dev1](http://www.ev3dev.org/news/2015/02/22/Kernel-Release-v3.16.7-ckt6-ev3dev1/)."}}