Hi,
I cannot capture an image in the monitor, with a USB Philips Webcam.
zmdc.log says that zmc crash (just after trying to capture a picture)
'zmc -d 0' started at 03/08/25 21:54:07
'zmc -d 0' crashed at 03/08/25 21:54:07, exit status 255
In /var/log/messages, I don't see any ERR messages, but in zmwatch.log, there's a permission pb
Can't read from shared memory: Permission denied
I try the modification described in http://www.zoneminder.com/forum_general ... rd_uid=156
but I still have this permission denied.
Thanks in advance.
Thus
'zmc -d 1' crashed
Re: 'zmc -d 1' crashed
I ran the command as root "zmc --device 1" with ZM_DBG_PRINT=1
I got this DEBUG OUTPUT... can this help ?
[...]
zmc-d1[5448].INF-zm_local_camera.cpp/203 [Cn:64512]
zmc-d1[5448].INF-zm_monitor.cpp/83 [monitor mode=1]
zmc-d1[5448].INF-zm_monitor.cpp/86 [shm.size=5760448]
zmc-d1[5448].INF-zm_zone.cpp/47 [Initialised zone 0/All - 1 - 160x120 - Rgb:ff0000, AT:15, MnAP:50, MxAP:75000, FB:3x3, MnFP:50, MxFP:50000, MnBS:10, MxBS:0, MnB:0, MxB:0]
zmc-d1[5448].INF-zm_monitor.cpp/143 [Monitor PhilipsUSB has function 2]
zmc-d1[5448].INF-zm_monitor.cpp/144 [Monitor PhilipsUSB LBF = '%%s - %y/%m/%d %H:%M:%S', LBX = 0, LBY = 0]
zmc-d1[5448].INF-zm_monitor.cpp/145 [Monitor PhilipsUSB IBC = 100, WUC = 25, pEC = 10, PEC = 10, FRI = 1000, RBP = 10]
zmc-d1[5448].INF-zm_zone.cpp/412 [Got 1 zones for monitor PhilipsUSB]
zmc-d1[5448].INF-zm_zone.cpp/47 [Initialised zone 1/All - 1 - 160x120 - Rgb:ff0000, AT:25, MnAP:576, MxAP:14400, FB:3x3, MnFP:576, MxFP:14400, MnBS:384, MxBS:0, MnB:1, MxB:0]
zmc-d1[5448].INF-zm_monitor.cpp/646 [Loaded monitor 1(PhilipsUSB), 1 zones]
zmc-d1[5448].INF-zmc.cpp/155 [Starting Capture]
zsh: segmentation fault zmc --device 1
Thus
I got this DEBUG OUTPUT... can this help ?
[...]
zmc-d1[5448].INF-zm_local_camera.cpp/203 [Cn:64512]
zmc-d1[5448].INF-zm_monitor.cpp/83 [monitor mode=1]
zmc-d1[5448].INF-zm_monitor.cpp/86 [shm.size=5760448]
zmc-d1[5448].INF-zm_zone.cpp/47 [Initialised zone 0/All - 1 - 160x120 - Rgb:ff0000, AT:15, MnAP:50, MxAP:75000, FB:3x3, MnFP:50, MxFP:50000, MnBS:10, MxBS:0, MnB:0, MxB:0]
zmc-d1[5448].INF-zm_monitor.cpp/143 [Monitor PhilipsUSB has function 2]
zmc-d1[5448].INF-zm_monitor.cpp/144 [Monitor PhilipsUSB LBF = '%%s - %y/%m/%d %H:%M:%S', LBX = 0, LBY = 0]
zmc-d1[5448].INF-zm_monitor.cpp/145 [Monitor PhilipsUSB IBC = 100, WUC = 25, pEC = 10, PEC = 10, FRI = 1000, RBP = 10]
zmc-d1[5448].INF-zm_zone.cpp/412 [Got 1 zones for monitor PhilipsUSB]
zmc-d1[5448].INF-zm_zone.cpp/47 [Initialised zone 1/All - 1 - 160x120 - Rgb:ff0000, AT:25, MnAP:576, MxAP:14400, FB:3x3, MnFP:576, MxFP:14400, MnBS:384, MxBS:0, MnB:1, MxB:0]
zmc-d1[5448].INF-zm_monitor.cpp/646 [Loaded monitor 1(PhilipsUSB), 1 zones]
zmc-d1[5448].INF-zmc.cpp/155 [Starting Capture]
zsh: segmentation fault zmc --device 1
Thus
-
- Posts: 9
- Joined: Wed Aug 27, 2003 4:24 pm
Re: 'zmc -d 1' crashed
I'm in the same situation. REdHat 9, with two Logitech quickcam pro 4000's.
'zmu -d 0 -q -v' detects all, but 'zmc --device 0' segfaults.
zmwatch.log contains a bunch of:
Can't get shared memory id: No such file or directory
and:
Watchdog starting at 03/08/27 19:58:14
Watchdog pausing for 30 seconds
and:
Can't get shared memory id:
Running 'strace zmc --device 0' gives the following at the end:
send(3, "<142>Aug 28 19:16:51 zmc-d0[3608"..., 57, 0) = 57
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
rt_sigaction(SIGTERM, {0x8049e78, [], SA_RESTORER, 0x420276f8}, {SIG_DFL}, 8) = 0
ioctl(5, VIDIOCMCAPTURE, 0xa4df170) = 0
rt_sigprocmask(SIG_BLOCK, [USR1 USR2], NULL, 8) = 0
gettimeofday({1062119811, 40901}, {360, 0}) = 0
ioctl(5, VIDIOCMCAPTURE, 0xa4df180) = 0
ioctl(5, VIDIOCSYNC, 0x805eab8) = 0
time(NULL) = 1062119811
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
So, it's clearly a directory permissions thing, but which/where? My money's on the shared memory (which I know nothing about, but will look to see if it tries to create a file and fails) I'll keep investigating, but if anyone has seen this before, your help would be massively appreciated!
Thanks,
Erik.
'zmu -d 0 -q -v' detects all, but 'zmc --device 0' segfaults.
zmwatch.log contains a bunch of:
Can't get shared memory id: No such file or directory
and:
Watchdog starting at 03/08/27 19:58:14
Watchdog pausing for 30 seconds
and:
Can't get shared memory id:
Running 'strace zmc --device 0' gives the following at the end:
send(3, "<142>Aug 28 19:16:51 zmc-d0[3608"..., 57, 0) = 57
rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
rt_sigaction(SIGTERM, {0x8049e78, [], SA_RESTORER, 0x420276f8}, {SIG_DFL}, 8) = 0
ioctl(5, VIDIOCMCAPTURE, 0xa4df170) = 0
rt_sigprocmask(SIG_BLOCK, [USR1 USR2], NULL, 8) = 0
gettimeofday({1062119811, 40901}, {360, 0}) = 0
ioctl(5, VIDIOCMCAPTURE, 0xa4df180) = 0
ioctl(5, VIDIOCSYNC, 0x805eab8) = 0
time(NULL) = 1062119811
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
So, it's clearly a directory permissions thing, but which/where? My money's on the shared memory (which I know nothing about, but will look to see if it tries to create a file and fails) I'll keep investigating, but if anyone has seen this before, your help would be massively appreciated!
Thanks,
Erik.
Re: 'zmc -d 1' crashed
ZoneMinder works now for me (Gentoo)
1°) First, I checked if the shared memory was created by apache
$ ipcs -m | grep apache
0x7a6d2001 44007425 apache 777 2880248 2
2°) I had to increase kernel.shmmax
#sysctl -w kernel.shmmax="0x3000000"
3°) I decreased "Image Buffer Size (frames)" from 100 to 50
4°) Captured image was garbaged so I had to increase capture width and height
so that they are greater than the values supported by my webcam
You can find these values with the following command :
$ zmu -d 0 -q -v | grep Minimum
Minimum Width: 160
Minimum Height: 120
1°) First, I checked if the shared memory was created by apache
$ ipcs -m | grep apache
0x7a6d2001 44007425 apache 777 2880248 2
2°) I had to increase kernel.shmmax
#sysctl -w kernel.shmmax="0x3000000"
3°) I decreased "Image Buffer Size (frames)" from 100 to 50
4°) Captured image was garbaged so I had to increase capture width and height
so that they are greater than the values supported by my webcam
You can find these values with the following command :
$ zmu -d 0 -q -v | grep Minimum
Minimum Width: 160
Minimum Height: 120
-
- Posts: 9
- Joined: Wed Aug 27, 2003 4:24 pm
Re: 'zmc -d 1' crashed
Well, I'm an airhead... I haven't got Zip.pm - and What's currently on CPAN (1.0.6) won't compile on my machine. So I'm going insane.
Any perl experts out there?
Any perl experts out there?
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Re: 'zmc -d 1' crashed
Hi Erik,
Do you still have the problem with Zip.pm (I assume you mean Archive::Zip by the way)? If so what do you get when you try and install it?
Cheers,
Phil,
Do you still have the problem with Zip.pm (I assume you mean Archive::Zip by the way)? If so what do you get when you try and install it?
Cheers,
Phil,
-
- Posts: 9
- Joined: Wed Aug 27, 2003 4:24 pm
Re: 'zmc -d 1' crashed
Woo, forgot to write back that all was well - It turns out that the LANG variable, set in /etc/sysconfig/i18n (RedHat 9) was set to "en_CA.UTF-8" or some such. setting this to "C" was all it needed, and now I'm off to the races! CPAN worked like a charm after that.
I'm loving ZoneMinder - So does everyone else here. I'm using it to monitor a computer lab with great results - and my boss has asked me to present this to Campus Security... Not bad, eh?
Thanks for everything Philip,
Erik.
I'm loving ZoneMinder - So does everyone else here. I'm using it to monitor a computer lab with great results - and my boss has asked me to present this to Campus Security... Not bad, eh?
Thanks for everything Philip,
Erik.