Xpra: Ticket #2699: gnome-control-center crashes

ERROR:../shell/cc-shell-model.c:458:cc_shell_model_set_panel_visibility: assertion failed: (valid)
Bail out! ERROR:../shell/cc-shell-model.c:458:cc_shell_model_set_panel_visibility: assertion failed: (valid)
Thread 1 "gnome-control-c" received signal SIGABRT, Aborted.
#0  0x00007ffff6268625 in raise () at /lib64/libc.so.6
#1  0x00007ffff62518d9 in abort () at /lib64/libc.so.6
#2  0x00007ffff7c4db53 in g_assertion_message_expr.cold () at /lib64/libglib-2.0.so.0
#3  0x00007ffff7caa23f in g_assertion_message_expr () at /lib64/libglib-2.0.so.0
#4  0x00005555556c0b01 in cc_shell_model_set_panel_visibility
    (self=0x555555fafb00, id=id@entry=0x5555556e526b "wifi", visibility=visibility@entry=CC_PANEL_VISIBLE_IN_SEARCH) at ../shell/cc-shell-model.c:458
#5  0x000055555567ec94 in update_panel_visibility (client=<optimized out>) at ../panels/network/cc-wifi-panel.c:114
#6  0x000055555567f9c2 in cc_wifi_panel_static_init_func () at ../panels/network/cc-wifi-panel.c:143
#7  0x00005555555bc46a in cc_panel_loader_fill_model (model=0x555555fafb00) at ../shell/cc-panel-loader.c:262
#8  0x00005555555c0c5a in setup_model (shell=0x555556124490) at ../shell/cc-shell-model.h:31
#9  cc_window_constructed (object=0x555556124490) at ../shell/cc-window.c:838
#10 0x00007ffff7d715f6 in g_object_new_internal () at /lib64/libgobject-2.0.so.0
#11 0x00007ffff7d73338 in g_object_new_valist () at /lib64/libgobject-2.0.so.0
#12 0x00007ffff7d7368d in g_object_new () at /lib64/libgobject-2.0.so.0
#13 0x00005555555c14ac in cc_window_new (application=0x5555560d3a90, model=model@entry=0x555555fafb00) at ../shell/cc-window.c:972
#14 0x00005555555baa53 in cc_application_startup (application=0x5555560d3a90) at ../shell/cc-application.c:231
#15 0x00007ffff7d6b996 in _g_closure_invoke_va () at /lib64/libgobject-2.0.so.0
#16 0x00007ffff7d88228 in g_signal_emit_valist () at /lib64/libgobject-2.0.so.0
#17 0x00007ffff7d889d3 in g_signal_emit () at /lib64/libgobject-2.0.so.0
#18 0x00007ffff7e94ae2 in g_application_register () at /lib64/libgio-2.0.so.0
#19 0x00007ffff7e94ebe in g_application_real_local_command_line () at /lib64/libgio-2.0.so.0
#20 0x00007ffff7e95242 in g_application_run () at /lib64/libgio-2.0.so.0
#21 0x00005555555ba0a9 in main (argc=<optimized out>, argv=<optimized out>) at ../shell/main.c:70

Looks similar to gnome-control-center dumps core

XDG_CURRENT_DESKTOP=GNOME gnome-control-center

Goes a little bit further, but still crashes.

According to Assertion failed in cc_shell_model_set_panel_visibility, it's a feature: Really, we do understand that g-c-c contains useful features that can be usable from other desktop environments. However, we simply cannot support it when running in such environments and handle the issues that happen when things go wrong.

They should either provide a better way to abort (not crashing) or even allow it to run under non-gnome envs...

Wed, 01 Apr 2020 14:51:21 GMT - Antoine Martin: status changed; resolution set

Nothing we can do, it's a gnome "feature".

Sat, 23 Jan 2021 05:58:25 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/2699