servo: Discord crashes in GStreamer mq_slot_handle_stream_start
- Servo 270df6e26334149d12c975cb91e6db7e5fa8ccab with
./mach build -r - NixOS 25.05.20241217.d3c42f1
- GStreamer 1.24.7
servo https://discord.com/login --pref dom.svg.enabled --pref dom.intersection_observer.enabled --pref dom.abort_controller.enabled runs fine until you log in, then on the loading screen we crash:
ERROR:../gst/playback/gstdecodebin3.c:3414:mq_slot_handle_stream_start: assertion failed: (collection)
Bail out! ERROR:../gst/playback/gstdecodebin3.c:3414:mq_slot_handle_stream_start: assertion failed: (collection)
Redirecting call to abort() to mozalloc_abort
Caught signal 11
0: servoshell::backtrace::print
1: servoshell::crash_handler::install::handler
2: <unknown>
3: mozalloc_abort
4: abort
5: g_assertion_message.cold
6: g_assertion_message_expr
7: multiqueue_src_probe
8: probe_hook_marshal
9: g_hook_list_marshal
10: do_probe_callbacks
11: gst_pad_push_event_unchecked
12: push_sticky
13: events_foreach
14: gst_pad_push_event
15: gst_multi_queue_loop
16: gst_task_func
17: g_thread_pool_thread_proxy
18: g_thread_proxy
19: start_thread
20: __GI___clone3
Servo was terminated by signal 11
May be related to gstreamer/gstreamer#3788.
Workaround is to uninstall GStreamer. On NixOS, you can also run Servo with steam-run (no idea why this works), or remove GStreamer from our nix-shell:
diff --git a/shell.nix b/shell.nix
index 5850584b437..03d36773104 100644
--- a/shell.nix
+++ b/shell.nix
@@ -69,11 +69,11 @@ stdenv.mkDerivation (androidEnvironment // {
xorg.libxcb
xorg.libX11
- gst_all_1.gstreamer
- gst_all_1.gst-plugins-base
- gst_all_1.gst-plugins-good
- gst_all_1.gst-plugins-bad
- gst_all_1.gst-plugins-ugly
+ # gst_all_1.gstreamer
+ # gst_all_1.gst-plugins-base
+ # gst_all_1.gst-plugins-good
+ # gst_all_1.gst-plugins-bad
+ # gst_all_1.gst-plugins-ugly
rustup
taplo
About this issue
- Original URL
- State: open
- Created 2 years ago
- Comments: 20 (11 by maintainers)
Here are some gzipped logs for you:
Looks like a few of those are giving up that GStreamer error:
All the other tests ran fine, save for 7 that were skipped because testdriver.js is unsupported and some CORS tests that timed out.
FWIW my system is on GStreamer 1.26.3, and my recently built copy of Servo (e1c0378) still exhibits the same crash.
After sleuthing through the nightly builds, I found that this regression started happening on the 2025-04-08 nightly. None of the changes between the two nightlies stick out in particular, except for commit
3c4a4d5which changes the nightly CI to run on Ubuntu 22.04 instead of 20.04. Building the previous nightly myself on my Arch host shows the same issue, so this does seem to be an issue between GStreamer versions.