It was runing very smooth from weeks now.
I have a pal camera plugged in a miro PCTV board.
My mysql version is 4.0.23_Debian-3ubuntu2.1-log, runing on an old fashioned celeron 500 with 128 Mbytes of memory.
My source device appears red on the console.
With xawtv i have a good image.
Here is a sample of what i can read in zmdc.log
Here is the line 247 of SharedMem.pm02/19/06 22:47:24.065747 zmdc[9945].ERR ['zma -m 1' crashed, exit status 255]
Use of uninitialized value in numeric ne (!=) at /usr/local/share/perl/5.8.4/Zon
eMinder/SharedMem.pm line 247.
Use of uninitialized value in concatenation (.) or string at /usr/local/share/pe
rl/5.8.4/ZoneMinder/SharedMem.pm line 255.
02/19/06 22:47:25.316597 zmdc[10040].INF ['zmc -d /dev/video0' started at 06/02/
19 22:47:25]
02/19/06 22:47:25.351199 zmdc[9945].INF ['zmc -d /dev/video0' starting at 06/02/
19 22:47:25, pid = 10040]
02/19/06 22:47:25.352802 zmdc[9945].ERR ['zmc -d /dev/video0' crashed, exit stat
us 255]
Use of uninitialized value in numeric ne (!=) at /usr/local/share/perl/5.8.4/Zon
eMinder/SharedMem.pm line 247.
Use of uninitialized value in concatenation (.) or string at /usr/local/share/pe
rl/5.8.4/ZoneMinder/SharedMem.pm line 255.
if ( $sd_size != $shm_data->{shared_data}->{size} )
and its line 255
Debug( "Shared memory size conflict in shared_data, expected ".$shm_data->{shared_data}->{size}.", got ".$sd_size );
After reading the forum I found this post
http://www.zoneminder.com/forums/viewto ... 8277c8d6f9
I tried the "zmfix and zmupdate -f as root" solution, but it did not work.
Then I went into zmwatch.log and got on the same date/time :
02/19/06 22:46:54.566210 zmwatch[9992].INF [Watchdog starting]
02/19/06 22:46:54.581352 zmwatch[9992].INF [Watchdog pausing for 30 seconds]
02/19/06 22:47:24.587773 zmwatch[9992].ERR [Can't read 'shared_data:size' from s
hared memory '7a6d2001/0': Permission denied]
02/19/06 22:47:24.589298 zmwatch[9992].INF [Restarting capture daemon for rue, s
hared memory not valid]
02/19/06 22:47:25.369086 zmwatch[9992].INF ['zmc -d /dev/video0' started at 06/0
2/19 22:47:25] at /usr/local/bin/zmwatch.pl line 118
02/19/06 22:47:35.407175 zmwatch[9992].ERR [Can't read 'shared_data:size' from s
hared memory '7a6d2001/0': Permission denied]
02/19/06 22:47:35.408266 zmwatch[9992].INF [Restarting capture daemon for rue, s
hared memory not valid]
02/19/06 22:47:36.298090 zmwatch[9992].INF ['zmc -d /dev/video0' starting at 06/
02/19 22:47:36, pid = 10053] at /usr/local/bin/zmwatch.pl line 118
in /var/log/messages
Feb 19 22:47:24 localhost zmwatch[9992]: INF [Restarting capture daemon for rue,
shared memory not valid]
I also unchecked ZM_STRICT_VIDEO_CONFIG, did nothing
I activated debug informations loging.
here are some informations :
02/20/06 12:08:50.843877 zmfix[11401].DB1-zmfix.cpp/67 [Permissions on /dev/vide
o0 are ok at 20666]
During my search for a solution i created a second monitor, which I can not delete now !
Now, the most interesting thing I found
I ran, as root, this script
Code: Select all
#!/usr/bin/perl -w0
use strict;
$| = 1;
use ZoneMinder::Config qw/:all/;
print ZM_SHM_KEY."\n";
I ran ipcs -m to check if the shared memory is initialized here is the output0x7a6d2000
There is a difference on the numbers : 0x7a6d2001 and 0x7a6d2000------ Segment de mémoire partagé --------
clé shmid propriétaire perms octets nattch états
0x7a6d2001 0 root 700 2560708 0
is this the problem source ?
Should I change ZM_SHM_KEY in my options panel to 0x7a6d2001 ?
Is the fact that the shared memory belong to root the problem ?