Bug 245852

Summary: [GStreamer][MSE] Freezing and crashing caused by scrubbing streaming video content
Product: WebKit Reporter: tri.voxel
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: bugs-noreply, bwrinkle, erusan, gumbercules12, mcatanzaro, philn
Priority: P2    
Version: Other   
Hardware: PC   
OS: Linux   
Attachments:
Description Flags
gst log of youtube playing, delaying beginning of playback, freezing when video is rewound, reloading the video
none
Odysee playback issues
none
Odysee playback bugging out
none
See 11 sec, 55 sec, 1 min 41 sec for freezes
none
Video bugs at 31 sec, timestamp is frozen, audio out of sync, player crashes
none
Log from last video attachment
none
dot files from bugged fullscreen mode
none
A dump of Odysee and YouTube both failing immediately
none
rumble player freezing video, freezing entirely
none
odysee freezing, rumble freezing video while audio plays, then freezing completely
none
Phub, Rumble, YouTube all glitching
none
rumble freezing at very end
none
odysee dots and gst after freezing, audio sporadic, video lightning speeding to end none

Description tri.voxel 2022-09-29 15:40:51 PDT
System:
Operating System: Fedora 36 (with Gnome on Wayland)
CPU: AMD Ryzen 7 3700X
GPU: AMD Radeon RX 5700 XT
Gnome Web version: 42.2
WebKitGTK version: 2.38.0

Scrubbing a video, either by using the arrow keys to jump forward and backward, or by using the timeline, will cause the video to freeze entirely. This has been a long-standing issue that has affected WebKitGTK for as long as I can remember going as far back as 2018 when I first started testing it. It is not 100% easily reproducible, and seems to happen somewhat sporadically. I recommend signing into your YouTube account on Gnome Web and then setting aside some time to watch your favorite YouTube content. As you watch, occasionally jump back a few seconds, then maybe adjust the timeline with the cursor. This is bound to inevitably cause this issue to present itself. Again, it cannot be reproduced reliably, but will 100% happen if you are trying to interact with videos in any meaningful way. It happens every once in a while, and there is no guarantee it will happen at all the first try.

The procedure to reproduce generally goes like this, I am watching a video on YouTube, Odysee, or some other social media site such as Reddit. I may bounce back a few seconds by using the arrow keys. I may use "J" and "L" to bounce back and forward even faster. I may then press play and encounter a buffering error or a frozen webpage. I also may bounce through the timeline using these keys, followed by a timeline scroll with my mouse that completely crashes or freezes the video playback or webpage. I also may encounter it by clicking around the timeline to different sections of the video until it crashes or freezes. It is not an uncommon bug, but it is not usually so prevalent that it makes the browser unusable. However, sometimes it is and will render video streaming impossible.
Comment 1 Michael Catanzaro 2022-09-29 15:41:26 PDT
Please try with:

export GST_DEBUG="3,webkit*:6" GST_DEBUG_FILE="$HOME/gst.log" GST_DEBUG_NO_COLOR=1 WEBKIT_FORCE_SANDBOX=0

Try to reproduce the bug immediately after starting the browser, doing as little as possible so that the log is as short as possible. Then attach the gst.log.
Comment 2 erusan 2022-11-02 14:55:26 PDT
Created attachment 463369 [details]
gst log of youtube playing, delaying beginning of playback, freezing when video is rewound, reloading the video

Here is a log of a YouTube video. It's hard to replicate bugs, since they're not necessarily consistent.

The video played here is: https://www.youtube.com/watch?v=be4sgH2T41I
What I did was:
- play the video (it delayed at the start, with the throbber spinning for several seconds).
- use the arrow keys to move forward (it seemed to handle this fine)
- use arrow keys to move backwards (it seemed to handle this fine, but often does not)
- click backwards (video froze, throbber spun, eventually the video reloaded to thumbnail screen at the time I had rewound the video to)
- I think I repeated the rewinding bug

Hope this helps

Debian testing
Web 43.0
WebkitGtk 2.38.1
Comment 3 erusan 2022-11-02 15:00:12 PDT
Created attachment 463370 [details]
Odysee playback issues

Here is a log with Odysee. The player functioned alright at first, then rewinding made it repeat audio. Then I changed playback speed, and rewound, and the video froze, audio played in short segments (seemingly jumping forward between each short segment) while the video was frozen, then the audio stopped playing.
Comment 4 Philippe Normand 2022-11-05 08:50:16 PDT
The logs shows underrun warnings in the audio sink... Do you use Pipewire? 
 native PulseAudio? What is your GStreamer version?

