Webcam does not work with v107.0.5304.121-hwacc

Bug #1999487 reported by Pierre Equoy
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
chromium-browser (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

With the latest version of Chromium in the stable channel (108.0.5359.94), I can access the webcam and the microphone in Google Meet and Jitsi (using a framatalk.org instance).

However, with version 107.0.5304.121-hwacc (from latest/candidate/hwacc branch), the same test does not work.

The only difference between the two in `snap connections chromium` is

content chromium:va-driver-non-free - -

Test:

1. Install Chromium from the given channel
2. Go to https://framatalk.org/ and click on "Create a room"
3. Accept the permissions to access Microphone and Camera

Expected result:

Image from camera is displayed on screen

Actual result:

The webcam is turned on (the LED turns on), but no image is captured, and after a few seconds, an error message is displayed ("We are unable to access your camera").

In the settings, I can see the camera name ("UVC Camera (046d:0802)").

Attached are two logs:

- One retrieved by launching Chromium with `chromium --enable-logging=stderr`, accessing framatalk.org and clicking on "Create a room".
- One retrieved by launching Chromium with `chromium --enable-logging=stderr` and accessing a Google Meet event.

Configuration information
=========================

- Desktop with AMD GPU RX580
- Ubuntu 20.04 (kernel 5.15.0-56-generic)
- Webcam: 046d:0802 Logitech, Inc. Webcam C200
- Headset: 046d:0a38 Logitech, Inc. Headset H340

Tags: kivu snap webcam
Revision history for this message
Pierre Equoy (pieq) wrote :
Revision history for this message
Pierre Equoy (pieq) wrote :
description: updated
Changed in chromium-browser (Ubuntu):
assignee: nobody → Nathan Teodosio (nteodosio)
Revision history for this message
Nathan Teodosio (nteodosio) wrote :

Thanks for the report.

Can you please

1. confirm that the issue is reproducible with the Pipewire flag in about:flags turned on?

2. attach the output of journalctl around the time that happens?

Pierre Equoy (pieq)
tags: added: snap
Revision history for this message
Pierre Equoy (pieq) wrote :

1. The Pipewire flag was set to "Default", but even when set to "Enabled", the webcam does not work.
2. journalctl.log attached when accessing framatalk.org and creating a room.

Revision history for this message
Pierre Equoy (pieq) wrote :

And this is the logs from Chromium when running the steps in the previous comment.

Revision history for this message
Ike Panhc (ikepanhc) wrote :

I can reproduce this issue and if I disable hardware acceleration in settings::system, tab will crash when webcam starting.

Revision history for this message
Bram Stolk (b-stolk) wrote :

@ikepanhc Thanks. What model webcam do you have?

Revision history for this message
Bram Stolk (b-stolk) wrote :

I have tried to repro this.

chromium: 107.0.5304.121-hwacc on Ubuntu 22.10

Logitech, Inc. QuickCam Vision Pro [WORKS]

IMC Networks USB2.0 HD UVC WebCam [WORKS]

Could it be that this issue happens with MIPI cameras only? My tests were with USB based cams.

Revision history for this message
Ricardo Martins (ricardofcmartins) wrote :

Hi all,

I'm also having issues with my integrated MIPI camera.
USB peripheral camera is ok.

v4l-info shows
   VIDIOC_QUERYCAP
 driver : "v4l2 loopback"
 card : "Intel MIPI Camera"
 bus_info : "platform:v4l2loopback-000"
 version : 5.15.64
 capabilities : 0x85200001 [VIDEO_CAPTURE,?,READWRITE,STREAMING,(null)]

Attached journalctl log for reference.
Let me know if I can provide any more meaningful details.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in chromium-browser (Ubuntu):
status: New → Confirmed
Revision history for this message
Pierre Equoy (pieq) wrote :

Just to clarify, my webcam is a very simple (and old, like 10 years old!) USB webcam: 046d:0802 Logitech, Inc. Webcam C200.

Attached output from v4l-info.

Revision history for this message
Ike Panhc (ikepanhc) wrote :

@b-stolk

My webcam is 0bda:5641 Realtek Semiconductor Corp. LG Camera.
Driver is uvcvideo

tags: added: kivu webcam
Changed in chromium-browser (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Nathan Teodosio (nteodosio) wrote (last edit ):

Trying to record from my webcam, 0408:a061 Quanta Computer, Inc. HD User Facing, also fails (black screen) and spams the stderr with

[295956:295956:1216/143222.257386:ERROR:shared_image_factory.cc(765)] Could not find SharedImageBackingFactory with params: usage: |Gles2|Raster|Display|Scanout, format: 19, share_between_threads: 0, gmb_type: platform
[295956:295956:1216/143222.257834:ERROR:shared_image_stub.cc(158)] SharedImageStub: Unable to create shared image
[296185:5:1216/143222.285003:ERROR:video_capture_impl.cc(677)] GPU factories handle changed; assuming GPU context lost

Tested on Xorg.

Revision history for this message
Nathan Teodosio (nteodosio) wrote :
Revision history for this message
Nathan Teodosio (nteodosio) wrote :
Revision history for this message
Bram Stolk (b-stolk) wrote :

Note: the `content chromium:va-driver-non-free` connection is completely harmless.

We just added an extra path to get drivers from an alternate snap if so required, in the future, for patent reasons.

This is a currently unused provision, and no free drivers are built or used.

Revision history for this message
Bram Stolk (b-stolk) wrote :

@ikepanhc Which GPU do you have? Intel, AMD or nVidia?

$ sudo apt install inxi
$ inxi -G

Thanks.

Revision history for this message
Bram Stolk (b-stolk) wrote (last edit ):

My current theory is that we broke video input for non Intel platforms.

On my machine with AMD GPU, I get:

ERROR:gpu_memory_buffer_support_x11.cc(134)] Can't create buffer -- gbm device is missing

$ inxi -G
Graphics:
  Device-1: AMD Ellesmere [Radeon RX 470/480/570/570X/580/580X/590]
    driver: amdgpu v: kernel
  Device-2: Logitech QuickCam Vision Pro type: USB
    driver: snd-usb-audio,uvcvideo
  Display: server: X.Org v: 1.22.1.3 driver: X: loaded: amdgpu,ati
    unloaded: fbdev,modesetting,radeon,vesa gpu: amdgpu
    resolution: 3840x2160~120Hz
  OpenGL: renderer: llvmpipe (LLVM 13.0.1 256 bits) v: 4.5 Mesa 22.0.5

UPDATE:

The "device is missing" error goes away with:
$ CHROMIUM_FLAGS="--disable-video-capture-use-gpu-memory-buffer" chromium
But it is replaced with this error:
ERROR:v4l2_capture_delegate.cc(1105)] Error to convert to PIXEL_FORMAT_NV12

Revision history for this message
Nathan Teodosio (nteodosio) wrote :
Revision history for this message
Bram Stolk (b-stolk) wrote :

Intel provided guidance on how to address this. I will make a merge request.

Changed in chromium-browser (Ubuntu):
assignee: Nathan Teodosio (nteodosio) → Bram Stolk (b-stolk)
Revision history for this message
Nathan Teodosio (nteodosio) wrote :

This is no longer a thing in the current version. If someone notes the contrary, please reopen the bug.

Changed in chromium-browser (Ubuntu):
status: Confirmed → Fix Released
assignee: Bram Stolk (b-stolk) → nobody
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.