Pi Zero W freezes
Thanks for a great program! I am trying it out as wildlife cam but ran into issues with the program freezing.
Hardware: Pi Zero W
OS: Stretch 2018-10-09 and Stretch 2018-11-30
GPU exchange 256mb
Pikrellcam version - latest as per post date.
Camera Picam 2 NoIR or Zero Picam by Pimoroni (based on Picam 1 I think)
mjpeg divider: 4
Bit rate: 3,5 milj.
Background: I have tried the above constellation with different boards, in both inside and outside evironments with both regular Pi-branded PSU, other 5v/2,1A PSUs and powerbanks. At first everything seems fine and runs for days on end, then it starts to freeze and has to be restarted by pulling the plug. This happens after anything between 2 minutes and 48 hours.
Typically the pi is not contactable by either the Web interface or SSH.
Sometimes I get to the login and then nothing happens, by then the pi is not contactable via SSH either.
On occasion it can be contacted via SSH and rebooted, even if the web interface is not working.
Also it sometimes happens that it starts up again and I can reach the web interface as usual.
At first I thought it was bas SD cards so I changed them into fresh ones and checked the old ones with dskckr - no sign degradation. They were pretty fresh to begin with. However, the freezing started again with the new SD cards.
So I thought it may be some power issue and tried many different kinds of PSUs, including PI-branded, and powerbanks. I also changed cables, used shorter ones etc. Still the problem persisted.
I also tried to minimize power consumtion by turning off LEDs and HDMI-socket etc.
I tried to check the logs (the ones reached by the Web interface) but there is nothing strange that I can see. They also seem to be started blank every time I restart.
Is there other logs that can be found somewhere in the Pikrelcam files?
Finally I noticed that sometimes when Pikrellcam has frozen there is a full h264 file that has not been converted
, sometimes the Web interface actually shows a thumbnail of video with 0 mb that corresponds to time when a H264 file has been created. However, this does not always happen, i.e. the program froze when there was no video being recorded.
SO, the questions:
- Are there other similar experiences out there? Solutions?
- Any guess if this is a Power-, CPU-, or a program-problem?
- Are there other log-files, apart from those on the web interface, that I have missed?
- Are my settings unrealistically high for Pi Zero?
I will continue to try different tests.
I recently found a post on camera issues viewtopic.php?t=212777
Proposed to change the config.txt and add:
Apparently this managed to make it stable. I have no idea what this actually does but I will try it today.
A few pages back I found someone that had tried to downgrade to (Jessie??) 20160523 (kernel 4.4.11) but this was almost 2 years ago. If nothing else works I will try this as well.
Thankful for all help and ideas I can get.
Tried the over_voltage & force_turbo as described above.
I have run 2 pi-s with setup like above for 4 days straight with no freezing or other trouble.
First pi is running with regular 2,5 A PSU
Second pi is running on various powerbanks so I need to shutdown and change powerbank every 24-48 hours. Last change was with a 16Ah bank its now running on its 3 day.
Changed the config.txt to only over_voltage=4 (no other overclocking) and the pi has been running for 3 weeks straight.
Had other issues with freezing but that appeared to be related to the portnumber I was using and my old router.