I already commented in https://bugs.webkit.org/show_bug.cgi?id=245850 (why is there 2 bug reports?) that I can't reproduce this issue in Ephy TP. Can you?
Comment 5 erusan 2022-11-05 10:40:16 PDT
I think OP created multiple bug reports because the first bug (#245850) contained "multiple bugs".

I am running pipewire, as I believe it is Debian's default configuration
pipewire 0.3.59-1+b1
gstreamer 1.20.3

I haven't repeated the Odysee issue using the TP flatpak, but the process leaking is causing memory issues for me, so I'll have to try it when I can dedicate my machine to just this task.
Comment 6 Michael Catanzaro 2022-11-05 11:13:43 PDT
(In reply to erusan from comment #5)
> the process
> leaking is causing memory issues for me

That's bug #247057.
Comment 7 Philippe Normand 2023-03-29 02:38:56 PDT
Is this issue still happening after updating to 2.40 and GStreamer 1.22?
Comment 8 erusan 2023-03-29 20:53:26 PDT
Created attachment 465672 [details]
Odysee playback bugging out

At 30 sec you can see the video begin to do very jittery playback, the seek bar shows rapid progression. What you can't hear is the audio playing for a short while at this point, and then stopping.

At 56 sec you see the beginning of the video freeze, which does not recover. Clicking to a new point on the seek bar might load a new frame, but playback never resumes, despite the video being buffered.
Comment 9 erusan 2023-03-29 20:54:50 PDT
YouTube seems fixed with Web 44, WebKitGTK 2.40.0, GStreamer 1.22.0 (so long as user is logged out?).

Odysee playback remains buggy.
Comment 10 Philippe Normand 2023-03-30 13:21:40 PDT
(In reply to erusan from comment #9)
> YouTube seems fixed with Web 44, WebKitGTK 2.40.0, GStreamer 1.22.0 (so long
> as user is logged out?).
> 

Please file another bug, YT should work wether you're logged or not.

> Odysee playback remains buggy.

We need logs and pipeline dumps, see the instructions in https://bugs.webkit.org/show_bug.cgi?id=245852#c1
Comment 11 Philippe Normand 2024-01-20 04:49:03 PST
Is this issue still happening?
Comment 12 erusan 2024-01-21 21:03:48 PST
Created attachment 469492 [details]
See 11 sec, 55 sec, 1 min 41 sec for freezes

Player freezes at 11 seconds, recoverable eventually by clicking a new location in the video. Player freezes again at 55 seconds, recovery is by player eventually resetting itself.
Comment 13 erusan 2024-01-21 21:05:51 PST
It does still happen, but is more difficult to trigger. More often, the player will freeze temporarily, then reload the thumbnail image and re-enable the play button, and playback can then be resumed.

Other behavior still includes video fast-forwarding at a rapid pace, or audio continuing while video freezes, audio sometimes from a very different location in video.

Debian testing
WebKitGTK 2.42.4
GStreamer 1.22.8
Comment 14 Philippe Normand 2024-01-22 10:34:41 PST
I can't reproduce this.

Can you please provide logs? Looking at a screen recording is cool, but it won't help much fixing this issue, I'm afraid :(
Comment 15 erusan 2024-01-23 20:35:57 PST
Created attachment 469522 [details]
Video bugs at 31 sec, timestamp is frozen, audio out of sync, player crashes
Comment 16 erusan 2024-01-23 20:37:54 PST
Created attachment 469523 [details]
Log from last video attachment

For some reason, trying to capture the bug makes it harder to encounter. Suggested nomenclature: Schrödinger's bug

At any rate, here is the log from the last video recording, wherein @00:31ish the video bugs out, the player eventually crashes.
Comment 17 Philippe Normand 2024-01-24 10:37:12 PST
There is garbage in the middle of the log file... Did you use the GST_DEBUG_FILE env var?
Comment 18 erusan 2024-01-24 17:53:33 PST
Used the command:

GST_DEBUG="3,webkit*:6" GST_DEBUG_FILE="$HOME/gst.log" GST_DEBUG_NO_COLOR=1 WEBKIT_DISABLE_SANDBOX_THIS_IS_DANGEROUS=1 epiphany-browser
Comment 19 erusan 2024-01-30 11:33:55 PST
Created attachment 469619 [details]
dot files from bugged fullscreen mode

Using flatpak (hopefully a more useful data dump), I got a frozen screen when leaving fullscreen using F key on a YouTube video (audio continued as normal), then going fullscreen again presented a black screen, then leaving fullscreen again presented a white screen.

terminal output using flatpak run --filesystem=home --env="WEBKIT_DISABLE_SANDBOX_THIS_IS_DANGEROUS=1" \
    --env="GST_DEBUG=3,webkit*:6" --env="GST_DEBUG_FILE=$HOME/gst.log" \
    --env="GST_DEBUG_DUMP_DOT_DIR=$HOME/dots" org.gnome.Epiphany -p "https://www.youtube.com/watch?v=S9gaug59DwA":

Failed to get GBM buffer from swap chain: no buffers available

gst.log file was empty
Comment 20 erusan 2024-01-30 13:09:20 PST
It seems I'm having a very hard time reproducing bugs via the flatpak, but a very easy time reproducing bugs via the native .deb packages. I'm having a hard time compiling with debug symbols on Debian, and the flatpak won't be helpful if I can't get it to glitch.
Comment 21 erusan 2024-01-30 14:04:16 PST
Created attachment 469621 [details]
A dump of Odysee and YouTube both failing immediately

This appears to have the same "garbage data" in the middle of the log, which I'm not sure how to fix. Both YouTube and Odysee nearly immediately failed to play videos.
Comment 22 Philippe Normand 2024-01-31 10:46:40 PST
What's your GStreamer version?

Your log mentions avdec_h264 is used...

In 1.22.8 there is a libav deadlock fix that was quite easy to trigger... https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5681
Comment 23 Philippe Normand 2024-01-31 10:47:36 PST
1.22.8, second line of the log :(
Comment 24 Philippe Normand 2024-01-31 10:50:25 PST
Also this:

0:00:28.469481213 68407 0x7f4960001e60 WARN                basesink gstbasesink.c:3143:gst_base_sink_is_too_late:<webkit-dmabuf-video-appsink> warning: A lot of buffers are being dropped.
0:00:28.469530803 68407 0x7f4960001e60 WARN                basesink gstbasesink.c:3143:gst_base_sink_is_too_late:<webkit-dmabuf-video-appsink> warning: There may be a timestamping problem, or this computer is too slow.

What is your hardware setup? GPU / CPU? Having the webkit://gpu output would be useful.
Comment 25 erusan 2024-01-31 11:34:47 PST
Yes, this is the latest available in debian experimental, 1.22.8-1

I'm running an Intel i5-8300H with 16 gigs of RAM, only the integrated graphics.



webkit://gpu output:
{
    "Version Information": {
        "WebKit version": "WebKitGTK 2.43.3 (tarball)",
        "Operating system": "Linux 6.5.0-5-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.5.13-1 (2023-11-29) x86_64",
        "Desktop": "GNOME",
        "Cairo version": "1.18.0 (build) 1.18.0 (runtime)",
        "GStreamer version": "1.22.8 (build) GStreamer 1.22.8 (runtime)",
        "GTK version": "4.12.4 (build) 4.12.5 (runtime)"
    },
    "Display Information": {
        "Identifier": "1",
        "Type": "Wayland",
        "Screen geometry": "0,0 1920x1080",
        "Screen work area": "0,0 1920x1080",
        "Depth": "24",
        "Bits per color component": "8",
        "DPI": "96",
        "VBlank type": "DRM",
        "VBlank refresh rate": "59Hz",
        "DRM Device": "/dev/dri/card0",
        "DRM Render Node": "/dev/dri/renderD128"
    },
    "API": "OpenGL (libepoxy)",
    "Hardware Acceleration Information": {
        "Policy": "always",
        "WebGL enabled": "Yes",
        "Renderer": "DMABuf (Supported buffers: Hardware, Shared Memory)",
        "Native interface": "EGL",
        "GL_RENDERER": "Mesa Intel(R) UHD Graphics 630 (CFL GT2)",
        "GL_VENDOR": "Intel",
        "GL_VERSION": "4.6 (Core Profile) Mesa 23.3.4-1",
        "GL_SHADING_LANGUAGE_VERSION": "4.60",
        "GL_EXTENSIONS": "GL_3DFX_texture_compression_FXT1 GL_AMD_conservative_depth GL_AMD_depth_clamp_separate GL_AMD_draw_buffers_blend GL_AMD_gpu_shader_int64 GL_AMD_multi_draw_indirect GL_AMD_performance_monitor GL_AMD_pinned_memory GL_AMD_query_buffer_object GL_AMD_seamless_cubemap_per_texture GL_AMD_shader_stencil_export GL_AMD_shader_trinary_minmax GL_AMD_texture_texture4 GL_AMD_vertex_shader_layer GL_AMD_vertex_shader_viewport_index GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_ARB_ES2_compatibility GL_ARB_ES3_1_compatibility GL_ARB_ES3_2_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_compute_variable_group_size 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_enhanced_layouts 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_fragment_shader_interlock 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_gl_spirv GL_ARB_gpu_shader5 GL_ARB_gpu_shader_fp64 GL_ARB_gpu_shader_int64 GL_ARB_half_float_pixel GL_ARB_half_float_vertex GL_ARB_indirect_parameters 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_parallel_shader_compile GL_ARB_pipeline_statistics_query GL_ARB_pixel_buffer_object GL_ARB_point_sprite GL_ARB_polygon_offset_clamp GL_ARB_post_depth_coverage GL_ARB_program_interface_query GL_ARB_provoking_vertex GL_ARB_query_buffer_object 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_counter_ops GL_ARB_shader_atomic_counters GL_ARB_shader_ballot GL_ARB_shader_bit_encoding GL_ARB_shader_clock GL_ARB_shader_draw_parameters GL_ARB_shader_group_vote GL_ARB_shader_image_load_store GL_ARB_shader_image_size GL_ARB_shader_objects GL_ARB_shader_precision GL_ARB_shader_stencil_export GL_ARB_shader_storage_buffer_object GL_ARB_shader_subroutine GL_ARB_shader_texture_image_samples GL_ARB_shader_texture_lod GL_ARB_shader_viewport_layer_array GL_ARB_shading_language_420pack GL_ARB_shading_language_include GL_ARB_shading_language_packing GL_ARB_spirv_extensions GL_ARB_stencil_texturing GL_ARB_sync GL_ARB_tessellation_shader GL_ARB_texture_barrier GL_ARB_texture_border_clamp 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_filter_anisotropic 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_stencil8 GL_ARB_texture_storage GL_ARB_texture_storage_multisample GL_ARB_texture_swizzle GL_ARB_texture_view GL_ARB_timer_query GL_ARB_transform_feedback2 GL_ARB_transform_feedback3 GL_ARB_transform_feedback_instanced GL_ARB_transform_feedback_overflow_query GL_ARB_uniform_buffer_object GL_ARB_vertex_array_bgra GL_ARB_vertex_array_object GL_ARB_vertex_attrib_64bit GL_ARB_vertex_attrib_binding GL_ARB_vertex_buffer_object 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_EGL_image_storage GL_EXT_EGL_sync GL_EXT_abgr GL_EXT_blend_equation_separate GL_EXT_debug_label GL_EXT_demote_to_helper_invocation 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_object GL_EXT_framebuffer_sRGB GL_EXT_memory_object GL_EXT_memory_object_fd 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_semaphore GL_EXT_semaphore_fd GL_EXT_shader_framebuffer_fetch GL_EXT_shader_framebuffer_fetch_non_coherent 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_R8 GL_EXT_texture_sRGB_decode GL_EXT_texture_shadow_lod GL_EXT_texture_shared_exponent GL_EXT_texture_snorm GL_EXT_texture_swizzle GL_EXT_timer_query GL_EXT_transform_feedback GL_EXT_vertex_array_bgra GL_EXT_vertex_attrib_64bit GL_IBM_multimode_draw_arrays GL_INTEL_blackhole_render GL_INTEL_conservative_rasterization GL_INTEL_performance_query GL_INTEL_shader_atomic_float_minmax GL_INTEL_shader_integer_functions2 GL_KHR_blend_equation_advanced GL_KHR_blend_equation_advanced_coherent GL_KHR_context_flush_control GL_KHR_debug GL_KHR_no_error GL_KHR_parallel_shader_compile GL_KHR_robust_buffer_access_behavior GL_KHR_robustness GL_KHR_texture_compression_astc_ldr GL_KHR_texture_compression_astc_sliced_3d GL_MESA_framebuffer_flip_y GL_MESA_pack_invert GL_MESA_shader_integer_functions GL_MESA_texture_const_bandwidth GL_MESA_texture_signed_rgba GL_NV_alpha_to_coverage_dither_control GL_NV_compute_shader_derivatives GL_NV_conditional_render GL_NV_copy_image GL_NV_depth_clamp GL_NV_fragment_shader_interlock GL_NV_packed_depth_stencil GL_NV_texture_barrier GL_OES_EGL_image GL_S3_s3tc",
        "EGL_VERSION": "1.5",
        "EGL_VENDOR": "Mesa Project",
        "EGL_EXTENSIONS": "EGL_EXT_device_base EGL_EXT_device_enumeration EGL_EXT_device_query EGL_EXT_platform_base EGL_KHR_client_get_all_proc_addresses EGL_EXT_client_extensions EGL_KHR_debug EGL_EXT_platform_device EGL_EXT_explicit_device EGL_EXT_platform_wayland EGL_KHR_platform_wayland EGL_EXT_platform_x11 EGL_KHR_platform_x11 EGL_EXT_platform_xcb EGL_MESA_platform_gbm EGL_KHR_platform_gbm EGL_MESA_platform_surfaceless EGL_ANDROID_blob_cache EGL_ANDROID_native_fence_sync EGL_EXT_buffer_age EGL_EXT_create_context_robustness EGL_EXT_image_dma_buf_import EGL_EXT_image_dma_buf_import_modifiers EGL_EXT_present_opaque EGL_EXT_swap_buffers_with_damage EGL_IMG_context_priority EGL_KHR_cl_event2 EGL_KHR_config_attribs EGL_KHR_context_flush_control EGL_KHR_create_context EGL_KHR_create_context_no_error EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses EGL_KHR_gl_colorspace EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_3D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_image_base EGL_KHR_no_config_context EGL_KHR_reusable_sync EGL_KHR_surfaceless_context EGL_KHR_swap_buffers_with_damage EGL_EXT_pixel_format_float EGL_KHR_wait_sync EGL_MESA_configless_context EGL_MESA_drm_image EGL_MESA_gl_interop EGL_MESA_image_dma_buf_export EGL_MESA_query_driver EGL_WL_bind_wayland_display EGL_WL_create_wayland_buffer_from_image "
    },
    "Hardware Acceleration Information (Render process)": {
        "Platform": "GBM",
        "GL_RENDERER": "Mesa Intel(R) UHD Graphics 630 (CFL GT2)",
        "GL_VENDOR": "Intel",
        "GL_VERSION": "OpenGL ES 3.2 Mesa 23.3.4-1",
        "GL_SHADING_LANGUAGE_VERSION": "OpenGL ES GLSL ES 3.20",
        "GL_EXTENSIONS": "GL_EXT_blend_minmax GL_EXT_multi_draw_arrays GL_EXT_texture_filter_anisotropic GL_EXT_texture_compression_s3tc GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_rgtc GL_EXT_texture_format_BGRA8888 GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth24 GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_mapbuffer GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_stencil8 GL_OES_texture_3D GL_OES_texture_float GL_OES_texture_float_linear GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_vertex_half_float GL_EXT_draw_instanced GL_EXT_texture_sRGB_decode GL_OES_EGL_image GL_OES_depth_texture GL_AMD_performance_monitor GL_OES_packed_depth_stencil GL_EXT_texture_type_2_10_10_10_REV GL_NV_conditional_render GL_OES_get_program_binary GL_APPLE_texture_max_level GL_EXT_discard_framebuffer GL_EXT_read_format_bgra GL_NV_pack_subimage GL_NV_texture_barrier GL_EXT_frag_depth GL_NV_fbo_color_attachments GL_OES_EGL_image_external GL_OES_EGL_sync GL_OES_vertex_array_object GL_OES_viewport_array GL_ANGLE_pack_reverse_row_order GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_EXT_occlusion_query_boolean GL_EXT_robustness GL_EXT_texture_rg GL_EXT_unpack_subimage GL_NV_draw_buffers GL_NV_read_buffer GL_NV_read_depth GL_NV_read_depth_stencil GL_NV_read_stencil GL_APPLE_sync GL_EXT_draw_buffers GL_EXT_instanced_arrays GL_EXT_map_buffer_range GL_KHR_debug GL_KHR_robustness GL_KHR_texture_compression_astc_ldr GL_NV_generate_mipmap_sRGB GL_NV_pixel_buffer_object GL_OES_depth_texture_cube_map GL_OES_required_internalformat GL_OES_surfaceless_context GL_EXT_color_buffer_float GL_EXT_debug_label GL_EXT_sRGB_write_control GL_EXT_separate_shader_objects GL_EXT_shader_framebuffer_fetch GL_EXT_shader_group_vote GL_EXT_shader_implicit_conversions GL_EXT_shader_integer_mix GL_EXT_tessellation_point_size GL_EXT_tessellation_shader GL_INTEL_conservative_rasterization GL_INTEL_performance_query GL_ANDROID_extension_pack_es31a GL_EXT_base_instance GL_EXT_compressed_ETC1_RGB8_sub_texture GL_EXT_copy_image GL_EXT_draw_buffers_indexed GL_EXT_draw_elements_base_vertex GL_EXT_gpu_shader5 GL_EXT_polygon_offset_clamp GL_EXT_primitive_bounding_box GL_EXT_render_snorm GL_EXT_shader_io_blocks GL_EXT_texture_border_clamp GL_EXT_texture_buffer GL_EXT_texture_cube_map_array GL_EXT_texture_norm16 GL_EXT_texture_view GL_KHR_blend_equation_advanced GL_KHR_blend_equation_advanced_coherent GL_KHR_context_flush_control GL_KHR_robust_buffer_access_behavior GL_NV_image_formats GL_NV_shader_noperspective_interpolation GL_OES_copy_image GL_OES_draw_buffers_indexed GL_OES_draw_elements_base_vertex GL_OES_gpu_shader5 GL_OES_primitive_bounding_box GL_OES_sample_shading GL_OES_sample_variables GL_OES_shader_io_blocks GL_OES_shader_multisample_interpolation GL_OES_tessellation_point_size GL_OES_tessellation_shader GL_OES_texture_border_clamp GL_OES_texture_buffer GL_OES_texture_cube_map_array GL_OES_texture_stencil8 GL_OES_texture_storage_multisample_2d_array GL_OES_texture_view GL_EXT_blend_func_extended GL_EXT_buffer_storage GL_EXT_float_blend GL_EXT_geometry_point_size GL_EXT_geometry_shader GL_EXT_shader_samples_identical GL_EXT_texture_sRGB_R8 GL_KHR_no_error GL_KHR_texture_compression_astc_sliced_3d GL_NV_fragment_shader_interlock GL_OES_EGL_image_external_essl3 GL_OES_geometry_point_size GL_OES_geometry_shader GL_OES_shader_image_atomic GL_EXT_clear_texture GL_EXT_clip_cull_distance GL_EXT_disjoint_timer_query GL_EXT_texture_compression_s3tc_srgb GL_MESA_shader_integer_functions GL_EXT_clip_control GL_EXT_color_buffer_half_float GL_EXT_memory_object GL_EXT_memory_object_fd GL_EXT_semaphore GL_EXT_semaphore_fd GL_EXT_texture_compression_bptc GL_EXT_texture_mirror_clamp_to_edge GL_KHR_parallel_shader_compile GL_NV_alpha_to_coverage_dither_control GL_EXT_EGL_image_storage GL_EXT_shader_framebuffer_fetch_non_coherent GL_EXT_texture_shadow_lod GL_INTEL_blackhole_render GL_MESA_framebuffer_flip_y GL_NV_compute_shader_derivatives GL_EXT_demote_to_helper_invocation GL_EXT_depth_clamp GL_EXT_texture_query_lod GL_MESA_sampler_objects GL_MESA_bgra GL_MESA_texture_const_bandwidth ",
        "EGL_VERSION": "1.5",
        "EGL_VENDOR": "Mesa Project",
        "EGL_EXTENSIONS": "EGL_EXT_device_base EGL_EXT_device_enumeration EGL_EXT_device_query EGL_EXT_platform_base EGL_KHR_client_get_all_proc_addresses EGL_EXT_client_extensions EGL_KHR_debug EGL_EXT_platform_device EGL_EXT_explicit_device EGL_EXT_platform_wayland EGL_KHR_platform_wayland EGL_EXT_platform_x11 EGL_KHR_platform_x11 EGL_EXT_platform_xcb EGL_MESA_platform_gbm EGL_KHR_platform_gbm EGL_MESA_platform_surfaceless EGL_ANDROID_blob_cache EGL_ANDROID_native_fence_sync EGL_EXT_buffer_age EGL_EXT_create_context_robustness EGL_EXT_image_dma_buf_import EGL_EXT_image_dma_buf_import_modifiers EGL_IMG_context_priority EGL_KHR_cl_event2 EGL_KHR_config_attribs EGL_KHR_context_flush_control EGL_KHR_create_context EGL_KHR_create_context_no_error EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses EGL_KHR_gl_colorspace EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_3D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_no_config_context EGL_KHR_reusable_sync EGL_KHR_surfaceless_context EGL_EXT_pixel_format_float EGL_KHR_wait_sync EGL_MESA_configless_context EGL_MESA_drm_image EGL_MESA_gl_interop EGL_MESA_image_dma_buf_export EGL_MESA_query_driver EGL_WL_bind_wayland_display "
    }
}
Comment 26 erusan 2024-01-31 12:15:06 PST
Created attachment 469636 [details]
rumble player freezing video, freezing entirely
Comment 27 Philippe Normand 2024-01-31 12:23:58 PST
(In reply to erusan from comment #26)
> Created attachment 469636 [details]
> rumble player freezing video, freezing entirely

it's garbaged
Comment 28 Philippe Normand 2024-01-31 12:26:09 PST
Can you check with gstva?

gst-inspect-1.0 va

then for each reported element, uprank it with this env var. For instance:

GST_PLUGIN_FEATURE_RANK=vah264dec:max,vavp9dec:max
Comment 29 erusan 2024-01-31 13:31:01 PST
Created attachment 469637 [details]
odysee freezing, rumble freezing video while audio plays, then freezing completely

Log produced running epiphany with:

GST_DEBUG="3,webkit*:6" GST_DEBUG_FILE="$HOME/gst.log" GST_DEBUG_NO_COLOR=1 WEBKIT_DISABLE_SANDBOX_THIS_IS_DANGEROUS=1 GST_PLUGIN_FEATURE_RANK=vah264dec:max,vavp9dec:max,vah264lpenc:max,vah265dec:max,vajpegdec:max,vampeg2dec:max,vavp8dec:max epiphany-browser
Comment 30 Philippe Normand 2024-02-04 03:50:00 PST
(In reply to erusan from comment #29)
> Created attachment 469637 [details]
> odysee freezing, rumble freezing video while audio plays, then freezing
> completely
> 
> Log produced running epiphany with:
> 
> GST_DEBUG="3,webkit*:6" GST_DEBUG_FILE="$HOME/gst.log" GST_DEBUG_NO_COLOR=1
> WEBKIT_DISABLE_SANDBOX_THIS_IS_DANGEROUS=1
> GST_PLUGIN_FEATURE_RANK=vah264dec:max,vavp9dec:max,vah264lpenc:max,vah265dec:
> max,vajpegdec:max,vampeg2dec:max,vavp8dec:max epiphany-browser

Again garbaged
Comment 31 erusan 2024-02-08 20:26:29 PST
If I run epiphany from the command line, crashing videos sometimes occur alongside the message:

Failed to get GBM buffer from swap chain: no buffers available

Not sure if this is helpful
Comment 32 gumbercules12 2024-03-18 16:30:48 PDT
Created attachment 470425 [details]
Phub, Rumble, YouTube all glitching

gst-inspect-1.0 va outputs:
Plugin Details:
  Name                     va
  Description              VA-API codecs plugin
  Filename                 /lib/x86_64-linux-gnu/gstreamer-1.0/libgstva.so
  Version                  1.22.10
  License                  LGPL
  Source module            gst-plugins-bad
  Documentation            https://gstreamer.freedesktop.org/documentation/va/
  Source release date      2024-02-13
  Binary package           GStreamer Bad Plugins (Debian)
  Origin URL               https://tracker.debian.org/pkg/gst-plugins-bad1.0

  vah264dec: VA-API H.264 Decoder
  vah264lpenc: VA-API H.264 Low Power Encoder
  vah265dec: VA-API H.265 Decoder
  vajpegdec: VA-API JPEG Decoder
  vampeg2dec: VA-API Mpeg2 Decoder
  vavp8dec: VA-API VP8 Decoder
  vavp9dec: VA-API VP9 Decoder

The attached log is produced using the same command as erusan, output has a bunch of zeroes and slashes in it...is that the garbage making these logs useless?

GST_DEBUG="3,webkit*:6" GST_DEBUG_FILE="$HOME/gst.log" GST_DEBUG_NO_COLOR=1 WEBKIT_DISABLE_SANDBOX_THIS_IS_DANGEROUS=1 GST_PLUGIN_FEATURE_RANK=vah264dec:max,vah264lpenc:max,vah265dec:max,vajpegdec:max,vampeg2dec:max,vavp8dec:max,vavp9dec:max epiphany-browser

Behavior was:
Opening private phub window, audio is distorted.
Seeking around in rumble video, eventually the player froze, then clicking on it made it resume the audio (but no video played).
Seeking around in a YouTube video made the video eventually fastword to the end at lightning speed.

Will try this on a different machine to see if processor is involved (although initial reporter was using AMD).
Comment 33 gumbercules12 2024-03-18 17:09:57 PDT
On another machine (see below), the same issues occur.

One difference is that "gst-inspect-1.0 av" yields "No such element or plugin 'av'".
However, gstreamer1.0-libav is installed (by default).

Installing gstreamer1.0-vaapi does not change anything.

This is a live Debian testing image on:
Dell XPS 13 9350
Intel Core i3-6100U x 4
4 GiB RAM
Intel HD Graphics 520 (SKL GT2)
Comment 34 Philippe Normand 2024-03-19 02:30:04 PDT
There is no "av" plugin... Did you mean "va"?
Comment 35 gumbercules12 2024-03-19 05:27:49 PDT
Ooops, late night bug reporting leads to dyslexic fingers. Ignore the previous comment -- gst-inspect-1.0 returns
  vah264dec: VA-API H.264 Decoder
  vah264lpenc: VA-API H.264 Low Power Encoder
  vah265dec: VA-API H.265 Decoder
  vajpegdec: VA-API JPEG Decoder
  vampeg2dec: VA-API Mpeg2 Decoder
  vavp8dec: VA-API VP8 Decoder

on the other machine (same as this machine, just no VP9).
Comment 36 Michael Catanzaro 2024-03-19 11:14:19 PDT
(In reply to gumbercules12 from comment #32)
> The attached log is produced using the same command as erusan, output has a
> bunch of zeroes and slashes in it...is that the garbage making these logs
> useless?

No, those are terminal control codes to add color to the logs. Phil uses some special command to view the logs and likes the colors. Unfortunately for everybody else it's confusing and makes the logs very hard to read.
Comment 37 Philippe Normand 2024-03-20 02:05:55 PDT
(In reply to Michael Catanzaro from comment #36)
> (In reply to gumbercules12 from comment #32)
> > The attached log is produced using the same command as erusan, output has a
> > bunch of zeroes and slashes in it...is that the garbage making these logs
> > useless?
> 
> No, those are terminal control codes to add color to the logs. Phil uses
> some special command to view the logs and likes the colors. Unfortunately
> for everybody else it's confusing and makes the logs very hard to read.

No Michael... that's not terminal control codes. This log was produced with GST_DEBUG_NO_COLOR=1
Comment 38 Michael Catanzaro 2024-03-20 07:47:52 PDT
Whoops, sorry for assuming. I see that log is really trashed. :D
Comment 39 gumbercules12 2024-03-23 14:39:02 PDT
Created attachment 470523 [details]
rumble freezing at very end

Are these files more useful than the previous dumps? Using the MiniBrowser per https://docs.webkit.org/Ports/WebKitGTK%20and%20WPE%20WebKit/Multimedia.html#minibrowser

Installing gstreamer1.0-fdkaac as per bug #271133 seems to have made things more stable, although without lots of testing, it's hard to say. I also use epiphany for browsing rather than MiniBrowser, obviously, so I'm not sure if that impacts anything. At any rate, I was able to trigger a freeze eventually.
Comment 40 Philippe Normand 2024-03-24 03:32:00 PDT
(In reply to gumbercules12 from comment #39)
> Created attachment 470523 [details]
> rumble freezing at very end
> 
> Are these files more useful than the previous dumps? Using the MiniBrowser
> per
> https://docs.webkit.org/Ports/WebKitGTK%20and%20WPE%20WebKit/Multimedia.
> html#minibrowser
> 
> Installing gstreamer1.0-fdkaac as per bug #271133 seems to have made things
> more stable, although without lots of testing, it's hard to say. I also use
> epiphany for browsing rather than MiniBrowser, obviously, so I'm not sure if
> that impacts anything. At any rate, I was able to trigger a freeze
> eventually.

Was the MiniBrowser UI still usable or not?
That log looks ok... If the WebProcess deadlocked we'd need to be able to inspect it with gdb to find further details...
Comment 41 gumbercules12 2024-03-24 09:59:41 PDT
Created attachment 470577 [details]
odysee dots and gst after freezing, audio sporadic, video lightning speeding to end

The MiniBrowser UI is functioning normally when these bugs happen, and the rest of the website is functional as well.
Comment 42 Philippe Normand 2024-09-20 03:37:27 PDT
*** Bug 258959 has been marked as a duplicate of this bug. ***