Unsupported webcam

Bug #236244 reported by Jan Rüegg
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
QuteCom
New
Unknown
WengoPhone
Invalid
Undecided
Unassigned
qutecom (Ubuntu)
Triaged
Medium
Unassigned
wengophone (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Binary package hint: wengophone

wengophone 2.1.2.dfsg0-3 crashes on Ubuntu Hardy on a Macbook Pro when trying to use the webcam.
The webcam works under Skype and Cheese.

Steps to reproduce: start 'qtwengophone' from a console, click on Tools->Configuration->Video->Webcam Preview

No Error or something like that, the application just closes completely.

Last console messages:

...
(debug) 10:04:08 std::list<AudioDevice, std::allocator<AudioDevice> > find_alsa_devices(int): alsa_device_name: plug:dmix:0
(debug) 10:04:08 std::list<AudioDevice, std::allocator<AudioDevice> > find_alsa_devices(int): friendly_device_name: STAC92xx Analog
(debug) 10:04:08 std::list<AudioDevice, std::allocator<AudioDevice> > find_alsa_devices(int): alsa_device_name: plug:dmix:0
(debug) 10:04:08 std::list<AudioDevice, std::allocator<AudioDevice> > find_alsa_devices(int): friendly_device_name: STAC92xx Digital
(debug) 10:04:08 virtual void PhApiWrapper::enableAEC(bool): AEC enabled
(debug) 10:04:08 virtual void PhApiWrapper::enableHalfDuplex(bool): half-duplex disabled
(info) 10:04:08 virtual void PhApiWrapper::setCallsEncryption(bool): Set call encryption to:0
(debug) 10:04:20 virtual void WebcamDriver::cleanup(): Cleaning up the Meta webcam driver
(debug) 10:04:20 virtual WebcamErrorCode WebcamDriver::setDevice(const std::string&): desired device=Built-in iSight : video0, actual device=Built-in iSight : video0
(debug) 10:04:20 virtual WebcamErrorCode WebcamDriver::setResolution(unsigned int, unsigned int): try to change resolution: (width, height)=320,240
(debug) 10:04:20 virtual WebcamErrorCode WebcamDriver::setPalette(pixosi): this webcam does not support palette #0
(debug) 10:04:20 virtual WebcamErrorCode WebcamDriver::setPalette(pixosi): palette conversion will be forced
(debug) 10:04:20 virtual void WebcamDriver::startCapture(): starting capture
Signal catched: SIGCHLD
Signal catched: SIGCHLD
Aborted

Revision history for this message
Jan Rüegg (rggjan) wrote :

Still got the same problem...

Revision history for this message
Jamin W. Collins (jcollins) wrote :

I'm experiencing a very similar crash when trying to enable video:

(debug) 22:52:18 virtual void WebcamDriver::cleanup(): Cleaning up the Meta webcam driver
(debug) 22:52:18 virtual WebcamErrorCode WebcamDriver::setDevice(const std::string&): desired device=gspca main driver : video0, actual device=gspca main driver : video0
(debug) 22:52:18 virtual WebcamErrorCode WebcamDriver::setResolution(unsigned int, unsigned int): try to change resolution: (width, height)=320,240
(debug) 22:52:18 virtual WebcamErrorCode WebcamDriver::setPalette(pixosi): this webcam does not support palette #0
(debug) 22:52:18 virtual WebcamErrorCode WebcamDriver::setPalette(pixosi): palette conversion will be forced
(debug) 22:52:18 virtual void WebcamDriver::startCapture(): starting capture
Signal catched: SIGCHLD
Signal catched: SIGCHLD
Aborted

Changed in wengophone:
status: New → Confirmed
Revision history for this message
Ludovico Cavedon (cavedon) wrote :

Hi, wengophone has changed name and is now qutecom.
Official packages are not yet available, unfortunately. However I have uploaded a pre-release in my PPA
https://launchpad.net/~cavedon/+archive/ppa
for hardy, intrepid and jaunty.

Could you please try with it?

Revision history for this message
Jamin W. Collins (jcollins) wrote :

The pre-release no longer crashes but it doesn't provide usable output from the camera either. In the console I see the following repeated over and over:

swScaler: Unknown format is not supported as input format
swScaler: Unknown format is not supported as input format
swScaler: Unknown format is not supported as input format
swScaler: Unknown format is not supported as input format
swScaler: Unknown format is not supported as input format

I'll check with a few other cameras over the next couple days.

Revision history for this message
Ludovico Cavedon (cavedon) wrote : Re: [Bug 236244] Re: Wengophone crashing when trying to use the webcam

Jamin W. Collins wrote:
> The pre-release no longer crashes but it doesn't provide usable output

good, thanks for testing

> swScaler: Unknown format is not supported as input format

mhm. never seen it so far
Is this happening with you start the "webcam preview" in the settings
dialog?

> I'll check with a few other cameras over the next couple days.

Yes, please, that would be useful.
Could you also post the output of
v4l-info
please?

Thanks,
Ludovico

Revision history for this message
Jamin W. Collins (jcollins) wrote : Re: Wengophone crashing when trying to use the webcam

@ Ludovico
It happens either when the camera is first selected (seems to kick off a preview automatically) or when the preview is manually selected.

Revision history for this message
Jamin W. Collins (jcollins) wrote :
Download full text (3.1 KiB)

Same output with the original camera I reported the crash under WengoPhone, now under qutecom:

swScaler: Unknown format is not supported as input format
swScaler: Unknown format is not supported as input format
swScaler: Unknown format is not supported as input format
swScaler: Unknown format is not supported as input format

$ v4l-info

### v4l2 device info [/dev/video0] ###
general info
    VIDIOC_QUERYCAP
 driver : "zc3xx"
 card : "USB Camera (046d:08d7)"
 bus_info : "0000:00:1d.0"
 version : 2.2.0
 capabilities : 0x5000001 [VIDEO_CAPTURE,READWRITE,STREAMING]

standards

inputs
    VIDIOC_ENUMINPUT(0)
 index : 0
 name : "zc3xx"
 type : CAMERA
 audioset : 0
 tuner : 0
 std : 0x0 []
 status : 0x0 []

video capture
    VIDIOC_ENUM_FMT(0,VIDEO_CAPTURE)
 index : 0
 type : VIDEO_CAPTURE
 flags : 1
 description : "JPEG"
 pixelformat : 0x4745504a [JPEG]
    VIDIOC_G_FMT(VIDEO_CAPTURE)
 type : VIDEO_CAPTURE
 fmt.pix.width : 320
 fmt.pix.height : 240
 fmt.pix.pixelformat : 0x4745504a [JPEG]
 fmt.pix.field : NONE
 fmt.pix.bytesperline : 320
 fmt.pix.sizeimage : 29390
 fmt.pix.colorspace : JPEG
 fmt.pix.priv : 1

controls
    VIDIOC_QUERYCTRL(BASE+0)
 id : 9963776
 type : INTEGER
 name : "Brightness"
 minimum : 0
 maximum : 255
 step : 1
 default_value : 128
 flags : 0
    VIDIOC_QUERYCTRL(BASE+1)
 id : 9963777
 type : INTEGER
 name : "Contrast"
 minimum : 0
 maximum : 256
 step : 1
 default_value : 128
 flags : 0

### video4linux device info [/dev/video0] ###
general info
    VIDIOCGCAP
 name : "USB Camera (046d:08d7)"
 type : 0x1 [CAPTURE]
 channels : 1
 audios : 0
 maxwidth : 640
 maxheight : 480
 minwidth : 48
 minheight : 32

channels
    VIDIOCGCHAN(0)
 channel : 0
 name : "zc3xx"
 tuners : 0
 flags : 0x0 []
 type : CAMERA
 norm : 0

tuner
ioctl VIDIOCGTUNER: Invalid argument

audio
ioctl VIDIOCGAUDIO: Invalid argument

picture
    VIDIOCGPICT
 brightness : 32896
 hue : 0
 colour : 0
 contrast : 32768
 whiteness : 39321
 depth : 8
 palette : unknown

buffer
ioctl VIDIOCGFBUF: Invalid argument

window
    VIDIOCGWIN
 x : 0
 y : 0
 width : 320
 height : 240
 chromakey : 0
 flags ...

Read more...

Revision history for this message
Jamin W. Collins (jcollins) wrote :

and a working camera:

$ v4l-info

### v4l2 device info [/dev/video0] ###
general info
    VIDIOC_QUERYCAP
 driver : "zc3xx"
 card : "USB Camera (046d:08d7)"
 bus_info : "0000:00:1d.0"
 version : 2.2.0
 capabilities : 0x5000001 [VIDEO_CAPTURE,READWRITE,STREAMING]

standards

inputs
    VIDIOC_ENUMINPUT(0)
 index : 0
 name : "zc3xx"
 type : CAMERA
 audioset : 0
 tuner : 0
 std : 0x0 []
 status : 0x0 []

video capture
    VIDIOC_ENUM_FMT(0,VIDEO_CAPTURE)
 index : 0
 type : VIDEO_CAPTURE
 flags : 1
 description : "JPEG"
 pixelformat : 0x4745504a [JPEG]
    VIDIOC_G_FMT(VIDEO_CAPTURE)
 type : VIDEO_CAPTURE
 fmt.pix.width : 320
 fmt.pix.height : 240
 fmt.pix.pixelformat : 0x4745504a [JPEG]
 fmt.pix.field : NONE
 fmt.pix.bytesperline : 320
 fmt.pix.sizeimage : 29390
 fmt.pix.colorspace : JPEG
 fmt.pix.priv : 1

controls
    VIDIOC_QUERYCTRL(BASE+0)
 id : 9963776
 type : INTEGER
 name : "Brightness"
 minimum : 0
 maximum : 255
 step : 1
 default_value : 128
 flags : 0
    VIDIOC_QUERYCTRL(BASE+1)
 id : 9963777
 type : INTEGER
 name : "Contrast"
 minimum : 0
 maximum : 256
 step : 1
 default_value : 128
 flags : 0

### video4linux device info [/dev/video0] ###
general info
    VIDIOCGCAP
 name : "USB Camera (046d:08d7)"
 type : 0x1 [CAPTURE]
 channels : 1
 audios : 0
 maxwidth : 640
 maxheight : 480
 minwidth : 48
 minheight : 32

channels
    VIDIOCGCHAN(0)
 channel : 0
 name : "zc3xx"
 tuners : 0
 flags : 0x0 []
 type : CAMERA
 norm : 0

tuner
ioctl VIDIOCGTUNER: Invalid argument

audio
ioctl VIDIOCGAUDIO: Invalid argument

picture
    VIDIOCGPICT
 brightness : 32896
 hue : 0
 colour : 0
 contrast : 32768
 whiteness : 39321
 depth : 8
 palette : unknown

buffer
ioctl VIDIOCGFBUF: Invalid argument

window
    VIDIOCGWIN
 x : 0
 y : 0
 width : 320
 height : 240
 chromakey : 0
 flags : 0

Revision history for this message
Jamin W. Collins (jcollins) wrote :

sorry, forgot to specify the device on that last output:

$ v4l-info /dev/video1

### video4linux device info [/dev/video1] ###
general info
    VIDIOCGCAP
 name : "OV511+ USB Camera"
 type : 0x201 [CAPTURE,SUBCAPTURE]
 channels : 1
 audios : 0
 maxwidth : 640
 maxheight : 480
 minwidth : 64
 minheight : 48

channels
    VIDIOCGCHAN(0)
 channel : 0
 name : "Camera"
 tuners : 0
 flags : 0x0 []
 type : CAMERA
 norm : 0

tuner
ioctl VIDIOCGTUNER: Invalid argument

audio
ioctl VIDIOCGAUDIO: Invalid argument

picture
    VIDIOCGPICT
 brightness : 16384
 hue : 32768
 colour : 49152
 contrast : 13312
 whiteness : 26880
 depth : 12
 palette : YUV420

buffer
    VIDIOCGFBUF
 base : (nil)
 height : 0
 width : 0
 depth : 0
 bytesperline : 0

window
    VIDIOCGWIN
 x : 0
 y : 0
 width : 640
 height : 480
 chromakey : 0
 flags : 30

Revision history for this message
Ludovico Cavedon (cavedon) wrote : Re: [Bug 236244] Re: Wengophone crashing when trying to use the webcam

Jamin W. Collins wrote:
> ### v4l2 device info [/dev/video0] ###
> pixelformat : 0x4745504a [JPEG]
> ### video4linux device info [/dev/video0] ###
> palette : unknown

This is the problem I guess: your camera does not produce some kind of
YUV video as output, but JPEG frames and apparently this is not handled
correctly. I'll forward this bug upstream.

Thank you for testing,
Ludovico

Changed in wengophone:
status: Unknown → New
Changed in qutecom (Ubuntu):
status: New → Confirmed
Revision history for this message
Andreas Moog (ampelbein) wrote :

Won't fixing the wengophone-task, the package is named qutecom now.

Changed in wengophone (Ubuntu):
status: Confirmed → Won't Fix
Changed in qutecom (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Triaged
Changed in wengophone:
importance: Unknown → Undecided
status: New → Invalid
Changed in qutecom:
status: Unknown → New
Revision history for this message
tuxo (beat-fasel) wrote :

qutecom crashed for me as well when testing the built-in camera on my laptop.

System: Kubuntu Jaunty 9.04, 64 bit
Webcam: Genesys Logic Inc., 05e3:0503
Webcam driver: gspca_gl860ep.tgz, as provided in Bug #215604, "Genesys Logic Webcam 05e3:0503 Not Working"

The camera works fine with cheese.

Revision history for this message
Kristian Kißling (kkissling) wrote :

Try starting it with:

LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so qutecom

Works 4 me, at least, for a short period.

Revision history for this message
Raoul Soibelmann (soibelrs) wrote :

Bug with CAM

I am not sure if this is Ubuntu 13.04, or the Drive that supports the CAM, or it is on Skype.

Recorded as follows:

          SKYPE - blacked up with CAM.

                        Only voice went out, the picture was black.

          Tested with Kamoso, that worked well.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.