drknstrmyknight
Posts: 4
Joined: Sun Mar 09, 2014 12:15 pm

motion-mmalcam dies

Sun Mar 09, 2014 12:25 pm

Fresh rasberian installation, motion-mmalcam will run properly for an hour or so, then crash firefox.
If I reconnect I get one still which will not refresh. If I refresh the browser - nothing. Can't connect on 8080 either.
I can see the process running and using about 20% CPU

drknstrmyknight
Posts: 4
Joined: Sun Mar 09, 2014 12:15 pm

Re: motion-mmalcam dies

Sun Mar 09, 2014 1:17 pm

In fact it's not dead - motion triggered an email and I was able to connect with the browser again.
Control was set to logalhost, so that made sense.
I set stream motion to on to see if that helps with the browser reconnecting when no motion has been detected for a long period of time.

drknstrmyknight
Posts: 4
Joined: Sun Mar 09, 2014 12:15 pm

Re: motion-mmalcam dies

Sun Mar 09, 2014 4:39 pm

Ran longer with those settings, but eventually crashed the browser again and would not reload.
Port 8081 is open on the host and it detects motion and sends email.

caporeira
Posts: 73
Joined: Sun Aug 25, 2013 5:58 pm

Re: motion-mmalcam dies

Sat Mar 15, 2014 10:29 am

Why my motion whas stopping ?

Code: Select all

pi@raspberrypi ~ $ ./motion -n
[-1242680480] [NTC] [ALL] conf_load: Processing thread 0 - config file /etc/motion.conf
[-1242680480] [NTC] [ALL] motion_startup: Motion mmaltest Started
[-1242680480] [NTC] [ALL] motion_startup: Logging to file (/home/pi/motion.log)
Segmentation fault
pi@raspberrypi ~ $
Log:

Code: Select all

[-1243450528] [NTC] [ALL] [Mar 14 17:45:48] motion_startup: Using log type (ALL) log level (WRN)
[1] [ALR] [VID] [Mar 14 17:45:48] mmalcam_start: MMAL Camera thread starting... for camera (vc.ril.camera) of 1024 x 576 at 2 fps
[1] [ALR] [VID] [Mar 14 17:45:48] mmalcam_start: MMAL Camera using video capture
[1] [ALR] [VID] [Mar 14 18:03:39] MMAL Camera cleanup
[0] [WRN] [ALL] [Mar 14 18:03:42] main: Restarting motion.
[0] [WRN] [ALL] [Mar 14 18:03:47] main: Motion restarted
[1] [ALR] [VID] [Mar 14 18:03:47] mmalcam_start: MMAL Camera thread starting... for camera (vc.ril.camera) of 1024 x 576 at 2 fps
[1] [ALR] [VID] [Mar 14 18:03:47] mmalcam_start: MMAL Camera using video capture
[0] [ERR] [ALL] [Mar 14 18:04:17] main: Thread 1 - Watchdog timeout, trying to do a graceful restart
[0] [ERR] [ALL] [Mar 14 18:05:17] main: Thread 1 - Watchdog timeout, did NOT restart graceful,killing it!
[0] [ALR] [VID] [Mar 14 18:05:17] MMAL Camera cleanup
[-1242528928] [NTC] [ALL] [Mar 14 19:08:43] motion_startup: Using log type (ALL) log level (WRN)
[1] [ALR] [VID] [Mar 14 19:08:43] mmalcam_start: MMAL Camera thread starting... for camera (vc.ril.camera) of 640 x 480 at 2 fps
[1] [ALR] [VID] [Mar 14 19:08:43] mmalcam_start: MMAL Camera using video capture
[0] [ERR] [STR] [Mar 14 19:15:59] read_client: motion-httpd First Read Error: 
[0] [ERR] [STR] [Mar 14 19:16:03] read_client: motion-httpd First Read Error: 
[0] [ERR] [STR] [Mar 14 19:16:06] read_client: motion-httpd First Read Error: 
[1] [ALR] [VID] [Mar 14 21:42:45] MMAL Camera cleanup
[0] [WRN] [ALL] [Mar 14 21:42:48] main: Restarting motion.
[0] [WRN] [ALL] [Mar 14 21:42:53] main: Motion restarted
[1] [ALR] [VID] [Mar 14 21:42:53] mmalcam_start: MMAL Camera thread starting... for camera (vc.ril.camera) of 640 x 480 at 2 fps
[1] [ALR] [VID] [Mar 14 21:42:53] mmalcam_start: MMAL Camera using video capture
[0] [ERR] [ALL] [Mar 14 21:43:38] main: Thread 1 - Watchdog timeout, trying to do a graceful restart
[0] [ERR] [ALL] [Mar 14 21:44:38] main: Thread 1 - Watchdog timeout, did NOT restart graceful,killing it!
[0] [ALR] [VID] [Mar 14 21:44:39] MMAL Camera cleanup
[-1242680480] [NTC] [ALL] [Mar 15 10:10:30] motion_startup: Using log type (ALL) log level (WRN)
[1] [ALR] [VID] [Mar 15 10:10:30] mmalcam_start: MMAL Camera thread starting... for camera (vc.ril.camera) of 640 x 480 at 2 fps
[1] [ALR] [VID] [Mar 15 10:10:30] mmalcam_start: MMAL Camera using video capture
[0] [ERR] [ALL] [Mar 15 10:20:17] main: Thread 1 - Watchdog timeout, trying to do a graceful restart
[0] [ERR] [ALL] [Mar 15 10:21:20] main: Thread 1 - Watchdog timeout, did NOT restart graceful,killing it!
[0] [ALR] [VID] [Mar 15 10:21:20] MMAL Camera cleanup
[1] [ALR] [VID] [Mar 15 10:21:21] mmalcam_start: MMAL Camera thread starting... for camera (vc.ril.camera) of 640 x 480 at 2 fps
[1] [ALR] [VID] [Mar 15 10:21:21] mmalcam_start: MMAL Camera using video capture
[0] [ERR] [ALL] [Mar 15 10:21:52] main: Thread 1 - Watchdog timeout, trying to do a graceful restart
[0] [ERR] [ALL] [Mar 15 10:22:55] main: Thread 1 - Watchdog timeout, did NOT restart graceful,killing it!
[0] [ALR] [VID] [Mar 15 10:22:55] MMAL Camera cleanup
[-1243253920] [NTC] [ALL] [Mar 15 10:32:58] motion_startup: Using log type (ALL) log level (WRN)
[1] [ALR] [VID] [Mar 15 10:32:58] mmalcam_start: MMAL Camera thread starting... for camera (vc.ril.camera) of 640 x 480 at 2 fps
[1] [ALR] [VID] [Mar 15 10:32:58] mmalcam_start: MMAL Camera using video capture

drknstrmyknight
Posts: 4
Joined: Sun Mar 09, 2014 12:15 pm

Re: motion-mmalcam dies

Sun Mar 16, 2014 3:21 am

No indication in the logs, but all is well after that change.

Return to “Camera board”