🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: grisbi.bugsreports
Article #30

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

#30
From: Grisbi Bug Tracker
Date: Fri, 23 Oct 2026 16:54
174 lines
10018 bytes
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@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@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@entry=0x1, ntargets=ntargets@entry=1,
targets=targets@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@entry=0x55555662b390 [GtkTreeView],
selection=selection@entry=0x1, target=<optimized out>, target@entry=0x4,
info=info@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                          
======================================================================
Technical Details
Message-ID: <mailman.3010.1792774489.1946.bugsreports@listes.grisbi.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.mb-net.net!open-news-network.org!news.gegeweb.eu!gegeweb.org!.POSTED.mail.gegeweb.local!not-for-mail
References: <370007871bce3b40941ca5d2e9233fa8@www.grisbi.org> <mPBp815UOwYi3V2VVaqzrfzlNYYSYSDLND98CaxOcA@www.grisbi.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.mb-net.net!open-news-network.org!news.gegeweb.eu!gegeweb.org!.POSTED.mail.gegeweb.local!not-for-mail
From: Grisbi Bug Tracker <bugtracker@grisbi.org>
Newsgroups: grisbi.bugsreports
Subject: [Grisbi 0002270]: Question about wayland support
 (gdk_set_allowed_backends)
Date: Fri, 23 Oct 2026 18:54:42 +0200
Organization: Gegeweb News Server
Lines: 174
Message-ID: <mailman.3010.1792774489.1946.bugsreports@listes.grisbi.org>
References: <370007871bce3b40941ca5d2e9233fa8@www.grisbi.org>
 <mPBp815UOwYi3V2VVaqzrfzlNYYSYSDLND98CaxOcA@www.grisbi.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: news.gegeweb.eu; posting-account="mailman@usenet.local"; posting-host="mail.gegeweb.local:10.0.0.25";
	logging-data="47762"; mail-complaints-to="abuse@gegeweb.eu"
Keywords: [Grisbi] Main
To: bugsreports@listes.grisbi.org
List-Archive: <http://listes.grisbi.org/pipermail/bugsreports/>
List-Help: <mailto:bugsreports-request@listes.grisbi.org?subject=help>
X-Mailer: PHPMailer 6.5.0 (https://github.com/PHPMailer/PHPMailer)
X-BeenThere: bugsreports@listes.grisbi.org
X-Auto-Response-Suppress: All
List-Id: Grisbi's bugs reports list <bugsreports.listes.grisbi.org>
X-Original-To: bugsreports@listes.grisbi.org
Return-Path: <webmaster@grisbi.org>
List-Post: <mailto:bugsreports@listes.grisbi.org>
List-Unsubscribe: <http://listes.grisbi.org/mailman/options/bugsreports>,
 <mailto:bugsreports-request@listes.grisbi.org?subject=unsubscribe>
Delivered-To: bugsreports@mail.gegeweb.eu
Cancel-Lock: sha256:cdadV1lyytpa5SZ92YuhIkG7L9C3KRHYfW7/5Op8LoU=
In-Reply-To: <370007871bce3b40941ca5d2e9233fa8@www.grisbi.org>
X-Mailman-Version: 2.1.29
X-Mailman-Original-Message-ID: <mPBp815UOwYi3V2VVaqzrfzlNYYSYSDLND98CaxOcA@www.grisbi.org>
Auto-Submitted: auto-generated
Precedence: list
List-Subscribe: <http://listes.grisbi.org/mailman/listinfo/bugsreports>,
 <mailto:bugsreports-request@listes.grisbi.org?subject=subscribe>