GrapheneOS / Vanadium

Privacy and security enhanced releases of Chromium for GrapheneOS. Vanadium provides the WebView and standard user-facing browser on GrapheneOS. It depends on hardening in other GrapheneOS repositories and doesn't include patches not relevant to the build targets used on GrapheneOS.
https://vanadium.app/
Other
886 stars 69 forks source link

Videos on specific sites fail to play like they used to before #125

Closed Technerder closed 1 year ago

Technerder commented 3 years ago

Vanadium Version: 94.0.4606.61 OS Information: Android 11; Pixel 2 Build/RQ3A.210905.001

Like the title suggests, video's don't always seem to load on sites browsed viewed through Vanadium but work without any issues on other browsers such as DuckDuckGo. IIRC this wasn't an issue a few months ago but I can't recall the exact version where I started experiencing these issues.

YouTube - Video's work without any issues Twitch - Fails with "An error occurred while trying to play this content. Twitter - Fails with "The media could not be played". (occasionally loads the first few frames of videos)

image image

thestinger commented 3 years ago

Have you tried enabling third party cookies, which are disabled by default in Vanadium?

Technerder commented 3 years ago

I just tried setting Settings > Site Settings > Cookies > Allow Cookies and it didn't make a difference, is this the setting you were referring to?

thestinger commented 3 years ago

Yes.

csagan5 commented 3 years ago

Is there a specific error in the console logs? Could this be related to Vulkan? chrome://gpu should tell about hw acceleration and related settings

Technerder commented 3 years ago

Vulkan appears to be disabled according to the chrome://gpu output. I've linked the full output below.

Graphics Feature Status

Canvas: Hardware accelerated

Compositing: Hardware accelerated

Multiple Raster Threads: Disabled

Out-of-process Rasterization: Hardware accelerated

OpenGL: Enabled

Rasterization: Hardware accelerated

Skia Renderer: Enabled

Surface Control: Enabled

Video Decode: Software only. Hardware acceleration disabled

Vulkan: Disabled

WebGL: Hardware accelerated

WebGL2: Hardware accelerated

Driver Bug Workarounds

broken_egl_image_ref_counting

clear_uniforms_before_first_program_use

disable_program_caching_for_transform_feedback

disable_program_disk_cache

disable_timestamp_queries

dont_delete_source_texture_for_egl_image

exit_on_context_lost

force_cube_map_positive_x_allocation

force_enable_color_buffer_float_except_rgb32f

max_copy_texture_chromium_size_1048576

max_msaa_sample_count_4

max_texture_size_limit_4096

multisample_renderbuffer_resize_emulation

remove_dynamic_indexing_of_swizzled_vector

round_down_uniform_bind_buffer_range_size

unbind_egl_context_to_flush_driver_caches

use_copyteximage2d_instead_of_readpixels_on_multisampled_textures

use_virtualized_gl_contexts

wake_up_gpu_before_drawing

disabled_extension_GL_EXT_shader_framebuffer_fetch

disabled_extension_GL_KHR_blend_equation_advanced

disabled_extension_GL_KHR_blend_equation_advanced_coherent

Problems Detected

Raster is using a single thread.
Disabled Features: multiple_raster_threads

Accelerated video decode has been disabled, either via blocklist, about:flags or the command line.
Disabled Features: video_decode

Non-virtual contexts on Qualcomm sometimes cause out-of-order frames: 163464, 233612, 289461
Applied Workarounds: use_virtualized_gl_contexts

The first draw operation from an idle state is slow: 309734
Applied Workarounds: wake_up_gpu_before_drawing

Clear uniforms before first program use on all platforms: 124764, 349137
Applied Workarounds: clear_uniforms_before_first_program_use

glFinish doesn't clear caches on Android: 509727
Applied Workarounds: unbind_egl_context_to_flush_driver_caches

Android Adreno crashes on binding incomplete cube map texture to FBO: 518889
Applied Workarounds: force_cube_map_positive_x_allocation

CHROMIUM_copy_texture with 1MB copy per flush to avoid unwanted cache growth on Adreno: 542478
Applied Workarounds: max_copy_texture_chromium_size_1048576

EGLImage ref counting across EGLContext/threads is broken: 585250
Applied Workarounds: broken_egl_image_ref_counting

