Hi there,
I've got a 4port card setup and working with two cameras. I can capture at 320x240 AOK without problems, but when I change the camera inputs to 640x480, things go pear shaped.
I'm getting this in the log file
[root@localhost tmp]# tail zmdc.log -f
'zma -m 1' starting at 04/02/08 19:00:07, pid = 8005
'zma -m 1' crashed at 04/02/08 19:00:07, exit status 255
Use of uninitialized value in hash element at /usr/local/bin/zmdc.pl line 332, <CLIENT> line 1.
'zmc -d 0' starting at 04/02/08 19:00:08, pid = 8009
'zmc -d 0' started at 04/02/08 19:00:08
'zmc -d 0' crashed at 04/02/08 19:00:08, exit status 255
Use of uninitialized value in hash element at /usr/local/bin/zmdc.pl line 332, <CLIENT> line 1.
'zmc -d 0' started at 04/02/08 19:00:08
'zmc -d 0' starting at 04/02/08 19:00:08, pid = 8017
'zmc -d 0' crashed at 04/02/08 19:00:09, exit status 255
Use of uninitialized value in hash element at /usr/local/bin/zmdc.pl line 332, <CLIENT> line 1.
'zmc -d 0' started at 04/02/08 19:00:19
'zmc -d 0' starting at 04/02/08 19:00:19, pid = 8034
'zmc -d 0' crashed at 04/02/08 19:00:19, exit status 255
Use of uninitialized value in hash element at /usr/local/bin/zmdc.pl line 332, <CLIENT> line 1.
'zmc -d 0' starting at 04/02/08 19:00:19, pid = 8038
'zmc -d 0' started at 04/02/08 19:00:19
'zmc -d 0' crashed at 04/02/08 19:00:19, exit status 255
line 332 of /usr/local/bin/zmdc.pl is " if ( $pid_hash{$cpid} )"
Any ideas? I would LOVE to get this working in 640x480. I've tried the card using xawtv and it works in 640x480.
Any tips?
Oh the system is redhat 9, 1gb ram, P4, running version ZM 1.17.1
getting 640x480 working?
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Re: getting 640x480 working?
Hi Andrew,
I suspect if you look in /var/log/messages you will see the real reason why things aren't working , zmdc is just reporting that the capture daemon (zmc) has faled whereas 'messages' will say why. It's almost certainly going to be either (a) you need to configure your system to allow larger blocks of shared memory to be allocated or (b) something is hanging onto the old shared memory block and not allowing it to be deleted and recreated at it's new size. If your problem is (a) then look at <a href="http://www.zoneminder.com/index.php?id= ... q=10">this FAQ entry</a> and if it is (b) do a full ZM restart making sure that all ZM processes (including zms) have died.
Cheers,
Phil,
I suspect if you look in /var/log/messages you will see the real reason why things aren't working , zmdc is just reporting that the capture daemon (zmc) has faled whereas 'messages' will say why. It's almost certainly going to be either (a) you need to configure your system to allow larger blocks of shared memory to be allocated or (b) something is hanging onto the old shared memory block and not allowing it to be deleted and recreated at it's new size. If your problem is (a) then look at <a href="http://www.zoneminder.com/index.php?id= ... q=10">this FAQ entry</a> and if it is (b) do a full ZM restart making sure that all ZM processes (including zms) have died.
Cheers,
Phil,
Re: getting 640x480 working?
Ok then a dump of the logs...
Do you think I need to increase it again? The machine has the RAM there...
Feb 10 20:06:02 localhost zma-m1[4704]: INF [Got 1 monitors]
Feb 10 20:06:02 localhost zma-m2[4705]: INF [Got 1 monitors]
Feb 10 20:06:02 localhost zmc-d0[4268]: INF [H:480]
Feb 10 20:06:02 localhost zma-m1[4704]: INF [monitor purpose=2]
Feb 10 20:06:02 localhost zma-m2[4705]: INF [monitor purpose=2]
Feb 10 20:06:02 localhost zmc-d0[4268]: ERR [Failed to set window attributes: Invalid argument]
Feb 10 20:06:02 localhost zma-m1[4704]: INF [shm.size=30720448]
Feb 10 20:06:02 localhost zma-m2[4705]: INF [shm.size=7680448]
Feb 10 20:06:02 localhost zma-m1[4704]: ERR [Shared memory not initialised by capture daemon]
Feb 10 20:06:03 localhost zma-m2[4705]: ERR [Shared memory not initialised by capture daemon]
[root@localhost log]# cat /proc/sys/kernel/shmmax
134217728
[root@localhost log]#
Do you think I need to increase it again? The machine has the RAM there...
Feb 10 20:06:02 localhost zma-m1[4704]: INF [Got 1 monitors]
Feb 10 20:06:02 localhost zma-m2[4705]: INF [Got 1 monitors]
Feb 10 20:06:02 localhost zmc-d0[4268]: INF [H:480]
Feb 10 20:06:02 localhost zma-m1[4704]: INF [monitor purpose=2]
Feb 10 20:06:02 localhost zma-m2[4705]: INF [monitor purpose=2]
Feb 10 20:06:02 localhost zmc-d0[4268]: ERR [Failed to set window attributes: Invalid argument]
Feb 10 20:06:02 localhost zma-m1[4704]: INF [shm.size=30720448]
Feb 10 20:06:02 localhost zma-m2[4705]: INF [shm.size=7680448]
Feb 10 20:06:02 localhost zma-m1[4704]: ERR [Shared memory not initialised by capture daemon]
Feb 10 20:06:03 localhost zma-m2[4705]: ERR [Shared memory not initialised by capture daemon]
[root@localhost log]# cat /proc/sys/kernel/shmmax
134217728
[root@localhost log]#