Bug 198827

Summary: [GLIB] media/media-fullscreen-return-to-inline.html is timing out
Product: WebKit Reporter: Miguel Gomez <magomez>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: bugs-noreply, dpino, spenap
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Miguel Gomez 2019-06-13 06:34:37 PDT
media/video-currentTime-set.html [ Timeout Pass Crash ]

Sometimes the test crashes, and many times times out on the first run. When it crashes, this is the relevant crash log:

Thread 1 (Thread 0x7fbafc798700 (LWP 121856)):
#0  0x00007fbc2a3bd7bb in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007fbc2a3a8535 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007fbc2a3a840f in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#3  0x00007fbc2a3b6102 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
#4  0x00007fbc2b1796bb in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#5  0x00007fbc2b179760 in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#6  0x00007fbc2b179a5d in _XEventsQueued () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#7  0x00007fbc2b17c7f5 in _XGetRequest () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#8  0x00007fbc2b17c947 in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#9  0x00007fbc2b17c12e in _XError () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#10 0x00007fbc2ce6be92 in __glXSendErrorForXcb () at /home/slave/webkitgtk/gtk-linux-64-release-tests/build/WebKitBuild/DependenciesGTK/Source/Mesa/src/glx/glx_error.c:81
#11 0x00007fbc2ce68224 in glXCreateContextAttribsARB () at /home/slave/webkitgtk/gtk-linux-64-release-tests/build/WebKitBuild/DependenciesGTK/Source/Mesa/src/glx/create_context.c:119
#12 0x00007fbc2c1621f8 in _create_context_with_flags () at ../../Source/gst-plugins-base-1.16.0/gst-libs/gst/gl/x11/gstglcontext_glx.c:182
#13 gst_gl_context_glx_create_context () at ../../Source/gst-plugins-base-1.16.0/gst-libs/gst/gl/x11/gstglcontext_glx.c:263
#14 0x00007fbc2c13bf3d in gst_gl_context_create_thread () at ../../Source/gst-plugins-base-1.16.0/gst-libs/gst/gl/gstglcontext.c:1238
#15 0x00007fbc2b5a4835 in g_thread_proxy () at ../../Source/glib-2.58.1/glib/gthread.c:784
#16 0x00007fbc2bd9bfa3 in start_thread (arg=<optimized out>) at pthread_create.c:486
#17 0x00007fbc2a47f4cf in clone () from /lib/x86_64-linux-gnu/libc.so.6

