brutella / hkcam

Open-Source HomeKit Surveillance Camera
https://hochgatterer.me/hkcam/
Apache License 2.0
925 stars 141 forks source link

Kernel Panic Issue #27

Closed pabclsn closed 2 years ago

pabclsn commented 5 years ago

I got some kernel panic after a fresh install of your image or on a classic image. After hours I found that reducing the clock speed to 950 in the config.txt solved the problem. Just to let you know. Amazing work thanks for everything !! 👍

brutella commented 5 years ago

Interesting. Do you know the error message of the kernel panic? Curious if this is actually related to hkcam.

pabclsn commented 5 years ago

I don't think it's related to hkcam, trying to debugging my problem I found this, https://github.com/raspberrypi/linux/issues/2555. I have the raspberry pi zero w whith a H dot near camera connector. And then this video https://youtu.be/zp1Eq_pY0Rw, conclusion lowering the clock speed did the trick. I don't have the kernel panic message anymore sorry ..

tobsen commented 5 years ago

I also have a H• on my Zero and it only delivered about seconds of streaming video. After setting it to 950 it is running 12h without problems. I didn't check the logs, just tried it.

brutella commented 5 years ago

How many memory do you have reserved for the GPU?

You can check under sudo raspi-config → Advanced Options → Memory Split

pabclsn commented 5 years ago

128 MB for me ;)

brutella commented 5 years ago

Do you see any error messages in /var/log/hkcam/current before the kernel panic happens?

pabclsn commented 5 years ago

Nothing really for me , I don't think it's related to HKCam, the pi is not crashing it's just losing wifi, few seconds after kernel panic.

tobsen commented 5 years ago

Mine is also 128 MB and no sign of kernel panic.

La-te commented 5 years ago

I don't think it's related to hkcam, trying to debugging my problem I found this, raspberrypi/linux#2555. I have the raspberry pi zero w whith a H dot near camera connector. And then this video https://youtu.be/zp1Eq_pY0Rw, conclusion lowering the clock speed did the trick. I don't have the kernel panic message anymore sorry ..

I have that H dot version as well and the device was extremely unstable. hkcam live crashed pretty much always. I then found this one https://www.raspberrypi.org/forums/viewtopic.php?f=43&t=212777 and adjusted the voltage only. Seems to run nicely now.

tobsen commented 5 years ago

Have you set it to over_voltage=6?

La-te commented 5 years ago

Have you set it to over_voltage=6?

I have set it to 2. It should give the maximum value of 1.4 V as explained in this post https://www.raspberrypi.org/forums/viewtopic.php?f=43&t=212777#p1359013

Anyway, this seems to be a common issue with that specific version of Raspberry Pi Zero W together with official camera and video streaming. Hence, I would like to see some official statement from The Raspberry Pi Foundation themselves.

brutella commented 2 years ago

Closed due to inactivity.