webcam regression after 2.6.32 under vmware

Bug #941945 reported by Marty Vona
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Medium
Unassigned

Bug Description

In a OS X 10.6.8 host, vmware fusion 4.1.1 Lucid guest, USB webcams which worked fine before, no longer work under natty or oneiric. I have yet to get *any* webcam to work in natty or oneiric using the default kernel under vmware; they do work in a standard non vmware setting.

The devices appear as /dev/video devices and sometimes programs (e.g. guvcview, opencv programs) can display a few images. But the image stream freezes after a few seconds, often with "select timeout" repeatedly printed to the console. syslog also contains repeated

failed to resubmit video URB (-27)

messages. I have tested logitech webcam pro 9000, iSight, and Kinect. All have this issue. I have tested the default natty and oneiric kernels as well as mainline 3.0.22 and 3.1.4 from http://kernel.ubuntu.com/~kernel-ppa/mainline/.

This may be related to 682128, 729627, 879700, 834506.

WORKAROUND: Revert to kernel 2.6.32-38 in oneiric. Manually download
linux-headers-2.6.32-38_2.6.32-38.83_all.deb
linux-headers-2.6.32-38-generic-pae_2.6.32-38.83_i386.deb
linux-image-2.6.32-38-generic-pae_2.6.32-38.83_i386.deb

from https://launchpad.net/ubuntu/+source/linux and install with dpkg. Hold SHIFT while rebooting, select the 2.6.32 kernel. sudo vmware-config-tools.pl as usual. If networkmanager fails to bring up eth0 then add

auto eth0
iface eth0 inet dhcp

to /etc/network/interfaces and sudo ifup -a.

---
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.21.
ApportVersion: 1.23-0ubuntu4
Architecture: i386
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: AudioPCI [Ensoniq AudioPCI], device 0: ES1371/1 [ES1371 DAC2/ADC]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: vona 1610 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'AudioPCI'/'Ensoniq AudioPCI ENS1371 at 0x2400, irq 16'
   Mixer name : 'Cirrus Logic CS4297A rev 3'
   Components : 'AC97a:43525913'
   Controls : 24
   Simple ctrls : 13
DistroRelease: Ubuntu 11.10
HibernationDevice: RESUME=UUID=71d7a39f-2a20-4708-83de-002831fb8df3
IwConfig:
 lo no wireless extensions.

 eth0 no wireless extensions.

 eth1 no wireless extensions.
MachineType: VMware, Inc. VMware Virtual Platform
Package: linux (not installed)
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.32-38-generic-pae root=UUID=7daf6af9-b12c-4dd2-95af-c36b13a4f47b ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 2.6.32-38.83-generic-pae 2.6.32.52+drm33.21
RelatedPackageVersions:
 linux-restricted-modules-2.6.32-38-generic-pae N/A
 linux-backports-modules-2.6.32-38-generic-pae N/A
 linux-firmware 1.60
RfKill:
 0: hci0: Bluetooth
  Soft blocked: no
  Hard blocked: no
Tags: oneiric
Uname: Linux 2.6.32-38-generic-pae i686
UpgradeStatus: Upgraded to oneiric on 2012-02-12 (15 days ago)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare uucp video
dmi.bios.date: 06/02/2011
dmi.bios.vendor: Phoenix Technologies LTD
dmi.bios.version: 6.00
dmi.board.name: 440BX Desktop Reference Platform
dmi.board.vendor: Intel Corporation
dmi.board.version: None
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 1
dmi.chassis.vendor: No Enclosure
dmi.chassis.version: N/A
dmi.modalias: dmi:bvnPhoenixTechnologiesLTD:bvr6.00:bd06/02/2011:svnVMware,Inc.:pnVMwareVirtualPlatform:pvrNone:rvnIntelCorporation:rn440BXDesktopReferencePlatform:rvrNone:cvnNoEnclosure:ct1:cvrN/A:
dmi.product.name: VMware Virtual Platform
dmi.product.version: None
dmi.sys.vendor: VMware, Inc.

Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 941945

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Marty Vona (vona) wrote : AcpiTables.txt

apport information

tags: added: apport-collected oneiric
description: updated
Revision history for this message
Marty Vona (vona) wrote : AlsaDevices.txt

apport information

Revision history for this message
Marty Vona (vona) wrote : AplayDevices.txt

apport information

Revision history for this message
Marty Vona (vona) wrote : BootDmesg.txt

apport information

Revision history for this message
Marty Vona (vona) wrote : Card0.Amixer.values.txt

apport information

Revision history for this message
Marty Vona (vona) wrote : Card0.Codecs.codec97.0.ac97.0.0.txt

apport information

Revision history for this message
Marty Vona (vona) wrote : Card0.Codecs.codec97.0.ac97.0.0.regs.txt

apport information

Revision history for this message
Marty Vona (vona) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Marty Vona (vona) wrote : Lspci.txt

apport information

Revision history for this message
Marty Vona (vona) wrote : Lsusb.txt

apport information

Revision history for this message
Marty Vona (vona) wrote : PciMultimedia.txt

apport information

Revision history for this message
Marty Vona (vona) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Marty Vona (vona) wrote : ProcEnviron.txt

apport information

Revision history for this message
Marty Vona (vona) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Marty Vona (vona) wrote : ProcModules.txt

apport information

Revision history for this message
Marty Vona (vona) wrote : PulseSinks.txt

