Bug 150432 - Startup of app in Wayland is throwing errors: GDK_IS_WAYLAND_WINDOW assertion failure
Summary: Startup of app in Wayland is throwing errors: GDK_IS_WAYLAND_WINDOW assertion...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
6.1 all versions
Hardware: x86-64 (AMD64) Linux (All)
: low minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Wayland GTK3 console-noise
  Show dependency treegraph
 
Reported: 2022-08-16 07:35 UTC by giammi56
Modified: 2023-04-20 11:31 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description giammi56 2022-08-16 07:35:28 UTC
Description:
When lunching Libreoffice from terminal, I see the following errors:

me:~$ libreoffice --writer

(soffice:231398): Gtk-WARNING **: 09:18:33.050: Theme parsing error: gtk.css:18:10: 'headerbar' is not a valid property name

(soffice:231398): Gtk-WARNING **: 09:18:33.050: Theme parsing error: gtk.css:25:10: 'headerbar' is not a valid property name

(soffice:231398): Gtk-WARNING **: 09:18:33.050: Theme parsing error: gtk.css:34:0: Expected semicolon

(soffice:231398): Gtk-WARNING **: 09:18:33.050: Theme parsing error: gtk.css:40:0: Expected semicolon

(soffice:231398): Gtk-WARNING **: 09:18:33.050: Theme parsing error: gtk.css:45:6: 'window' is not a valid property name

(soffice:231398): Gdk-CRITICAL **: 09:18:33.184: gdk_wayland_window_set_dbus_properties_libgtk_only: assertion 'GDK_IS_WAYLAND_WINDOW (window)' failed

(libreoffice-startcenter:231398): Gdk-CRITICAL **: 09:18:33.219: gdk_wayland_window_set_dbus_properties_libgtk_only: assertion 'GDK_IS_WAYLAND_WINDOW (window)' failed

(soffice:231398): Gdk-CRITICAL **: 09:18:34.503: gdk_wayland_window_set_dbus_properties_libgtk_only: assertion 'GDK_IS_WAYLAND_WINDOW (window)' failed
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

(soffice:231398): Gdk-CRITICAL **: 09:18:38.766: gdk_wayland_window_set_dbus_properties_libgtk_only: assertion 'GDK_IS_WAYLAND_WINDOW (window)' failed

(soffice:231398): Gdk-CRITICAL **: 09:18:38.860: gdk_wayland_window_set_dbus_properties_libgtk_only: assertion 'GDK_IS_WAYLAND_WINDOW (window)' failed

(soffice:231398): Gdk-CRITICAL **: 09:18:38.968: gdk_wayland_window_set_dbus_properties_libgtk_only: assertion 'GDK_IS_WAYLAND_WINDOW (window)' failed

(soffice:231398): Gdk-CRITICAL **: 09:18:38.971: gdk_wayland_window_set_dbus_properties_libgtk_only: assertion 'GDK_IS_WAYLAND_WINDOW (window)' failed

1. The icon shown in the dock is the generic LibreOffice icon, not the one specific to the invoked program.
2. There is for a brief moment a prompt with the LibreOffice log, but it is so fast I can't read.


Steps to Reproduce:
1. Open LibreOffice from terminal (or clicking an icon) in Wayland.

Actual Results:
1. Open LibreOffice from terminal (or clicking an icon) in Wayland.

Expected Results:
I expected, as in Xorg, that each LibreOffice app should be displayed separately and no error should be shown when started.


Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
OS: Ubuntu 20.04.4 LTS x86_64 
Kernel: 5.15.0-46-generic 
Shell bash 5.0.17 
DE: GNOME 
WM: Mutter 
Terminal: gnome-terminal 
CPU: Intel i7-4910MQ (8) @ 2.900GHz 
GPU: NVIDIA GeForce GT 730M 
GPU: Intel 4th Gen Core Processor 
Memory: 4697MiB / 15879MiB
Comment 1 giammi56 2022-08-16 09:39:07 UTC
Normal behaviour with Xorg. Nor critical error reported, the icon is correctly assigned.
Comment 2 Timur 2022-09-05 09:09:31 UTC
No repro in Ubuntu 22.04 with apt LO 7.3.5. 
Please paste here info from Help-About.
This may be some local issue of yours. 
Please try to pinpoint yourself and consider upgrading to 22.04.
Comment 3 Stéphane Guillou (stragu) 2022-12-01 11:26:10 UTC
I also see the assertion failures (but not theme parsing issues) on Ubuntu 20.04 when logged into a Wayland session and running LO 7.4.3 from terminal:

(soffice:28494): Gdk-CRITICAL **: 11:56:22.379: gdk_wayland_window_set_dbus_properties_libgtk_only: assertion 'GDK_IS_WAYLAND_WINDOW (window)' failed

It pops up every time a new dialog / window is opened.

I can also see that all components are grouped under the same LibreOffice icon in the dock (and show an erroneous version number in the tooltip: the earliest version installed, 6.3, instead of the one running, 7.4).

Version:

Version: 7.4.3.2 / LibreOffice Community
Build ID: 1048a8393ae2eeec98dff31b5c133c5f1d08b890
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

and a build from today:

Version: 7.5.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 1a5d548b96d86ad7ca04c2b23dc18517a538a998
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

GNOME 3.36.8
Ubuntu 20.04.5

I can already see the same warnings in 6.3:

Version: 6.3.6.2
Build ID: 2196df99b074d8a661f4036fca8fa0cbfa33a497
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3; 
Locale: en-AU (en_AU.UTF-8); UI-Language: en-US
Calc: threaded
Comment 4 Stéphane Guillou (stragu) 2023-02-24 16:18:00 UTC Comment hidden (obsolete)
Comment 5 Stéphane Guillou (stragu) 2023-02-24 22:25:06 UTC
(In reply to Stéphane Guillou (stragu) from comment #4)
> I'm going to call this a regression as I don't see it in 6.1

I take that back, I can also see the failed assertion in linux-64-6.1 bibisect repo's oldest.
Comment 6 Stéphane Guillou (stragu) 2023-04-20 11:07:12 UTC
Caolán, gdk_wayland_window_set_dbus_properties_libgtk_only() was first used in vcl/unx/gtk/gtksalframe.cxx with commit 56972b9899b2ec3fdc8c35cb293e0a232d7ffca3.
Any thoughts on this? Maybe tied to my slightly older version of gtk on Ubuntu 20.04?

libgtk-3-0:
  Installed: 3.24.20-0ubuntu1.1

Still seeing the failed assertion in a master build from today.
Comment 7 Caolán McNamara 2023-04-20 11:31:31 UTC
I start the gtk3 version of libreoffice under wayland (in Fedora) about 3000 times a day :-) and I don't see it so I don't know what going on there.

Icons getting grouped together might be the old problem of us reusing toplevel windows for different applications which was resolved with the addition of gdk_wayland_window_set_application_id at https://gitlab.gnome.org/GNOME/gtk/-/issues/767