Gnome-shell crashes from copying to clipboard
Affected version
EndeavourOS Linux x86_64 Gnome 46.0
Bug summary
While using Aegisub, I tried to copy some lines of text, but got a gnome-shell crash instead. The backtrace seems to point to mutter. I have no clue why this happened, but I was not able to reproduce elsewhere.
Steps to reproduce
- Open specific file in Aegisub
- Select lines 30-35
- Hit CTRL+C
- Crash
What happened
There was a gnome-shell crash that seems to originate from mutter
What did you expect to happen
I expected the copy to sucessfuly happen
Relevant logs, screenshots, screencasts etc.
I can join the aegisub file if needed since this was the only instance where I could reproduce this
Backtrace
#0 0x00007275fdac6899 in owner_changed_cb (selection=0x606b13e6c7d0,
selection_type=<optimized out>, new_owner=<optimized out>,
display=0x606b13e53410) at ../mutter/src/core/meta-clipboard-manager.c:158
158 g_warning ("MetaClipboardManager failed to create new MetaSelectionSourceMemory: %s",
[Current thread is 1 (Thread 0x7275f99b8d80 (LWP 1394))]
(gdb) bt
#0 0x00007275fdac6899 in owner_changed_cb
(selection=0x606b13e6c7d0 [MetaSelection], selection_type=<optimized out>, new_owner=<optimized out>, display=0x606b13e53410 [MetaDisplay])
at ../mutter/src/core/meta-clipboard-manager.c:158
#1 0x00007275fd000596 in ffi_call_unix64 () at ../src/x86/unix64.S:104
#2 0x00007275fcffd00e in ffi_call_int
(cif=cif@entry=0x7ffd6fc41500, fn=<optimized out>, rvalue=<optimized out>, avalue=<optimized out>, closure=closure@entry=0x0) at ../src/x86/ffi64.c:673
#3 0x00007275fcfffbd3 in ffi_call
(cif=cif@entry=0x7ffd6fc41500, fn=fn@entry=0x7275fdac65e0 <owner_changed_cb>, rvalue=rvalue@entry=0x7ffd6fc41480, avalue=avalue@entry=0x7ffd6fc41420)
at ../src/x86/ffi64.c:710
#4 0x00007275fe727db4 in g_cclosure_marshal_generic
(closure=<optimized out>, return_gvalue=<optimized out>, n_param_values=<optimized out>, param_values=<optimized out>, invocation_hint=<optimized out>, marshal_data=<optimized out>) at ../glib/gobject/gclosure.c:1538
#5 0x00007275fe721730 in g_closure_invoke
(closure=0x606b13e6c870, return_value=0x0, n_param_values=3, param_values=0x7ffd6fc41740, invocation_hint=0x7ffd6fc41690) at ../glib/gobject/gclosure.c:834
#6 0x00007275fe750c1b in signal_emit_unlocked_R.isra.0
(node=node@entry=0x7ffd6fc41840, detail=detail@entry=0, instance=instance@entry=0x606b13e6c7d0, emission_return=emission_return@entry=0x0, instance_and_params=instance_and_params@entry=0x7ffd6fc41740) at ../glib/gobject/gsignal.c:3961
--Type <RET> for more, q to quit, c to continue without paging--
#7 0x00007275fe7417a2 in signal_emit_valist_unlocked
(instance=instance@entry=0x606b13e6c7d0, signal_id=signal_id@entry=245, detail=detail@entry=0, var_args=var_args@entry=0x7ffd6fc419a0) at ../glib/gobject/gsignal.c:3520
#8 0x00007275fe7419d7 in g_signal_emit_valist
(instance=0x606b13e6c7d0, signal_id=245, detail=0, var_args=var_args@entry=0x7ffd6fc419a0) at ../glib/gobject/gsignal.c:3263
#9 0x00007275fe741a94 in g_signal_emit
(instance=instance@entry=0x606b13e6c7d0, signal_id=<optimized out>, detail=detail@entry=0) at ../glib/gobject/gsignal.c:3583
#10 0x00007275fdb50594 in meta_selection_unset_owner
(owner=0x606b16ddc990 [MetaSelectionSourceWayland], selection_type=META_SELECTION_CLIPBOARD, selection=0x606b13e6c7d0 [MetaSelection]) at ../mutter/src/core/meta-selection.c:157
#11 meta_selection_unset_owner
(owner=0x606b16ddc990 [MetaSelectionSourceWayland], selection_type=META_SELECTION_CLIPBOARD, selection=0x606b13e6c7d0 [MetaSelection]) at ../mutter/src/core/meta-selection.c:146
#12 unset_selection_source
(selection_type=META_SELECTION_CLIPBOARD, data_device=0x606b13e511a0)
at ../mutter/src/wayland/meta-wayland-data-device.c:186
#13 selection_data_source_destroyed (data=0x606b13e511a0, object_was_here=<optimized out>)
at ../mutter/src/wayland/meta-wayland-data-device.c:846
#14 0x00007275fe72b217 in weak_refs_notify (data=0x606b1bdaeca0)
at ../glib/gobject/gobject.c:3643
#15 0x00007275fe11f1e2 in g_data_set_internal
(datalist=<optimized out>, key_id=<optimized out>, new_data=<optimized out>, new_destroy_func=<optimized out>, dataset=0x0) at ../glib/glib/gdataset.c:468
#16 0x00007275fe72d505 in g_object_real_dispose
(object=0x606b149dd880 [MetaWaylandDataSource]) at ../glib/gobject/gobject.c:1752
#17 0x00007275fe7304ee in g_object_unref (_object=0x606b149dd880)
at ../glib/gobject/gobject.c:4381
#18 0x00007275faee69ba in destroy_resource
(element=0x606b14f343f0, data=data@entry=0x0, flags=0)
at ../wayland-1.22.0/src/wayland-server.c:732
#19 0x00007275faee87a9 in wl_resource_destroy (resource=<optimized out>)
at ../wayland-1.22.0/src/wayland-server.c:749
#20 0x00007275fd000596 in ffi_call_unix64 () at ../src/x86/unix64.S:104
#21 0x00007275fcffd00e in ffi_call_int
(cif=cif@entry=0x7ffd6fc41da0, fn=<optimized out>, rvalue=<optimized out>, avalue=<optimized out>, closure=closure@entry=0x0) at ../src/x86/ffi64.c:673
#22 0x00007275fcfffbd3 in ffi_call
(cif=cif@entry=0x7ffd6fc41da0, fn=<optimized out>, rvalue=rvalue@entry=0x0, avalue=avalue@entry=0x7ffd6fc41e70) at ../src/x86/ffi64.c:710
#23 0x00007275faee3ada in wl_closure_invoke
(closure=closure@entry=0x606b165d3520, target=<optimized out>,
target@entry=0x606b14f343f0, opcode=opcode@entry=1, data=<optimized out>,
data@entry=0x606b1bb48df0, flags=2) at ../wayland-1.22.0/src/connection.c:1025
#24 0x00007275faee8180 in wl_client_connection_data
(fd=<optimized out>, mask=<optimized out>, data=<optimized out>)
at ../wayland-1.22.0/src/wayland-server.c:438
#25 0x00007275faee6ae2 in wl_event_loop_dispatch
(loop=0x606b13e4d530, timeout=timeout@entry=0) at ../wayland-1.22.0/src/event-loop.c:1027
#26 0x00007275fdb4efcd in wayland_event_source_dispatch
(base=<optimized out>, callback=<optimized out>, data=<optimized out>)
at ../mutter/src/wayland/meta-wayland.c:138
#27 0x00007275fe140199 in g_main_dispatch (context=0x606b131d5cf0)
at ../glib/glib/gmain.c:3344
#28 0x00007275fe19f3bf in g_main_context_dispatch_unlocked (context=0x606b131d5cf0)
at ../glib/glib/gmain.c:4152
#29 g_main_context_iterate_unlocked.isra.0
(context=0x606b131d5cf0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/glib/gmain.c:4217
#30 0x00007275fe140dc7 in g_main_loop_run (loop=0x606b13978630) at ../glib/glib/gmain.c:4419
#31 0x00007275fdaca00b in meta_context_run_main_loop
(context=<optimized out>, error=0x7ffd6fc42880) at ../mutter/src/core/meta-context.c:523
#32 0x00007275fd000596 in ffi_call_unix64 () at ../src/x86/unix64.S:104
#33 0x00007275fcffd00e in ffi_call_int
(cif=cif@entry=0x606b13ef2510, fn=<optimized out>, rvalue=<optimized out>, avalue=<optimized out>, closure=closure@entry=0x0) at ../src/x86/ffi64.c:673
#34 0x00007275fcfffbd3 in ffi_call
(cif=0x606b13ef2510, fn=<optimized out>, rvalue=<optimized out>, avalue=<optimized out>)
at ../src/x86/ffi64.c:710
#35 0x00007275fdfc9fe1 in Gjs::Function::invoke
--Type <RET> for more, q to quit, c to continue without paging--
(this=0x606b13ef24f0, context=0x606b131f0ea0, args=..., this_obj=..., r_value=0x0)
at ../gjs/gi/function.cpp:1056
#36 0x00007275fdfca688 in Gjs::Function::call
(context=0x606b131f0ea0, js_argc=<optimized out>, vp=<optimized out>)
at ../gjs/gi/function.cpp:1238
#37 0x00007275fc5652da in CallJSNative
(cx=0x606b131f0ea0, native=0x7275fdfca5a0 <Gjs::Function::call(JSContext*, unsigned int, JS::Value*)>, reason=js::CallReason::Call, args=...)
at /usr/src/debug/js115/firefox-115.9.0/js/src/vm/Interpreter.cpp:486
#38 js::InternalCallOrConstruct
(cx=0x606b131f0ea0, args=..., construct=<optimized out>, reason=js::CallReason::Call)
at /usr/src/debug/js115/firefox-115.9.0/js/src/vm/Interpreter.cpp:566
#39 0x00007275fc1d8b01 in InternalCall (args=..., cx=<optimized out>, reason=<optimized out>)
at /usr/src/debug/js115/firefox-115.9.0/js/src/vm/Interpreter.cpp:647
#40 js::CallFromStack (args=..., cx=<optimized out>, reason=<optimized out>)
at /usr/src/debug/js115/firefox-115.9.0/js/src/vm/Interpreter.cpp:652
#41 js::Interpret (cx=<optimized out>, state=...)
at /usr/src/debug/js115/firefox-115.9.0/js/src/vm/Interpreter.cpp:3395
#42 0x00007275fc1d3ec5 in MaybeEnterInterpreterTrampoline (cx=0x606b131f0ea0, state=...)
at /usr/src/debug/js115/firefox-115.9.0/js/src/vm/Interpreter.cpp:400
#43 js::RunScript (cx=0x606b131f0ea0, state=...)
at /usr/src/debug/js115/firefox-115.9.0/js/src/vm/Interpreter.cpp:458
#44 js::InternalCallOrConstruct
(cx=0x606b131f0ea0, args=..., construct=js::NO_CONSTRUCT, reason=<optimized out>)
at /usr/src/debug/js115/firefox-115.9.0/js/src/vm/Interpreter.cpp:612
#45 InternalCall (cx=0x606b131f0ea0, args=..., reason=<optimized out>)
at /usr/src/debug/js115/firefox-115.9.0/js/src/vm/Interpreter.cpp:647
#46 js::Call
(cx=0x606b131f0ea0, fval=..., thisv=..., args=..., rval=..., reason=<optimized out>)
at /usr/src/debug/js115/firefox-115.9.0/js/src/vm/Interpreter.cpp:679
#47 0x00007275fc6ba1b1 in JS::Call
(cx=0x606b131f0ea0, thisv=..., fval=..., args=..., rval=...)
at /usr/src/debug/js115/firefox-115.9.0/js/src/vm/CallAndConstruct.cpp:117
#48 0x00007275fe000f02 in JS::Call
(rval=..., args=..., funObj=..., thisv=..., cx=<optimized out>)
at /usr/include/mozjs-115/js/RootingAPI.h:1219
#49 GjsContextPrivate::run_main_loop_hook (this=0x606b131e78c0)
at ../gjs/gjs/context.cpp:1491
#50 0x00007275fe00917f in GjsContextPrivate::eval_module
(error=0x7ffd6fc43330, exit_status_p=0x7ffd6fc4332b "\375\001", identifier=0x606b13e7fd30 "resource:///org/gnome/shell/ui/init.js", this=0x606b131e78c0) at ../gjs/gjs/context.cpp:1608
#51 gjs_context_eval_module
(js_context=<optimized out>, identifier=0x606b13e7fd30 "resource:///org/gnome/shell/ui/init.js", exit_code=0x7ffd6fc4332b "\375\001", error=0x7ffd6fc43330)
at ../gjs/gjs/context.cpp:1387
#52 0x00007275fe009481 in gjs_context_eval_module_file
(js_context=js_context@entry=0x606b131e7a60 [GjsContext], filename=filename@entry=0x606b12aa8640 "resource:///org/gnome/shell/ui/init.js", exit_status_p=exit_status_p@entry=0x7ffd6fc4332b "\375\001", error=error@entry=0x7ffd6fc43330) at ../gjs/gjs/context.cpp:1692
#53 0x0000606b12aa657f in main (argc=<optimized out>, argv=<optimized out>)
at ../gnome-shell/src/main.c:708
Edited by Ismaël Bussière