Camera devices not loading/starting

Forum for questions and support relating to the 1.24.x releases only.
Locked
ricks03

Camera devices not loading/starting

Post by ricks03 »

I'm migrating from a formerly working 1.22.3 config to 1.24.1 on CentOS 5.2. I was having issues with system stability when also running with my PVR -350 (with mythtv). I finally narrowed that down to somewhere in ZM and/or the capture card.

While debugging I did a lot of system changes, most significantly turning off ZM and enabling ACPI, and changing the file system to XFS. Now the system is stable, and I want to get ZM working, and upgrade from my old 1.22.3 to 1.24.1

ZM is configured and I can get to the web page. however, when I add the cards they don't "start", and I get errors in /var/log/messages (see below).

the devices are listed in dev/video[x]. I can see the interrupts in use in /proc/interrupts, and the card (a LMBT44) initializes in dmesg. Here's one of the four bttv devices:
bttv0: Bt878 (rev 17) at 0000:02:00.0, irq: 217, latency: 32, mmio: 0xf7fff000
bttv0: using: *** UNKNOWN/GENERIC *** [card=0,autodetected]
bttv0: gpio: en=00000000, out=00000000 in=008ff000 [init]
bttv0: using tuner=-1
bttv0: i2c: checking for MSP34xx @ 0x80... not found
bttv0: i2c: checking for TDA9875 @ 0xb0... not found
bttv0: i2c: checking for TDA7432 @ 0x8a... not found
bttv0: i2c: checking for TDA9887 @ 0x86... not found
bttv0: registered device video1
bttv0: registered device vbi1

(it at least used to work when autodetecting, setting the card to 118 per the lmbt instructions doesn't change anything)

When I run (for example)
xawtv -device /dev/video2

I get a mess on the screen, but it's definitely something (if I disconnect he camera I get a blue screen, if I reconnect the camera I'm back to something that looks like lines of static). If I connect the camera to video in on the TV I get (proper) video.


Any suggestions on where to troubleshoot?

Rick



