blank screen after 2 or 3 hours: zmc or bttv?

Support and queries relating to all previous versions of ZoneMinder
Locked
User avatar
davide
Posts: 78
Joined: Mon Mar 22, 2004 1:04 am
Location: Italy

blank screen after 2 or 3 hours: zmc or bttv?

Post by davide »

hi all,

I don't know the source of this problem, could be zmc or a wrong installation of bttv or whatever..

Today I got black images from /dev/video0 after 3 hours of modect, I restarted zm, all ok but after 2 hours black screen again, and so on..

system specs:
VIA vt8235, duron 1200, RAM 256 DDR, video capture card: grandtec (card=103).
buffer ring = 60
only 1 source, capture size: 384x288 RGB 565
LiveCD installation with zm upgraded to 1.19.4 (so its mandrake kernel version 2.6.3-4mdk)

here are 2 cut&paste from /var/log/messages:

Code: Select all

[...]
May 21 16:31:15 videoserver zmc-d0[2847]: ERR [Sync failure for frame 4: Input/output error]
May 21 16:31:15 videoserver kernel: bttv0: timeout: irq=825088/825088, risc=0859336c, bits: HSYNC OFLOW
May 21 16:31:15 videoserver kernel: bttv0: reset, reinitialize
May 21 16:31:15 videoserver zmc-d0[2847]: ERR [Sync failure for frame 4: Invalid argument]
May 21 16:31:15 videoserver last message repeated 5 times
May 21 16:31:15 videoserver kernel: bttv0: PLL: 28636363 => 35468950 . ok
May 21 16:31:17 videoserver zma-m1[2851]: INF [New: 232520 - Gone into alarm state]
May 21 16:31:19 videoserver zma-m1[2851]: INF [New: 232538 - Left alarm state (394) - 28(8) images]
[...]

May 21 19:03:57 videoserver zma-m1[3732]: INF [New: 109000 - Processing at 25.00 fps]
May 21 19:03:58 videoserver zma-m1[3732]: INF [New: 109040 - Left alarm state (709) - 78(53) images]
May 21 19:04:02 videoserver zmc-d0[3728]: ERR [Sync failure for frame 4: Input/output error]
May 21 19:04:02 videoserver kernel: bttv0: timeout: irq=1232238/1232239, risc=0d21703c, bits: HSYNC OFLOW
May 21 19:04:02 videoserver kernel: bttv0: reset, reinitialize
May 21 19:04:02 videoserver zmc-d0[3728]: ERR [Sync failure for frame 4: Invalid argument]
May 21 19:04:02 videoserver last message repeated 5 times
May 21 19:04:02 videoserver kernel: bttv0: PLL: 28636363 => 35468950 . ok
May 21 19:04:04 videoserver zma-m1[3732]: INF [New: 109136 - Gone into alarm state]
May 21 19:04:06 videoserver zma-m1[3732]: INF [New: 109153 - Left alarm state (710) - 27(7) images]
regards,
User avatar
rdmelin
Posts: 863
Joined: Wed Oct 29, 2003 2:23 pm
Location: Ellensburg, WA USA

Post by rdmelin »

Hi Davide,
Try booting with "noapic" or "pci=noacpi" or both.

Ross
User avatar
davide
Posts: 78
Joined: Mon Mar 22, 2004 1:04 am
Location: Italy

Post by davide »

hi Ross,
I am not sure if I did well..
can you check?

here is my new lilo.conf

Code: Select all

[root@videoserver etc]# more lilo.conf
boot=/dev/hda
map=/boot/map
default="Mandrake_noapic_pci=noacpi"
keytable=/boot/livecd.klt
prompt
nowarn
timeout=100
message=/boot/message
menu-scheme=wb:bw:wb:bw
image=/boot/vmlinuz-2.6.3-4mdk
        label="Mandrake_noapic_pci=noacpi"
        root=/dev/hda1
        initrd=/boot/initrd-2.6.3-4mdk.img
        append="noapic pci=noacpi devfs=mount splash=silent"
        vga=791
        read-only

Code: Select all

[root@videoserver log]# more dmesg
Linux version 2.6.3-4mdk (nplanel@n3.mandrakesoft.com) (gcc version 3.3.2 (Mandr
ake Linux 10.0 3.3.2-6mdk)) #1 Tue Mar 2 07:26:13 CET 2004
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
 BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000000dff0000 (usable)
 BIOS-e820: 000000000dff0000 - 000000000dff3000 (ACPI NVS)
 BIOS-e820: 000000000dff3000 - 000000000e000000 (ACPI data)
 BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved)
 BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
 BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
