-
Notifications
You must be signed in to change notification settings - Fork 8
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
raspi-cam-srv seems to be frozen sometimes #28
Comments
Hi, Just one hint if you are using Pi Zero W or Pi Zero 2 W: Therefore, I returned to Bullseye on the Pi Zero systems. This works fine and is stable with raspiCamSrv, also in the long term tests. |
With V2.10.2, the Info screen includes all necessary information. |
also the photo logfile |
Eventually the raspi-cam-srv needs more delay to be launch after powering on the Raspberry pi 5 ? |
The calender shows the number of events and not the number of photos. Depending on your settings, there may be multiple photos per event. |
Looking at your log file, I saw that you are using the Background Subtraction algorithm. I have just started a long term test using your parameters, to see whether I get the same issues as you got. However as you can see from the performance study on page Triggered Capture of Videos and Photos, Background Subtraction has a higher CPU load although it is far from being critical. Probably, you could also see if you have similar issues when using the 'Mean Square Diff' algo. |
I do not think so. Also, if raspiCamServ hangs and you cannot get control, it is normally not necessary to reboot the Pi. |
yes because the detection is very fine, better than the 'Mean Square Diff' algo
going back to the 'Mean Square Diff' algo and there was no issue , raspi-cam-srv doing well again. |
this helped to get start with default parameter i guess but not resolve the issue
this help to not have the issue but than the trigger start must be manual
this was clearing all my configuration, I had to set all parameters again
live stream process stop by various action like submit or Save configuration and so on.. Background Subtraction algorithm seems causing the issue |
Could you please report one specific and reproducible action after which the livestream stops when motion capture with Background Subtraction is active. I tried everything, I could imagin (Taking photo, raw photo, video, photo series. Also changing all kinds of trigger parameters) ... and the live stream has never stopped. So, I would really be interested to see how you get the live stream to stop so that I can implement a more robust protection. Thanks |
Hi, Probably the CPU is overload with calculation on start (Power on first time) and cause the issue. Hope you can replicate this ! Thanks for your help. |
I tested more and issue is still present :( |
If it is related to automatic start, it could be that there is an uissue with the saved configuration. I recommend trying to use Store Configuration in the Settings screen and then try a reboot. |
Also, the live stream thread will normally not disappear without a trace. Alternatively, you could activate logging to a log file (See Logging) A suitable configuration for your case could be:
If no errors can be seen there, you could use DEBUG logging for camera_pi:
If you cannot interpret the log file, you can send it to me. |
error after powering on with automatic start with server, and using Background Subtraction algorithm ia@raspberrypia:~ $ sudo journalctl -e |
loose the live view Sep 13 13:49:32 raspberrypia flask[946]: [2024-09-13 13:49:32,080] ERROR in motionDetector: Exception in _motionThread: SQLite objects created in a thread can only be used in that same thread. The object was created in thread id 14073312> Triggered capture stopped with error: |
Hi, unfortunately, I cannot really learn much from these logs since they do not cover a time range from the start of the Flask server to the time when the error occurred. Also, I have tried to reproduce this, but whatever I did, there was no error and the motion capture process with background subtraction continued successfully after a restart of the Raspberry Pi. It would help if you could give me
For a complete log, you should
|
automatic start with server, and using Background Subtraction algorithm At 19H07 I delete the log file and power off hardware Rpi5 at 19H11 I power on hardware Rpi5 and the clock take time to get right you can see in the log that there is a jump beetween 19H08 and 19H11 seems this cause the problem at 19H12 I login on raspi-cam-srv and click on Trigger/Control/ Stop button 3 or 4 times but no success at 19H15 I Reboot the Rpi5 at 19H17 I login on raspi-cam-srv and click on Trigger/Control/ Stop button and this was OK This test was done using little change in software raspiCamSrv V2.10.2.test see there https://github.com/hinkel/raspi-cam-srv/commits/main/ |
Hi,
Sometimes the program seems to be frozen , no record of photo and is not possible to get out from recording modus with the stop button from Trigger Control Panel , the only way is to reboot the Raspberry pi5 and hope it will work again.
Thanks for any help.
The text was updated successfully, but these errors were encountered: