New issue
Advanced search Search tips

Issue 733859 link

Starred by 14 users

Issue metadata

Status: Fixed
Owner:
Closed: Sep 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug-Regression



Sign in to add a comment

Ubuntu 16.04 on Macbook Pro using https://github.com/patjak/bcwc_pcie/wiki drivers for facetime hd no longer works with version chrome 59. It works fine with chrome 58 and older.

Reported by rufus.sh...@skyfii.com, Jun 15 2017

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.104 Safari/537.36

Example URL:

Steps to reproduce the problem:
1. Upgrade to chrome v 59
2. Go to hangout to start a video chat
3. 

What is the expected behavior?
Hangout should be able to use drivers compiled from https://github.com/patjak/bcwc_pcie/wiki

What went wrong?
Chrome cannot access video

Did this work before? Yes chrome64_58.0.3029.96.deb

Is it a problem with Flash or HTML5? HTML5

Does this work in other browsers? Yes

Chrome version: 59.0.3071.104  Channel: stable
OS Version: Ubuntu 16.04
Flash Version: 

Contents of chrome://gpu: 
Graphics Feature Status
Canvas: Hardware accelerated
Flash: Hardware accelerated
Flash Stage3D: Hardware accelerated
Flash Stage3D Baseline profile: Hardware accelerated
Compositing: Hardware accelerated
Multiple Raster Threads: Enabled
Native GpuMemoryBuffers: Software only. Hardware acceleration disabled
Rasterization: Software only. Hardware acceleration disabled
Video Decode: Software only, hardware acceleration unavailable
Video Encode: Software only, hardware acceleration unavailable
WebGL: Hardware accelerated
WebGL2: Hardware accelerated
Driver Bug Workarounds
adjust_src_dst_region_for_blitframebuffer
clear_uniforms_before_first_program_use
count_all_in_varyings_packing
decode_encode_srgb_for_generatemipmap
disable_framebuffer_cmaa
disable_post_sub_buffers_for_onscreen_surfaces
msaa_is_slow
remove_invariant_and_centroid_for_essl3
scalarize_vec_and_mat_constructor_args
Problems Detected
Accelerated video decode is unavailable on Linux: 137247
Disabled Features: accelerated_video_decode
Accelerated video encode is unavailable on Linux
Disabled Features: accelerated_video_encode
Clear uniforms before first program use on all platforms: 124764, 349137
Applied Workarounds: clear_uniforms_before_first_program_use
Mesa drivers in Linux handle varyings without static use incorrectly: 333885
Applied Workarounds: count_all_in_varyings_packing
Disable partial swaps on Mesa drivers (detected with GL_RENDERER): 339493
Applied Workarounds: disable_post_sub_buffers_for_onscreen_surfaces
Always rewrite vec/mat constructors to be consistent: 398694
Applied Workarounds: scalarize_vec_and_mat_constructor_args
On Intel GPUs MSAA performance is not acceptable for GPU rasterization: 527565
Applied Workarounds: msaa_is_slow
Timer queries crash on Intel GPUs on Linux: 540543, 576991
Limited enabling of Chromium GL_INTEL_framebuffer_CMAA: 535198
Applied Workarounds: disable_framebuffer_cmaa
Disable partial swaps on Mesa drivers (detected with GL_VERSION): 339493
Applied Workarounds: disable_post_sub_buffers_for_onscreen_surfaces
Decode and encode before generateMipmap for srgb format textures on os except macosx: 634519
Applied Workarounds: decode_encode_srgb_for_generatemipmap
adjust src/dst region if blitting pixels outside read framebuffer on Linux Intel: 664740
Applied Workarounds: adjust_src_dst_region_for_blitframebuffer
Mesa driver GL 3.3 requires invariant and centroid to match between shaders: 639760, 641129
Applied Workarounds: remove_invariant_and_centroid_for_essl3
Disable KHR_blend_equation_advanced until cc shaders are updated: 661715
Accelerated rasterization has been disabled, either via blacklist, about:flags or the command line.
Disabled Features: rasterization
Native GpuMemoryBuffers have been disabled, either via about:flags or command line.
Disabled Features: native_gpu_memory_buffers
Version Information
Data exported	16/06/2017, 09:24:47
Chrome version	Chrome/59.0.3071.104
Operating system	Linux 4.4.0-79-generic
Software rendering list version	13.8
Driver bug list version	10.102
ANGLE commit id	a9042d3c1952
2D graphics backend	Skia/59 ef6f9c65527412ec4057ea0551f2e051beb94d32
Command Line Args	--flag-switches-begin --flag-switches-end
Driver Information
Initialization time	20
In-process GPU	false
Passthrough Command Decoder	false
Supports overlays	false
Sandboxed	true
GPU0	VENDOR = 0x8086, DEVICE= 0x0d26
Optimus	false
Optimus	false
AMD switchable	false
Driver vendor	Mesa
Driver version	12.0.6
Driver date	
Pixel shader version	3.30
Vertex shader version	3.30
Max. MSAA samples	8
Machine model name	
Machine model version	
GL_VENDOR	Intel Open Source Technology Center
GL_RENDERER	Mesa DRI Intel(R) Haswell Mobile
GL_VERSION	3.3 (Core Profile) Mesa 12.0.6
GL_EXTENSIONS	GL_3DFX_texture_compression_FXT1 GL_AMD_conservative_depth GL_AMD_draw_buffers_blend GL_AMD_performance_monitor GL_AMD_seamless_cubemap_per_texture GL_AMD_shader_trinary_minmax GL_AMD_vertex_shader_layer GL_AMD_vertex_shader_viewport_index GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_APPLE_object_purgeable GL_ARB_ES2_compatibility GL_ARB_ES3_compatibility GL_ARB_arrays_of_arrays GL_ARB_base_instance GL_ARB_blend_func_extended GL_ARB_buffer_storage GL_ARB_clear_buffer_object GL_ARB_clear_texture GL_ARB_clip_control GL_ARB_compressed_texture_pixel_storage GL_ARB_compute_shader GL_ARB_conditional_render_inverted GL_ARB_conservative_depth GL_ARB_copy_buffer GL_ARB_copy_image GL_ARB_cull_distance GL_ARB_debug_output GL_ARB_depth_buffer_float GL_ARB_depth_clamp GL_ARB_derivative_control GL_ARB_direct_state_access GL_ARB_draw_buffers GL_ARB_draw_buffers_blend GL_ARB_draw_elements_base_vertex GL_ARB_draw_indirect GL_ARB_draw_instanced GL_ARB_explicit_attrib_location GL_ARB_explicit_uniform_location GL_ARB_fragment_coord_conventions GL_ARB_fragment_layer_viewport GL_ARB_fragment_shader GL_ARB_framebuffer_no_attachments GL_ARB_framebuffer_object GL_ARB_framebuffer_sRGB GL_ARB_get_program_binary GL_ARB_get_texture_sub_image GL_ARB_gpu_shader5 GL_ARB_half_float_pixel GL_ARB_half_float_vertex GL_ARB_instanced_arrays GL_ARB_internalformat_query GL_ARB_internalformat_query2 GL_ARB_invalidate_subdata GL_ARB_map_buffer_alignment GL_ARB_map_buffer_range GL_ARB_multi_bind GL_ARB_multi_draw_indirect GL_ARB_occlusion_query2 GL_ARB_pipeline_statistics_query GL_ARB_pixel_buffer_object GL_ARB_point_sprite GL_ARB_program_interface_query GL_ARB_provoking_vertex GL_ARB_robust_buffer_access_behavior GL_ARB_robustness GL_ARB_sample_shading GL_ARB_sampler_objects GL_ARB_seamless_cube_map GL_ARB_seamless_cubemap_per_texture GL_ARB_separate_shader_objects GL_ARB_shader_atomic_counters GL_ARB_shader_bit_encoding GL_ARB_shader_clock GL_ARB_shader_draw_parameters GL_ARB_shader_image_load_store GL_ARB_shader_image_size GL_ARB_shader_objects GL_ARB_shader_storage_buffer_object GL_ARB_shader_subroutine GL_ARB_shader_texture_image_samples GL_ARB_shader_texture_lod GL_ARB_shading_language_420pack GL_ARB_shading_language_packing GL_ARB_sync GL_ARB_tessellation_shader GL_ARB_texture_barrier GL_ARB_texture_buffer_object GL_ARB_texture_buffer_object_rgb32 GL_ARB_texture_buffer_range GL_ARB_texture_compression_bptc GL_ARB_texture_compression_rgtc GL_ARB_texture_cube_map_array GL_ARB_texture_float GL_ARB_texture_gather GL_ARB_texture_mirror_clamp_to_edge GL_ARB_texture_multisample GL_ARB_texture_non_power_of_two GL_ARB_texture_query_levels GL_ARB_texture_query_lod GL_ARB_texture_rectangle GL_ARB_texture_rg GL_ARB_texture_rgb10_a2ui GL_ARB_texture_storage GL_ARB_texture_storage_multisample GL_ARB_texture_swizzle GL_ARB_texture_view GL_ARB_transform_feedback2 GL_ARB_transform_feedback3 GL_ARB_transform_feedback_instanced GL_ARB_uniform_buffer_object GL_ARB_vertex_array_bgra GL_ARB_vertex_array_object GL_ARB_vertex_attrib_binding GL_ARB_vertex_shader GL_ARB_vertex_type_10f_11f_11f_rev GL_ARB_vertex_type_2_10_10_10_rev GL_ARB_viewport_array GL_ATI_blend_equation_separate GL_ATI_texture_float GL_EXT_abgr GL_EXT_blend_equation_separate GL_EXT_draw_buffers2 GL_EXT_draw_instanced GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXT_framebuffer_multisample_blit_scaled GL_EXT_framebuffer_sRGB GL_EXT_packed_depth_stencil GL_EXT_packed_float GL_EXT_pixel_buffer_object GL_EXT_polygon_offset_clamp GL_EXT_provoking_vertex GL_EXT_shader_integer_mix GL_EXT_shader_samples_identical GL_EXT_texture_array GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_rgtc GL_EXT_texture_compression_s3tc GL_EXT_texture_filter_anisotropic GL_EXT_texture_integer GL_EXT_texture_sRGB GL_EXT_texture_sRGB_decode GL_EXT_texture_shared_exponent GL_EXT_texture_snorm GL_EXT_texture_swizzle GL_EXT_transform_feedback GL_EXT_vertex_array_bgra GL_IBM_multimode_draw_arrays GL_INTEL_performance_query GL_KHR_context_flush_control GL_KHR_debug GL_KHR_robust_buffer_access_behavior GL_KHR_robustness GL_MESA_pack_invert GL_MESA_texture_signed_rgba GL_NV_conditional_render GL_NV_depth_clamp GL_NV_packed_depth_stencil GL_NV_texture_barrier GL_OES_EGL_image GL_OES_read_format GL_S3_s3tc
Disabled Extensions	GL_ARB_timer_query GL_EXT_timer_query GL_KHR_blend_equation_advanced GL_KHR_blend_equation_advanced_coherent
Window system binding vendor	SGI
Window system binding version	1.4
Window system binding extensions	GLX_ARB_create_context GLX_ARB_create_context_profile GLX_ARB_create_context_robustness GLX_ARB_fbconfig_float GLX_ARB_framebuffer_sRGB GLX_ARB_multisample GLX_EXT_create_context_es_profile GLX_EXT_create_context_es2_profile GLX_EXT_fbconfig_packed_float GLX_EXT_framebuffer_sRGB GLX_EXT_import_context GLX_EXT_texture_from_pixmap GLX_EXT_visual_info GLX_EXT_visual_rating GLX_MESA_copy_sub_buffer GLX_OML_swap_method GLX_SGI_swap_control GLX_SGIS_multisample GLX_SGIX_fbconfig GLX_SGIX_pbuffer GLX_SGIX_visual_select_group GLX_INTEL_swap_event
Window manager	Compiz
XDG_CURRENT_DESKTOP	Unity
GDMSESSION	ubuntu
Compositing manager	Yes
Direct rendering	Yes
Reset notification strategy	0x8252
GPU process crash count	0
System visual ID	32
RGBA visual ID	114
Compositor Information
Tile Update Mode	One-copy
Partial Raster	Enabled
GpuMemoryBuffers Status
ATC	Software only
ATCIA	Software only
DXT1	Software only
DXT5	Software only
ETC1	Software only
R_8	Software only
RG_88	Software only
BGR_565	Software only
RGBA_4444	Software only
RGBX_8888	Software only
RGBA_8888	Software only
BGRX_8888	Software only
BGRA_8888	Software only
RGBA_F16	Software only
YVU_420	Software only
YUV_420_BIPLANAR	Software only
UYVY_422	Software only
Log Messages
[3501:3501:0616/092004.906906:ERROR:interface_registry.cc(209)] : Failed to locate a binder for interface: chrome::mojom::ResourceUsageReporter requested by: exposed by: via InterfaceProviderSpec "service_manager:connector".
 
