Page 1 of 1

zmc crashes with OmniVision OV519 USB webcam

Posted: Fri Dec 07, 2012 10:37 pm
by fhanzlik
(i'm new in zoneminder, please excuse me if my questions are too stupid
or problem not well described)
I'm trying zoneminder at Linux i686 with Chicony DC-2120 TwinkleCam Pro USB
webcam (lsusb: ID 05a9:8519 OmniVision Technologies, Inc. OV519 Webcam).
Camera has gspca_ov519 driver and works fine with xawtv or cheese as device
/dev/video0. With zoneminder I'm stil unlucky, "/usr/bin/zmc -d /dev/video0"
command crashes with core dump. As it seems as zmc is very sensible and not
well validate its parameters (e.g. it crashes too if started with non-existent
device "-d /dev/video" od with bad Capture Width/Height), it is possible that
I have badly set my camera parameters - but I have no idea yet how it should
be set.
My Zoneminder settings:
Name: ov519
Source Type: Local
Function: Monitor
Enabled: Yes
Linked Monitors: edimax # name of my second camera, added automatically, this field meaning/function I not know, are someone?
Maximum FPS: 5
Alarm Maximum FPS: -
Reference Image Blend %ge: 7
Triggers: None available

Device Path: /dev/video0 # i've no other device /dev/video*
Capture Method: Video for Linux version 2 # no other option here
Device Channel: 0
Device Format: NTSC # with PAL crashes too
Capture Palette: JPEG
Capture Width (pixels): 640
Capture Height (pixels):480
Preserve Aspect Ratio: -
Orientation: Normal

Not sure when parameters in Timestamp/Buffers/Misc are important, i have default
values there.
My distro is Fedora 17 i686, SELinux is disabled.
zmc crashes both running as root and from webui as apache too.
Its backrace from core dump is:

Code: Select all

# gdb core.zmc.0.0.7692 
Reading symbols from /usr/bin/zmc...Reading symbols from /usr/lib/debug/usr/bin/zmc.debug...done.
done.
[New LWP 7692]
Missing separate debuginfo for 
Try: yum --disablerepo='*' --enablerepo='*-debug*' install /usr/lib/debug/.build-id/60/4fdaaeab77700fd8e71def34efcd418867e0a6.1
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
Core was generated by `/usr/bin/zmc -d /dev/video0'.
Program terminated with signal 6, Aborted.
#0  __kernel_vsyscall () at arch/x86/vdso/vdso32/sysenter.S:49
49		pop %ebp
(gdb) backtrace
#0  __kernel_vsyscall () at arch/x86/vdso/vdso32/sysenter.S:49
#1  0x4819c94f in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#2  0x4819e2a3 in __GI_abort () at abort.c:91
#3  0x08055697 in Logger::logPrint (this=0x10cd63f0, hex=false, file=0x80940bc "zm_zone.cpp", line=927, level=-4, 
    fstring=0x8094cb0 "Zone %d/%s for monitor %s extends outside of image dimensions, %d, %d, %d, %d") at zm_logger.cpp:591
#4  0x08089876 in Zone::Load (monitor=0x10ce5a48, zones=@0xbff163e4: 0x10cdc2a8) at zm_zone.cpp:927
#5  0x0806e67e in Monitor::LoadLocalMonitors (device=0xbff185a9 "/dev/video0", monitors=@0xbff16488: 0x10cd4408, 
    purpose=Monitor::CAPTURE) at zm_monitor.cpp:1855
#6  0x0804c372 in main (argc=3, argv=0xbff16604) at zmc.cpp:160
and in /var/log/messages I've lines as:

Dec 7 23:23:59 franta zmc_dvideo0[32563]: PNC [Zone 3/All for monitor ov519 extends outside of image dimensions, -639, 0, 0, 0]

Know someone where may be problem?
Thank in advance, Franta