Apr 21 20:23:04 glutton zmfix[28845]: ERR [Can't stat /dev/video2: No such file or directory]
Apr 21 20:23:04 glutton zmfix[28845]: ERR [Can't stat /dev/video3: No such file or directory]
Apr 21 20:23:04 glutton zmfix[28845]: ERR [Can't stat /dev/video1: No such file or directory]
Apr 21 20:23:04 glutton zmfix[28845]: ERR [Can't stat /dev/video4: No such file or directory]
Apr 21 20:23:08 glutton zmc_dvideo2[28869]: FAT [Failed to stat video device /dev/video2: No such file or directory]
Apr 21 20:23:08 glutton zmc_dvideo2[28869]: ERR [Signal address is 0x206, no eip]
Apr 21 20:23:08 glutton zmc_dvideo2[28869]: ERR [Backtrace: /lib64/libpthread.so.0 [0x2b3a1cd084c0]]
Apr 21 20:23:08 glutton zmc_dvideo2[28869]: ERR [Backtrace: /lib64/libc.so.6(gsignal+0x35) [0x324a830215]]
Apr 21 20:23:08 glutton zmc_dvideo2[28869]: ERR [Backtrace: /lib64/libc.so.6(abort+0x110) [0x324a831cc0]]
Apr 21 20:23:08 glutton zmc_dvideo2[28869]: ERR [Backtrace: /usr/local/bin/zmc [0x40d78e]]
Apr 21 20:23:08 glutton zmc_dvideo2[28869]: ERR [Backtrace: /usr/local/bin/zmc [0x41bb5c]]
Apr 21 20:23:08 glutton zmc_dvideo2[28869]: ERR [Backtrace: /usr/local/bin/zmc [0x41c77d]]
Apr 21 20:23:08 glutton zmc_dvideo2[28869]: ERR [Backtrace: /usr/local/bin/zmc [0x404fd5]]
Apr 21 20:23:08 glutton zmc_dvideo2[28869]: ERR [Backtrace: /lib64/libc.so.6(__libc_start_main+0xf4) [0x324a81d974]]
Apr 21 20:23:08 glutton zmc_dvideo2[28869]: ERR [Backtrace: /usr/local/bin/zmc(__gxx_personality_v0+0x1f9) [0x404b79]]
Apr 21 20:23:08 glutton zmdc[28847]: ERR ['zmc -d /dev/video2' exited abnormally, exit status 6]
Apr 21 20:23:08 glutton zmc_dvideo2[28871]: FAT [Failed to stat video device /dev/video2: No such file or directory]
Apr 21 20:23:08 glutton zmc_dvideo2[28871]: ERR [Signal address is 0x202, no eip]
Apr 21 20:23:08 glutton zmc_dvideo2[28871]: ERR [Backtrace: /lib64/libpthread.so.0 [0x2b3d571634c0]]
Apr 21 20:23:08 glutton zmc_dvideo2[28871]: ERR [Backtrace: /lib64/libc.so.6(gsignal+0x35) [0x324a830215]]
Apr 21 20:23:08 glutton zmc_dvideo2[28871]: ERR [Backtrace: /lib64/libc.so.6(abort+0x110) [0x324a831cc0]]
Apr 21 20:23:08 glutton zmc_dvideo2[28871]: ERR [Backtrace: /usr/local/bin/zmc [0x40d78e]]
Apr 21 20:23:08 glutton zmc_dvideo2[28871]: ERR [Backtrace: /usr/local/bin/zmc [0x41bb5c]]
Apr 21 20:23:08 glutton zmc_dvideo2[28871]: ERR [Backtrace: /usr/local/bin/zmc [0x41c77d]]
Apr 21 20:23:08 glutton zmc_dvideo2[28871]: ERR [Backtrace: /usr/local/bin/zmc [0x404fd5]]
Apr 21 20:23:08 glutton zmc_dvideo2[28871]: ERR [Backtrace: /lib64/libc.so.6(__libc_start_main+0xf4) [0x324a81d974]]
Apr 21 20:23:08 glutton zmc_dvideo2[28871]: ERR [Backtrace: /usr/local/bin/zmc(__gxx_personality_v0+0x1f9) [0x404b79]]
Apr 21 20:23:08 glutton zmdc[28847]: ERR ['zmc -d /dev/video2' exited abnormally, exit status 6]
Apr 21 20:23:08 glutton zma_m1[28872]: WAR [Waiting for capture daemon]
Apr 21 20:23:09 glutton zmc_dvideo3[28874]: FAT [Failed to stat video device /dev/video3: No such file or directory]
Apr 21 20:23:09 glutton zmc_dvideo3[28874]: ERR [Signal address is 0x206, no eip]
Apr 21 20:23:09 glutton zmc_dvideo3[28874]: ERR [Backtrace: /lib64/libpthread.so.0 [0x2af91b2e24c0]]
Apr 21 20:23:09 glutton zmc_dvideo3[28874]: ERR [Backtrace: /lib64/libc.so.6(gsignal+0x35) [0x324a830215]]
Apr 21 20:23:09 glutton zmc_dvideo3[28874]: ERR [Backtrace: /lib64/libc.so.6(abort+0x110) [0x324a831cc0]]
Apr 21 20:23:09 glutton zmc_dvideo3[28874]: ERR [Backtrace: /usr/local/bin/zmc [0x40d78e]]
Apr 21 20:23:09 glutton zmc_dvideo3[28874]: ERR [Backtrace: /usr/local/bin/zmc [0x41bb5c]]
Apr 21 20:23:09 glutton zmc_dvideo3[28874]: ERR [Backtrace: /usr/local/bin/zmc [0x41c77d]]
Apr 21 20:23:09 glutton zmc_dvideo3[28874]: ERR [Backtrace: /usr/local/bin/zmc [0x404fd5]]
Apr 21 20:23:09 glutton zmc_dvideo3[28874]: ERR [Backtrace: /lib64/libc.so.6(__libc_start_main+0xf4) [0x324a81d974]]
Apr 21 20:23:09 glutton zmc_dvideo3[28874]: ERR [Backtrace: /usr/local/bin/zmc(__gxx_personality_v0+0x1f9) [0x404b79]]
Apr 21 20:23:09 glutton zmdc[28847]: ERR ['zmc -d /dev/video3' exited abnormally, exit status 6]
Apr 21 20:23:09 glutton zmc_dvideo3[28876]: FAT [Failed to stat video device /dev/video3: No such file or directory]
Apr 21 20:23:09 glutton zmc_dvideo3[28876]: ERR [Signal address is 0x206, no eip]
Apr 21 20:23:09 glutton zmc_dvideo3[28876]: ERR [Backtrace: /lib64/libpthread.so.0 [0x2b833098c4c0]]
Apr 21 20:23:09 glutton zmc_dvideo3[28876]: ERR [Backtrace: /lib64/libc.so.6(gsignal+0x35) [0x324a830215]]
Apr 21 20:23:09 glutton zmc_dvideo3[28876]: ERR [Backtrace: /lib64/libc.so.6(abort+0x110) [0x324a831cc0]]
Apr 21 20:23:09 glutton zmc_dvideo3[28876]: ERR [Backtrace: /usr/local/bin/zmc [0x40d78e]]
Apr 21 20:23:09 glutton zmc_dvideo3[28876]: ERR [Backtrace: /usr/local/bin/zmc [0x41bb5c]]
Apr 21 20:23:09 glutton zmc_dvideo3[28876]: ERR [Backtrace: /usr/local/bin/zmc [0x41c77d]]
Apr 21 20:23:09 glutton zmc_dvideo3[28876]: ERR [Backtrace: /usr/local/bin/zmc [0x404fd5]]
Apr 21 20:23:09 glutton zmc_dvideo3[28876]: ERR [Backtrace: /lib64/libc.so.6(__libc_start_main+0xf4) [0x324a81d974]]
Apr 21 20:23:09 glutton zmc_dvideo3[28876]: ERR [Backtrace: /usr/local/bin/zmc(__gxx_personality_v0+0x1f9) [0x404b79]]
Apr 21 20:23:09 glutton zmdc[28847]: ERR ['zmc -d /dev/video3' exited abnormally, exit status 6]
Apr 21 20:23:09 glutton zma_m2[28877]: WAR [Waiting for capture daemon]
Apr 21 20:23:09 glutton zma_m1[28872]: WAR [Waiting for capture daemon]
Apr 21 20:23:10 glutton zmc_dvideo1[28879]: FAT [Failed to stat video device /dev/video1: No such file or directory]
ricks03

Capture failure for frame 0: Invalid argument?

Post by ricks03 »

Seems like the main error that starts everything off is
Apr 21 23:54:03 glutton zmc_dvideo2[30165]: ERR [Capture failure for frame 0: Invalid argument]
ricks03

Post by ricks03 »

I can now get ZM 1.22.3 to work, and the cameras to display proper video in xawtv (woot, darned thing was in PAL not NTSC).

However, install ing 1.24.1 fails (see previous post about
[root@glutton ZoneMinder-1.24.1]# zmupdate.pl -f
Warning, overriding installed ./zm.conf file with local copy
Bareword "ZM_USE_DEEP_STORAGE" not allowed while "strict subs" in use at /usr/lib/perl5/site_perl/5.8.8/ZoneMinder/General.pm line 95.
BEGIN not safe after errors--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/ZoneMinder/General.pm line 113.
Compilation failed in require at /usr/local/bin/zmupdate.pl line 51.
BEGIN failed--compilation aborted at /usr/local/bin/zmupdate.pl line 51.


If I erase and reconfigure the database I can then install 1.24.1, but with the same camera config, the cameras won't start. So I'm pretty confident at this point there's an error somewhere in ZM., as I've validated the environment.
ricks03

1.24.1 won't work where 1.23.3 will

Post by ricks03 »

One better.
If I install 1.23.3 (which works instantly), then
service zm stop
cd /tmp/Zoneminder1.24.1
./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=zmuser ZM_DB_PASS=zmpass --with-mysql=/usr/lib64/mysql -with-extralibs="-L/usr/lib64 -L/usr/lib64/mysql"
make
make install
zmupdate.pl -f

The cameras fail.

If I then:
cd /tmp/Zoneminder1.23.3
./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=zmuser ZM_DB_PASS=zmpass --with-mysql=/usr/lib64/mysql -with-extralibs="-L/usr/lib64 -L/usr/lib64/mysql"
make
make install
zmupdate.pl -f

the cameras come back on line.
Locked