Some outputs:

lsmod | grep facetime

facetimehd             98304  0
videobuf2_dma_sg       20480  1 facetimehd
videobuf2_v4l2         28672  1 facetimehd
videobuf2_core         36864  2 facetimehd,videobuf2_v4l2
videodev              176128  4 v4l2_common,facetimehd,videobuf2_core,videobuf2_v4l2

dmesg | grep facetime

[    4.702915] facetimehd: module verification failed: signature and/or required key missing - tainting kernel
[    4.703270] facetimehd 0000:03:00.0: Found FaceTime HD camera with device id: 1570
[    4.703460] facetimehd 0000:03:00.0: Setting 64bit DMA mask
[    4.709236] facetimehd 0000:03:00.0: S2 PCIe link init succeeded
[    4.709268] facetimehd 0000:03:00.0: Refclk: 25MHz (0xa)
[    4.719222] facetimehd 0000:03:00.0: PLL reset finished
[    4.719235] facetimehd 0000:03:00.0: Waiting for S2 PLL to lock at 450 MHz
[    5.023688] facetimehd 0000:03:00.0: Failed to lock S2 PLL: 0xc902c902
[    5.043642] facetimehd 0000:03:00.0: DDR40 PHY PLL locked on safe settings
[    5.043656] facetimehd 0000:03:00.0: STRAP valid
[    5.043657] facetimehd 0000:03:00.0: Configuring DDR PLLs for 450 MHz
[    5.043665] facetimehd 0000:03:00.0: DDR40 PLL is locked after 0 us
[    5.043675] facetimehd 0000:03:00.0: First DDR40 VDL calibration completed after 2 us
[    5.043687] facetimehd 0000:03:00.0: Second DDR40 VDL calibration completed after 2 us
[    5.043688] facetimehd 0000:03:00.0: Using step size 157
[    5.043693] facetimehd 0000:03:00.0: VDL set to: coarse=0x10008, fine=0x1011c
[    5.043698] facetimehd 0000:03:00.0: Virtual VTT enabled
[    5.064112] facetimehd 0000:03:00.0: S2 DRAM memory address: 0x22159559
[    5.064126] facetimehd 0000:03:00.0: Rewrite DDR mode registers succeeded
[    5.064326] facetimehd 0000:03:00.0: Full memory verification succeeded! (0)
[    5.526288] facetimehd 0000:03:00.0: Loaded firmware, size: 1392kb
[    5.566281] facetimehd 0000:03:00.0: ISP woke up after 0ms
[    5.566287] facetimehd 0000:03:00.0: Number of IPC channels: 7, queue size: 44865
[    5.566324] facetimehd 0000:03:00.0: Firmware requested heap size: 3072kb
[    5.576332] facetimehd 0000:03:00.0: ISP second int after 0ms
[    5.576334] facetimehd 0000:03:00.0: Channel description table at 00800000
[    5.586439] facetimehd 0000:03:00.0: magic value: 00000000 after 0 ms
[    5.586441] facetimehd 0000:03:00.0: Enabling interrupts
[    5.661587] facetimehd 0000:03:00.0: Direct firmware load for facetimehd/1871_01XX.dat failed with error -2

