Motion - Bug Report 2009x 07x 05x 075301
You are here: Foswiki>Motion Web>BugReports>BugReport2009x07x05x075301 (03 Jun 2012, AngelCarpintero)Edit Attach

BUG: Watchdog Timeout renders webcam unusable

Running webcam fine.. after a few hours watchdog tries to restart (see log) unsuccesfully and my pwc webcam is nolonger callable the /dev/video0 exists but pwcview gives "Failed to access webcam: File exists" I haven't a clue as to why watchdog would kill the lot...

Jul  5 01:38:03 linus kernel: pwc0: Disconnected while webcam is in use!
Jul  5 01:38:03 linus motion: [1] mcapture error in proc 14961: Device not configured
Jul  5 01:38:03 linus motion: [1] Video device fatal error - Closing video device
Jul  5 01:38:03 linus kernel: pwc0: detached
Jul  5 01:38:11 linus kernel: pid 14961 (motion), uid 0: exited on signal 11 (core dumped)
*Physically reconnected USB Device*
Jul  5 01:38:21 linus kernel: pwc0 on uhub0
Jul  5 01:38:21 linus kernel: pwc0: vendor 0x0471 product 0x0308, rev 1.10/0.05, addr 2
Jul  5 01:38:21 linus kernel: pwc0: Philips PCVC680K (Vesta Pro) USB webcam
Jul  5 01:51:24 linus kernel: pid 15052 (motion), uid 0: exited on signal 11 (core dumped)
*worked fine for a couple hours then this happend...*
Jul  5 03:09:19 linus motion: [0] Thread 1 - Watchdog timeout, trying to do a graceful restart
Jul  5 03:10:19 linus motion: [0] Thread 1 - Watchdog timeout, did NOT restart graceful,killing it!
Jul  5 03:10:20 linus kernel: pid 16607 (motion), uid 0: exited on signal 11 (core dumped)
*later that morning*
Jul  5 09:38:59 linus su: me to root on /dev/ttyp0
Jul  5 09:39:34 linus kernel: pwc0: Failed to set video mode to SIF@5 fps; return code = 17
Jul  5 09:39:34 linus kernel: pwc0: Failed to set video mode to QCIF@10 fps; return code = 17
Jul  5 09:41:10 linus kernel: pwc0: Failed to set video mode to SIF@10 fps; return code = 17
Jul  5 09:41:10 linus kernel: pwc0: Failed to set video mode to QCIF@10 fps; return code = 17
*kldunload pwc && kldload pwc*
Jul  5 09:41:41 linus kernel: pwc0: detached
Jul  5 09:41:46 linus kernel: pwc0 on uhub0
Jul  5 09:41:46 linus kernel: pwc0: vendor 0x0471 product 0x0308, rev 1.10/0.05, addr 2
Jul  5 09:41:46 linus kernel: pwc0: Philips PCVC680K (Vesta Pro) USB webcam
Jul  5 09:41:50 linus kernel: pwc0: Failed to set video mode to SIF@5 fps; return code = 17
Jul  5 09:41:50 linus kernel: pwc0: Failed to set video mode to QCIF@10 fps; return code = 17

Environment

Motion version: 3.2.11
ffmpeg version: SVN-r10657
Shared libraries: ffmpeg, mysql, postgresql
Server OS: Freebsd
-- KristenSchat - 05 Jul 2009

Follow up

- Please read here :

http://www.lavrsen.dk/foswiki/bin/view/Motion/SupportQuestion2009x05x21x074601

http://www.lavrsen.dk/foswiki/bin/view/Motion/MotionWatchdog

http://www.lavrsen.dk/foswiki/bin/view/Motion/WatchdogAndThreadPatch

-- FlorinAnton - 05 Jul 2009


Doesn't really look a motion bug rather you have some issue with USB ( i.ex IRQs issues in your motherboard ) ... i see a coredump each time :

Are you disconnecting your webcam or randomly disconnected without cause ?!

watchdog was tested in linux , but not much in FreeBSD as USB stack ( for video ) in BSD was very poor and unstable.

-- AngelCarpintero - 09 Jul 2009


The webcam gets "randomly" disconnected, the /dev/video0 file still exists but when trying to connect, it complains that the file exists which is rather strange... only once i've physically disconnected and reconnected the camera does it start working again..

I set up the camera on a second server running debian and the linux pwc driver... that runs fine without problems for days and days.. so we can say it's not a defect webcam at least. Still have the freebsd system available to test on and may try that watchdog patch... my guess is at the moment that it's something wrong with the pwcbsd driver...

-- KristenSchat - 09 Jul 2009


Did you try to run other OS on that computer to check if there's any issue with USB ? I tried to run motion 3.2.11 with FreeBSD 7.0 with a pwcbsd and no disconnections for a whole day ...

-- AngelCarpintero - 11 Jul 2009

Fix record

Lack of information.

-- AngelCarpintero - 03 Jun 2012
Topic revision: r6 - 03 Jun 2012, AngelCarpintero
Copyright © 1999-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.