Segfault with adwaita demo (or phosh-mobile-settings):
$ _build/src/phosh-mobile-settings
(phosh-mobile-settings:11950): GLib-GObject-WARNING **: 18:45:20.837: invalid uninstantiatable type 'GFlags' in cast to 'GtkAccessible'
(phosh-mobile-settings:11950): Gtk-CRITICAL **: 18:45:20.837: gtk_accessible_get_at_context: assertion 'GTK_IS_ACCESSIBLE (self)' failed
This is with a slightly patched libadwaita (https://source.puri.sm/guido.gunther/libadwaita). I can't seem to reproduce with popovers in gtk-4-demo. It isn't reproducible on Debian bullseye with GTK 4.6.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x0000ffffb5b1a914 in gtk_at_context_get_description_accumulate (self=0x0, labels=labels@entry=0xffffa00049a0, recurse=recurse@entry=0) at ../../../gtk/gtkatcontext.c:1022
[Current thread is 1 (Thread 0xffffb4964010 (LWP 11950))]
(gdb) #0 0x0000ffffb5b1a914 in gtk_at_context_get_description_accumulate (self=0x0, labels=labels@entry=0xffffa00049a0, recurse=recurse@entry=0) at ../../../gtk/gtkatcontext.c:1022
#1 0x0000ffffb5b1a9c0 in gtk_at_context_get_description_accumulate (self=self@entry=0xaaaaee0192c0 [GtkAtSpiContext], labels=labels@entry=0xffffa00049a0, recurse=recurse@entry=1)
at ../../../gtk/gtkatcontext.c:1040
#2 0x0000ffffb5b1ba14 in gtk_at_context_get_description (self=0xaaaaee0192c0 [GtkAtSpiContext]) at ../../../gtk/gtkatcontext.c:1142
#3 0x0000ffffb5e29984 in collect_object (builder=builder@entry=0xffffc777c0b8, context=context@entry=0xaaaaee0192c0 [GtkAtSpiContext], self=0xaaaaef1c20a0 [GtkAtSpiCache])
at ../../../gtk/a11y/gtkatspicache.c:144
#4 0x0000ffffb5e2a37c in emit_add_accessible (context=0xaaaaee0192c0 [GtkAtSpiContext], self=0xaaaaef1c20a0 [GtkAtSpiCache]) at ../../../gtk/a11y/gtkatspicache.c:234
#5 gtk_at_spi_cache_add_context (self=0xaaaaef1c20a0 [GtkAtSpiCache], context=0xaaaaee0192c0 [GtkAtSpiContext]) at ../../../gtk/a11y/gtkatspicache.c:437
#6 0x0000ffffb5b1bb18 in gtk_at_context_realize (self=0xaaaaee0192c0 [GtkAtSpiContext]) at ../../../gtk/gtkatcontext.h:36
#7 gtk_at_context_realize (self=0xaaaaee0192c0 [GtkAtSpiContext]) at ../../../gtk/gtkatcontext.c:655
#8 gtk_at_context_platform_changed (self=0xaaaaee0192c0 [GtkAtSpiContext], change=GTK_ACCESSIBLE_PLATFORM_CHANGE_FOCUSED) at ../../../gtk/gtkatcontext.c:1168
#9 0x0000ffffb5b080d8 in gtk_accessible_platform_changed (self=<optimized out>, change=change@entry=GTK_ACCESSIBLE_PLATFORM_CHANGE_FOCUSED) at ../../../gtk/gtkaccessible.c:695
#10 0x0000ffffb5d6afe0 in gtk_widget_set_has_focus (widget=0xaaaaee022260 [AdwComboRow], has_focus=<optimized out>) at ../../../gtk/gtkwidget.c:10477
#11 0x0000ffffb5d7eb8c in gtk_window_root_set_focus (root=<optimized out>, focus=0xaaaaee022260 [AdwComboRow]) at ../../../gtk/gtkwindow.c:2042
#12 0x0000ffffb5d5e5a0 in gtk_widget_grab_focus_self (widget=widget@entry=0xaaaaee022260 [AdwComboRow]) at ../../../gtk/gtkwidget.c:4908
#13 0x0000ffffb5c2253c in gtk_list_box_row_grab_focus (widget=0xaaaaee022260 [AdwComboRow]) at ../../../gtk/gtklistbox.c:3500
#14 0x0000ffffb5c20340 in gtk_list_box_update_cursor (box=box@entry=0xaaaaedf944b0 [GtkListBox], row=row@entry=0xaaaaee022260 [AdwComboRow], grab_focus=grab_focus@entry=1) at ../../../gtk/gtklistbox.c:1574
#15 0x0000ffffb5c25de8 in gtk_list_box_select_and_activate_full (grab_focus=1, row=0xaaaaee022260 [AdwComboRow], box=0xaaaaedf944b0 [GtkListBox]) at ../../../gtk/gtklistbox.c:1833
#16 gtk_list_box_select_and_activate_full (grab_focus=1, row=0xaaaaee022260 [AdwComboRow], box=0xaaaaedf944b0 [GtkListBox]) at ../../../gtk/gtklistbox.c:1826
#17 gtk_list_box_click_gesture_released (gesture=0xaaaaedf98460 [GtkGestureClick], n_press=<optimized out>, x=<optimized out>, y=23.5, box=0xaaaaedf944b0 [GtkListBox]) at ../../../gtk/gtklistbox.c:1896
#18 0x0000ffffb5af79b4 in _gtk_marshal_VOID__INT_DOUBLE_DOUBLEv
(closure=<optimized out>, return_value=<optimized out>, instance=<optimized out>, args=..., marshal_data=<optimized out>, n_params=<optimized out>, param_types=<optimized out>) at gtk/gtkmarshalers.c:5445
#19 0x0000ffffb6528274 in _g_closure_invoke_va
(closure=closure@entry=0xaaaaede85e70, return_value=return_value@entry=0x0, instance=instance@entry=0xaaaaedf98460, args=..., n_params=3, param_types=0xaaaaedec6c00) at ../../../gobject/gclosure.c:873
#20 0x0000ffffb6541c34 in g_signal_emit_valist (instance=instance@entry=0xaaaaedf98460, signal_id=<optimized out>, detail=detail@entry=0, var_args=...) at ../../../gobject/gsignal.c:3404
#21 0x0000ffffb6541e90 in g_signal_emit (instance=instance@entry=0xaaaaedf98460, signal_id=<optimized out>, detail=detail@entry=0) at ../../../gobject/gsignal.c:3551
#22 0x0000ffffb5be26d8 in gtk_gesture_click_end (gesture=0xaaaaedf98460 [GtkGestureClick], sequence=sequence@entry=0x1) at ../../../gtk/gtkgestureclick.c:276
#23 0x0000ffffb652b4bc in g_cclosure_marshal_VOID__BOXEDv
(closure=0xaaaaedf33590, return_value=<optimized out>, instance=0xaaaaedf98460, args=..., marshal_data=0xffffb5be25f0 <gtk_gesture_click_end>, n_params=<optimized out>, param_types=0xaaaaede8ccd0)
at ../../../gobject/gmarshal.c:1686
#24 0x0000ffffb6526444 in g_type_class_meta_marshalv (closure=<optimized out>, return_value=<optimized out>, instance=<optimized out>, args=#25 0x0000ffffb6528274 in _g_closure_invoke_va
(closure=closure@entry=0xaaaaedf33590, return_value=0x0, return_value@entry=0xaaaaede36700, instance=instance@entry=0xaaaaedf98460, args=..., n_params=1, param_types=0xaaaaede8ccd0)
at ../../../gobject/gclosure.c:873
#26 0x0000ffffb6541c34 in g_signal_emit_valist (instance=instance@entry=0xaaaaedf98460, signal_id=<optimized out>, detail=detail@entry=0, var_args=...) at ../../../gobject/gsignal.c:3404
#27 0x0000ffffb6541e90 in g_signal_emit (instance=instance@entry=0xaaaaedf98460, signal_id=<optimized out>, detail=detail@entry=0) at ../../../gobject/gsignal.c:3551
#28 0x0000ffffb5bdea0c in _gtk_gesture_set_recognized (sequence=0x1, recognized=0, gesture=0xaaaaedf98460 [GtkGestureClick]) at ../../../gtk/gtkgesture.c:339
#29 _gtk_gesture_check_recognized (gesture=gesture@entry=0xaaaaedf98460 [GtkGestureClick], sequence=sequence@entry=0x1) at ../../../gtk/gtkgesture.c:380
#30 0x0000ffffb5be0554 in gtk_gesture_handle_event (controller=<optimized out>, event=0xffffa00c78c0 [GdkTouchEvent], x=316, y=23.5) at ../../../gtk/gtkgesture.c:678
#31 0x0000ffffb5be3e9c in gtk_gesture_single_handle_event (controller=0xaaaaedf98460 [GtkGestureClick], event=0xffffa00c78c0 [GdkTouchEvent], x=316, y=23.5) at ../../../gtk/gtkgesturesingle.c:227
#32 0x0000ffffb5bacd8c in gtk_event_controller_handle_event
(controller=controller@entry=0xaaaaedf98460 [GtkGestureClick], event=event@entry=0xffffa00c78c0 [GdkTouchEvent], target=target@entry=0xaaaaedf99790 [GtkImage], x=x@entry=316, y=y@entry=23.5)
at ../../../gtk/gtkeventcontroller.c:369
#33 0x0000ffffb5d617c8 in gtk_widget_run_controllers
(widget=widget@entry=0xaaaaedf944b0 [GtkListBox], event=event@entry=0xffffa00c78c0 [GdkTouchEvent], target=target@entry=0xaaaaedf99790 [GtkImage], x=316, y=23.5, phase=phase@entry=GTK_PHASE_BUBBLE)
at ../../../gtk/gtkwidget.c:4558
#34 0x0000ffffb5d69958 in gtk_widget_event (widget=widget@entry=0xaaaaedf944b0 [GtkListBox], event=event@entry=0xffffa00c78c0 [GdkTouchEvent], target=target@entry=0xaaaaedf99790 [GtkImage])
at ../../../gtk/gtkwidget.c:4752
#35 0x0000ffffb5c351cc in gtk_propagate_event_internal (widget=0xaaaaedf944b0 [GtkListBox], widget@entry=0xaaaaedf99790 [GtkImage], event=event@entry=0xffffa00c78c0 [GdkTouchEvent], topmost=<optimized out>)
at ../../../gtk/gtkmain.c:1899
#36 0x0000ffffb5c35270 in gtk_propagate_event (widget=widget@entry=0xaaaaedf99790 [GtkImage], event=event@entry=0xffffa00c78c0 [GdkTouchEvent]) at ../../../gtk/gtkmain.c:1949
#37 0x0000ffffb5c3590c in gtk_main_do_event (event=0xffffa00c78c0 [GdkTouchEvent]) at ../../../gtk/gtkmain.c:1641
#38 0x0000ffffb5d76230 in surface_event (surface=<optimized out>, event=<optimized out>, widget=<optimized out>) at ../../../gtk/gtkwindow.c:4737
#39 0x0000ffffb5e6a164 in _gdk_marshal_BOOLEAN__POINTERv
(closure=closure@entry=0xaaaaef09f420, return_value=return_value@entry=0xffffc777d158, instance=instance@entry=0xaaaaee086360, args=..., marshal_data=marshal_data@entry=0x0, n_params=n_params@entry=1, param_types=param_types@entry=0xaaaaee1c0c40) at gdk/gdkmarshalers.c:302
#40 0x0000ffffb5e967b8 in gdk_surface_event_marshallerv (closure=0xaaaaef09f420, return_value=0xffffc777d158, instance=0xaaaaee086360, args=..., marshal_data=0x0, n_params=1, param_types=0xaaaaee1c0c40)
at ../../../gdk/gdksurface.c:451
#41 0x0000ffffb6528274 in _g_closure_invoke_va (closure=closure@entry=0xaaaaef09f420, return_value=0xffffc777d158,
return_value@entry=0x0, instance=instance@entry=0xaaaaee086360, args=..., n_params=1, param_types=0xaaaaee1c0c40) at ../../../gobject/gclosure.c:873
#42 0x0000ffffb654110c in g_signal_emit_valist (instance=instance@entry=0xaaaaee086360, signal_id=<optimized out>, detail=detail@entry=0, var_args=...) at ../../../gobject/gsignal.c:3404
#43 0x0000ffffb6541e90 in g_signal_emit (instance=instance@entry=0xaaaaee086360, signal_id=<optimized out>, detail=detail@entry=0) at ../../../gobject/gsignal.c:3551
#44 0x0000ffffb5e9a4e4 in gdk_surface_handle_event (event=event@entry=0xffffa00c78c0 [GdkTouchEvent]) at ../../../gdk/gdksurface.c:2877
#45 0x0000ffffb5e810e4 in _gdk_event_emit (event=event@entry=0xffffa00c78c0 [GdkTouchEvent]) at ../../../gdk/gdkevents.c:490
#46 0x0000ffffb5eaaf94 in gdk_event_source_dispatch (base=<optimized out>, callback=<optimized out>, data=<optimized out>) at ../../../gdk/wayland/gdkeventsource.c:141
#47 0x0000ffffb6423bc8 in g_main_dispatch (context=0xaaaaeddf2260) at ../../../glib/gmain.c:3325
#48 g_main_context_dispatch (context=0xaaaaeddf2260) at ../../../glib/gmain.c:4043
#49 0x0000ffffb6423e5c in g_main_context_iterate (context=context@entry=0xaaaaeddf2260, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:4119
#50 0x0000ffffb6423f24 in g_main_context_iteration (context=context@entry=0xaaaaeddf2260, may_block=may_block@entry=1) at ../../../glib/gmain.c:4184
#51 0x0000ffffb6671ef8 in g_application_run (application=0xaaaaeddea100 [MobileSettingsApplication], argc=<optimized out>, argv=0xffffc777d668) at ../../../gio/gapplication.c:2559
#52 0x0000aaaad8832d44 in main (argc=1, argv=0xffffc777d668) at ../src/main.c:53
(gdb) quit
@alexander.mikhaylenko does that maybe ring a bell?