Comment 2 by h...@barrera.io, Jun 17 2017

I'd like to clarify that this issue has been reproduced on several distributions and kernel versions. Consistently, as of Chromium 59, Facetime HD cameras [on linux] stopped working where they work with 58 or earlier.
Labels: Needs-Triage-M59

Comment 4 Deleted

Comment 5 by vke...@gmail.com, Jun 20 2017

I had downgraded and upgraded packages to test.

Last known working version: Chromium Version 58.0.3029.110 (64-bit)
First known regression version: Chromium Version 59.0.3071.104 (Developer Build) (64-bit)


Previously, I have removed the permission for camera access by hangouts.

I have downgraded my package to Chromium Version 58.0.3029.110 (64-bit), and it works, asking for my camera permission.

Upgrade to Chromium Version 59.0.3071.104 (Developer Build) (64-bit), it stopped working. Doesn't ask for camera permission.
Components: -Internals>Media Blink>WebRTC
Owner: chfremer@chromium.org
Status: Assigned (was: Unconfirmed)
Cc: mcasas@chromium.org
This might be related to newer Chromium Version accessing camera controls which it did not in earlier versions. Some drivers seem to be sensitive to that.

Unfortunately, we currently do not have a switch to disable this to help confirm that this is really the cause. I am planning to add a switch for this.

