Forum > GTK
Error in Sway
(1/1)
AlexTP:
There's this error on gtk2-app startup when run on the latest Fedora Sway.
Sway is a Wayland compositor/window manager.
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---[user@pc ~]$ cudatext (cudatext:2440): Gtk-CRITICAL **: 12:50:03.417: IA__gtk_widget_hide: assertion 'GTK_IS_WIDGET (widget)' failed (cudatext:2440): Gtk-CRITICAL **: 12:50:03.417: IA__gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed
AmatCoder:
GTK2 apps don't support Wayland.
They should use the X server that is provided by XWayland.
1) Do you have installed XWayland? AFAIK Fedora split XWayland into its own standalone package.
2) Have you disable Xwayland on Sway?
3) Have you set the GDK_BACKEND environment variable? Forcing `GDK_BACKEND=wayland` in the environment is a bad idea.
AlexTP:
@AmatCoder
1) "Package "xorg-x11-server-Xwayland-22.1.9-2.fc38.x86_64" is already installed."
2) No
3) No
Bad Sector:
--- Quote from: AlexTP on May 31, 2023, 02:45:20 pm ---There's this error on gtk2-app startup when run on the latest Fedora Sway.
Sway is a Wayland compositor/window manager.
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---[user@pc ~]$ cudatext (cudatext:2440): Gtk-CRITICAL **: 12:50:03.417: IA__gtk_widget_hide: assertion 'GTK_IS_WIDGET (widget)' failed (cudatext:2440): Gtk-CRITICAL **: 12:50:03.417: IA__gtk_widget_destroy: assertion 'GTK_IS_WIDGET (widget)' failed
--- End quote ---
These seem to be LCL gtk2 backend issues caused by using an invalid (most likely freed) widget, so try to build LCL and the application with full debug symbols and then run it with
--- Code: ---$ G_DEBUG=fatal-criticals gdb ./cudatext
--- End code ---
This will cause a break when the first Gtk-CRITICAL assertion is found so then you can use the bt command in gdb to get the callstack which will tell you exactly where LCL makes the call with the invalid widget.
Navigation
[0] Message Index