Shared memory not initialised by capture daemon
Posted: Thu Dec 22, 2005 5:06 pm
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?