Kodicom 8800r

Post here to ask any questions about hardware suitability, configuration in ZoneMinder, or experiences. If you just want to know if something works with ZoneMinder or not, please check the Hardware Compatibility sections in the forum, and the Wiki first. Also search this topic as well.
Post Reply
gianrubio
Posts: 15
Joined: Wed Sep 17, 2008 10:33 am

Kodicom 8800r

Post by gianrubio »

Hi all:

I'm using kodicom 8800r on Centos 5.2 and Zoneminder 1.23.With xawtv i can watch all channels. If i setup only 1 cam on zm are ok, when add a second cam zm stop and show this log

Code: Select all

Jan 19 10:23:30 localhost zms[27525]: ERR [Got signal (Floating point exception), crashing]
Jan 19 10:23:30 localhost zms[27525]: ERR [Signal address is (nil), from 0x806785f ]
Jan 19 10:23:30 localhost zms[27525]: ERR [Backtrace: /var/www/cgi-bin/nph-zms [0x806785f]]
Jan 19 10:23:30 localhost zms[27525]: ERR [Backtrace: /var/www/cgi-bin/nph-zms [0x806785f]]
Jan 19 10:23:30 localhost zms[27525]: ERR [Backtrace: /var/www/cgi-bin/nph-zms [0x804aebf]]
Jan 19 10:23:30 localhost zms[27525]: ERR [Backtrace: /lib/libc.so.6(__libc_start_main+0xdc) [0x9d8dec]]
Jan 19 10:23:30 localhost zms[27525]: ERR [Backtrace: /var/www/cgi-bin/nph-zms(__gxx_personality_v0+0x225) [0x804a331]]
Jan 19 10:23:30 localhost zms[27525]: INF [Backtrace complete]
Jan 19 10:23:30 localhost zmc_dvideo0[27523]: ERR [Failed to get camera source 1: Invalid argument]
Jan 19 10:23:30 localhost zmc_dvideo0[27523]: ERR [Failed to pre-capture monitor 1]
Jan 19 10:23:30 localhost zmdc[27423]: ERR ['zmc -d /dev/video0' exited abnormally, exit status 255] 
Jan 19 10:23:30 localhost zms[27530]: INF [Debug Level = 0, Debug Log = <none>]
Jan 19 10:23:30 localhost zms[27530]: ERR [Got signal (Floating point exception), crashing]
Jan 19 10:23:30 localhost zms[27530]: ERR [Signal address is (nil), from 0x806785f ]
Jan 19 10:23:30 localhost zms[27530]: ERR [Backtrace: /var/www/cgi-bin/nph-zms [0x806785f]]
Jan 19 10:23:30 localhost zms[27530]: ERR [Backtrace: /var/www/cgi-bin/nph-zms [0x806785f]]
Jan 19 10:23:30 localhost zms[27530]: ERR [Backtrace: /var/www/cgi-bin/nph-zms [0x804aebf]]
Jan 19 10:23:30 localhost zms[27530]: ERR [Backtrace: /lib/libc.so.6(__libc_start_main+0xdc) [0x9d8dec]]
Jan 19 10:23:30 localhost zms[27530]: ERR [Backtrace: /var/www/cgi-bin/nph-zms(__gxx_personality_v0+0x225) [0x804a331]]
Jan 19 10:23:30 localhost zms[27530]: INF [Backtrace complete]
Jan 19 10:23:33 localhost zmu[27533]: WAR [Shared memory not initialised by capture daemon, some query functions may not be available or produce invalid results]
Jan 19 10:23:38 localhost zmwatch[27460]: ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory] 
Jan 19 10:23:38 localhost zmwatch[27460]: INF [Restarting capture daemon for Cam0, shared memory not valid] 
Jan 19 10:23:38 localhost zmdc[27423]: INF ['zmc -d /dev/video0' starting at 09/01/19 10:23:38, pid = 27539] 
Jan 19 10:23:38 localhost zmdc[27539]: INF ['zmc -d /dev/video0' started at 09/01/19 10:23:38] 
Jan 19 10:23:38 localhost zmc_dvideo0[27539]: INF [Debug Level = 0, Debug Log = <none>]
Jan 19 10:23:39 localhost zmc_dvideo0[27539]: INF [Starting Capture]
Jan 19 10:23:39 localhost zmwatch[27460]: INF ['zmc -d /dev/video0' starting at 09/01/19 10:23:38, pid = 27539] 

#addr2line -e /var/www/cgi-bin/nph-zms 0x806785f 0x804aebf
/root/ZoneMinder-1.23.3/src/zm_monitor.cpp:3140
/root/ZoneMinder-1.23.3/src/zm_monitor.h:350

