On Sunday 16 March 2003 10:09, Ronald Bultje wrote: > Crap, there's a check missing. I've just posted 0.9.3 which fixes this. > Many thanks, motion 3.0.5 (the latest stable release) is now working.
> (btw, isn't VIDIOCGCHAN(-1) invalid?) > It seemed likely to me. I also posted the problem to motion's mailing list so they know about it). Michael ------------------------------------------------------------------------------------------------------ Now the bad news - motion 3.1.6 (unstable) is still misbehaving. Things works fine mostly however it does occasionaly die leaving a zombie thread/process. Hard to pin down a pattern but the Buz output always has a munmap(V4L) call immediately prior and the very first time I run motion after a reboot it seems to behave better than if it's been run previously though I can't sweear this is 100% always the case. Again I am more inclined to look to the way the driver is being called rather than the driver itself, and this is an admittedly an unstable development version of motion, but I thought I'd let you know just in case it is partly a driver thing. Here's a typical debug output from the driver:- . . . Buz[0]: VIDIOCSYNC - frame=1 Buz[0]: VIDIOCMCAPTURE - frame=1, geom=240x180, fmt=7 Buz[0]: VIDIOCSYNC - frame=0 Buz[0]: VIDIOCMCAPTURE - frame=0, geom=240x180, fmt=7 Buz[0]: VIDIOCSYNC - frame=1 Buz[0]: VIDIOCMCAPTURE - frame=1, geom=240x180, fmt=7 Buz[0]: VIDIOCSYNC - frame=0 Buz[0]: munmap(V4L) Buz[0]: zoran_close(motion, pid=[647]) Buz[0]: jpeg_codec_sleep() - wake GPIO=0x8b008888 Buz[0]: jpeg_codec_sleep() - sleep GPIO=0x89008888 Buz[0]: enable_jpg(IDLE) Buz[0]: interrupts received: GIRQ0:397 queue_state=0/0/0/0 Buz[0]: zoran_open(motion, pid=[663]), users(-)=0 Buz[0]: buz_init() Buz[0]: jpeg_codec_sleep() - sleep GPIO=0x81008888 Buz[0]: jpeg_codec_sleep() - wake GPIO=0x83008888 Buz[0]: jpeg_codec_sleep() - wake GPIO=0x8b008888 Buz[0]: jpeg_codec_sleep() - sleep GPIO=0x89008888 Buz[0]: enable_jpg(IDLE) Buz[0]: VIDIOCGCAP Buz[0]: VIDIOCGCHAN - channel=-1 Buz[0]: VIDIOCGCHAN on not existing channel -1 Buz[0]: VIDIOCGMBUF Buz[0]: mmap(V4L) of 0x401c5000-0x40205000 (size=262144) Buz[0]: VIDIOCMCAPTURE - frame=0, geom=240x180, fmt=15 Buz[0]: v4l_grab() - wrong bytes-per-pixel format Buz[0]: VIDIOCMCAPTURE - frame=0, geom=240x180, fmt=7 Buz[0]: set_vfe() - width = 240, height = 180 Buz[0]: VIDIOCMCAPTURE - frame=1, geom=240x180, fmt=7 Buz[0]: VIDIOCSYNC - frame=0 Buz[0]: VIDIOCMCAPTURE - frame=0, geom=240x180, fmt=7 Buz[0]: VIDIOCSYNC - frame=1 . . . Buz[0]: VIDIOCMCAPTURE - frame=1, geom=240x180, fmt=7 Buz[0]: VIDIOCSYNC - frame=0 Buz[0]: VIDIOCMCAPTURE - frame=0, geom=240x180, fmt=7 Buz[0]: VIDIOCSYNC - frame=1 Buz[0]: VIDIOCMCAPTURE - frame=1, geom=240x180, fmt=7 Buz[0]: VIDIOCSYNC - frame=0 Buz[0]: VIDIOCMCAPTURE - frame=0, geom=240x180, fmt=7 Buz[0]: VIDIOCSYNC - frame=1 Buz[0]: VIDIOCMCAPTURE - frame=1, geom=240x180, fmt=7 Buz[0]: VIDIOCSYNC - frame=0 Buz[0]: munmap(V4L) Unable to handle kernel NULL pointer dereference at virtual address 0000000c printing eip: c0129358 *pde = 00000000 Oops: 0000 CPU: 0 EIP: 0010:[<c0129358>] Not tainted EFLAGS: 00010006 eax: 00403d00 ebx: d75c0000 ecx: 00000000 edx: c100001c esi: 00000000 edi: 00000286 ebp: 0000000e esp: d7559f2c ds: 0018 es: 0018 ss: 0018 Process motion (pid: 662, stackpage=d7559000) Stack: 00000000 daaf4000 00000000 0000000e e08e0cfa d75c0000 daaf4000 e08e9fd4 e08e9e40 deba2e80 00000001 daaf4040 e08e3e0f dbc37320 da89a9e0 dd613a00 401c5000 00040000 dbc37320 c01235e7 da89a9e0 dd613a00 00000000 d7558000 Call Trace: [<e08e0cfa>] [<e08e9fd4>] [<e08e9e40>] [<e08e3e0f>] [<c01235e7>] [<c0113d2e>] [<c0117c6d>] [<c0117e3e>] [<c0106bd3>] Code: 2b 59 0c 89 d8 31 d2 f7 76 18 89 c3 8b 41 14 89 44 99 18 89 ------------------------------------------------------- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en _______________________________________________ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users