223MB LOWMEM available.
found SMP MP-table at 000f5a70
hm, page 000f5000 reserved twice.
hm, page 000f6000 reserved twice.
hm, page 000f1000 reserved twice.
hm, page 000f2000 reserved twice.
On node 0 totalpages: 57328
  DMA zone: 4096 pages, LIFO batch:1
  Normal zone: 53232 pages, LIFO batch:12
  HighMem zone: 0 pages, LIFO batch:1
DMI 2.3 present.
ACPI: RSDP (v000 KM400                                     ) @ 0x000f78d0
ACPI: RSDT (v001 KM400  AWRDACPI 0x42302e31 AWRD 0x00000000) @ 0x0dff3000
ACPI: FADT (v001 KM400  AWRDACPI 0x42302e31 AWRD 0x00000000) @ 0x0dff3040
ACPI: MADT (v001 KM400  AWRDACPI 0x42302e31 AWRD 0x00000000) @ 0x0dff7140
ACPI: DSDT (v001 KM400  AWRDACPI 0x00001000 MSFT 0x0100000e) @ 0x00000000
ACPI: PM-Timer IO Port: 0x408
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
Processor #0 6:8 APIC version 16
ACPI: LAPIC_NMI (acpi_id[0x00] high edge lint[0x1])
Using ACPI for processor (LAPIC) configuration information
Intel MultiProcessor Specification v1.4
    Virtual Wire compatibility mode.