Limit max texure size to 4096 on all of Android
Applied Workarounds: max_texture_size_limit_4096

Disable KHR_blend_equation_advanced until cc shaders are updated: 661715
Applied Workarounds: disable(GL_KHR_blend_equation_advanced), disable(GL_KHR_blend_equation_advanced_coherent)

Program binaries don't contain transform feedback varyings on Qualcomm GPUs: 658074
Applied Workarounds: disable_program_caching_for_transform_feedback

Certain Adreno 4xx and 5xx drivers often crash in glProgramBinary.: 699122
Applied Workarounds: disable_program_disk_cache

Multisampled color renderbuffers can't be resized on Qualcomm 4xx/5xx: 696126
Applied Workarounds: multisample_renderbuffer_resize_emulation

Limit MSAA to 4x on Android devices: 797243
Applied Workarounds: max_msaa_sample_count_4

A deleted query id for GL_TIMESTAMP cannot be reused for other query targets: 858879
Applied Workarounds: disable_timestamp_queries

ReadPixels is broken with EXT_multisampled_render_to_texture on recent Adreno drivers.: 890002
Applied Workarounds: use_copyteximage2d_instead_of_readpixels_on_multisampled_textures

Round down glBindBufferRange size to a multiple of 4 on Qualcomm Adreno GPUs for uniform buffers: 906743
Applied Workarounds: round_down_uniform_bind_buffer_range_size

Crash on Adreno when using GL_EXT_shader_framebuffer_fetch: 1010338
Applied Workarounds: disable(GL_EXT_shader_framebuffer_fetch)

Remove dynamic indexing for swizzled vectors on Android: 709351
Applied Workarounds: remove_dynamic_indexing_of_swizzled_vector

Some drivers seem to require as to use original texture whenever possible: 1052114, 1117370
Applied Workarounds: dont_delete_source_texture_for_egl_image

Always assume float formats are renderable on Android except RGB32F: 1127387
Applied Workarounds: force_enable_color_buffer_float_except_rgb32f

Context lost recovery often fails on Adreno with SkiaRenderer GL.: 1079161
Applied Workarounds: exit_on_context_lost

Version Information

Data exported2021-10-20T17:41:12.158ZChrome versionChrome/94.0.4606.61Operating systemAndroid 11Software rendering list URLhttps://chromium.googlesource.com/chromium/src/+/418b78f5838ed0b1c69bb4e51ea0252171854915/gpu/config/software_rendering_list.jsonDriver bug list URLhttps://chromium.googlesource.com/chromium/src/+/418b78f5838ed0b1c69bb4e51ea0252171854915/gpu/config/gpu_driver_bug_list.jsonANGLE commit idfc1abc0c7cfb2D graphics backendSkia/94 a71591a1efcc901dbebdb196d7a3c6e09364cf1fCommand Line--use-mobile-user-agent --top-controls-show-threshold=0.5 --top-controls-hide-threshold=0.5 --use-mobile-user-agent --enable-viewport --validate-input-event-stream --enable-longpress-drag-selection --touch-selection-strategy=direction --main-frame-resizes-are-orientation-changes --disable-composited-antialiasing --enable-dom-distiller --flag-switches-begin --disable-accelerated-video-decode --disable-accelerated-video-encode --flag-switches-end

Driver Information