line 3140

Code: Select all

   {   
                        Warning(( "Unable to store frame as timestamp invalid" ));
                    }
                }
                else
                {   
                    Warning(( "Unable to store frame as shared memory invalid" ));
                }
            }
                        frame_count++;
                }
               [b] usleep( (1000000 * ZM_RATE_BASE)/(base_fps*abs(replay_rate*2)) );[/b]
        if ( ttl )
        {   
            if ( (now.tv_sec - stream_start_time) > ttl )
            {   
                break;
My modprobe.conf like this

Code: Select all

options bttv gbuffers=16 card=102,102,102,102,102,102,102,102
options i2c_algo_bit bit_test=1 
The dvr card lspci

Code: Select all

...
02:0d.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
        Flags: bus master, medium devsel, latency 32, IRQ 3
        Memory at dc00b000 (32-bit, prefetchable) [size=4K]
        Capabilities: [44] Vital Product Data
        Capabilities: [4c] Power Management version 2

02:0e.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
        Flags: bus master, medium devsel, latency 32, IRQ 225
        Memory at dc00c000 (32-bit, prefetchable) [size=4K]
        Capabilities: [44] Vital Product Data
        Capabilities: [4c] Power Management version 2

02:0e.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
        Flags: bus master, medium devsel, latency 32, IRQ 5
        Memory at dc00d000 (32-bit, prefetchable) [size=4K]
        Capabilities: [44] Vital Product Data
        Capabilities: [4c] Power Management version 2

02:0f.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
        Flags: bus master, medium devsel, latency 32, IRQ 201
        Memory at dc00e000 (32-bit, prefetchable) [size=4K]
        Capabilities: [44] Vital Product Data
        Capabilities: [4c] Power Management version 2

02:0f.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
        Flags: bus master, medium devsel, latency 32, IRQ 11
        Memory at dc00f000 (32-bit, prefetchable) [size=4K]
        Capabilities: [44] Vital Product Data
        Capabilities: [4c] Power Management version 2
sysctl.conf

Code: Select all

kernel.shmmax = 486604800 
kernel.shmall = 486604800
Image

Can anyone help me?
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Have you tried configuring all your cams/inputs then restarting ZM?
gianrubio
Posts: 15
Joined: Wed Sep 17, 2008 10:33 am

Post by gianrubio »

the same problem with all camera setuped and the zoneminder and server restarted
gianrubio
Posts: 15
Joined: Wed Sep 17, 2008 10:33 am

Post by gianrubio »

more info
if i setup only one camera like /dev/video0 (0) the zm show the cam,
when i setup one camera like /dev/video0 (1) the zm bug wiht float exception

i think is the driver of bt878 is the problem, but with xawtv all camera simultaneous are ok
gianrubio
Posts: 15
Joined: Wed Sep 17, 2008 10:33 am

Post by gianrubio »

sorry about mistake
i have wrong config of cameras
/dev/video0 (0)
/dev/video0 (1)
/dev/video0 (2)
...
the correct is

/dev/video0 (0)
/dev/video1 (0)
/dev/video2 (0)
/dev/video3 (0)
...
coke
Posts: 518
Joined: Wed Jan 30, 2008 5:53 pm
Location: St. Louis, MO, USA

Post by coke »

Isn't that relevant?

Code: Select all

Jan 19 10:23:33 localhost zmu[27533]: WAR [Shared memory not initialised by capture daemon, some query functions may not be available or produce invalid results]
Jan 19 10:23:38 localhost zmwatch[27460]: ERR [Can't get shared memory id '7a6d0001', 1: No such file or directory]
Jan 19 10:23:38 localhost zmwatch[27460]: INF [Restarting capture daemon for Cam0, shared memory not valid] 
neb
Posts: 6
Joined: Wed Dec 17, 2008 12:21 am

Post by neb »

just change this:

usleep( (1000000 * ZM_RATE_BASE)/(base_fps*abs(replay_rate*2)) );

to this:

usleep( (1000000 * ZM_RATE_BASE)/((base_fps?base_fps:1)*abs(replay_rate*2)) );

It's a divide by 0 exception where the base_fps was 0. Nothing was written into the buffer since the last time this function was called. Mine did that because I was intentionally slowing down capture when zm was disabled.
gianrubio
Posts: 15
Joined: Wed Sep 17, 2008 10:33 am

Post by gianrubio »

solved with the correct configuration

changed from

/dev/video0 (0)
/dev/video0 (1)
/dev/video0 (2)

to

/dev/video0 (0)
/dev/video1 (0)
/dev/video2 (0)
/dev/video3 (0)
Post Reply