Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Jul 2009 14:24:12 GMT
From:      Owen <freebsdroot@easytarget.me.uk>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/137265: jpeg-7 update has broken static images from pwcbsd
Message-ID:  <200907301424.n6UEOCha089038@www.freebsd.org>
Resent-Message-ID: <200907301430.n6UEU5Mv009773@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         137265
>Category:       ports
>Synopsis:       jpeg-7 update has broken static images from pwcbsd
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 30 14:30:05 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Owen
>Release:        FreeBSD 7.2-RELEASE-p2
>Organization:
easytarget.me.uk
>Environment:
FreeBSD calvin.easytarget.me.uk 7.2-RELEASE-p3 FreeBSD 7.2-RELEASE-p3 #11: Thu Jul 30 12:06:07 CEST 2009     root@calvin.easytarget.         me.uk:/usr/obj/usr/src/sys/CALVINKERNEL  i386

Philips PCVC740K (ToUCam Pro).

IBM thinkpad G40 (USB2, Intel 82852/82855 GM/GME chipset, with all USB options compiled in to a custom kernel)
>Description:
(lifted from here: http://forums.freebsd.org/showthread.php?t=5871)

multimedia/pwcbsd has been recently updated to accommodate the changes to graphics/jpeg. This change was only to reference the new jpeg library version in the Makefile, no code was modified.

While this has fixed the port in terms of building, it appears to have left pwcbsd (via pwcview) incapable of generating static images (presumably streaming video is unaffected since I don't see any other reports of problems here).

Prior to the update pwcview (cmdline tool supplied by pwcbsd) has worked perfectly for several months on my system.

I applied the jpeg update a couple of days ago as per /usr/ports/UPDATING. It triggered rebuilds of stamp, php5-gd, and pwcbsd. All built correctly. I have manually re-installed the new kernel module and even rebooted the system to make sure no old processes were hanging about. Following discussion oh the forum I also performed 'portupgrade -rfR jpeg' which rebuilt all 78 packages related to libjpeg.

During boot the kernel module loads:

Jul 30 12:41:19 calvin kernel: pwc0: <vendor 0x0471 product 0x0311, class 0/0, rev 1.10/0.01, addr 2> on uhub1
Jul 30 12:41:19 calvin kernel: pwc0: vendor 0x0471 product 0x0311, rev 1.10/0.01, addr 2
Jul 30 12:41:19 calvin kernel: pwc0: Philips PCVC740K (ToUCam Pro)/PCVC840 (ToUCam II) USB webcam
Jul 30 12:41:19 calvin kernel: pwc0: This camera is equipped with a Sony CCD sensor + TDA8787 (32)

Running:

pwcview -h -s vga -c 1 -o capture.jpg

generates:

Webcam set to: 640x480 (vga) at 5 fps
Segmentation fault (core dumped)

It also generates an image which is viewable, but corrupted. It appears to be truncated & lacks some image and color data. You can see the effects here: http://webcam.easytarget.me.uk/webcam.jpg

I'm guessing this must be due to changes in the jpeg libraries, and possibly the bug is with jpeg-7 and not pwcview.. I'm no coder and can't debug this myself, but I am very willing to try any patches or other suggest1ions. I can supply a corefile but I guess that also needs debugging symbols etc.. and I'm not sure how I would generate that..

I have also tried this command using other options, eg. -s for all the available resolutions, -q to change the compression quality. I also tried -y although I don't think this is relevant for static images. Searching on the web did not turn up anything similar being reported elsewhere.
>How-To-Repeat:
# pwcview -h -c 1
- on a my system with my webcam attached.. Have not been able to verify if it also fails with other webcams or usb chipsets.
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907301424.n6UEOCha089038>