silvanmelchior / RPi_Cam_Web_Interface

A web interface for the RPi Cam
MIT License
1.54k stars 493 forks source link

BUG? Pi3 + Internal Motion v6.2.14 + Noir V2.1 camera + Maskfile == motion crash #298

Open tman32768 opened 8 years ago

tman32768 commented 8 years ago

Issue on Pi3 + Noir v2.1 + internal motion + mask + v6.2.10 to v6.2.14

I'm suspecting a bug somewhere that causes internal motion to stop responding after a couple of days operation. Motion process "starts" but doesn't respond to new motion events. No meaningful info in log files. Reboot does not correct problem. %c and %f locked in at 0005 and 0000 values. Motion Vector Preview shows motion events but internal motion software completely unresponsive and fails to record events. Manual video and still frame recording works.

Only way to get internal motion working again is to uninstall then re-install.

Here is my most recent log file: {2016/08/10 08:45:44} Change: video_width = 1920 {2016/08/10 08:45:44} Change: video_height = 1080 {2016/08/10 08:45:44} Change: video_fps = 25 {2016/08/10 08:45:44} Change: MP4Box_fps = 25 {2016/08/10 08:45:44} Change: image_width = 3280 {2016/08/10 08:45:44} Change: image_height = 2464 {2016/08/10 08:45:45} recommended video buffers 1 {2016/08/10 08:45:45} h264 buffers set to recommended 1 {2016/08/10 08:45:51} Change: motion_external = 0 {2016/08/10 08:46:03} Change: motion_image = /var/www/mask.pgm {2016/08/10 08:46:16} Change: motion_threshold = 210 {2016/08/10 08:46:20} Change: motion_threshold = 200 {2016/08/10 08:46:24} Internal motion detection started {2016/08/10 08:46:24} recommended video buffers 1 {2016/08/10 08:46:24} h264 buffers set to recommended 1 {2016/08/10 08:46:24} Set up internal detect width=121 height=68 {2016/08/10 08:46:24} Motion mask /var/www/mask.pgm loaded [2016/08/10 09:43:35] Scheduled management tasks. Next at 1470840215 [2016/08/10 10:43:36] Scheduled management tasks. Next at 1470843816 {2016/08/10 11:31:27} Change: vector_preview = 1 {2016/08/10 11:31:27} recommended video buffers 1 {2016/08/10 11:31:27} h264 buffers set to recommended 1 {2016/08/10 11:31:27} Set up internal detect width=121 height=68 {2016/08/10 11:31:27} Motion mask /var/www/mask.pgm loaded {2016/08/10 11:32:16} Change: vector_preview = 0 {2016/08/10 11:32:17} recommended video buffers 1 {2016/08/10 11:32:17} h264 buffers set to recommended 1 {2016/08/10 11:32:17} Set up internal detect width=121 height=68 {2016/08/10 11:32:17} Motion mask /var/www/mask.pgm loaded {2016/08/10 11:35:06} Internal motion detection stopped {2016/08/10 11:35:07} recommended video buffers 1 {2016/08/10 11:35:07} h264 buffers set to recommended 1 {2016/08/10 11:35:07} Set up internal detect width=121 height=68 {2016/08/10 11:35:07} Motion mask /var/www/mask.pgm loaded {2016/08/10 11:35:09} Internal motion detection started {2016/08/10 11:35:09} recommended video buffers 1 {2016/08/10 11:35:09} h264 buffers set to recommended 1 {2016/08/10 11:35:09} Set up internal detect width=121 height=68 {2016/08/10 11:35:09} Motion mask /var/www/mask.pgm loaded

Please let me know the next steps to figuring this one out.

roberttidey commented 8 years ago

You should be able to recover without a re-install. The settings changes made by you are stored in uconfig in the web install folder so you can either delete or edit this to get it going again. Use the ./stop.sh and .start.sh in the RPi_Cam folder to stop and start the system. If it is the mask that seems to be causing a problem then just remove the setting referring to that first.

I use masks all the time without issues so I suspect it is something specific to your mask file. Can you zip up your uconfig and mask.pgm and paste them here so I can check them out?