OEM ID: OEM00000 Product ID: PROD00000000 APIC at: 0xFEE00000
I/O APIC #2 Version 17 at 0xFEC00000.
Enabling APIC mode:  Flat.  Using 1 I/O APICs
Processors: 1
Built 1 zonelists
Kernel command line: BOOT_IMAGE=Mandrake_noapic_pci=noacpi ro root=301 noapic pci=noacpi devfs=mount splash=silent
bootsplash: silent mode.
Initializing CPU#0
PID hash table entries: 1024 (order 10: 8192 bytes)
Detected 1212.835 MHz processor.
Using pmtmr for high-res timesource
Console: colour dummy device 80x25
Memory: 223032k/229312k available (1815k kernel code, 5616k reserved, 846k data,
 272k init, 0k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay loop... 2392.06 BogoMIPS
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
checking if image is initramfs...it isn't (no cpio magic); looks like an initrd
Freeing initrd memory: 66k freed
CPU:     After generic identify, caps: 0383fbff c1c3fbff 00000000 00000000
CPU:     After vendor identify, caps: 0383fbff c1c3fbff 00000000 00000000
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 64K (64 bytes/line)
CPU:     After all inits, caps: 0383fbff c1c3fbff 00000000 00000020
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU: AMD Duron(tm) processor stepping 01
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
enabled ExtINT on CPU#0
ESR value before enabling vector: 00000000
ESR value after enabling vector: 00000000
Using local APIC timer interrupts.
calibrating APIC timer ...
..... CPU clock speed is 1211.0864 MHz.
..... host bus clock speed is 201.0977 MHz.
NET: Registered protocol family 16
EISA bus registered
PCI: PCI BIOS revision 2.10 entry at 0xfb5c0, last bus=1
PCI: Using configuration type 1
mtrr: v2.0 (20020519)
ACPI: Subsystem revision 20040211
Looking for DSDT in initrd ... not found!
ACPI: IRQ9 SCI: Level Trigger.
spurious 8259A interrupt: IRQ7.
ACPI: Interpreter enabled
ACPI: Using PIC for interrupt routing
ACPI: PCI Root Bridge [PCI0] (00:00)
PCI: Probing PCI hardware (bus 00)
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Link [LNKA] (IRQs 1 3 4 5 6 7 10 *11 12 14 15)
ACPI: PCI Interrupt Link [LNKB] (IRQs 1 *3 4 5 6 7 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKC] (IRQs 1 3 4 5 6 7 *10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKD] (IRQs 1 3 4 *5 6 7 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKE] (IRQs 1 3 4 5 6 7 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNKF] (IRQs 1 3 4 5 6 7 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNK0] (IRQs 1 3 4 5 6 7 10 11 12 14 15)
ACPI: PCI Interrupt Link [LNK1] (IRQs 1 3 4 5 6 7 10 11 12 14 15)
ACPI: PCI Interrupt Link [ALKA] (IRQs 20)
ACPI: PCI Interrupt Link [ALKB] (IRQs 21)
ACPI: PCI Interrupt Link [ALKC] (IRQs 22)
ACPI: PCI Interrupt Link [ALKD] (IRQs 23)
ACPI: Power Resource [PFAN] (off)
Linux Plug and Play Support v0.97 (c) Adam Belay
PnPBIOS: Disabled
PCI: Probing PCI hardware
PCI: Using IRQ router VIA [1106/3177] at 0000:00:11.0
vesafb: framebuffer at 0xd8000000, mapped to 0xce808000, size 16384k
vesafb: mode is 1024x768x16, linelength=2048, pages=20
vesafb: protected mode interface info at c000:7db3
vesafb: scrolling: redraw
vesafb: directcolor: size=0:5:6:5, shift=0:11:5:0
fb0: VESA VGA frame buffer device
apm: BIOS version 1.2 Flags 0x07 (Driver version 1.16ac)
apm: overridden by ACPI.
ikconfig 0.7 with /proc/config*
VFS: Disk quotas dquot_6.5.1
devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
Initializing Cryptographic API
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
bootsplash 3.1.3-2003/11/14: looking for picture.... silentjpeg size 21328 bytes
, found (1024x768, 21280 bytes, v3).
Console: switching to colour frame buffer device 118x39
pty: 1024 Unix98 ptys configured
Serial: 8250/16550 driver $Revision: 1.90 $ 8 ports, IRQ sharing enabled
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
RAMDISK driver initialized: 16 RAM disks of 32000K size 1024 blocksize
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: IDE controller at PCI slot 0000:00:11.1
VP_IDE: chipset revision 6
VP_IDE: not 100% native mode: will probe irqs later
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: VIA vt8235 (rev 00) IDE UDMA133 controller on pci0000:00:11.1
    ide0: BM-DMA at 0xdc00-0xdc07, BIOS settings: hda:DMA, hdb:DMA
    ide1: BM-DMA at 0xdc08-0xdc0f, BIOS settings: hdc:pio, hdd:pio
hda: Maxtor 6Y080L0, ATA DISK drive
hda: IRQ probe failed (0xfffffdfa)
hdb: LITE-ON LTR-16102B, ATAPI CD/DVD-ROM drive
hdb: IRQ probe failed (0xfffffdfa)
Using anticipatory io scheduler
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hda: max request size: 128KiB
hda: 160086528 sectors (81964 MB) w/2048KiB Cache, CHS=65535/16/63, UDMA(133)
 /dev/ide/host0/bus0/target0/lun0: p1 p2 < p5 p6 >
Console: switching to colour frame buffer device 118x39
mice: PS/2 mouse device common for all mice
serio: i8042 AUX port at 0x60,0x64 irq 12
input: PS/2 Generic Mouse on isa0060/serio1
serio: i8042 KBD port at 0x60,0x64 irq 1
atkbd.c: Unknown key released (translated set 0, code 0x1 on isa0060/serio0).
atkbd.c: Use 'setkeycodes 01 <keycode>' to make it known.
input: AT Translated Set 2 keyboard on isa0060/serio0
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
EISA: Probing bus 0 at eisa0
NET: Registered protocol family 2
IP: routing cache hash table of 2048 buckets, 16Kbytes
TCP: Hash tables configured (established 16384 bind 32768)
NET: Registered protocol family 1
BIOS EDD facility v0.12 2004-Jan-26, 1 devices found
Please report your BIOS at http://linux.dell.com/edd/results.html
PM: Reading pmdisk image.
PM: Resume from disk failed.
ACPI: (supports S0 S3 S4 S5)
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem).
Mounted devfs on /dev
Mounted devfs on /dev
Freeing unused kernel memory: 272k freed
Real Time Clock Driver v1.12
drivers/usb/core/usb.c: registered new driver usbfs
drivers/usb/core/usb.c: registered new driver hub
drivers/usb/host/uhci-hcd.c: USB Universal Host Controller Interface driver v2.1
PCI: Found IRQ 11 for device 0000:00:10.0
PCI: Sharing IRQ 11 with 0000:00:12.0
uhci_hcd 0000:00:10.0: UHCI Host Controller
uhci_hcd 0000:00:10.0: irq 11, io base 0000d000
uhci_hcd 0000:00:10.0: new USB bus registered, assigned bus number 1
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
PCI: Found IRQ 3 for device 0000:00:10.1
uhci_hcd 0000:00:10.1: UHCI Host Controller
uhci_hcd 0000:00:10.1: irq 3, io base 0000d400
uhci_hcd 0000:00:10.1: new USB bus registered, assigned bus number 2
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
PCI: Found IRQ 10 for device 0000:00:10.2
PCI: Sharing IRQ 10 with 0000:00:0a.0
PCI: Sharing IRQ 10 with 0000:00:0a.1
PCI: Sharing IRQ 10 with 0000:00:11.5
uhci_hcd 0000:00:10.2: UHCI Host Controller
uhci_hcd 0000:00:10.2: irq 10, io base 0000d800
uhci_hcd 0000:00:10.2: new USB bus registered, assigned bus number 3
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
PCI: Found IRQ 5 for device 0000:00:10.3
ehci_hcd 0000:00:10.3: EHCI Host Controller
ehci_hcd 0000:00:10.3: irq 5, pci mem cf80d000
ehci_hcd 0000:00:10.3: new USB bus registered, assigned bus number 4
ehci_hcd 0000:00:10.3: USB 2.0 enabled, EHCI 1.00, driver 2003-Dec-29
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 6 ports detected
Adding 650056k swap on /dev/hda5.  Priority:-1 extents:1
Linux video capture interface: v1.00
bttv: driver version 0.9.12 loaded
bttv: using 4 buffers with 2080k (520 pages) each for capture
bttv: Bt8xx card found (0).
PCI: Found IRQ 10 for device 0000:00:0a.0
PCI: Sharing IRQ 10 with 0000:00:0a.1
PCI: Sharing IRQ 10 with 0000:00:10.2
PCI: Sharing IRQ 10 with 0000:00:11.5
bttv0: Bt878 (rev 17) at 0000:00:0a.0, irq: 10, latency: 32, mmio: 0xde000000
bttv0: detected: Grandtec Grand X-Guard [card=103], PCI subsystem ID is 0304:010
2
bttv0: using: Grand X-Guard / Trust 814PCI [card=103,insmod option]
bttv0: gpio: en=00000000, out=00000000 in=00ffffff [init]
bttv0: using tuner=4
bttv0: registered device video0
bttv0: registered device vbi0
bttv0: PLL: 28636363 => 35468950 .. ok
Linux agpgart interface v0.100 (c) Dave Jones
agpgart: Detected VIA KM400/KM400A chipset
agpgart: Maximum main memory to use for agp memory: 176M
agpgart: AGP aperture is 128M @ 0xd0000000
Supermount version 2.0.4 for kernel 2.6
via-rhine.c:v1.10-LK1.1.19-2.5  July-12-2003  Written by Donald Becker
  http://www.scyld.com/network/via-rhine.html