What is the behavior in the latest 61 dev release?

Comment 9 by mcasas@chromium.org, Jun 20 2017

Is this a Mac or Linux issue? 

Mac doesn't touch the capabilities or try to get the settings,
see [1,2].  takePhoto() is wired and has some code to back it
up [3], but needs to be called explicitly from JS, which I 
don't think is the case.


[1] https://cs.chromium.org/chromium/src/media/capture/video/mac/video_capture_device_mac.mm?sq=package:chromium&dr=C&l=392
[2] https://cs.chromium.org/chromium/src/media/capture/video/mac/video_capture_device_mac.mm?sq=package:chromium&dr=C&l=420
[3] https://cs.chromium.org/chromium/src/media/capture/video/mac/video_capture_device_avfoundation_mac.mm?sq=package:chromium&dr=C&l=398
According to the report, this is Linux running on a MacBook Pro.

Comment 11 by h...@barrera.io, Jun 20 2017

Yup, this is linux-only, on recent MacBooks. This most likely affects these MacBook models:

iMac (21,5", since mid 2011)
iMac (27", since mid 2011)
MacBook Air (since mid 2011)
MacBook Pro (15", since early 2011)
MacBook Pro (17", since early 2011)
MacBook Pro (13", since early 2011)

Exactly what controls does the new version interact with? Maybe this can also be addresses (or at least, taking into consideration) on the driver side.

Comment 12 by vke...@gmail.com, Jun 22 2017

Not sure whether it is the same, using Google Chrome Version 61.0.3128.3 (Official Build) dev (64-bit)

Hangouts asks for microphone permissions, didn't ask for camera's permission i.e. not working.

> What is the behavior in the latest 61 dev release?

Comment 13 by jferl...@gmail.com, Jun 24 2017

In case it's related. I get the following on stdout

[28373:28412:0624/141205.937416:ERROR:video_capture_device_factory_linux.cc(139)] Not implemented reached in void media::(anonymous namespace)::GetSupportedFormatsForV4L2BufferType(int, media::VideoCaptureFormats *)

Comment 14 by jferl...@gmail.com, Jun 24 2017

To be clearer I see

[28373:28412:0624/141205.937416:ERROR:video_capture_device_factory_linux.cc(139)] Not implemented reached in void media::(anonymous namespace)::GetSupportedFormatsForV4L2BufferType(int, media::VideoCaptureFormats *)

The first time a webrtc page loads. e.g. https://test.webrtc.org/

Doesn't happen again after. I assume it's cached

Comment 16 by jferl...@gmail.com, Jun 24 2017

I think it's unrelated since I compiled the driver with a different frame size type and still get the error. 
This is affecting me too since the release of Chrome 59 for Linux. Using patjak's bcwc_pcie facetimehd driver.
I also get this problem using chrome, on ubuntu Xenial on a MacBook Retina and the bcwc_pcie drivers (working with other software). This is my chrome version:

google-chrome-stable
Versions: 
60.0.3112.78-1 (/

And this is the error:

[28820:28858:0726/110814.496684:ERROR:video_capture_device_factory_linux.cc(139)] Not implemented reached in void media::(anonymous namespace)::GetSupportedFormatsForV4L2BufferType(int, media::VideoCaptureFormats *)

Wondering when this might be fixed in future release?
Seeing this as well on Fedora 26 on my Macbook. I'm using the bcwc_pcie kmod on kernel 4.11.11-300.fc26.x86_64. Chrome Version 60.0.3112.78 cannot recognize my camera, and I see the same video_capture_device_factory_linux.cc error on the console. The webcam works fine in Firefox 54.0.1 or Cheese for me.
I have the same behaviour with Chrome unstable : Version 62.0.3175.4 (Official Build) dev (64-bit)

google-chrome-unstable --enable-logging --v=1

(google-chrome-unstable:25223): Gtk-WARNING **: Theme parsing error: gtk.css:68:35: The style property GtkButton:child-displacement-x is deprecated and shouldn't be used anymore. It will be removed in a future version

(google-chrome-unstable:25223): Gtk-WARNING **: Theme parsing error: gtk.css:69:35: The style property GtkButton:child-displacement-y is deprecated and shouldn't be used anymore. It will be removed in a future version

(google-chrome-unstable:25223): Gtk-WARNING **: Theme parsing error: gtk.css:73:46: The style property GtkScrolledWindow:scrollbars-within-bevel is deprecated and shouldn't be used anymore. It will be removed in a future version
[1:19:0808/142918.077719:ERROR:adm_helpers.cc(62)] Failed to query stereo recording.
[25517:25517:0808/142918.120495:ERROR:video_capture_device_factory_linux.cc(139)] Not implemented reached in void media::(anonymous namespace)::GetSupportedFormatsForV4L2BufferType(int, media::VideoCaptureFormats *)
[25517:25517:0808/142918.240219:ERROR:video_capture_device_factory_linux.cc(139)] Not implemented reached in void media::(anonymous namespace)::GetSupportedFormatsForV4L2BufferType(int, media::VideoCaptureFormats *)
[25622:25622:0808/142957.649621:ERROR:video_capture_device_factory_linux.cc(139)] Not implemented reached in void media::(anonymous namespace)::GetSupportedFormatsForV4L2BufferType(int, media::VideoCaptureFormats *)
[25622:25622:0808/142959.432864:ERROR:video_capture_device_factory_linux.cc(139)] Not implemented reached in void media::(anonymous namespace)::GetSupportedFormatsForV4L2BufferType(int, media::VideoCaptureFormats *)

Is there a possibility of a fix anytime soon?
Cc: guidou@chromium.org
There is a possibility. The first thing we need to do is figure out what change caused the regression. One potential change that could have caused this is what I mentioned in #8. However, since the issue seems to start with M59, another likely candidate is a new (spec-compliant) constraint handling. We have seen several cases where cameras started getting rejected, because they were reporting invalid or out-of-range frame rates.

Unfortunately I do not have a Macbook with Ubuntu or Fedora on it. To test if it is a constraint handling issue, please do the following:
1. Try to access a camera, e.g. by navigating to https://webrtc.github.io/samples/src/content/getusermedia/gum/
2. Open a new tab and navigate to chrome://media-internals
3. In the Video Capture tab, check if the camera is listed and copy/paste the list of supported formats to this thread.

The list of supported formats shows which frame rates the constraint handling sees as supported.
WebRTC test does not work (as expected):

getUserMedia error: NotFoundError

Here is the JSON output from the Video Capture tab:

[{"captureApi":"V4L2 SPLANE","formats":[{"resolution":"0x0","fps":"0.00","storage":"CPU"}],"id":"/dev/video0","name":"Apple Facetime HD"}]

Comment 25 by kdre...@redhat.com, Aug 14 2017

Same here:

[{"captureApi":"V4L2 SPLANE","formats":[{"resolution":"0x0","fps":"0.00","storage":"CPU"}],"id":"/dev/video0","name":"Apple Facetime HD"}]
Cc: -guidou@chromium.org chfremer@chromium.org
Owner: guidou@chromium.org
Thanks. I think these values make it very likely that the camera is rejected in the constraint handling because of the 0.00fps. I am not sure if the resolution can also lead to the device getting rejected.

guidou@: With your CL for allowing invalid frame rates [1], would we expect this to work again, or does a reported resolution of 0x0 lead to the device getting rejected as well?

[1] https://bugs.chromium.org/p/chromium/issues/detail?id=739953
It will be rejected due to the 0x0 resolution.
Fixing the constraints algorithm to accept 0x0 resolutions is probably not worth it. Instead I'll make a patch to remove modes with 0x0 resolutions so that a fallback list of video modes is used instead.
Project Member

Comment 28 by bugdroid1@chromium.org, Aug 16 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/9c77470ff34bac937ceb765a27cee1703f0f2426

commit 9c77470ff34bac937ceb765a27cee1703f0f2426
Author: Guido Urdaneta <guidou@chromium.org>
Date: Wed Aug 16 14:01:30 2017

Ignore 0-size resolutions when requesting video-input capabilities.

Some video-capture devices with faulty device drivers report resolutions
of 0x0. These devices are then rejected by the constraints processing
algorithm of getUserMedia since they are considered unable to support
any video mode selected by the algorithm.

By discarding these invalid formats, a fallback list of standard video
modes will be used instead, just like with devices that do not report
any video mode.

Bug:  733859 ,  740505 
Change-Id: Idc6610ad9abde02bf139736da0f7e183f8fcab6d
Reviewed-on: https://chromium-review.googlesource.com/615246
Commit-Queue: Guido Urdaneta <guidou@chromium.org>
Reviewed-by: Christian Fremerey <chfremer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#494764}
[modify] https://crrev.com/9c77470ff34bac937ceb765a27cee1703f0f2426/content/browser/renderer_host/media/media_devices_dispatcher_host.cc
[modify] https://crrev.com/9c77470ff34bac937ceb765a27cee1703f0f2426/content/browser/renderer_host/media/media_devices_dispatcher_host_unittest.cc

Is there any more work planned here?
Labels: Needs-Feedback
I believe with guidou@'s fix from #28, the issue may have been resolved. Can anyone who was affected by this confirm that it works again in 62.0.3188.0 or later?
I can confirm my camera works with 62.0.3202.9 (Official Build) dev (64-bit)!
Status: Fixed (was: Assigned)
Yay, Thanks guidou! This has been a bain. Awesome work.
The stable v62 has your fix implemented and works fine. However, the image is now stretched horizontally - like 4:3 image is shown as 16:9. Hopefully even this can be fixed. Thank you.
Yes, I am noticing the above behaviour too. The image is very stretched horizontally.

Thanks.
Interestingly, https://webrtc.github.io/samples/src/content/getusermedia/gum/ test shows normal aspect ratio but hangouts video call shows stretched image.
Think this is fixed in official Version 62.0.3202.89 (Official Build) (64-bit)

Sign in to add a comment