silvanmelchior / RPi_Cam_Web_Interface

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

Motion detection and web UI stuck #195

Open a-l-e-x-d-s-9 opened 9 years ago

a-l-e-x-d-s-9 commented 9 years ago

Motion detection suddenly stop working and web UI stuck:

screenshot from 2015-09-11 11 58 04

Motion detection settings:

rpi12_setting when stuck_covered

It's already happened twice on this RPi in the last 12 hours.

The end of the Log:

[2015/09/11 11:32:27] Start capture requested from Pipe [2015/09/11 11:32:27] Send ca 1 {2015/09/11 11:32:27} Capturing started [2015/09/11 11:32:31] Stop capture requested [2015/09/11 11:32:31] Send ca 0 {2015/09/11 11:32:31} Capturing stopped {2015/09/11 11:32:31} Add /var/www/media/vi_1350_20150911_113227.mp4 to Box Queue at pos 28 {2015/09/11 11:32:31} Start boxing /var/www/media/vi_1350_20150911_113227.mp4.h264 to /var/www/media/vi_1350_20150911_113227.mp4 Queue pos 28 {2015/09/11 11:32:32} Finished boxing /var/www/media/vi_1350_20150911_113227.mp4 from Box Queue at pos 28 [2015/09/11 11:32:38] Start capture requested from Pipe [2015/09/11 11:32:38] Send ca 1 {2015/09/11 11:32:38} Capturing started [2015/09/11 11:33:05] Stop capture requested [2015/09/11 11:33:05] Send ca 0 {2015/09/11 11:33:05} Capturing stopped {2015/09/11 11:33:05} Add /var/www/media/vi_1351_20150911_113238.mp4 to Box Queue at pos 29 {2015/09/11 11:33:06} Start boxing /var/www/media/vi_1351_20150911_113238.mp4.h264 to /var/www/media/vi_1351_20150911_113238.mp4 Queue pos 29 [2015/09/11 11:33:07] Start capture requested from Pipe [2015/09/11 11:33:07] Send ca 1 {2015/09/11 11:33:16} Capturing started {2015/09/11 11:33:24} Finished boxing /var/www/media/vi_1351_20150911_113238.mp4 from Box Queue at pos 29 [2015/09/11 11:33:56] Stop capture requested [2015/09/11 11:33:56] Send ca 0

a-l-e-x-d-s-9 commented 9 years ago

Another log with the same problem:

[2015/09/11 16:02:06] Send ca 1 {2015/09/11 16:02:06} Capturing started [2015/09/11 16:02:10] Stop capture requested [2015/09/11 16:02:10] Send ca 0 {2015/09/11 16:02:10} Capturing stopped {2015/09/11 16:02:10} Add /var/www/media/vi_1496_20150911_160206.mp4 to Box Queue at pos 11 {2015/09/11 16:02:11} Start boxing /var/www/media/vi_1496_20150911_160206.mp4.h264 to /var/www/media/vi_1496_20150911_160206.mp4 Queue pos 11 {2015/09/11 16:02:12} Finished boxing /var/www/media/vi_1496_20150911_160206.mp4 from Box Queue at pos 11 [2015/09/11 16:02:27] Start capture requested from Pipe [2015/09/11 16:02:27] Send ca 1 {2015/09/11 16:02:28} Capturing started [2015/09/11 16:02:31] Stop capture requested [2015/09/11 16:02:31] Send ca 0 {2015/09/11 16:02:31} Capturing stopped {2015/09/11 16:02:31} Add /var/www/media/vi_1497_20150911_160228.mp4 to Box Queue at pos 12 {2015/09/11 16:02:31} Start boxing /var/www/media/vi_1497_20150911_160228.mp4.h264 to /var/www/media/vi_1497_20150911_160228.mp4 Queue pos 12 {2015/09/11 16:02:32} Finished boxing /var/www/media/vi_1497_20150911_160228.mp4 from Box Queue at pos 12 [2015/09/11 16:02:49] Start capture requested from Pipe [2015/09/11 16:02:49] Send ca 1 {2015/09/11 16:02:49} Capturing started [2015/09/11 16:03:01] Stop capture requested [2015/09/11 16:03:02] Send ca 0 {2015/09/11 16:03:02} Capturing stopped {2015/09/11 16:03:02} Add /var/www/media/vi_1498_20150911_160249.mp4 to Box Queue at pos 13 {2015/09/11 16:03:03} Start boxing /var/www/media/vi_1498_20150911_160249.mp4.h264 to /var/www/media/vi_1498_20150911_160249.mp4 Queue pos 13 {2015/09/11 16:03:12} Finished boxing /var/www/media/vi_1498_20150911_160249.mp4 from Box Queue at pos 13 [2015/09/11 16:03:37] Start capture requested from Pipe [2015/09/11 16:03:37] Send ca 1 {2015/09/11 16:03:37} Capturing started [2015/09/11 16:03:54] Stop capture requested [2015/09/11 16:03:54] Send ca 0 {2015/09/11 16:03:54} Capturing stopped {2015/09/11 16:03:54} Add /var/www/media/vi_1499_20150911_160337.mp4 to Box Queue at pos 14 {2015/09/11 16:03:54} Start boxing /var/www/media/vi_1499_20150911_160337.mp4.h264 to /var/www/media/vi_1499_20150911_160337.mp4 Queue pos 14 {2015/09/11 16:03:58} Finished boxing /var/www/media/vi_1499_20150911_160337.mp4 from Box Queue at pos 14 [2015/09/11 16:04:22] Start capture requested from Pipe [2015/09/11 16:04:22] Send ca 1 {2015/09/11 16:04:23} Capturing started [2015/09/11 16:04:46] Stop capture requested [2015/09/11 16:04:46] Send ca 0 {2015/09/11 16:04:46} Capturing stopped {2015/09/11 16:04:46} Add /var/www/media/vi_1500_20150911_160423.mp4 to Box Queue at pos 15 {2015/09/11 16:04:47} Start boxing /var/www/media/vi_1500_20150911_160423.mp4.h264 to /var/www/media/vi_1500_20150911_160423.mp4 Queue pos 15 {2015/09/11 16:04:51} Finished boxing /var/www/media/vi_1500_20150911_160423.mp4 from Box Queue at pos 15 [2015/09/11 16:11:01] Start capture requested from Pipe [2015/09/11 16:11:01] Send ca 1 {2015/09/11 16:11:01} Capturing started [2015/09/11 16:11:08] Stop capture requested [2015/09/11 16:11:08] Send ca 0 {2015/09/11 16:11:08} Capturing stopped {2015/09/11 16:11:08} Add /var/www/media/vi_1501_20150911_161101.mp4 to Box Queue at pos 16 {2015/09/11 16:11:09} Start boxing /var/www/media/vi_1501_20150911_161101.mp4.h264 to /var/www/media/vi_1501_20150911_161101.mp4 Queue pos 16 {2015/09/11 16:11:10} Finished boxing /var/www/media/vi_1501_20150911_161101.mp4 from Box Queue at pos 16 [2015/09/11 16:11:22] Start capture requested from Pipe [2015/09/11 16:11:22] Send ca 1 {2015/09/11 16:11:22} Capturing started [2015/09/11 16:11:26] Stop capture requested [2015/09/11 16:11:26] Send ca 0 {2015/09/11 16:11:26} Capturing stopped {2015/09/11 16:11:26} Add /var/www/media/vi_1502_20150911_161122.mp4 to Box Queue at pos 17 {2015/09/11 16:11:26} Start boxing /var/www/media/vi_1502_20150911_161122.mp4.h264 to /var/www/media/vi_1502_20150911_161122.mp4 Queue pos 17 {2015/09/11 16:11:27} Finished boxing /var/www/media/vi_1502_20150911_161122.mp4 from Box Queue at pos 17 [2015/09/11 16:25:43] Scheduled management tasks. Next at 1441981543 [2015/09/11 16:28:45] Start capture requested from Pipe [2015/09/11 16:28:45] Send ca 1 {2015/09/11 16:28:45} Capturing started [2015/09/11 16:28:49] Stop capture requested [2015/09/11 16:28:49] Send ca 0 {2015/09/11 16:28:49} Capturing stopped {2015/09/11 16:28:49} Add /var/www/media/vi_1503_20150911_162845.mp4 to Box Queue at pos 18 {2015/09/11 16:28:49} Start boxing /var/www/media/vi_1503_20150911_162845.mp4.h264 to /var/www/media/vi_1503_20150911_162845.mp4 Queue pos 18 {2015/09/11 16:28:50} Finished boxing /var/www/media/vi_1503_20150911_162845.mp4 from Box Queue at pos 18 [2015/09/11 16:28:53] Start capture requested from Pipe [2015/09/11 16:28:53] Send ca 1 {2015/09/11 16:28:53} Capturing started [2015/09/11 16:28:57] Stop capture requested [2015/09/11 16:28:57] Send ca 0 {2015/09/11 16:28:57} Capturing stopped {2015/09/11 16:28:57} Add /var/www/media/vi_1504_20150911_162853.mp4 to Box Queue at pos 19 {2015/09/11 16:28:58} Start boxing /var/www/media/vi_1504_20150911_162853.mp4.h264 to /var/www/media/vi_1504_20150911_162853.mp4 Queue pos 19 {2015/09/11 16:28:59} Finished boxing /var/www/media/vi_1504_20150911_162853.mp4 from Box Queue at pos 19 [2015/09/11 16:29:09] Start capture requested from Pipe [2015/09/11 16:29:09] Send ca 1 {2015/09/11 16:29:09} Capturing started [2015/09/11 16:29:16] Stop capture requested [2015/09/11 16:29:16] Send ca 0 {2015/09/11 16:29:16} Capturing stopped {2015/09/11 16:29:16} Add /var/www/media/vi_1505_20150911_162909.mp4 to Box Queue at pos 20 {2015/09/11 16:29:16} Start boxing /var/www/media/vi_1505_20150911_162909.mp4.h264 to /var/www/media/vi_1505_20150911_162909.mp4 Queue pos 20 {2015/09/11 16:29:17} Finished boxing /var/www/media/vi_1505_20150911_162909.mp4 from Box Queue at pos 20 [2015/09/11 16:29:52] Start capture requested from Pipe [2015/09/11 16:29:52] Send ca 1 {2015/09/11 16:29:52} Capturing started [2015/09/11 16:30:36] Stop capture requested [2015/09/11 16:30:36] Send ca 0 {2015/09/11 16:30:36} Capturing stopped {2015/09/11 16:30:36} Add /var/www/media/vi_1506_20150911_162952.mp4 to Box Queue at pos 21 {2015/09/11 16:30:37} Start boxing /var/www/media/vi_1506_20150911_162952.mp4.h264 to /var/www/media/vi_1506_20150911_162952.mp4 Queue pos 21 [2015/09/11 16:30:43] Start capture requested from Pipe [2015/09/11 16:30:43] Send ca 1 {2015/09/11 16:30:43} Capturing started [2015/09/11 16:30:47] Stop capture requested [2015/09/11 16:30:52] Send ca 0 {2015/09/11 16:30:52} Capturing stopped {2015/09/11 16:30:52} Add /var/www/media/vi_1507_20150911_163043.mp4 to Box Queue at pos 22 [2015/09/11 16:30:54] Start capture requested from Pipe [2015/09/11 16:30:54] Send ca 1 {2015/09/11 16:30:54} Capturing started {2015/09/11 16:30:56} Finished boxing /var/www/media/vi_1506_20150911_162952.mp4 from Box Queue at pos 21 {2015/09/11 16:30:56} Start boxing /var/www/media/vi_1507_20150911_163043.mp4.h264 to /var/www/media/vi_1507_20150911_163043.mp4 Queue pos 22 {2015/09/11 16:30:57} Finished boxing /var/www/media/vi_1507_20150911_163043.mp4 from Box Queue at pos 22 [2015/09/11 16:31:03] Stop capture requested [2015/09/11 16:31:03] Send ca 0 {2015/09/11 16:31:04} Capturing stopped {2015/09/11 16:31:04} Add /var/www/media/vi_1508_20150911_163054.mp4 to Box Queue at pos 23 {2015/09/11 16:31:05} Start boxing /var/www/media/vi_1508_20150911_163054.mp4.h264 to /var/www/media/vi_1508_20150911_163054.mp4 Queue pos 23 [2015/09/11 16:31:06] Start capture requested from Pipe [2015/09/11 16:31:06] Send ca 1 {2015/09/11 16:31:06} Capturing started {2015/09/11 16:31:11} Finished boxing /var/www/media/vi_1508_20150911_163054.mp4 from Box Queue at pos 23 [2015/09/11 16:31:17] Stop capture requested [2015/09/11 16:31:17] Send ca 0 {2015/09/11 16:31:17} Capturing stopped {2015/09/11 16:31:17} Add /var/www/media/vi_1509_20150911_163106.mp4 to Box Queue at pos 24 {2015/09/11 16:31:17} Start boxing /var/www/media/vi_1509_20150911_163106.mp4.h264 to /var/www/media/vi_1509_20150911_163106.mp4 Queue pos 24 {2015/09/11 16:31:19} Finished boxing /var/www/media/vi_1509_20150911_163106.mp4 from Box Queue at pos 24 [2015/09/11 16:31:26] Start capture requested from Pipe [2015/09/11 16:31:26] Send ca 1 {2015/09/11 16:31:27} Capturing started [2015/09/11 16:31:31] Stop capture requested [2015/09/11 16:31:31] Send ca 0 {2015/09/11 16:31:31} Capturing stopped {2015/09/11 16:31:31} Add /var/www/media/vi_1510_20150911_163127.mp4 to Box Queue at pos 25 {2015/09/11 16:31:32} Start boxing /var/www/media/vi_1510_20150911_163127.mp4.h264 to /var/www/media/vi_1510_20150911_163127.mp4 Queue pos 25 {2015/09/11 16:31:33} Finished boxing /var/www/media/vi_1510_20150911_163127.mp4 from Box Queue at pos 25 [2015/09/11 16:31:48] Start capture requested from Pipe [2015/09/11 16:31:48] Send ca 1 {2015/09/11 16:31:49} Capturing started [2015/09/11 16:32:02] Stop capture requested [2015/09/11 16:32:02] Send ca 0 {2015/09/11 16:32:02} Capturing stopped {2015/09/11 16:32:02} Add /var/www/media/vi_1511_20150911_163149.mp4 to Box Queue at pos 26 {2015/09/11 16:32:02} Start boxing /var/www/media/vi_1511_20150911_163149.mp4.h264 to /var/www/media/vi_1511_20150911_163149.mp4 Queue pos 26 {2015/09/11 16:32:07} Finished boxing /var/www/media/vi_1511_20150911_163149.mp4 from Box Queue at pos 26 [2015/09/11 16:32:20] Start capture requested from Pipe [2015/09/11 16:32:20] Send ca 1 {2015/09/11 16:32:20} Capturing started [2015/09/11 16:32:24] Stop capture requested [2015/09/11 16:32:24] Send ca 0 {2015/09/11 16:32:24} Capturing stopped {2015/09/11 16:32:24} Add /var/www/media/vi_1512_20150911_163220.mp4 to Box Queue at pos 27 {2015/09/11 16:32:24} Start boxing /var/www/media/vi_1512_20150911_163220.mp4.h264 to /var/www/media/vi_1512_20150911_163220.mp4 Queue pos 27 {2015/09/11 16:32:25} Finished boxing /var/www/media/vi_1512_20150911_163220.mp4 from Box Queue at pos 27 [2015/09/11 16:32:26] Start capture requested from Pipe [2015/09/11 16:32:26] Send ca 1 {2015/09/11 16:32:26} Capturing started [2015/09/11 16:32:31] Stop capture requested [2015/09/11 16:32:31] Send ca 0 {2015/09/11 16:32:31} Capturing stopped {2015/09/11 16:32:31} Add /var/www/media/vi_1513_20150911_163226.mp4 to Box Queue at pos 28 {2015/09/11 16:32:32} Start boxing /var/www/media/vi_1513_20150911_163226.mp4.h264 to /var/www/media/vi_1513_20150911_163226.mp4 Queue pos 28 {2015/09/11 16:32:33} Finished boxing /var/www/media/vi_1513_20150911_163226.mp4 from Box Queue at pos 28 [2015/09/11 16:33:09] Start capture requested from Pipe [2015/09/11 16:33:09] Send ca 1 {2015/09/11 16:33:09} Capturing started [2015/09/11 16:33:18] Stop capture requested [2015/09/11 16:33:18] Send ca 0 {2015/09/11 16:33:18} Capturing stopped {2015/09/11 16:33:18} Add /var/www/media/vi_1514_20150911_163309.mp4 to Box Queue at pos 29 {2015/09/11 16:33:18} Start boxing /var/www/media/vi_1514_20150911_163309.mp4.h264 to /var/www/media/vi_1514_20150911_163309.mp4 Queue pos 29 {2015/09/11 16:33:20} Finished boxing /var/www/media/vi_1514_20150911_163309.mp4 from Box Queue at pos 29 [2015/09/11 16:33:44] Start capture requested from Pipe [2015/09/11 16:33:44] Send ca 1 {2015/09/11 16:33:44} Capturing started [2015/09/11 16:33:52] Stop capture requested [2015/09/11 16:33:52] Send ca 0 {2015/09/11 16:33:52} Capturing stopped {2015/09/11 16:33:52} Add /var/www/media/vi_1515_20150911_163344.mp4 to Box Queue at pos 30 {2015/09/11 16:33:52} Start boxing /var/www/media/vi_1515_20150911_163344.mp4.h264 to /var/www/media/vi_1515_20150911_163344.mp4 Queue pos 30 {2015/09/11 16:33:57} Finished boxing /var/www/media/vi_1515_20150911_163344.mp4 from Box Queue at pos 30 [2015/09/11 16:34:03] Start capture requested from Pipe [2015/09/11 16:34:03] Send ca 1 {2015/09/11 16:34:04} Capturing started [2015/09/11 16:34:09] Stop capture requested [2015/09/11 16:34:09] Send ca 0 {2015/09/11 16:34:09} Capturing stopped {2015/09/11 16:34:09} Add /var/www/media/vi_1516_20150911_163404.mp4 to Box Queue at pos 31 {2015/09/11 16:34:10} Start boxing /var/www/media/vi_1516_20150911_163404.mp4.h264 to /var/www/media/vi_1516_20150911_163404.mp4 Queue pos 31 {2015/09/11 16:34:11} Finished boxing /var/www/media/vi_1516_20150911_163404.mp4 from Box Queue at pos 31 [2015/09/11 16:35:12] Start capture requested from Pipe [2015/09/11 16:35:12] Send ca 1 {2015/09/11 16:35:13} Capturing started [2015/09/11 16:35:21] Stop capture requested [2015/09/11 16:35:21] Send ca 0 {2015/09/11 16:35:21} Capturing stopped {2015/09/11 16:35:21} Add /var/www/media/vi_1517_20150911_163513.mp4 to Box Queue at pos 0 {2015/09/11 16:35:21} Start boxing /var/www/media/vi_1517_20150911_163513.mp4.h264 to /var/www/media/vi_1517_20150911_163513.mp4 Queue pos 0 {2015/09/11 16:35:23} Finished boxing /var/www/media/vi_1517_20150911_163513.mp4 from Box Queue at pos 0 [2015/09/11 16:35:24] Start capture requested from Pipe [2015/09/11 16:35:24] Send ca 1 {2015/09/11 16:35:24} Capturing started [2015/09/11 16:35:38] Stop capture requested [2015/09/11 16:35:38] Send ca 0 {2015/09/11 16:35:38} Capturing stopped {2015/09/11 16:35:38} Add /var/www/media/vi_1518_20150911_163524.mp4 to Box Queue at pos 1 {2015/09/11 16:35:39} Start boxing /var/www/media/vi_1518_20150911_163524.mp4.h264 to /var/www/media/vi_1518_20150911_163524.mp4 Queue pos 1 [2015/09/11 16:35:40] Start capture requested from Pipe [2015/09/11 16:35:40] Send ca 1 {2015/09/11 16:35:41} Capturing started {2015/09/11 16:35:48} Finished boxing /var/www/media/vi_1518_20150911_163524.mp4 from Box Queue at pos 1 [2015/09/11 16:36:12] Stop capture requested [2015/09/11 16:36:12] Send ca 0 {2015/09/11 16:36:12} Capturing stopped {2015/09/11 16:36:12} Add /var/www/media/vi_1519_20150911_163540.mp4 to Box Queue at pos 2 {2015/09/11 16:36:13} Start boxing /var/www/media/vi_1519_20150911_163540.mp4.h264 to /var/www/media/vi_1519_20150911_163540.mp4 Queue pos 2 {2015/09/11 16:36:32} Finished boxing /var/www/media/vi_1519_20150911_163540.mp4 from Box Queue at pos 2 [2015/09/11 16:39:47] Start capture requested from Pipe [2015/09/11 16:39:47] Send ca 1 {2015/09/11 16:39:47} Capturing started [2015/09/11 16:39:51] Stop capture requested [2015/09/11 16:39:51] Send ca 0 {2015/09/11 16:39:51} Capturing stopped {2015/09/11 16:39:51} Add /var/www/media/vi_1520_20150911_163947.mp4 to Box Queue at pos 3 {2015/09/11 16:39:51} Start boxing /var/www/media/vi_1520_20150911_163947.mp4.h264 to /var/www/media/vi_1520_20150911_163947.mp4 Queue pos 3 {2015/09/11 16:39:54} Finished boxing /var/www/media/vi_1520_20150911_163947.mp4 from Box Queue at pos 3 [2015/09/11 16:39:58] Start capture requested from Pipe [2015/09/11 16:39:58] Send ca 1 {2015/09/11 16:39:58} Capturing started [2015/09/11 16:40:02] Stop capture requested [2015/09/11 16:40:02] Send ca 0 {2015/09/11 16:40:02} Capturing stopped {2015/09/11 16:40:02} Add /var/www/media/vi_1521_20150911_163958.mp4 to Box Queue at pos 4 {2015/09/11 16:40:03} Start boxing /var/www/media/vi_1521_20150911_163958.mp4.h264 to /var/www/media/vi_1521_20150911_163958.mp4 Queue pos 4 {2015/09/11 16:40:04} Finished boxing /var/www/media/vi_1521_20150911_163958.mp4 from Box Queue at pos 4 [2015/09/11 16:41:37] Start capture requested from Pipe [2015/09/11 16:41:37] Send ca 1 {2015/09/11 16:41:37} Capturing started [2015/09/11 16:41:41] Stop capture requested [2015/09/11 16:41:41] Send ca 0 {2015/09/11 16:41:41} Capturing stopped {2015/09/11 16:41:41} Add /var/www/media/vi_1522_20150911_164137.mp4 to Box Queue at pos 5 {2015/09/11 16:41:41} Start boxing /var/www/media/vi_1522_20150911_164137.mp4.h264 to /var/www/media/vi_1522_20150911_164137.mp4 Queue pos 5 {2015/09/11 16:41:42} Finished boxing /var/www/media/vi_1522_20150911_164137.mp4 from Box Queue at pos 5 [2015/09/11 16:41:54] Start capture requested from Pipe [2015/09/11 16:41:54] Send ca 1 {2015/09/11 16:41:54} Capturing started [2015/09/11 16:41:59] Stop capture requested [2015/09/11 16:41:59] Send ca 0 {2015/09/11 16:41:59} Capturing stopped {2015/09/11 16:41:59} Add /var/www/media/vi_1523_20150911_164154.mp4 to Box Queue at pos 6 {2015/09/11 16:41:59} Start boxing /var/www/media/vi_1523_20150911_164154.mp4.h264 to /var/www/media/vi_1523_20150911_164154.mp4 Queue pos 6 {2015/09/11 16:42:00} Finished boxing /var/www/media/vi_1523_20150911_164154.mp4 from Box Queue at pos 6 [2015/09/11 16:42:18] Start capture requested from Pipe [2015/09/11 16:42:19] Send ca 1 {2015/09/11 16:42:19} Capturing started [2015/09/11 16:44:13] Stop capture requested [2015/09/11 16:44:13] Send ca 0 {2015/09/11 16:44:13} Capturing stopped {2015/09/11 16:44:13} Add /var/www/media/vi_1524_20150911_164219.mp4 to Box Queue at pos 7 {2015/09/11 16:44:14} Start boxing /var/www/media/vi_1524_20150911_164219.mp4.h264 to /var/www/media/vi_1524_20150911_164219.mp4 Queue pos 7 [2015/09/11 16:44:15] Start capture requested from Pipe [2015/09/11 16:44:15] Send ca 1 {2015/09/11 16:44:15} Capturing started [2015/09/11 16:44:28] Stop capture requested [2015/09/11 16:44:29] Send ca 0 {2015/09/11 16:44:29} Capturing stopped {2015/09/11 16:44:29} Add /var/www/media/vi_1525_20150911_164415.mp4 to Box Queue at pos 8 [2015/09/11 16:44:32] Start capture requested from Pipe [2015/09/11 16:44:32] Send ca 1 {2015/09/11 16:44:32} Capturing started [2015/09/11 16:44:55] Stop capture requested [2015/09/11 16:44:55] Send ca 0 [2015/09/11 17:25:44] Scheduled management tasks. Next at 1441985144 [2015/09/11 18:25:45] Scheduled management tasks. Next at 1441988745 [2015/09/11 18:27:08] New period detected 4 [2015/09/11 18:27:08] Send em night

Friendbg commented 8 years ago

Hey,

I've got the same problem like @a-l-e-x-d-s-9 . I use raspberry pi 2 and the latest version of rpi cam web interface and my log is :

{2015/10/08 06:55:24} Add /var/www/media/vi_0709_20151008_065521.mp4 to Box Queue at pos 15 [2015/10/08 06:55:25] Start capture requested from Pipe [2015/10/08 06:55:25] Send ca 1 {2015/10/08 06:55:26} Capturing started [2015/10/08 06:55:28] Stop capture requested [2015/10/08 06:55:28] Send ca 0 [2015/10/08 06:55:30] Start capture requested from Pipe [2015/10/08 06:55:30] Send ca 1 {2015/10/08 06:55:36} Capturing stopped {2015/10/08 06:55:36} Add /var/www/media/vi_0710_20151008_065525.mp4 to Box Queue at pos 16 {2015/10/08 06:55:37} Capturing started [2015/10/08 06:55:55] Stop capture requested [2015/10/08 06:55:55] Send ca 0 [2015/10/08 07:14:49] Scheduled management tasks. Next at 1444281289 [2015/10/08 08:14:50] Scheduled management tasks. Next at 1444284890 [2015/10/08 09:14:51] Scheduled management tasks. Next at 1444288491

I saw that the video was freezing and the last timestamp was 06:55 and it says the same like @a-l-e-x-d-s-9 "recording video..."

I've rebooted the pi and video started again.

chriss158 commented 8 years ago

I have the same issue. I've had this issue on Jessie and now also on Wheezy. Looks like suddenly the "Send ca 0" for stop recording video is not accepted from raspimjpeg anymore. Maybe raspimpjeg hangs, so i cannot accept any new commands? Any solutions?

Here is the stack trace off raspimpjeg: pi@Snowball /var/www/media $ sudo gdb -batch -ex bt -p 2503 [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1". [New Thread 0xb1cc8470 (LWP 3049)] [New Thread 0xb24c8470 (LWP 3048)] [New Thread 0xb2cc8470 (LWP 3047)] [New Thread 0xb34c8470 (LWP 3046)] [New Thread 0xb3cc8470 (LWP 3045)] [New Thread 0xb4cc8470 (LWP 3044)] [New Thread 0xb44c8470 (LWP 3043)] [New Thread 0xb54c8470 (LWP 2507)] [New Thread 0xb5cc8470 (LWP 2506)] [New Thread 0xb64c8470 (LWP 2505)] [New Thread 0xb6cc8470 (LWP 2504)] 0xb6e62770 in sem_wait@@GLIBC_2.4 () from /lib/arm-linux-gnueabihf/libpthread.so.0

0 0xb6e62770 in sem_wait@@GLIBC_2.4 () from /lib/arm-linux-gnueabihf/libpthread.so.0

1 0xb6ea6e84 in mmal_vc_sendwait_message () from /opt/vc/lib/libmmal_vc_client.so

2 0xb6ea8670 in mmal_vc_port_parameter_set () from /opt/vc/lib/libmmal_vc_client.so

3 0xb6ecb5c0 in mmal_port_parameter_set () from /opt/vc/lib/libmmal_core.so

4 0xb6eb9e50 in mmal_port_parameter_set_boolean () from /opt/vc/lib/libmmal_util.so

5 0x0000dcfc in stop_video ()

6 0x00010edc in process_cmd ()

7 0x0000b5c0 in main ()

Here is my log: [2015/11/23 19:52:13] Start capture requested from Pipe [2015/11/23 19:52:13] Send ca 1 {2015/11/23 19:52:13} Capturing started [2015/11/23 19:52:22] Stop capture requested [2015/11/23 19:52:22] Send ca 0 {2015/11/23 19:52:22} Capturing stopped {2015/11/23 19:52:22} Add /var/www/media/vi_0024_20151123_195213.mp4 to Box Queue at pos 28 {2015/11/23 19:52:22} Finished boxing /var/www/media/vi_0023_20151123_195204.mp4 from Box Queue at pos 27 {2015/11/23 19:52:22} Start boxing /var/www/media/vi_0024_20151123_195213.mp4.h264 to /var/www/media/vi_0024_20151123_195213.mp4 Queue pos 28 {2015/11/23 19:52:37} Finished boxing /var/www/media/vi_0024_20151123_195213.mp4 from Box Queue at pos 28 [2015/11/23 19:52:40] Start capture requested from Pipe [2015/11/23 19:52:40] Send ca 1 {2015/11/23 19:52:40} Capturing started [2015/11/23 19:52:44] Stop capture requested [2015/11/23 19:52:44] Send ca 0 {2015/11/23 19:52:44} Capturing stopped {2015/11/23 19:52:44} Add /var/www/media/vi_0025_20151123_195240.mp4 to Box Queue at pos 29 {2015/11/23 19:52:44} Start boxing /var/www/media/vi_0025_20151123_195240.mp4.h264 to /var/www/media/vi_0025_20151123_195240.mp4 Queue pos 29 [2015/11/23 19:52:46] Start capture requested from Pipe [2015/11/23 19:52:46] Send ca 1 {2015/11/23 19:52:46} Capturing started [2015/11/23 19:52:50] Stop capture requested [2015/11/23 19:52:50] Send ca 0 {2015/11/23 19:52:50} Capturing stopped {2015/11/23 19:52:50} Add /var/www/media/vi_0026_20151123_195246.mp4 to Box Queue at pos 30 [2015/11/23 19:52:53] Start capture requested from Pipe [2015/11/23 19:52:54] Send ca 1 {2015/11/23 19:52:54} Capturing started {2015/11/23 19:52:56} Finished boxing /var/www/media/vi_0025_20151123_195240.mp4 from Box Queue at pos 29 {2015/11/23 19:52:56} Start boxing /var/www/media/vi_0026_20151123_195246.mp4.h264 to /var/www/media/vi_0026_20151123_195246.mp4 Queue pos 30 [2015/11/23 19:53:09] Stop capture requested [2015/11/23 19:53:09] Send ca 0

roberttidey commented 8 years ago

Not sure if this is the same issue but I started compiling using gcc 4.9 which comes with Jessie and I was seeing the input from FIFO stop after a boxing command, I hadn't seen that with a wheezy gcc 4.6 compiled version but its possible some systems exhibited it because the source code was exactly the same.

I'm not sure what is causing that yet but I re-arranged the code slightly and the Jessie one started working OK. This is in the latest version. I am still continuing to check out what the root cause is because the boxing and input FIFO aren't connected in any way.

chriss158 commented 8 years ago

Thanks for the fast response. I've updated my installation on wheezy and now the buttons on the web interface doesn't work anymore. Also send commands to FIFO1 doesn't work anymore.

Here is the shedule log: {2015/11/24 07:40:01} RaspiMJPEG Version 5.2.13 {2015/11/24 07:40:02} recommended video buffers 1 {2015/11/24 07:40:02} h264 buffers set to recommended 1 {2015/11/24 07:40:02} MJPEG streaming, ready to receive commands {2015/11/24 07:40:02} send smd 9 [2015/11/24 07:40:07] RaspiCam support started [2015/11/24 07:40:08] Capture Pipe already exists /var/www/FIFO1 [2015/11/24 07:40:08] Scheduler loop is started [2015/11/24 07:40:08] Reload parameters command requested [2015/11/24 07:40:08] Scheduler loop is started [2015/11/24 07:40:09] New period detected 0 [2015/11/24 07:40:09] Scheduled management tasks. Next at 1448350809

roberttidey commented 8 years ago

I have changed the version on the repository to being compiled under Wheezy. It's the same code but for some 'unknown' reason when compiled under Jessie it works under Jessie but not under Wheezy.

chriss158 commented 8 years ago

Now the buttons working again. Will test the code changes and report back, if the changes worked or not. Thanks for the fast update.

chriss158 commented 8 years ago

Ok after the past 6 days, everyday raspimjpeg stopped working :( Exactly the way like before the update. Any suggestions? Do you need some logs?

Egregius commented 8 years ago

Interesting, good that I found this. Having the same issue with a RPi2 and Jessie. Will try to invistigate when/where it goes wrong.