STDERR: 
STDERR: warning: core file may not match specified executable file.
STDERR: BFD: /usr/lib/debug/.build-id/d3/583c742dd47aaa860c5ae0c0c5bdbcd2d54f61.debug: unable to initialize decompress status for section .debug_aranges
STDERR: BFD: /usr/lib/debug/.build-id/d3/583c742dd47aaa860c5ae0c0c5bdbcd2d54f61.debug: unable to initialize decompress status for section .debug_aranges
STDERR: 
STDERR: warning: File "/usr/lib/debug/.build-id/d3/583c742dd47aaa860c5ae0c0c5bdbcd2d54f61.debug" has no build-id, file skipped
STDERR: BFD: /usr/lib/debug/.build-id/88/5dda4b4a5cea600e7b5b98c1ad86996c8d2299.debug: unable to initialize decompress status for section .debug_aranges
STDERR: BFD: /usr/lib/debug/.build-id/88/5dda4b4a5cea600e7b5b98c1ad86996c8d2299.debug: unable to initialize decompress status for section .debug_aranges
STDERR: 
STDERR: warning: File "/usr/lib/debug/.build-id/88/5dda4b4a5cea600e7b5b98c1ad86996c8d2299.debug" has no build-id, file skipped
STDERR: BFD: /usr/lib/debug/.build-id/18/b9a9a8c523e5cfe5b5d946d605d09242f09798.debug: unable to initialize decompress status for section .debug_aranges
STDERR: BFD: /usr/lib/debug/.build-id/18/b9a9a8c523e5cfe5b5d946d605d09242f09798.debug: unable to initialize decompress status for section .debug_aranges
STDERR: 
STDERR: warning: File "/usr/lib/debug/.build-id/18/b9a9a8c523e5cfe5b5d946d605d09242f09798.debug" has no build-id, file skipped
STDERR: BFD: /usr/lib/debug/.build-id/5d/cf98ad684962be494af28a1051793fd39e4ebc.debug: unable to initialize decompress status for section .debug_aranges
STDERR: BFD: /usr/lib/debug/.build-id/5d/cf98ad684962be494af28a1051793fd39e4ebc.debug: unable to initialize decompress status for section .debug_aranges
STDERR: 
STDERR: warning: File "/usr/lib/debug/.build-id/5d/cf98ad684962be494af28a1051793fd39e4ebc.debug" has no build-id, file skipped
STDERR: BFD: /usr/lib/debug/.build-id/f2/5dfd7b95be4ba386fd71080accae8c0732b711.debug: unable to initialize decompress status for section .debug_aranges
STDERR: BFD: /usr/lib/debug/.build-id/f2/5dfd7b95be4ba386fd71080accae8c0732b711.debug: unable to initialize decompress status for section .debug_aranges
STDERR: 
STDERR: warning: File "/usr/lib/debug/.build-id/f2/5dfd7b95be4ba386fd71080accae8c0732b711.debug" has no build-id, file skipped
STDERR: BFD: /usr/lib/debug/.build-id/02/6c3ba167f64f631eb8781fca2269fbc2ee7ca5.debug: unable to initialize decompress status for section .debug_aranges
STDERR: BFD: /usr/lib/debug/.build-id/02/6c3ba167f64f631eb8781fca2269fbc2ee7ca5.debug: unable to initialize decompress status for section .debug_aranges
STDERR: 
STDERR: warning: File "/usr/lib/debug/.build-id/02/6c3ba167f64f631eb8781fca2269fbc2ee7ca5.debug" has no build-id, file skipped
STDERR: BFD: /usr/lib/debug/.build-id/53/2f3d2053a6b311dd5c43019780fe1ce5503a9a.debug: unable to initialize decompress status for section .debug_aranges
STDERR: BFD: /usr/lib/debug/.build-id/53/2f3d2053a6b311dd5c43019780fe1ce5503a9a.debug: unable to initialize decompress status for section .debug_aranges
STDERR: 
STDERR: warning: File "/usr/lib/debug/.build-id/53/2f3d2053a6b311dd5c43019780fe1ce5503a9a.debug" has no build-id, file skipped
STDERR: BFD: /usr/lib/debug/.build-id/35/7cb2ee0091b7e495a157e07113c0fda3b862bb.debug: unable to initialize decompress status for section .debug_aranges
STDERR: BFD: /usr/lib/debug/.build-id/35/7cb2ee0091b7e495a157e07113c0fda3b862bb.debug: unable to initialize decompress status for section .debug_aranges
STDERR: 
STDERR: warning: File "/usr/lib/debug/.build-id/35/7cb2ee0091b7e495a157e07113c0fda3b862bb.debug" has no build-id, file skipped
STDERR: [xcb] Unknown sequence number while processing queue
STDERR: [xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
STDERR: [xcb] Aborting, sorry about that.
STDERR: WebKitWebProcess: ../../src/xcb_io.c:263: poll_for_event: Assertion `!xcb_xlib_threads_sequence_lost' failed.


and the stderr output

failed to create drawable
Xlib: sequence lost (0x100f1 > 0xf6) in reply type 0x0!

(WebKitWebProcess:123496): Gdk-ERROR **: 02:28:16.649: The program 'WebKitWebProcess' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
  (Details: serial 241 error_code 8 request_code 148 (GLX) minor_code 34)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the GDK_SYNCHRONIZE environment
   variable to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
Comment 1 Miguel Gomez 2019-06-13 06:42:13 PDT
Since r245568, several media related tests have started timing out. That revision is when it happened for the first time, but there are like 60 revisions before that that could be the culprit. Some of the tests are also crashing sometimes, but that was happening before as well. There's no info about why the timeouts have started happening:

media/media-fullscreen-return-to-inline.html [ Timeout Pass ]
media/video-duration-known-after-eos.html [ Timeout Pass ]
media/video-ended-event-slow-motion-playback.html [ Timeout Pass ]
media/video-ended-seek-crash.html [ Timeout Pass ]
media/video-loop.html [ Timeout Pass Crash ]
Comment 2 Enrique OcaƱa 2020-03-20 09:17:53 PDT
*** Bug 118460 has been marked as a duplicate of this bug. ***
Comment 3 Diego Pino 2021-06-09 01:46:19 PDT
There's only one tests filed under this bug.

The test has been constantly timing out for the last 4000 revisions.

https://build.webkit.org/results/GTK-Linux-64-bit-Release-Tests/r278650%20%282224%29/media/media-fullscreen-return-to-inline-diff.txt

--- /home/buildbot/worker/gtk-linux-64-release-tests/build/layout-test-results/media/media-fullscreen-return-to-inline-expected.txt
+++ /home/buildbot/worker/gtk-linux-64-release-tests/build/layout-test-results/media/media-fullscreen-return-to-inline-actual.txt
@@ -1,25 +1,3 @@
+CONSOLE MESSAGE: TypeError: internals.setMockVideoPresentationModeEnabled is not a function. (In 'internals.setMockVideoPresentationModeEnabled(true)', 'internals.setMockVideoPresentationModeEnabled' is undefined)
+FAIL: Timed out waiting for notifyDone to be called
 
-Test that a <video> pauses after exiting fullscreen when the internal property "allowsInlineMediaPlaybackAfterFullscreen" is false.
-
-RUN(video.src = findMediaFile("video", "content/test"))
-EVENT(canplaythrough)
-RUN(video.play())
-EVENT(webkitpresentationmodechanged)
-EXPECTED (internals.isChangingPresentationMode(video) == 'false') OK
-EXPECTED (video.webkitDisplayingFullscreen == 'true') OK
-RUN(video.webkitExitFullscreen())
-EVENT(webkitpresentationmodechanged)
-EXPECTED (internals.isChangingPresentationMode(video) == 'false') OK
-EXPECTED (video.webkitDisplayingFullscreen == 'false') OK
-EXPECTED (video.paused == 'true') OK
-RUN(video.play())
-EVENT(webkitpresentationmodechanged)
-EXPECTED (internals.isChangingPresentationMode(video) == 'false') OK
-EXPECTED (video.webkitDisplayingFullscreen == 'true') OK
-RUN(video.webkitExitFullscreen())
-EVENT(webkitpresentationmodechanged)
-EXPECTED (internals.isChangingPresentationMode(video) == 'false') OK
-EXPECTED (video.webkitDisplayingFullscreen == 'false') OK
-EXPECTED (video.paused == 'false') OK
-END OF TEST
-

Gardened in r278654.