Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SIGKILL after 6hrs #95

Closed
fmuntean opened this issue Sep 30, 2019 · 3 comments
Closed

SIGKILL after 6hrs #95

fmuntean opened this issue Sep 30, 2019 · 3 comments

Comments

@fmuntean
Copy link

I am running the sample on I2C and so far it seems that the board stop working every 6 hrs:
INFO: 21653: vertical acceleration: -0.03g
INFO: 21653: Temperature: 29.12 C 84.42 F
INFO: 21654: vertical acceleration: -0.03g
INFO: 21654: Temperature: 29.21 C 84.58 F
INFO: 21655: vertical acceleration: -0.03g
INFO: 21655: Temperature: 29.14 C 84.45 F

Child terminated with signal = 0x9 (SIGKILL)

Ran the program twice and every single time after 21665 seconds (6:00hrs) I get the error above.

Can somebody please explain the behaviour?

I thought that the board supposed to keep running the app no matter what. and if the app is unresponsive was supposed to restart it.

@richardtaylorrt
Copy link
Contributor

Thanks for raising this. We will investigate further and respond.

@richardtaylorrt
Copy link
Contributor

Hi - unfortunately we couldn't repro this. Are you running the published sample? (I see there is "Temperature" output, which I don't think is part of the published sample.) If you've made changes, please could you share these with us, so we can better advise.

Also, yes, in production, the OS would restart the app if it crashes. However, this typically doesn't happen if you are running under a debugger.

@fmuntean
Copy link
Author

fmuntean commented Oct 4, 2019

I was running the sample and added the temperature read from the sensor. I was also sending this data over the network to an MQTT server.
It was strange that SIGKILL happened at the exact same iteration.
I changed the iteration from int to unsigned int and so far I got no error but in the mean time I also moved to get the sensor data only once a minute too.

If you can't reproduce on your side then must be related to my project only.
If happens again I will reopen this issue.

@fmuntean fmuntean closed this as completed Oct 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants