zmc: zm_image.h
Posted: Thu Apr 01, 2004 9:38 pm
Hi
I've got a lot further in the config, sorted out the permissions on the log files, and installed the correct perl modules. Zoneminder starts and stops gracefully from the browser - but I still have no images.
I have 2 monitors defined - one Axis 2420 (Monitor 1) that is next to me...and an Axis 205 (Monitor 2) that is available over the web. Neither produce images. though both work fine directly from the browser (so the cameras are working).
In zmdc.log, I get:
Starting pending process, zmc -m 1
'zmc -m 1' starting at 04/04/02 00:10:21, pid = 1981
'zmc -m 1' started at 04/04/02 00:10:21
zmc: zm_image.h:192: void Image::CopyBuffer(const Image&): Assertion `width == image.width && height == image.height && colours == image.colours' failed.
'zmc -m 1' died at 04/04/02 00:10:22, signal 6
Starting pending process, zmc -m 2
'zmc -m 2' starting at 04/04/02 00:11:07, pid = 1983
'zmc -m 2' started at 04/04/02 00:11:07
zmc: zm_image.h:192: void Image::CopyBuffer(const Image&): Assertion `width == image.width && height == image.height && colours == image.colours' failed.
'zmc -m 2' died at 04/04/02 00:11:18, signal 6
repeated at regular intervals - clearly both monitors are dying. In /var/log/messages I am getting:
Apr 2 00:10:21 pig zmc-m1[1981]: INF [Debug Level = 0, Debug Log = ]
Apr 2 00:10:21 pig zmc-m1[1981]: INF [Starting Capture]
Apr 2 00:10:22 pig zma-m2[1882]: WAR [Waiting for capture daemon]
Apr 2 00:10:53 pig last message repeated 30 times
Apr 2 00:11:06 pig last message repeated 13 times
Apr 2 00:11:07 pig zmc-m2[1983]: INF [Debug Level = 0, Debug Log = ]
Apr 2 00:11:07 pig zmc-m2[1983]: INF [Starting Capture]
Apr 2 00:11:07 pig zma-m2[1882]: WAR [Waiting for capture daemon]
Apr 2 00:11:09 pig last message repeated 2 times
Apr 2 00:11:09 pig zmc-m2[1983]: ERR [Select timed out]
Apr 2 00:11:10 pig zma-m2[1882]: WAR [Waiting for capture daemon]
Apr 2 00:11:11 pig zma-m2[1882]: WAR [Waiting for capture daemon]
Apr 2 00:11:12 pig zmc-m2[1983]: ERR [Select timed out]
Apr 2 00:11:12 pig zma-m2[1882]: WAR [Waiting for capture daemon]
Apr 2 00:11:43 pig last message repeated 31 times
Apr 2 00:12:44 pig last message repeated 60 times
Apr 2 00:13:02 pig last message repeated 18 times
Apr 2 00:13:02 pig zmc-m1[1999]: INF [Debug Level = 0, Debug Log = ]
Apr 2 00:13:02 pig zmc-m1[1999]: INF [Starting Capture]
Apr 2 00:13:03 pig zma-m2[1882]: WAR [Waiting for capture daemon]
Shutting the whole thing down, and then running strace zmc -m1 gives me:
rt_sigaction(SIGPIPE, {0x420e02d0, [], SA_RESTORER, 0x42028518}, {SIG_IGN}, 8) = 0
send(3, "<142>Apr 2 00:14:27 zmc-m1[2050"..., 57, 0) = 57
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
rt_sigaction(SIGTERM, {0x8049f40, [], SA_RESTORER, 0x42028518}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_BLOCK, [USR1 USR2], NULL, 8) = 0
gettimeofday({1080861267, 586475}, {4294967236, 0}) = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 5
connect(5, {sin_family=AF_INET, sin_port=htons(80), sin_addr=inet_addr("192.168.1.51")}}, 16) = 0
write(5, "GET /cgi-bin/mjpg/video.cgi?reso"..., 129) = 129
select(6, [5], NULL, NULL, {2, 500}) = 1 (in [5], left {1, 930000})
ioctl(5, 0x541b, [130]) = 0
read(5, "HTTP/1.0 200 OK\r\nConnection: Clo"..., 130) = 130
select(6, [5], NULL, NULL, {2, 500}) = 1 (in [5], left {2, 10000})
ioctl(5, 0x541b, [1460]) = 0
read(5, "Content-Type: image/jpeg\r\n\r\n\377\330\377\376"..., 1460) = 1460
select(6, [5], NULL, NULL, {2, 500}) = 1 (in [5], left {2, 10000})
ioctl(5, 0x541b, [1460]) = 0
read(5, "{8\356R`\221\264s\t\25\232H\366ny\2\312\3406\360\0\21\360"..., 1460) = 1460
select(6, [5], NULL, NULL, {2, 500}) = 1 (in [5], left {2, 10000})
ioctl(5, 0x541b, [1460]) = 0
read(5, "\324$\324\357\324\324&\200\33I\236\264\264b\200\22\242"..., 1460) = 1460
select(6, [5], NULL, NULL, {2, 500}) = 1 (in [5], left {2, 10000})
ioctl(5, 0x541b, [2920]) = 0
read(5, "\351R&\220\276w\225qx\305\311\3l1\36>\254\177\302\266#"..., 2920) = 2920
select(6, [5], NULL, NULL, {2, 500}) = 1 (in [5], left {2, 10000})
ioctl(5, 0x541b, [3181]) = 0
read(5, "\0 \346\200&\16=sU\f\233d\220}\241\343\314\207\345T\316"..., 3181) = 3181
brk(0) = 0xc8fb000
brk(0xc8fc000) = 0xc8fc000
mmap2(NULL, 307200, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x403a5000
gettimeofday({1080861267, 677699}, {4294967236, 0}) = 0
write(2, "zmc: zm_image.h:192: void Image:"..., 154zmc: zm_image.h:192: void Image::CopyBuffer(const Image&): Assertion `width == image.width && height == image.height && colours == image.colours' failed.
) = 154
rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
getpid() = 2050
kill(2050, SIGABRT) = 0
--- SIGABRT (Aborted) ---
+++ killed by SIGABRT +++
[root@pig bin]#
(I've only included the last few lines).
As ever, ideas and suggestions are gratefully received...
Thanks
Rupert Eve
I've got a lot further in the config, sorted out the permissions on the log files, and installed the correct perl modules. Zoneminder starts and stops gracefully from the browser - but I still have no images.
I have 2 monitors defined - one Axis 2420 (Monitor 1) that is next to me...and an Axis 205 (Monitor 2) that is available over the web. Neither produce images. though both work fine directly from the browser (so the cameras are working).
In zmdc.log, I get:
Starting pending process, zmc -m 1
'zmc -m 1' starting at 04/04/02 00:10:21, pid = 1981
'zmc -m 1' started at 04/04/02 00:10:21
zmc: zm_image.h:192: void Image::CopyBuffer(const Image&): Assertion `width == image.width && height == image.height && colours == image.colours' failed.
'zmc -m 1' died at 04/04/02 00:10:22, signal 6
Starting pending process, zmc -m 2
'zmc -m 2' starting at 04/04/02 00:11:07, pid = 1983
'zmc -m 2' started at 04/04/02 00:11:07
zmc: zm_image.h:192: void Image::CopyBuffer(const Image&): Assertion `width == image.width && height == image.height && colours == image.colours' failed.
'zmc -m 2' died at 04/04/02 00:11:18, signal 6
repeated at regular intervals - clearly both monitors are dying. In /var/log/messages I am getting:
Apr 2 00:10:21 pig zmc-m1[1981]: INF [Debug Level = 0, Debug Log = ]
Apr 2 00:10:21 pig zmc-m1[1981]: INF [Starting Capture]
Apr 2 00:10:22 pig zma-m2[1882]: WAR [Waiting for capture daemon]
Apr 2 00:10:53 pig last message repeated 30 times
Apr 2 00:11:06 pig last message repeated 13 times
Apr 2 00:11:07 pig zmc-m2[1983]: INF [Debug Level = 0, Debug Log = ]
Apr 2 00:11:07 pig zmc-m2[1983]: INF [Starting Capture]
Apr 2 00:11:07 pig zma-m2[1882]: WAR [Waiting for capture daemon]
Apr 2 00:11:09 pig last message repeated 2 times
Apr 2 00:11:09 pig zmc-m2[1983]: ERR [Select timed out]
Apr 2 00:11:10 pig zma-m2[1882]: WAR [Waiting for capture daemon]
Apr 2 00:11:11 pig zma-m2[1882]: WAR [Waiting for capture daemon]
Apr 2 00:11:12 pig zmc-m2[1983]: ERR [Select timed out]
Apr 2 00:11:12 pig zma-m2[1882]: WAR [Waiting for capture daemon]
Apr 2 00:11:43 pig last message repeated 31 times
Apr 2 00:12:44 pig last message repeated 60 times
Apr 2 00:13:02 pig last message repeated 18 times
Apr 2 00:13:02 pig zmc-m1[1999]: INF [Debug Level = 0, Debug Log = ]
Apr 2 00:13:02 pig zmc-m1[1999]: INF [Starting Capture]
Apr 2 00:13:03 pig zma-m2[1882]: WAR [Waiting for capture daemon]
Shutting the whole thing down, and then running strace zmc -m1 gives me:
rt_sigaction(SIGPIPE, {0x420e02d0, [], SA_RESTORER, 0x42028518}, {SIG_IGN}, 8) = 0
send(3, "<142>Apr 2 00:14:27 zmc-m1[2050"..., 57, 0) = 57
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
rt_sigaction(SIGTERM, {0x8049f40, [], SA_RESTORER, 0x42028518}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_BLOCK, [USR1 USR2], NULL, 8) = 0
gettimeofday({1080861267, 586475}, {4294967236, 0}) = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 5
connect(5, {sin_family=AF_INET, sin_port=htons(80), sin_addr=inet_addr("192.168.1.51")}}, 16) = 0
write(5, "GET /cgi-bin/mjpg/video.cgi?reso"..., 129) = 129
select(6, [5], NULL, NULL, {2, 500}) = 1 (in [5], left {1, 930000})
ioctl(5, 0x541b, [130]) = 0
read(5, "HTTP/1.0 200 OK\r\nConnection: Clo"..., 130) = 130
select(6, [5], NULL, NULL, {2, 500}) = 1 (in [5], left {2, 10000})
ioctl(5, 0x541b, [1460]) = 0
read(5, "Content-Type: image/jpeg\r\n\r\n\377\330\377\376"..., 1460) = 1460
select(6, [5], NULL, NULL, {2, 500}) = 1 (in [5], left {2, 10000})
ioctl(5, 0x541b, [1460]) = 0
read(5, "{8\356R`\221\264s\t\25\232H\366ny\2\312\3406\360\0\21\360"..., 1460) = 1460
select(6, [5], NULL, NULL, {2, 500}) = 1 (in [5], left {2, 10000})
ioctl(5, 0x541b, [1460]) = 0
read(5, "\324$\324\357\324\324&\200\33I\236\264\264b\200\22\242"..., 1460) = 1460
select(6, [5], NULL, NULL, {2, 500}) = 1 (in [5], left {2, 10000})
ioctl(5, 0x541b, [2920]) = 0
read(5, "\351R&\220\276w\225qx\305\311\3l1\36>\254\177\302\266#"..., 2920) = 2920
select(6, [5], NULL, NULL, {2, 500}) = 1 (in [5], left {2, 10000})
ioctl(5, 0x541b, [3181]) = 0
read(5, "\0 \346\200&\16=sU\f\233d\220}\241\343\314\207\345T\316"..., 3181) = 3181
brk(0) = 0xc8fb000
brk(0xc8fc000) = 0xc8fc000
mmap2(NULL, 307200, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x403a5000
gettimeofday({1080861267, 677699}, {4294967236, 0}) = 0
write(2, "zmc: zm_image.h:192: void Image:"..., 154zmc: zm_image.h:192: void Image::CopyBuffer(const Image&): Assertion `width == image.width && height == image.height && colours == image.colours' failed.
) = 154
rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
getpid() = 2050
kill(2050, SIGABRT) = 0
--- SIGABRT (Aborted) ---
+++ killed by SIGABRT +++
[root@pig bin]#
(I've only included the last few lines).
As ever, ideas and suggestions are gratefully received...
Thanks
Rupert Eve