[grisbi-bugs] [Grisbi 0002270]: Question about wayland support (gdk_set_allowed_backends)

Grisbi Bug Tracker bugtracker at grisbi.org
Ven 23 Oct 18:54:42 CEST 2026


The following issue has been RESOLVED. 
====================================================================== 
https://www.grisbi.org/bugsreports/view.php?id=2270 
====================================================================== 
Reported By:                Fabiolla
Assigned To:                LudovicRousseau
====================================================================== 
Project:                    Grisbi
Issue ID:                   2270
Category:                   Main
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     resolved
OS:                         Autre Linux 
Version exact Grisbi:        
Version OS:                  
Version GTK:                3.24.38 
Resolution:                 fixed
Fixed in Version:           development (git)
====================================================================== 
Date Submitted:             2023-11-04 13:31 CET
Last Modified:              2026-10-23 18:54 CEST
====================================================================== 
Summary:                    Question about wayland support
(gdk_set_allowed_backends)
Description: 
Hi,
current is in in main.c wayland disabeld
#ifdef GDK_WINDOWING_WAYLAND
	#ifdef GDK_WINDOWING_X11
		gdk_set_allowed_backends ("x11");
	#else
		return (1);
	#endif
#endif

Are ther any plans to enable wayland?
I've tried it on hyprland with changing gdk_set_allowed_backends to:
gdk_set_allowed_backends("wayland,x11") and at least im seams to work.
Without wayland in gdk_set_allowed_backends Grisbi locks hard in opening/closing
dialogs (e.g. Settings)
====================================================================== 

---------------------------------------------------------------------- 
 (0007248) LudovicRousseau (administrator) - 2025-06-09 18:05
 https://www.grisbi.org/bugsreports/view.php?id=2270#c7248 
---------------------------------------------------------------------- 
I still get the crash even with gdk_set_allowed_backends ("wayland,x11");

- launch Grisbi
- open a Grisibi account file
- open the Preferences

I have no crash if I open the Preferences with NO account file opened.

The gdb trace is:
(grisbi:21950): Gdk-CRITICAL **: 18:04:49.528: gdk_window_get_display: assertion
'GDK_IS_WINDOW (window)' failed

Thread 1 "grisbi" received signal SIGSEGV, Segmentation fault.
0x00007ffff7365dd5 in gdk_wayland_display_get_selection (
    display=display at entry=0x0)
    at ../../../gdk/wayland/gdkdisplay-wayland.c:1451
Download failed: Argument invalide.  Continuing without source file
./debian/build/deb/../../../gdk/wayland/gdkdisplay-wayland.c.
1451	../../../gdk/wayland/gdkdisplay-wayland.c: Aucun fichier ou dossier de ce
type.
(gdb) bt
#0  0x00007ffff7365dd5 in gdk_wayland_display_get_selection
    (display=display at entry=0x0)
    at ../../../gdk/wayland/gdkdisplay-wayland.c:1451
https://www.grisbi.org/bugsreports/view.php?id=1  0x00007ffff736ed9c in
gdk_wayland_selection_add_targets_libgtk_only
    (window=0x0, selection=selection at entry=0x1, ntargets=ntargets at entry=1,
targets=targets at entry=0x7fffffffc128)
    at ../../../gdk/wayland/gdkselection-wayland.c:1793
https://www.grisbi.org/bugsreports/view.php?id=2  0x00007ffff769eb05 in
gtk_selection_add_target
    (widget=widget at entry=0x55555662b390 [GtkTreeView],
selection=selection at entry=0x1, target=<optimized out>, target at entry=0x4,
info=info at entry=1)
    at ../../../gtk/gtkselection.c:973
https://www.grisbi.org/bugsreports/view.php?id=3  0x0000555555645bc2 in
prefs_page_accueil_setup_accueil_page
    (page=<optimized out>) at ../src/prefs/prefs_page_accueil.c:353
https://www.grisbi.org/bugsreports/view.php?id=4  prefs_page_accueil_init
(page=<optimized out>)
    at ../src/prefs/prefs_page_accueil.c:373
[...] 

---------------------------------------------------------------------- 
 (0007614) LudovicRousseau (administrator) - 2026-10-19 22:25
 https://www.grisbi.org/bugsreports/view.php?id=2270#c7614 
---------------------------------------------------------------------- 
I tried again on Ubuntu 26.04 which uses Wayland by default. I get no crash with
Grisbi 3.92.0.
Can you confirm it also works for you?

I am surprised because the code still contains the same:
#ifdef GDK_WINDOWING_WAYLAND
	#ifdef GDK_WINDOWING_X11
		gdk_set_allowed_backends ("x11");
	#else
		return (1);
	#endif
#endif 

---------------------------------------------------------------------- 
 (0007628) LudovicRousseau (administrator) - 2026-10-23 15:11
 https://www.grisbi.org/bugsreports/view.php?id=2270#c7628 
---------------------------------------------------------------------- 
I tried again on Debian 13 + GNOME 48 using Wayland, and I still get the crash
if I remove the gdk_set_allowed_backends() call. 

---------------------------------------------------------------------- 
 (0007629) LudovicRousseau (administrator) - 2026-10-23 18:54
 https://www.grisbi.org/bugsreports/view.php?id=2270#c7629 
---------------------------------------------------------------------- 
This should be fixed in
https://github.com/grisbi/grisbi/commit/0da4112e8e11cd54e291b907deee46ac397576b9

Thanks for your patience. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2023-11-04 13:31 Fabiolla       New Issue                                    
2025-05-13 22:07 LudovicRousseauAssigned To               => LudovicRousseau 
2025-05-13 22:07 LudovicRousseauStatus                   new => assigned     
2025-06-09 18:05 LudovicRousseauNote Added: 0007248                          
2026-10-19 22:25 LudovicRousseauNote Added: 0007614                          
2026-10-23 15:11 LudovicRousseauNote Added: 0007628                          
2026-10-23 18:54 LudovicRousseauStatus                   assigned => resolved
2026-10-23 18:54 LudovicRousseauResolution               open => fixed       
2026-10-23 18:54 LudovicRousseauFixed in Version          => development (git)
2026-10-23 18:54 LudovicRousseauNote Added: 0007629                          
======================================================================



Plus d'informations sur la liste de diffusion bugsreports