Mutter constantly crashes when opening lid: assertion failed: (!update->mode_sets)
Steps to reproduce:
mutter-40.2-1.fc34.x86_64
-
gnome-tweaks
>General
>Suspend when laptop lid is closed
is OFF - Close laptop lid
- Open laptop lid
Actual results:
Blank screen, after a while login screen shown
Expected results:
Lock screen
Logs:
From journalctl
:
Jun 12 08:14:15 ac systemd-logind[1045]: Lid opened.
Jun 12 08:14:45 ac gnome-shell[48366]: **
Jun 12 08:14:45 ac gnome-shell[48366]: mutter:ERROR:../src/backends/native/meta-kms-update.c:337:meta_kms_update_set_power_save: assertion failed: (!update->mode_sets)
Jun 12 08:14:45 ac gnome-shell[48366]: Bail out! mutter:ERROR:../src/backends/native/meta-kms-update.c:337:meta_kms_update_set_power_save: assertion failed: (!update->mode_sets)
Jun 12 08:14:45 ac audit[48366]: ANOM_ABEND auid=1000 uid=1000 gid=1000 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=48366 comm="gnome-shell" exe="/usr/bin/gnome-shell" sig=6 res=1
Jun 12 08:14:45 ac gnome-shell[48366]: == Stack trace for context 0x5625005fc170 ==
Jun 12 08:14:45 ac audit: BPF prog-id=251 op=LOAD
Jun 12 08:14:45 ac audit: BPF prog-id=252 op=LOAD
Jun 12 08:14:45 ac audit: BPF prog-id=253 op=LOAD
Jun 12 08:14:45 ac systemd[1]: Started Process Core Dump (PID 97308/UID 0).
Jun 12 08:14:45 ac audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-coredump@1-97308-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jun 12 08:14:45 ac audit[97309]: NETFILTER_CFG table=filter family=7 entries=0 op=xt_register pid=97309 subj=system_u:system_r:init_t:s0 comm="(coredump)"
Jun 12 08:14:45 ac audit[97309]: NETFILTER_CFG table=broute family=7 entries=0 op=xt_register pid=97309 subj=system_u:system_r:init_t:s0 comm="(coredump)"
Jun 12 08:14:45 ac audit[97309]: NETFILTER_CFG table=nat family=7 entries=0 op=xt_register pid=97309 subj=system_u:system_r:init_t:s0 comm="(coredump)"
Jun 12 08:14:46 ac systemd-coredump[97309]: Process 48366 (gnome-shell) of user 1000 dumped core.
Stack trace of thread 48366:
#0 0x00007f872747a2a2 n/a (/usr/lib64/libc-2.33.so (deleted) + 0x3d2a2)
#1 0x0000000000000000 n/a (n/a + 0x0)
Jun 12 08:14:47 ac systemd[1]: systemd-coredump@1-97308-0.service: Deactivated successfully.
coredumpctl gdb 48366
:
Thread 1 (Thread 0x7f87232e4d80 (LWP 48366)):
#0 __GI_raise (sig=<optimized out>) at ../sysdeps/unix/sysv/linux/raise.c:49
set = {__val = {0, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 94716958661984, 39, 140218471472460}}
pid = <optimized out>
tid = <optimized out>
ret = <optimized out>
#1 0x00005624fe61c282 in dump_gjs_stack_on_signal_handler (signo=6) at ../src/main.c:349
sa = {__sigaction_handler = {sa_handler = 0x5624fe61c0f0 <dump_gjs_stack_alarm_sigaction>, sa_sigaction = 0x5624fe61c0f0 <dump_gjs_stack_alarm_sigaction>}, sa_mask = {__val = {0 <repeats 16 times>}}, sa_flags = 0, sa_restorer = 0x0}
i = 65
#2 <signal handler called>
No locals.
#3 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:49
set = {__val = {0, 140218457924352, 3432, 140218456595206, 140218457920800, 139, 140218457924352, 14068829776253293824, 140732969352288, 18446744073709551496, 11, 140218472275376, 140732969352288, 140218459673904, 140218459673904, 140218456643528}}
pid = <optimized out>
tid = <optimized out>
ret = <optimized out>
#4 0x00007f87274638a4 in __GI_abort () at abort.c:79
save_stage = 1
act = {__sigaction_handler = {sa_handler = 0x5625069a0030, sa_sigaction = 0x5625069a0030}, sa_mask = {__val = {140218471363149, 152, 140218471489959, 94717020753072, 140732969352192, 32, 14068829776253293824, 0, 18446744073709551496, 11, 129, 140732969352288, 140218459673904, 140218459673904, 140218456643528, 140218459671600}}, sa_flags = 674799532, sa_restorer = 0x562502a1b870}
sigs = {__val = {32, 127, 2048, 14068829776253293824, 94716954859104, 18446744073709551496, 11, 140732969352184, 152, 1, 94716957931632, 140218456643528, 152, 1, 94716957931632, 94717024534576}}
#5 0x00007f8728297ccc in g_assertion_message (domain=<optimized out>, file=<optimized out>, line=<optimized out>, func=<optimized out>, message=<optimized out>) at ../glib/gtestutils.c:3065
lstr = "337\000\000\000\000\000\360\310+(\207\177\000\000\000\000\000\000\000\000\000\000\016\310+(\207\177\000"
s = <optimized out>
#6 0x00007f87282f32ff in g_assertion_message_expr (domain=domain@entry=0x7f872778ffd9 "mutter", file=file@entry=0x7f87277acc30 "../src/backends/native/meta-kms-update.c", line=line@entry=337, func=func@entry=0x7f87277ad530 <__func__.5.lto_priv.22> "meta_kms_update_set_power_save", expr=expr@entry=0x7f87277ac33f "!update->mode_sets") at ../glib/gtestutils.c:3091
s = 0x562506604cb0 "assertion failed: (!update->mode_sets)"
#7 0x00007f872775b1b5 in meta_kms_update_set_power_save (update=<optimized out>) at ../src/backends/native/meta-kms-update.c:337
__func__ = {<optimized out> <repeats 31 times>}
#8 meta_monitor_manager_native_set_power_save_mode (manager=<optimized out>, mode=META_POWER_SAVE_OFF) at ../src/backends/native/meta-monitor-manager-native.c:180
kms_device = 0x56250022f740
kms_update = <optimized out>
flags = META_KMS_UPDATE_FLAG_NONE
kms_feedback = 0x0
gpu_kms = <optimized out>
backend = <optimized out>
backend_native = <optimized out>
kms = 0x5625002330b0
l = 0x5625002456e0
#9 0x00007f872768686b in power_save_mode_changed (manager=0x562500231cb0, pspec=<optimized out>, user_data=<optimized out>) at ../src/backends/meta-monitor-manager.c:390
priv = 0x562500231c90
klass = <optimized out>
mode = 3
#10 0x00007f87283c6c2f in g_closure_invoke (closure=0x5625002a5500, return_value=0x0, n_param_values=2, param_values=0x7ffef2a57ef0, invocation_hint=0x7ffef2a57e70) at ../gobject/gclosure.c:810
marshal = 0x7f87283c9330 <g_cclosure_marshal_VOID__PARAM>
marshal_data = 0x0
in_marshal = 0
real_closure = 0x5625002a54e0
__func__ = "g_closure_invoke"
#11 0x00007f87283e2ea6 in signal_emit_unlocked_R (node=node@entry=0x562500226800, detail=detail@entry=356, instance=instance@entry=0x7f8708004780, emission_return=emission_return@entry=0x0, instance_and_params=instance_and_params@entry=0x7ffef2a57ef0) at ../gobject/gsignal.c:3741
tmp = <optimized out>
handler = 0x5625002d2340
accumulator = 0x0
emission = {next = 0x0, instance = 0x7f8708004780, ihint = {signal_id = 1, detail = 356, run_type = (G_SIGNAL_RUN_FIRST | G_SIGNAL_ACCUMULATOR_FIRST_RUN)}, state = EMISSION_RUN, chain_type = 4}
class_closure = <optimized out>
hlist = <optimized out>
handler_list = 0x5625002d2340
return_accu = 0x0
accu = {g_type = 0, data = {{v_int = 0, v_uint = 0, v_long = 0, v_ulong = 0, v_int64 = 0, v_uint64 = 0, v_float = 0, v_double = 0, v_pointer = 0x0}, {v_int = 0, v_uint = 0, v_long = 0, v_ulong = 0, v_int64 = 0, v_uint64 = 0, v_float = 0, v_double = 0, v_pointer = 0x0}}}
signal_id = 1
max_sequential_handler_number = 2042797
return_value_altered = 1
EMIT_RESTART = <optimized out>
#12 0x00007f87283e476a in g_signal_emit_valist (instance=<optimized out>, signal_id=<optimized out>, detail=<optimized out>, var_args=var_args@entry=0x7ffef2a580c0) at ../gobject/gsignal.c:3497
instance_and_params = 0x7ffef2a57ef0
signal_return_type = <optimized out>
param_values = 0x7ffef2a57f08
node = <optimized out>
i = <optimized out>
n_params = <optimized out>
__func__ = "g_signal_emit_valist"
#13 0x00007f87283e4983 in g_signal_emit (instance=<optimized out>, signal_id=<optimized out>, detail=<optimized out>) at ../gobject/gsignal.c:3553
var_args = {{gp_offset = 32, fp_offset = 48, overflow_arg_area = 0x7ffef2a581a0, reg_save_area = 0x7ffef2a580e0}}
#14 0x00007f87283ce254 in g_object_dispatch_properties_changed (object=0x7f8708004780, n_pspecs=<optimized out>, pspecs=<optimized out>) at ../gobject/gobject.c:1206
i = <optimized out>
#15 0x00007f87283c726a in g_object_notify_queue_thaw (object=0x7f8708004780, nqueue=<optimized out>) at ../gobject/gobject.c:341
pspecs_mem = {0x562500230c20, 0x562504092610, 0x7f8708004780, 0x7f87283d39d0 <g_object_unref+96>, 0x7ffef2a58230, 0x562500230c20, 0x5625002d8330, 0x7f87283ee3c5 <g_value_unset+21>, 0x7ffef2a58300, 0x7f87283d5829 <object_set_property+201>, 0x0, 0x562504092610, 0x0, 0x0, 0x0, 0xc33e862443041500}
pspecs = 0x7ffef2a581d0
free_me = 0x0
slist = <optimized out>
n_pspecs = 1
__func__ = "g_object_notify_queue_thaw"
#16 0x00007f87283d777e in g_object_setv (values=<optimized out>, names=<optimized out>, n_properties=<optimized out>, object=0x7f8708004780) at ../gobject/gobject.c:2413
i = <optimized out>
nqueue = 0x562504092610
pspec = <optimized out>
obj_type = 94716916760640
i = <optimized out>
nqueue = <optimized out>
pspec = <optimized out>
obj_type = <optimized out>
__func__ = {<optimized out> <repeats 14 times>}
_g_boolean_var_ = <optimized out>
#17 g_object_setv (object=0x7f8708004780, n_properties=<optimized out>, names=<optimized out>, values=<optimized out>) at ../gobject/gobject.c:2384
i = <optimized out>
nqueue = <optimized out>
pspec = <optimized out>
obj_type = <optimized out>
__func__ = "g_object_setv"
#18 0x00007f87283d788f in g_object_set_property (object=<optimized out>, property_name=<optimized out>, property_name@entry=0x7f872778dd2b "power-save-mode", value=value@entry=0x7ffef2a58300) at ../gobject/gobject.c:2701
No locals.
#19 0x00007f872766fc21 in _meta_dbus_display_config_skeleton_handle_set_property (connection=<optimized out>, sender=<optimized out>, object_path=object_path@entry=0x7f870018b1d0 "/org/gnome/Mutter/DisplayConfig", interface_name=interface_name@entry=0x7f8727786248 "org.gnome.Mutter.DisplayConfig", property_name=0x7ffef2a58300 "\030", property_name@entry=0x5625069be0ef "PowerSaveMode", variant=variant@entry=0x7f8700066800, error=0x7ffef2a58380, user_data=0x7f8708004780) at src/meta-dbus-display-config.c:2909
skeleton = 0x7f8708004780
value = {g_type = 24, data = {{v_int = 3, v_uint = 3, v_long = 3, v_ulong = 3, v_int64 = 3, v_uint64 = 3, v_float = 4.20389539e-45, v_double = 1.4821969375237396e-323, v_pointer = 0x3}, {v_int = 0, v_uint = 0, v_long = 0, v_ulong = 0, v_int64 = 0, v_uint64 = 0, v_float = 0, v_double = 0, v_pointer = 0x0}}}
pspec = <optimized out>
info = 0x7f87277ff6e0 <_meta_dbus_display_config_property_info_power_save_mode>
ret = 0
__func__ = "_meta_dbus_display_config_skeleton_handle_set_property"
#20 0x00007f87285143d1 in invoke_set_property_in_idle_cb (_data=_data@entry=0x7f87000e6ef0) at ../gio/gdbusconnection.c:4250
data = <optimized out>
error = 0x0
reply = <optimized out>
value = 0x7f8700066800
__func__ = "invoke_set_property_in_idle_cb"
#21 0x00007f87282ca74b in g_idle_dispatch (source=0x7f87005cbd40, callback=0x7f8728514320 <invoke_set_property_in_idle_cb>, user_data=0x7f87000e6ef0) at ../glib/gmain.c:5848
again = <optimized out>
#22 0x00007f87282ce4cf in g_main_dispatch (context=0x562500228890) at ../glib/gmain.c:3337
dispatch = 0x7f87282ca730 <g_idle_dispatch>
prev_source = 0x0
begin_time_nsec = 148796570518630
was_in_call = <optimized out>
user_data = 0x7f87000e6ef0
callback = 0x7f8728514320 <invoke_set_property_in_idle_cb>
cb_funcs = 0x7f87283b13a0 <g_source_callback_funcs>
cb_data = 0x7f87001c6150
need_destroy = <optimized out>
source = 0x7f87005cbd40
current = 0x562500238570
i = 0
__func__ = {<optimized out> <repeats 16 times>}
#23 g_main_context_dispatch (context=0x562500228890) at ../glib/gmain.c:4055
No locals.
#24 0x00007f87283224e8 in g_main_context_iterate.constprop.0 (context=0x562500228890, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4131
max_priority = 0
timeout = 0
some_ready = 1
nfds = 25
allocated_nfds = 26
fds = <optimized out>
begin_time_nsec = 148796570409003
#25 0x00007f87282cda93 in g_main_loop_run (loop=0x5625005e8710) at ../glib/gmain.c:4329
self = <optimized out>
__func__ = "g_main_loop_run"
#26 0x00007f87276d2020 in meta_run_main_loop () at ../src/core/main.c:928
No locals.
#27 0x00007f87276d9ed2 in meta_run () at ../src/core/main.c:943
No locals.
#28 0x00005624fe61bca6 in main (argc=<optimized out>, argv=<optimized out>) at ../src/main.c:504
ctx = <optimized out>
error = 0x0
ecode = <optimized out>