PCI: Found IRQ 11 for device 0000:00:12.0
PCI: Sharing IRQ 11 with 0000:00:10.0
eth0: VIA VT6102 Rhine-II at 0xe400, 00:50:8d:5a:16:98, IRQ 11.
eth0: MII PHY found at address 1, status 0x786d advertising 05e1 Link 45e1.
regards,
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

When you say 'blank screen', do you mean that the video just stops displaying in your browser or that the capture daemon is capturing blank images?

Phil,
User avatar
davide
Posts: 78
Joined: Mon Mar 22, 2004 1:04 am
Location: Italy

Post by davide »

Hi Phil,
i mean capture deamon starts capturing blank images in the exact moment bttv logs this in /var/log/messages

Code: Select all

kernel: bttv0: timeout: irq=825088/825088, risc=0859336c, bits: HSYNC OFLOW 
every time the error occurs zmc logs a sync failure error, then bttv logs a timeout, here is an example:

Code: Select all

May 23 08:27:29 videoserver zmc-d0[2474]: ERR [Sync failure for frame 0: Input/output error]
May 23 08:27:29 videoserver kernel: bttv0: timeout: irq=2571375/2571375, risc=081623dc, bits: HSYNC OFLOW
May 23 08:27:29 videoserver kernel: bttv0: reset, reinitialize
May 23 08:27:29 videoserver zmc-d0[2474]: ERR [Sync failure for frame 0: Invalid argument]
May 23 08:27:29 videoserver zmc-d0[2474]: ERR [Sync failure for frame 0: Invalid argument]
May 23 08:27:29 videoserver kernel: bttv0: PLL: 28636363 => 35468950 . ok
May 23 08:27:31 videoserver zma-m1[2479]: INF [uno: 857129 - Gone into alarm state]
May 23 08:27:32 videoserver zma-m1[2479]: INF [uno: 857143 - Left alarm state (253) - 24(4) images]
May 23 08:29:15 videoserver zmc-d0[2474]: INF [uno: 858000 - Capturing at 8.93 fps]
then zmc continues capturing images but these are blank

davide,
User avatar
rdmelin
Posts: 863
Joined: Wed Oct 29, 2003 2:23 pm
Location: Ellensburg, WA USA

Post by rdmelin »

lilo.conf and dmesg look right. Does the problem persist?

Ross
User avatar
davide
Posts: 78
Joined: Mon Mar 22, 2004 1:04 am
Location: Italy

Post by davide »

I am testing right now.
videoserver is up and nice working from 11:50 (16:15 now)

I will wait till tomorrow morning before exult...

I'll let you know how it goes.

Thank you.


PS.
Are these problems frequent or rare? What are they caused by? How to avoid such problems? did I choose a wrong motherboard? Should I use standardATX instead of MicroATX to avoid such problems? How to choose right?
User avatar
davide
Posts: 78
Joined: Mon Mar 22, 2004 1:04 am
Location: Italy

Post by davide »

the problem seems solved, boot parameters work well, the videoserver is capturing without any problem..

thank you Ross! :D
Locked