Initialization time85In-process GPUfalsePassthrough Command DecoderfalseSandboxedfalseGPU0VENDOR= 0x0000 [Qualcomm], DEVICE=0x0000 [Adreno (TM) 540] *ACTIVE*OptimusfalseAMD switchablefalseDriver vendorDriver version0490.0GPU CUDA compute capability major version0Pixel shader version3.20Vertex shader version3.20Max. MSAA samples4Machine model namePixel 2Machine model versionGL_VENDORQualcommGL_RENDERERAdreno (TM) 540GL_VERSIONOpenGL ES 3.2 V@0490.0 (GIT@e883189, Ia11ce2d146, 1599063670) (Date:09/02/20)GL_EXTENSIONSGL_OES_EGL_image GL_OES_EGL_image_external GL_OES_EGL_sync GL_OES_vertex_half_float GL_OES_framebuffer_object GL_OES_rgb8_rgba8 GL_OES_compressed_ETC1_RGB8_texture GL_AMD_compressed_ATC_texture GL_KHR_texture_compression_astc_ldr GL_KHR_texture_compression_astc_hdr GL_OES_texture_compression_astc GL_OES_texture_npot GL_EXT_texture_filter_anisotropic GL_EXT_texture_format_BGRA8888 GL_EXT_read_format_bgra GL_OES_texture_3D GL_EXT_color_buffer_float GL_EXT_color_buffer_half_float GL_QCOM_alpha_test GL_OES_depth24 GL_OES_packed_depth_stencil GL_OES_depth_texture GL_OES_depth_texture_cube_map GL_EXT_sRGB GL_OES_texture_float GL_OES_texture_float_linear GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_EXT_texture_type_2_10_10_10_REV GL_EXT_texture_sRGB_decode GL_EXT_texture_format_sRGB_override GL_OES_element_index_uint GL_EXT_copy_image GL_EXT_geometry_shader GL_EXT_tessellation_shader GL_OES_texture_stencil8 GL_EXT_shader_io_blocks GL_OES_shader_image_atomic GL_OES_sample_variables GL_EXT_texture_border_clamp GL_EXT_EGL_image_external_wrap_modes GL_EXT_multisampled_render_to_texture GL_EXT_multisampled_render_to_texture2 GL_OES_shader_multisample_interpolation GL_EXT_texture_cube_map_array GL_EXT_draw_buffers_indexed GL_EXT_gpu_shader5 GL_EXT_robustness GL_EXT_texture_buffer GL_EXT_shader_framebuffer_fetch GL_ARM_shader_framebuffer_fetch_depth_stencil GL_OES_texture_storage_multisample_2d_array GL_OES_sample_shading GL_OES_get_program_binary GL_EXT_debug_label GL_KHR_blend_equation_advanced GL_KHR_blend_equation_advanced_coherent GL_QCOM_tiled_rendering GL_ANDROID_extension_pack_es31a GL_EXT_primitive_bounding_box GL_OES_standard_derivatives GL_OES_vertex_array_object GL_EXT_disjoint_timer_query GL_KHR_debug GL_EXT_YUV_target GL_EXT_sRGB_write_control GL_EXT_texture_norm16 GL_EXT_discard_framebuffer GL_OES_surfaceless_context GL_OVR_multiview GL_OVR_multiview2 GL_EXT_texture_sRGB_R8 GL_KHR_no_error GL_EXT_debug_marker GL_OES_EGL_image_external_essl3 GL_OVR_multiview_multisampled_render_to_texture GL_EXT_buffer_storage GL_EXT_external_buffer GL_EXT_blit_framebuffer_params GL_EXT_clip_cull_distance GL_EXT_protected_textures GL_EXT_shader_non_constant_global_initializers GL_QCOM_texture_foveated GL_QCOM_shader_framebuffer_fetch_noncoherent GL_QCOM_shader_framebuffer_fetch_rate GL_EXT_memory_object GL_EXT_memory_object_fd GL_EXT_EGL_image_array GL_NV_shader_noperspective_interpolation GL_KHR_robust_buffer_access_behavior GL_EXT_EGL_image_storage GL_EXT_blend_func_extended GL_EXT_clip_control GL_OES_texture_view GL_EXT_fragment_invocation_density GL_QCOM_YUV_texture_gatherDisabled ExtensionsGL_EXT_shader_framebuffer_fetch GL_KHR_blend_equation_advanced GL_KHR_blend_equation_advanced_coherentDisabled WebGL ExtensionsWindow system binding vendorWindow system binding versionWindow system binding extensionsDirect rendering versionunknownReset notification strategy0x8252GPU process crash count0gfx::BufferFormats supported for allocation and texturingR_8: not supported, R_16: not supported, RG_88: not supported, BGR_565: not supported, RGBA_4444: not supported, RGBX_8888: not supported, RGBA_8888: not supported, BGRX_8888: not supported, BGRA_1010102: not supported, RGBA_1010102: not supported, BGRA_8888: not supported, RGBA_F16: not supported, YVU_420: not supported, YUV_420_BIPLANAR: not supported, P010: not supported

