NEW309438
[GStreamer] Flaky media test failures due to video frame map failures in avviddec with buffers allocated by the GL buffer pool
https://bugs.webkit.org/show_bug.cgi?id=309438
Summary [GStreamer] Flaky media test failures due to video frame map failures in avvi...
Claudio Saavedra
Reported 2026-03-07 23:52:36 PST
https://results.webkit.org/?suite=layout-tests&test=media%2Fremote-control-command-scrubbing.html&platform=GTK&platform=WPE https://build.webkit.org/results/GTK-Linux-64-bit-Release-Tests/308879@main%20(23819)/results.html 0:00:08.781789309 650221 0x7f0900001120 ERROR videometa gstvideometa.c:424:default_map: plane 1, no memory at offset 99840 0:00:08.781802564 650221 0x7f0900001120 ERROR default video-frame.c:168:gst_video_frame_map_id: failed to map video frame plane 1 0:00:08.785723698 650221 0x557320cd5760 ERROR webkitcommon GStreamerCommon.cpp:1087:operator():<regular-media-player-8> Got message: error message: 0x7f06a0027ba0, time 99:99:99.999999999, seq-num 6880, element 'avdec_h264-6', GstMessageError, gerror=(GError)NULL, debug=(string)"../../../../../jhbuild/checkout/gstreamer/subprojects/gst-libav/ext/libav/gstavviddec.c\(1888\):\ get_output_buffer\ \(\):\ /GstPlayBin:regular-media-player-8/GstURIDecodeBin:uridecodebin8/GstDecodeBin:decodebin8/avdec_h264:avdec_h264-6:\012The\ video\ memory\ allocated\ from\ downstream\ pool\ could\ not\ mapped\ for\ read\ and\ write."; 0:00:08.785742483 650221 0x557320cd5760 ERROR webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:2132:handleMessage:<regular-media-player-8> Cannot access memory for read and write operation. (url=file:///sdk/webkit/LayoutTests/media/content/test.mp4) (code=7)
Attachments
Philippe Normand
Comment 1 2026-03-24 07:00:40 PDT
*** Bug 224105 has been marked as a duplicate of this bug. ***
Philippe Normand
Comment 2 2026-03-24 07:00:45 PDT
*** Bug 309436 has been marked as a duplicate of this bug. ***
Philippe Normand
Comment 3 2026-03-24 07:02:19 PDT
*** Bug 308265 has been marked as a duplicate of this bug. ***
Philippe Normand
Comment 4 2026-03-27 08:33:36 PDT
I wonder if this is related with bug 310895 ...
Philippe Normand
Comment 5 2026-03-30 05:00:21 PDT
*** Bug 311093 has been marked as a duplicate of this bug. ***
Claudio Saavedra
Comment 7 2026-04-01 22:45:17 PDT
*** Bug 311320 has been marked as a duplicate of this bug. ***
Diego Pino
Comment 8 2026-04-11 00:32:28 PDT
Several tests failing with this error were filed under bug webkit.org/b/308438. These other tests are also flaky timeout (>0.5%), failing with a similar stderr: ``` media/media-controller-timeupdate.html media/media-source/media-source-webm-configuration-framerate.html media/modern-media-controls/media-controller/media-controller-click-on-video-controls-should-not-pause.html media/playlist-inherits-user-gesture.html media/remote-control-command-seek.html media/remove-from-document-with-text-track.html media/track/track-cue-missing.html media/track/track-long-captions-file.html media/track/webvtt-inline.html media/video-currentTime-duration.html media/video-isplayingtoautomotiveheadunit.html media/video-main-content-allow-then-scroll.html media/video-main-content-deny-display-none.html media/video-main-content-deny-too-small.html media/video-paused-0-rate.html media/video-pause-empty-events.html media/video-replaces-poster.html media/video-seek-by-small-increment.html media/video-seeking.html media/video-unmuted-after-play-holds-sleep-assertion.html ``` For instance, test in the case of 'media/media-controller-timeupdate.html': https://results.webkit.org/?suite=layout-tests&test=media%2Fmedia-controller-timeupdate.html&platform=GTK&platform=WPE stderr: ``` 0:00:08.642527865 607321 0xffff480012f0 ERROR videometa gstvideometa.c:424:default_map: plane 1, no memory at offset 83200 0:00:08.642545225 607321 0xffff480012f0 ERROR default video-frame.c:168:gst_video_frame_map_id: failed to map video frame plane 1 0:00:08.643018868 607321 0xaaaaf3a2d3b0 ERROR webkitcommon GStreamerCommon.cpp:1086:operator():<regular-video-16> Got message: error message: 0xfffc740391b0, time 99:99:99.999999999, seq-num 13323, element 'avdec_h264-12', GstMessageError, gerror=(GError)NULL, debug=(string)"../../../../../jhbuild/checkout/gstreamer/subprojects/gst-libav/ext/libav/gstavviddec.c\(1888\):\ get_output_buffer\ \(\):\ /GstPlayBin:regular-video-16/GstURIDecodeBin:uridecodebin16/GstDecodeBin:decodebin16/avdec_h264:avdec_h264-12:\012The\ video\ memory\ allocated\ from\ downstream\ pool\ could\ not\ mapped\ for\ read\ and\ write."; 0:00:08.643040109 607321 0xaaaaf3a2d3b0 ERROR webkitmediaplayer MediaPlayerPrivateGStreamer.cpp:2139:handleMessage:<regular-video-16> Cannot access memory for read and write operation. (url=file:///sdk/webkit/LayoutTests/media/content/test.mp4) (code=7) ```
Philippe Normand
Comment 9 2026-04-11 07:52:43 PDT
How much RAM do we have on these bots? Is the post-commit bot fleet using a uniform set of machines? (same amount of CPU vCores and RAM)?
Philippe Normand
Comment 10 2026-04-12 05:46:46 PDT
I was able to reproduce this in wksdk only, I'm not sure what's going on, the decoder sometimes fails to map buffers allocated by the GL pool... Maybe some issue in Mesa... Anyway, this won't be an issue anymore when we update to GStreamer 1.28 where glupload uses another allocator (udmabuf).
Philippe Normand
Comment 11 2026-04-12 07:33:03 PDT
*** Bug 307294 has been marked as a duplicate of this bug. ***
Philippe Normand
Comment 12 2026-04-12 07:37:12 PDT
*** Bug 306471 has been marked as a duplicate of this bug. ***
Philippe Normand
Comment 13 2026-04-12 07:38:29 PDT
media/video-buffered.html [ Pass Failure Timeout ] should become media/video-buffered.html [ Pass Failure ] after fixing this...
Philippe Normand
Comment 14 2026-04-12 08:26:36 PDT
*** Bug 311863 has been marked as a duplicate of this bug. ***
Philippe Normand
Comment 15 2026-04-12 08:33:11 PDT
*** Bug 308146 has been marked as a duplicate of this bug. ***
Philippe Normand
Comment 16 2026-04-12 08:34:57 PDT
*** Bug 307666 has been marked as a duplicate of this bug. ***
Philippe Normand
Comment 17 2026-04-12 08:37:40 PDT
webkit.org/b/122508 compositing/video/video-reflection.html [ Pass Timeout ] should be removed after fixing this.
Philippe Normand
Comment 18 2026-04-12 08:58:52 PDT
*** Bug 310278 has been marked as a duplicate of this bug. ***
Philippe Normand
Comment 19 2026-04-12 08:59:55 PDT
*** Bug 310274 has been marked as a duplicate of this bug. ***
Philippe Normand
Comment 20 2026-04-12 09:04:01 PDT
webkit.org/b/169918 compositing/video/video-object-position.html [ Failure Timeout ] should become webkit.org/b/169918 compositing/video/video-object-position.html [ Failure ] after fixing this.
Philippe Normand
Comment 21 2026-04-12 09:06:37 PDT
webkit.org/b/264680 media/video-page-visibility-restriction.html [ Pass Timeout ] should be removed after fixing this.
Philippe Normand
Comment 22 2026-04-12 09:08:02 PDT
webkit.org/b/262949 media/media-garbage-collection.html [ Pass Timeout Failure ] should become webkit.org/b/262949 media/media-garbage-collection.html [ Pass Failure ] after fixing this.
Philippe Normand
Comment 23 2026-04-12 09:09:55 PDT
webkit.org/b/261024 media/video-playsinline.html [ Failure Timeout Pass ] also affected by this issue.
Philippe Normand
Comment 24 2026-04-12 09:26:46 PDT
Before opening new bugs about flaky timeout media tests please check if there is a -stderr.txt file for the test in the results folder, containing the error mentioned above...
Diego Pino
Comment 25 2026-04-13 06:28:01 PDT
*** Bug 311860 has been marked as a duplicate of this bug. ***
Diego Pino
Comment 26 2026-04-13 06:29:07 PDT
*** Bug 311862 has been marked as a duplicate of this bug. ***
Note You need to log in before you can comment on or make changes to this bug.