Shared memory not initialised by capture daemon
-
- Posts: 5
- Joined: Thu Dec 22, 2005 4:52 pm
- Location: Providence, RI
Shared memory not initialised by capture daemon
I've been trying for days now to make ZM work on my system.
First, the necessary information...
0) Check the Troubleshooting section of the README, look here if you don't have it handy.
Done.
1) Check the FAQ to see if it addresses your issue
Done. Not fully addressed.
2) Use the forum search to check whether your problem has been reported before
Done.
3) Check your log files, e.g. /var/log/messages, /tmp/zm*.log (or wherever you have defined your log directory)
This information follows.
4) Include the version of ZoneMinder you are running.
1.21.4
5) Include the type and version of your distribution
SUSE LINUX 10.0 (i586)
VERSION = 10.0
6) Include a screenshot of the error if it is in the web gui
The error is in /var/log/messages
7) Think about what other information you could provide which might be useful
OK
I am using an ibmcam, via the ibmcam kernel module, and this device works fine with xawtv.
Here is what I get when I 'zm start'...
--------------------------------------------------------------
Dec 22 11:54:06 spock su: (to wwwrun) donath on none
Dec 22 11:54:06 spock su: (to wwwrun) donath on none
Dec 22 11:54:06 spock su: (to wwwrun) donath on none
Dec 22 11:54:10 spock su: (to wwwrun) donath on none
Dec 22 11:54:10 spock zmc_dvideo0[7701]: INF [Debug Level = 0, Debug Log = <none>]
Dec 22 11:54:10 spock su: (to wwwrun) donath on none
Dec 22 11:54:10 spock zmc_dvideo0[7701]: ERR [Failed to set window attributes: Invalid argument]
Dec 22 11:54:10 spock kernel: drivers/usb/media/usbvideo.c: usb_submit_urb error (-1)
Dec 22 11:54:10 spock kernel: drivers/usb/media/usbvideo.c: usb_submit_urb error (-1)
Dec 22 11:54:10 spock zmc_dvideo0[7708]: INF [Debug Level = 0, Debug Log = <none>]
Dec 22 11:54:10 spock kernel: drivers/usb/media/usbvideo.c: Packet Statistics: Total=64. Empty=31. Usage=51%
Dec 22 11:54:10 spock kernel: drivers/usb/media/usbvideo.c: Transfer Statistics: Transferred=2 B Usage=0%
--------------------------------------------
I read in the forum that "ERR [Failed to set window attributes: Invalid argument]" can be harmless. This camera takes an integer value (0 - 6) to set the video size. Perhaps that's all that's being complained about here.
When I go to view the Monitor, I get a broken image, and when hitting the URL directly (http://spock/cgi-bin/cam/zms?mode=jpeg& ... 0&maxfps=5) I get from Apache "Server Error The server encountered an internal error and was unable to complete your request.
Error message: Premature end of script headers: zms"
And in /var/log/messages...
Dec 22 12:03:19 spock zms[7791]: ERR [Shared memory not initialised by capture daemon]
The shared memory segment was indeed created...
root@spock:/usr/local/src->ipcs -m
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
<snip>
0x7a6d2001 2097158 wwwrun 700 12165668 0
Please, what else can I do?
First, the necessary information...
0) Check the Troubleshooting section of the README, look here if you don't have it handy.
Done.
1) Check the FAQ to see if it addresses your issue
Done. Not fully addressed.
2) Use the forum search to check whether your problem has been reported before
Done.
3) Check your log files, e.g. /var/log/messages, /tmp/zm*.log (or wherever you have defined your log directory)
This information follows.
4) Include the version of ZoneMinder you are running.
1.21.4
5) Include the type and version of your distribution
SUSE LINUX 10.0 (i586)
VERSION = 10.0
6) Include a screenshot of the error if it is in the web gui
The error is in /var/log/messages
7) Think about what other information you could provide which might be useful
OK
I am using an ibmcam, via the ibmcam kernel module, and this device works fine with xawtv.
Here is what I get when I 'zm start'...
--------------------------------------------------------------
Dec 22 11:54:06 spock su: (to wwwrun) donath on none
Dec 22 11:54:06 spock su: (to wwwrun) donath on none
Dec 22 11:54:06 spock su: (to wwwrun) donath on none
Dec 22 11:54:10 spock su: (to wwwrun) donath on none
Dec 22 11:54:10 spock zmc_dvideo0[7701]: INF [Debug Level = 0, Debug Log = <none>]
Dec 22 11:54:10 spock su: (to wwwrun) donath on none
Dec 22 11:54:10 spock zmc_dvideo0[7701]: ERR [Failed to set window attributes: Invalid argument]
Dec 22 11:54:10 spock kernel: drivers/usb/media/usbvideo.c: usb_submit_urb error (-1)
Dec 22 11:54:10 spock kernel: drivers/usb/media/usbvideo.c: usb_submit_urb error (-1)
Dec 22 11:54:10 spock zmc_dvideo0[7708]: INF [Debug Level = 0, Debug Log = <none>]
Dec 22 11:54:10 spock kernel: drivers/usb/media/usbvideo.c: Packet Statistics: Total=64. Empty=31. Usage=51%
Dec 22 11:54:10 spock kernel: drivers/usb/media/usbvideo.c: Transfer Statistics: Transferred=2 B Usage=0%
--------------------------------------------
I read in the forum that "ERR [Failed to set window attributes: Invalid argument]" can be harmless. This camera takes an integer value (0 - 6) to set the video size. Perhaps that's all that's being complained about here.
When I go to view the Monitor, I get a broken image, and when hitting the URL directly (http://spock/cgi-bin/cam/zms?mode=jpeg& ... 0&maxfps=5) I get from Apache "Server Error The server encountered an internal error and was unable to complete your request.
Error message: Premature end of script headers: zms"
And in /var/log/messages...
Dec 22 12:03:19 spock zms[7791]: ERR [Shared memory not initialised by capture daemon]
The shared memory segment was indeed created...
root@spock:/usr/local/src->ipcs -m
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
<snip>
0x7a6d2001 2097158 wwwrun 700 12165668 0
Please, what else can I do?
Re: Shared memory not initialised by capture daemon
Correct, that this relates to the image size, but if a size or pallete is chosen that the camera don't support, zmc will choke and not be able to capture an image.ClarenceDonath wrote: Dec 22 11:54:10 spock zmc_dvideo0[7701]: ERR [Failed to set window attributes: Invalid argument]
Dec 22 11:54:10 spock kernel: drivers/usb/media/usbvideo.c: usb_submit_urb error (-1)
Dec 22 11:54:10 spock kernel: drivers/usb/media/usbvideo.c: usb_submit_urb error (-1)
Dec 22 11:54:10 spock zmc_dvideo0[7708]: INF [Debug Level = 0, Debug Log = <none>]
Dec 22 11:54:10 spock kernel: drivers/usb/media/usbvideo.c: Packet Statistics: Total=64. Empty=31. Usage=51%
Dec 22 11:54:10 spock kernel: drivers/usb/media/usbvideo.c: Transfer Statistics: Transferred=2 B Usage=0%
--------------------------------------------
I read in the forum that "ERR [Failed to set window attributes: Invalid argument]" can be harmless. This camera takes an integer value (0 - 6) to set the video size. Perhaps that's all that's being complained about here.
When I go to view the Monitor, I get a broken image, and when hitting the URL directly (http://spock/cgi-bin/cam/zms?mode=jpeg& ... 0&maxfps=5) I get from Apache "Server Error The server encountered an internal error and was unable to complete your request.
Error message: Premature end of script headers: zms"
Try just a standard size like 320x240. I assume it's a color cam so try RGB first and rotate though the pallet options till you find what works. You must restart zm each time you make changes to the camera settings.ClarenceDonath wrote: And in /var/log/messages...
Dec 22 12:03:19 spock zms[7791]: ERR [Shared memory not initialised by capture daemon]
The shared memory segment was indeed created...
root@spock:/usr/local/src->ipcs -m
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
<snip>
0x7a6d2001 2097158 wwwrun 700 12165668 0
You can also do
zmu -q -d0 -v
To query the cam to see what it returns.
Regards,
Corey
-
- Posts: 5
- Joined: Thu Dec 22, 2005 4:52 pm
- Location: Providence, RI
Re: Shared memory not initialised by capture daemon
Thank you for the reply Cordel.cordel wrote: Try just a standard size like 320x240. I assume it's a color cam so try RGB first and rotate though the pallet options till you find what works. You must restart zm each time you make changes to the camera settings.
You can also do
zmu -q -d0 -v
To query the cam to see what it returns.
Unfortunately, trying all the video sizes the camera supports (including 320x240) and cycling through all the palletes, the same behavior is still exhibited, "Shared memory not initialised by capture daemon" and a broken image. I made sure to restart zm for each iteration this time.
Interestingly, running 'zmu -q -d0 -v' produces the following for me:
root@spock:~->zmu -q -d0 -v
Error, failed to open video device 0: No such file or directory
I noticed this as well when running 'zmu' as described in the Troubleshooting section.
However, running 'zmu -q -d /dev/video0 -v' works, and returns the following:
Video Capabilities
Name: IBM USB Camera
Type: 1
Can capture
Video Channels: 1
Audio Channels: 0
Maximum Width: 352
Maximum Height: 240
Minimum Width: 8
Minimum Height: 4
Window Attributes
X Offset: 0
Y Offset: 0
Width: 352
Height: 240
Picture Attributes
Palette: 4 - 24bit RGB
Colour Depth: 24
Brightness: 0
Hue: 25600
Colour :32768
Contrast: 32768
Whiteness: 26880
Channel 0 Attributes
Name: Camera
Channel: 0
Flags: 0
Type: 2 - Camera
Format: 0 - PAL
Any more suggestions please?
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
im assuming you have tried 352x240?
James Wilson
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
-
- Posts: 5
- Joined: Thu Dec 22, 2005 4:52 pm
- Location: Providence, RI
-
- Posts: 5111
- Joined: Wed Jun 08, 2005 8:07 pm
- Location: Midlands UK
well looking at your previous post it appears the cam is ok and working, and you have tried the correct res and colour pallattes i really dont know. You say it works correctly in xawtv? What does xawtv report as the settings used
James Wilson
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
-
- Posts: 5
- Joined: Thu Dec 22, 2005 4:52 pm
- Location: Providence, RI
Well, xawtv comes up with the image set to default settings. The only information I can see that xawtv provides is with the -hwscan option, which returns:jameswilson wrote:well looking at your previous post it appears the cam is ok and working, and you have tried the correct res and colour pallattes i really dont know. You say it works correctly in xawtv? What does xawtv report as the settings used
/dev/video0: OK [ -device /dev/video0 ]
type : v4l
name : IBM USB Camera
flags: capture
- winblowzxp
- Posts: 14
- Joined: Fri Dec 23, 2005 9:15 pm
- Location: Republic of Texas, USA
I'm also having this issue. my specs are:
SuSE 10
ffmpeg 0.4.8
zm 1.21.4
apache 2.0.54
php 4.4.0
mysql 5.0.17
the message log that I get is:
My cameras are (1) Logitech Quickcam Web, and (2) Micro Innovations IC50C. I have installed both kernel mode drivers, and they both work on xawtv. I had the logitech working for a while, and then I started to get this error message.
I have them both set for 320x240 capture, and ntsc encoding.
SuSE 10
ffmpeg 0.4.8
zm 1.21.4
apache 2.0.54
php 4.4.0
mysql 5.0.17
the message log that I get is:
Code: Select all
Dec 24 02:42:45 proxy kernel: ohci_hcd 0000:00:02.2: wakeup
Dec 24 02:42:45 proxy kernel: usb 1-1: new full speed USB device using ohci_hcd and address 3
Dec 24 02:42:46 proxy kernel: quickcam: QuickCam USB camera found (driver version QuickCam USB 0.6.3 $Date: 2005/04/15 19:32:49 $)
Dec 24 02:42:46 proxy kernel: quickcam: Kernel:2.6.13-15-default bus:1 class:FF subclass:FF vendor:046D product:0850
Dec 24 02:42:46 proxy kernel: quickcam: Sensor VV6410 detected
Dec 24 02:42:46 proxy kernel: quickcam: Registered device: /dev/video1
Dec 24 02:44:31 proxy zmu[7386]: ERR [Shared memory not initialised by capture daemon]
Dec 24 02:44:34 proxy zmu[7392]: ERR [Shared memory not initialised by capture daemon]
Dec 24 02:44:37 proxy zmu[7397]: ERR [Shared memory not initialised by capture daemon]
Dec 24 02:44:41 proxy zmu[7403]: ERR [Shared memory not initialised by capture daemon]
Dec 24 02:44:44 proxy zmu[7409]: ERR [Shared memory not initialised by capture daemon]
Dec 24 02:44:47 proxy zmu[7414]: ERR [Shared memory not initialised by capture daemon]
Dec 24 02:44:50 proxy zmu[7420]: ERR [Shared memory not initialised by capture daemon]
Dec 24 02:45:19 proxy zmu[7468]: ERR [Shared memory not initialised by capture daemon]
Dec 24 02:45:22 proxy zmu[7476]: ERR [Shared memory not initialised by capture daemon]
Dec 24 02:45:25 proxy zmu[7481]: ERR [Shared memory not initialised by capture daemon]
Dec 24 02:45:29 proxy zmu[7506]: ERR [Shared memory not initialised by capture daemon]
Dec 24 02:45:32 proxy zmu[7534]: ERR [Shared memory not initialised by capture daemon]
Dec 24 02:45:36 proxy zmu[7539]: ERR [Shared memory not initialised by capture daemon]
Dec 24 02:45:39 proxy zmu[7555]: ERR [Shared memory not initialised by capture daemon]
Dec 24 02:45:42 proxy zmu[7575]: ERR [Shared memory not initialised by capture daemon]
Dec 24 02:45:45 proxy zmu[7580]: ERR [Shared memory not initialised by capture daemon]
Dec 24 02:45:49 proxy zmu[7585]: ERR [Shared memory not initialised by capture daemon]
Dec 24 02:45:53 proxy zmu[7592]: ERR [Shared memory not initialised by capture daemon]
Dec 24 02:45:56 proxy zmu[7598]: ERR [Shared memory not initialised by capture daemon]
Dec 24 02:45:59 proxy zmu[7603]: ERR [Shared memory not initialised by capture daemon]
Dec 24 02:46:03 proxy zmu[7609]: ERR [Shared memory not initialised by capture daemon]
Dec 24 02:46:06 proxy zmu[7614]: ERR [Shared memory not initialised by capture daemon]
Dec 24 02:46:09 proxy zmu[7619]: ERR [Shared memory not initialised by capture daemon]
Dec 24 02:46:12 proxy zmu[7625]: ERR [Shared memory not initialised by capture daemon]
Dec 24 02:46:15 proxy zmu[7630]: ERR [Shared memory not initialised by capture daemon]
Dec 24 02:46:18 proxy zmu[7635]: ERR [Shared memory not initialised by capture daemon]
Dec 24 02:46:21 proxy zmu[7642]: ERR [Shared memory not initialised by capture daemon]
Dec 24 02:46:25 proxy zmu[7647]: ERR [Shared memory not initialised by capture daemon]
Dec 24 02:46:28 proxy zmu[7652]: ERR [Shared memory not initialised by capture daemon]
Dec 24 02:46:31 proxy zmu[7659]: ERR [Shared memory not initialised by capture daemon]
Dec 24 02:48:08 proxy kernel: usb 2-1: USB disconnect, address 3
Dec 24 02:48:11 proxy kernel: ohci_hcd 0000:00:02.3: wakeup
Dec 24 02:48:12 proxy kernel: usb 2-1: new full speed USB device using ohci_hcd and address 4
Dec 24 02:48:12 proxy kernel: /root/spca/drivers/usb/spca5xx.c: USB SPCA5XX camera found. Type Flexcam 100 (SPCA561A)
Dec 24 02:48:12 proxy kernel: /root/spca/drivers/usb/spca5xx.c: [spca5xx_probe:8380] Camera type S561
Dec 24 02:48:12 proxy kernel: /root/spca/drivers/usb/spca5xx.c: [spca5xx_getcapability:2207] maxw 352 maxh 288 minw 160 minh 120
Dec 24 02:49:43 proxy kernel: usb 1-1: USB disconnect, address 3
Dec 24 02:49:53 proxy kernel: ohci_hcd 0000:00:02.2: wakeup
Dec 24 02:49:53 proxy kernel: usb 1-1: new full speed USB device using ohci_hcd and address 4
Dec 24 02:49:53 proxy kernel: quickcam: QuickCam USB camera found (driver version QuickCam USB 0.6.3 $Date: 2005/04/15 19:32:49 $)
Dec 24 02:49:53 proxy kernel: quickcam: Kernel:2.6.13-15-default bus:1 class:FF subclass:FF vendor:046D product:0850
Dec 24 02:49:53 proxy kernel: quickcam: Sensor VV6410 detected
Dec 24 02:49:53 proxy kernel: quickcam: Registered device: /dev/video1
Dec 24 02:50:17 proxy zmu[7920]: ERR [Shared memory not initialised by capture daemon]
I have them both set for 320x240 capture, and ntsc encoding.
- winblowzxp
- Posts: 14
- Joined: Fri Dec 23, 2005 9:15 pm
- Location: Republic of Texas, USA
-
- Posts: 5
- Joined: Thu Dec 22, 2005 4:52 pm
- Location: Providence, RI