Compositor Information

Tile Update ModeOne-copyPartial RasterEnabled

GpuMemoryBuffers Status

R_8Software onlyR_16Software onlyRG_88Software onlyBGR_565GPU_READ, SCANOUTRGBA_4444Software onlyRGBX_8888GPU_READ, SCANOUTRGBA_8888GPU_READ, SCANOUTBGRX_8888Software onlyBGRA_1010102Software onlyRGBA_1010102Software onlyBGRA_8888Software onlyRGBA_F16Software onlyYVU_420Software onlyYUV_420_BIPLANARSoftware onlyP010Software only

Display(s) Information

InfoDisplay[0] bounds=[0,0 412x732], workarea=[0,0 412x732], scale=2.625, rotation=0, panel_rotation=0 external.Color space (all){primaries:BT709, transfer:IEC61966_2_1, matrix:RGB, range:FULL}Buffer format (all)RGBA_8888SDR white level in nits100Bits per color component8Bits per pixel24

Video Acceleration Information

Decoding (VideoDecoder)Decode vp8480x360 to 3840x2160 pixelsDecode vp80x0 to 3840x2160 pixels (encrypted)Decode vp9 profile0480x360 to 3840x2160 pixelsDecode vp9 profile0360x480 to 2160x3840 pixelsDecode vp9 profile00x0 to 3840x2160 pixels (encrypted)Decode vp9 profile00x0 to 2160x3840 pixels (encrypted)Decode vp9 profile0480x360 to 3840x2160 pixelsDecode vp9 profile0360x480 to 2160x3840 pixelsDecode vp9 profile00x0 to 3840x2160 pixels (encrypted)Decode vp9 profile00x0 to 2160x3840 pixels (encrypted)Decode vp9 profile0480x360 to 3840x2160 pixelsDecode vp9 profile0360x480 to 2160x3840 pixelsDecode vp9 profile00x0 to 3840x2160 pixels (encrypted)Decode vp9 profile00x0 to 2160x3840 pixels (encrypted)Decode vp9 profile20x0 to 3840x2160 pixelsDecode vp9 profile20x0 to 2160x3840 pixelsDecode vp9 profile20x0 to 3840x2160 pixelsDecode vp9 profile20x0 to 2160x3840 pixelsDecode vp9 profile0480x360 to 3840x2160 pixelsDecode vp9 profile0360x480 to 2160x3840 pixelsDecode vp9 profile00x0 to 3840x2160 pixels (encrypted)Decode vp9 profile00x0 to 2160x3840 pixels (encrypted)Decode vp9 profile20x0 to 3840x2160 pixelsDecode vp9 profile20x0 to 2160x3840 pixelsDecode vp9 profile20x0 to 3840x2160 pixelsDecode vp9 profile20x0 to 2160x3840 pixelsDecode vp9 profile0480x360 to 3840x2160 pixelsDecode vp9 profile0360x480 to 2160x3840 pixelsDecode vp9 profile00x0 to 3840x2160 pixels (encrypted)Decode vp9 profile00x0 to 2160x3840 pixels (encrypted)Decode vp9 profile0480x360 to 3840x2160 pixelsDecode vp9 profile0360x480 to 2160x3840 pixelsDecode vp9 profile00x0 to 3840x2160 pixels (encrypted)Decode vp9 profile00x0 to 2160x3840 pixels (encrypted)Decode av1 profile main0x0 to 3840x2160 pixelsDecode av1 profile main0x0 to 2160x3840 pixelsDecode h264 baseline0x0 to 3840x2160 pixelsDecode h264 baseline0x0 to 2160x3840 pixelsEncoding

Vulkan Information

Device Performance Information
csagan5 commented 3 years ago

Is there a specific error in the console logs?

^

Also: have you tried disabling hardware acceleration?

ghost commented 3 years ago

Try enabling play protected content (DRM) in Vanadium settings. Seems to be off by default.

Technerder commented 3 years ago

Is there a specific error in the console logs?

^

Also: have you tried disabling hardware acceleration?

Haven't checked console logs yet, but it turns out that enabling hardware acceleration fixes the issues on both twitch and twitter

thestinger commented 1 year ago

@Technerder

Is this still an issue for you?