kerberos-io / kios

A Linux OS created by Buildroot which runs Kerberos Open Source out-of-the-box.
https://www.kerberos.io
Other
195 stars 37 forks source link

Raspicamera shows black image after couple of days #5

Closed cedricve closed 8 years ago

cedricve commented 8 years ago

We've detected a problem with the Raspberry Pi camera. The issue is that the Raspberry Pi camera start showing black images after a couple of days; it occurs random. After investigation it looks like multiple Kerberos.io instances are initiated when using KiOS. The script which checks if Kerberos.io is running or not isn't working properly.

Due to this behavior the camera is locked and not showing any images anymore. The check script should be updated.

cedricve commented 8 years ago

A fix has been applied, I'll first test this myself and merge it once I verify that it resolved the issue.

https://github.com/kerberos-io/kios/commit/7b8d58db00a11ba6d9b418a3cca70030b28e9e5a

cedricve commented 8 years ago

Patch didn't fixed, issue is still there.

cedricve commented 8 years ago

We add a new method for checking if the machinery is still running. c4d9c7c98e59c7129fe9faa9edf243c3d06c685e

We also detected the root cause of the machinery crashing. When a user connects kerberos.io with the cloud application, curl is used to transfer images, however it looks like curl is crashing due to timeouts at random intervals. By setting the curl option CURLOPT_NOSIGNAL, it will not longer send a segfault. kerberos-io/machinery@fd14e49a43eb382d94922b83df74f67a75cac89e

http://stackoverflow.com/questions/21887264/why-libcurl-needs-curlopt-nosignal-option-and-what-are-side-effects-when-it-is