shared memory not valid
Posted: Mon Sep 08, 2008 4:33 am
I am running Ubuntu 8.04 and ZM 1.22.3 using USB WebCam. The camera shows video when using local program like camorama. However, no image is visible when using zoneminder. The error showing on zmwatch.log is shared memory not valid
Looked for at similar posting relate to shared memory and shared memory not valid but could not find a solution that is relevant to my case.
Here are the outputs from different commands
root@laptop:/tmp# zmu -d /dev/video0 -q -v
Video Capabilities
Name: Generic Vimicro 303b
Type: 1
Can capture
Video Channels: 1
Audio Channels: 0
Maximum Width: 640
Maximum Height: 480
Minimum Width: 160
Minimum Height: 120
Window Attributes
X Offset: 0
Y Offset: 0
Width: 320
Height: 240
Picture Attributes
Palette: 4 - 24bit RGB
Colour Depth: 24
Brightness: 32768
Hue: 0
Colour :0
Contrast: 32768
Whiteness: 0
Channel 0 Attributes
Name: ZC301-2
Channel: 0
Flags: 0
Type: 2 - Camera
Format: 2055 – Unknown
gilad@laptop:/tmp$ tail -f zmwatch.log
09/07/2008 23:42:49.257370 zmwatch[3398].INF ['zmc -d /dev/video0' stopping at 08/09/07 23:42:49]
09/07/2008 23:42:59.259720 zmwatch[3398].ERR [Can't get shared memory id '7a6d2001', 1: No such file or directory]
09/07/2008 23:42:59.260690 zmwatch[3398].INF [Restarting capture daemon for New1, shared memory not valid]
09/07/2008 23:42:59.573675 zmwatch[3398].INF [Can't find child with pid of '3432'] at /usr/bin/zmwatch.pl line 119
09/07/2008 23:43:09.576574 zmwatch[3398].ERR [Can't get shared memory id '7a6d2001', 1: No such file or directory]
09/07/2008 23:43:09.577522 zmwatch[3398].INF [Restarting capture daemon for New1, shared memory not valid]
09/07/2008 23:43:09.782423 zmwatch[3398].INF ['zmc -d /dev/video0' stopping at 08/09/07 23:43:09]
gilad@laptop:/tmp$ head zmdc.log
09/07/2008 23:41:54.043462 zmdc[3370].INF [Server starting at 08/09/07 23:41:54]
09/07/2008 23:41:57.288060 zmdc[3370].INF [Can't find child with pid of '3392']
09/07/2008 23:41:57.288960 zmdc[3370].INF ['zmc -d /dev/video0' starting at 08/09/07 23:41:57, pid = 3392]
09/07/2008 23:41:57.497089 zmdc[3370].INF ['zmfilter.pl' starting at 08/09/07 23:41:57, pid = 3394]
09/07/2008 23:41:57.865099 zmdc[3370].INF ['zmaudit.pl -c' starting at 08/09/07 23:41:57, pid = 3396]
09/07/2008 23:41:58.313076 zmdc[3370].INF ['zmwatch.pl' starting at 08/09/07 23:41:58, pid = 3398]
09/07/2008 23:42:28.718658 zmdc[3370].INF ['zmc -d /dev/video0' stopping at 08/09/07 23:42:28]
09/07/2008 23:42:39.044133 zmdc[3370].INF [Can't find child with pid of '3414']
09/07/2008 23:42:39.044953 zmdc[3370].INF ['zmc -d /dev/video0' starting at 08/09/07 23:42:39, pid = 3414]
09/07/2008 23:42:49.248456 zmdc[3370].INF ['zmc -d /dev/video0' stopping at 08/09/07 23:42:49]
root@laptop:/tmp# lsusb
Bus 001 Device 003: ID 046d:c01b Logitech, Inc. MX310 Optical Mouse
Bus 001 Device 002: ID 0ac8:303b Z-Star Microelectronics Corp. ZC0303 WebCam
Bus 001 Device 001: ID 0000:0000
root@laptop:/tmp# dmesg |grep -i zc
[ 40.512735] /build/buildd/linux-ubuntu-modules-2.6.24-2.6.24/debian/build/build-generic/media/gsp
cav1/gspca_core.c: USB GSPCA camera found.(ZC3XX)
[ 42.113085] zc0301: V4L2 driver for ZC0301[P] Image Processor and Control Chip v1:1.10
[ 42.113169] usbcore: registered new interface driver zc0301
[/b]
Looked for at similar posting relate to shared memory and shared memory not valid but could not find a solution that is relevant to my case.
Here are the outputs from different commands
root@laptop:/tmp# zmu -d /dev/video0 -q -v
Video Capabilities
Name: Generic Vimicro 303b
Type: 1
Can capture
Video Channels: 1
Audio Channels: 0
Maximum Width: 640
Maximum Height: 480
Minimum Width: 160
Minimum Height: 120
Window Attributes
X Offset: 0
Y Offset: 0
Width: 320
Height: 240
Picture Attributes
Palette: 4 - 24bit RGB
Colour Depth: 24
Brightness: 32768
Hue: 0
Colour :0
Contrast: 32768
Whiteness: 0
Channel 0 Attributes
Name: ZC301-2
Channel: 0
Flags: 0
Type: 2 - Camera
Format: 2055 – Unknown
gilad@laptop:/tmp$ tail -f zmwatch.log
09/07/2008 23:42:49.257370 zmwatch[3398].INF ['zmc -d /dev/video0' stopping at 08/09/07 23:42:49]
09/07/2008 23:42:59.259720 zmwatch[3398].ERR [Can't get shared memory id '7a6d2001', 1: No such file or directory]
09/07/2008 23:42:59.260690 zmwatch[3398].INF [Restarting capture daemon for New1, shared memory not valid]
09/07/2008 23:42:59.573675 zmwatch[3398].INF [Can't find child with pid of '3432'] at /usr/bin/zmwatch.pl line 119
09/07/2008 23:43:09.576574 zmwatch[3398].ERR [Can't get shared memory id '7a6d2001', 1: No such file or directory]
09/07/2008 23:43:09.577522 zmwatch[3398].INF [Restarting capture daemon for New1, shared memory not valid]
09/07/2008 23:43:09.782423 zmwatch[3398].INF ['zmc -d /dev/video0' stopping at 08/09/07 23:43:09]
gilad@laptop:/tmp$ head zmdc.log
09/07/2008 23:41:54.043462 zmdc[3370].INF [Server starting at 08/09/07 23:41:54]
09/07/2008 23:41:57.288060 zmdc[3370].INF [Can't find child with pid of '3392']
09/07/2008 23:41:57.288960 zmdc[3370].INF ['zmc -d /dev/video0' starting at 08/09/07 23:41:57, pid = 3392]
09/07/2008 23:41:57.497089 zmdc[3370].INF ['zmfilter.pl' starting at 08/09/07 23:41:57, pid = 3394]
09/07/2008 23:41:57.865099 zmdc[3370].INF ['zmaudit.pl -c' starting at 08/09/07 23:41:57, pid = 3396]
09/07/2008 23:41:58.313076 zmdc[3370].INF ['zmwatch.pl' starting at 08/09/07 23:41:58, pid = 3398]
09/07/2008 23:42:28.718658 zmdc[3370].INF ['zmc -d /dev/video0' stopping at 08/09/07 23:42:28]
09/07/2008 23:42:39.044133 zmdc[3370].INF [Can't find child with pid of '3414']
09/07/2008 23:42:39.044953 zmdc[3370].INF ['zmc -d /dev/video0' starting at 08/09/07 23:42:39, pid = 3414]
09/07/2008 23:42:49.248456 zmdc[3370].INF ['zmc -d /dev/video0' stopping at 08/09/07 23:42:49]
root@laptop:/tmp# lsusb
Bus 001 Device 003: ID 046d:c01b Logitech, Inc. MX310 Optical Mouse
Bus 001 Device 002: ID 0ac8:303b Z-Star Microelectronics Corp. ZC0303 WebCam
Bus 001 Device 001: ID 0000:0000
root@laptop:/tmp# dmesg |grep -i zc
[ 40.512735] /build/buildd/linux-ubuntu-modules-2.6.24-2.6.24/debian/build/build-generic/media/gsp
cav1/gspca_core.c: USB GSPCA camera found.(ZC3XX)
[ 42.113085] zc0301: V4L2 driver for ZC0301[P] Image Processor and Control Chip v1:1.10
[ 42.113169] usbcore: registered new interface driver zc0301
[/b]