apport information

Revision history for this message
Marty Vona (vona) wrote : PulseSources.txt

apport information

Revision history for this message
Marty Vona (vona) wrote : UdevDb.txt

apport information

Revision history for this message
Marty Vona (vona) wrote : UdevLog.txt

apport information

Revision history for this message
Marty Vona (vona) wrote : WifiSyslog.txt

apport information

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Marty Vona (vona) wrote :

my host is OS X 10.6.8 with vmware fusion 4.1.1

I also tested running the vm with virtualbox 4.1.8 which always gave select timeout errors, even with kernel 2.6.32 (I don't think I ever saw a webcam work inside virtualbox, but vmware did work before this regression)

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Would it be possible for you to test the latest upstream kernel? It will allow additional upstream developers to examine the issue. Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest v3.3 kernel[1] (Not a kernel in the daily directory). Once you've tested the upstream kernel, please remove the 'needs-upstream-testing' tag(Only that one tag, please leave the other tags). This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the 'needs-upstream-testing' text.

If this bug is fixed by the mainline kernel, please add the following tag 'kernel-fixed-upstream-KERNEL-VERSION'. For example, if kernel version 3.3-rc5 fixed the issue, the tag would be: 'kernel-fixed-upstream-v3.3-rc5'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

If you are unable to test the mainline kernel, for example it will not boot, please add the tag: 'kernel-unable-to-test-upstream'.
Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".

Thanks in advance.

[1] http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.3-rc5-precise/

Changed in linux (Ubuntu):
importance: Undecided → Medium
tags: added: needs-upstream-testing
Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Marty Vona (vona) wrote :

Joseph -

I was not able to test the v3.3-rc5-precise because the directory you referenced only contains amd64 bins. But I did just test v3.3-rc4-precise and the problem was still present there.

tags: added: kernel-bug-exists-upstream
removed: needs-upstream-testing
Marty Vona (vona)
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Marty Vona (vona) wrote :

Several webcams as well as Kinect (via libfreenect) seem to be working now in Precise with the default kernel 3.2.0-24.

Revision history for this message
penalvch (penalvch) wrote :

Marty Vona, , this bug was reported a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue? If so, as per your comment https://bugs.launchpad.net/ubuntu/+source/linux/+bug/941945/comments/25 this issue is fixed in Precise. If this remains true, would you like a backport to a prior release, or may we close this bug as Status Invalid?

tags: added: natty needs-upstream-testing
removed: kernel-bug-exists-upstream
description: updated
Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Marty Vona (vona) wrote :

You may close the bug, it seems still working precise and that is enough for me. Thanks.

penalvch (penalvch)
Changed in linux (Ubuntu):
status: Incomplete → Invalid
Marty Vona (vona)
Changed in linux (Ubuntu):
status: Invalid → New
Revision history for this message
Marty Vona (vona) wrote :

Unfortunately this is happening again. vmware fusion 5.0.3, os x 10.8.3, ubuntu precise guest with kernel 3.2.0-38-generic.

It might be related to USB bandwidth. USB webcams seem to work but only at low resolution, 320x240. Attempting 640x480 gives a frame or two and then freezes with repreated messages (in the terminal) "select timeout". Those may be generated by OpenCV which I'm using. However even trying a non-OpenCV app like guvcview gives a similar error message "Could not grab image (select timeout): Resource temporarily unavailable".

dmesg shows this at around the same time:

[29737.487189] uvcvideo: Failed to resubmit video URB (-27).

Revision history for this message
Brad Figg (brad-figg) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
penalvch (penalvch)
tags: added: regression-release
Revision history for this message
penalvch (penalvch) wrote :

Marty Vona, could you please confirm this issue exists with the latest development release of Ubuntu? ISO images are available from http://cdimage.ubuntu.com/daily-live/current/ . If the issue remains, could you please run the following command in the development release from a Terminal (Applications->Accessories->Terminal), as it will automatically gather and attach updated debug information to this report:

apport-collect -p linux <replace-with-bug-number>

Also, could you please test the latest upstream kernel available following https://wiki.ubuntu.com/KernelMainlineBuilds ? It will allow additional upstream developers to examine the issue. Please do not test the kernel in the mainline kernels archive directory daily folder, but the one all the way at the bottom. Once you've tested the upstream kernel, please comment on which kernel version specifically you tested. If this bug is fixed in the mainline kernel, please add the following tags:
kernel-fixed-upstream
kernel-fixed-upstream-VERSION-NUMBER

where VERSION-NUMBER is the version number of the kernel you tested. For example:
kernel-fixed-upstream-v3.10-rc3

This can be done by clicking on the yellow circle with a black pencil icon next to the word Tags located at the bottom of the bug description. As well, please remove the tag:
needs-upstream-testing

If the mainline kernel does not fix this bug, please add the following tags:
kernel-bug-exists-upstream
kernel-bug-exists-upstream-VERSION-NUMBER

As well, please remove the tag:
needs-upstream-testing

If you are unable to test the mainline kernel, please comment as to why specifically you were unable to test it and add the following tags:
kernel-unable-to-test-upstream
kernel-unable-to-test-upstream-VERSION-NUMBER

Once testing of the upstream kernel is complete, please mark this bug's Status as Confirmed. Please let us know your results. Thank you for your understanding.

tags: added: precise
Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
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.