rednotebook icon indicating copy to clipboard operation
rednotebook copied to clipboard

assertion 'GDK_IS_WAYLAND_WINDOW (window)' failed

Open sjg20 opened this issue 9 months ago • 9 comments

Describe the bug

I cannot run it anymore now that I switched to wayland.

To Reproduce

  1. echo $XDG_SESSION_TYPE wayland

  2. run rednotebook

  3. See error

Expected behavior I expect it to start

Screenshots

  • RedNotebook version : Versions: $ dpkg -l rednotebook Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-==============-=================================-============-====================> ii rednotebook 2.38-0~202502232111~ubuntu24.04.1 all Modern desktop diary>
  • Operating system and version: Ubuntu 24.04.1 LTS

Log output when reproducing bug

2025-02-28 06:26:25,303 INFO Writing log to file "/home/sglass/.rednotebook/rednotebook.log" 2025-02-28 06:26:25,303 INFO System encoding: utf-8 2025-02-28 06:26:25,303 INFO Language code: en_NZ 2025-02-28 06:26:25,310 INFO Spell checking languages: ['en', 'en_AU', 'en_CA', 'en_GB', 'en_US', 'en_ZA'] 2025-02-28 06:26:25,311 INFO Spell checking dictionaries: [('en', <Enchant: Aspell Provider>), ('en_AU', <Enchant: Aspell Provider>), ('en_CA', <Enchant: Aspell Provider>), ('en_GB', <Enchant: Aspell Provider>), ('en_US', <Enchant: Aspell Provider>), ('en_ZA', <Enchant: Hunspell Provider>)] 2025-02-28 06:26:25,373 INFO Using LibYAML 2025-02-28 06:26:25,374 INFO Connected Signals: [<Signals.SIGHUP: 1>, <Signals.SIGINT: 2>, <Signals.SIGQUIT: 3>, <Signals.SIGABRT: 6>, <Signals.SIGTERM: 15>, <Signals.SIGTSTP: 20>] 2025-02-28 06:26:25,375 INFO Running in portable mode: False 2025-02-28 06:26:25,375 INFO First Start: False 2025-02-28 06:26:25,375 INFO RedNotebook version: 2.38 2025-02-28 06:26:25,376 INFO System info: machine: x86_64, platform: Linux-6.8.0-52-generic-x86_64-with-glibc2.39, processor: x86_64, python_version: 3.12.3, release: 6.8.0-52-generic, system: Linux, GTK: (3, 24, 41), Glib: (2, 80, 0), PyGObject: (3, 48, 2), YAML: 6.0.1, WebKit2: (2, 46, 5) 2025-02-28 06:26:25,476 DEBUG Default font: Ubuntu 11 2025-02-28 06:26:25,477 DEBUG Default size: 11.0

$ rednotebook INFO Using GtkSourceView 4 Adding /usr/share/rednotebook to sys.path INFO Available versions of the WebKit2 namespace: ['4.0', '4.1'] INFO Loaded version of the WebKit2 namespace: 4.1 INFO Locale path: /usr/share/locale 2025-02-28 06:26:25,303 INFO Writing log to file "/home/sglass/.rednotebook/rednotebook.log" 2025-02-28 06:26:25,303 INFO System encoding: utf-8 2025-02-28 06:26:25,303 INFO Language code: en_NZ 2025-02-28 06:26:25,310 INFO Spell checking languages: ['en', 'en_AU', 'en_CA', 'en_GB', 'en_US', 'en_ZA'] 2025-02-28 06:26:25,311 INFO Spell checking dictionaries: [('en', <Enchant: Aspell Provider>), ('en_AU', <Enchant: Aspell Provider>), ('en_CA', <Enchant: Aspell Provider>), ('en_GB', <Enchant: Aspell Provider>), ('en_US', <Enchant: Aspell Provider>), ('en_ZA', <Enchant: Hunspell Provider>)] 2025-02-28 06:26:25,373 INFO Using LibYAML 2025-02-28 06:26:25,374 INFO Connected Signals: [<Signals.SIGHUP: 1>, <Signals.SIGINT: 2>, <Signals.SIGQUIT: 3>, <Signals.SIGABRT: 6>, <Signals.SIGTERM: 15>, <Signals.SIGTSTP: 20>] 2025-02-28 06:26:25,375 INFO Running in portable mode: False 2025-02-28 06:26:25,375 INFO First Start: False 2025-02-28 06:26:25,375 INFO RedNotebook version: 2.38 2025-02-28 06:26:25,376 INFO System info: machine: x86_64, platform: Linux-6.8.0-52-generic-x86_64-with-glibc2.39, processor: x86_64, python_version: 3.12.3, release: 6.8.0-52-generic, system: Linux, GTK: (3, 24, 41), Glib: (2, 80, 0), PyGObject: (3, 48, 2), YAML: 6.0.1, WebKit2: (2, 46, 5) 2025-02-28 06:26:25,476 DEBUG Default font: Ubuntu 11 2025-02-28 06:26:25,477 DEBUG Default size: 11.0

(rednotebook:1366309): Gdk-CRITICAL **: 06:26:25.507: gdk_wayland_window_set_dbus_properties_libgtk_only: assertion 'GDK_IS_WAYLAND_WINDOW (window)' failed

(rednotebook:1366309): Gdk-CRITICAL **: 06:26:25.533: gdk_wayland_window_set_dbus_properties_libgtk_only: assertion 'GDK_IS_WAYLAND_WINDOW (window)' failed Segmentation fault (core dumped)

sjg20 avatar Feb 28 '25 13:02 sjg20

how did you install? I am running Fedora (wayland) and installed it as flatpak (via flathub)

Image

github2099 avatar Mar 06 '25 01:03 github2099

I installed on Ubuntu 24.04

ii rednotebook 2.38-0~202502232111~ubuntu24.04.1 all Modern desktop diary and pe>

I remember I had the same problem before though, with 22.04

sjg20 avatar Mar 06 '25 02:03 sjg20

I am still getting this error. But I found that I can use this:

GDK_BACKEND=x11 rednotebook

as a workaround. No error, and now I can use wayland

sjg20 avatar Jun 03 '25 10:06 sjg20

I pushed a change for this (hopefully). Can you run from source to see if the error is fixed (even without the workaround)? (Clone the repo and run ./run).

jendrikseipp avatar Aug 26 '25 09:08 jendrikseipp

Thanks for looking at it! Sorry, no I see the same problem with:

a28c109c (HEAD -> master, origin/master, origin/HEAD) Fix X11 forwarding by adding WebKit2 workarounds (#847)

gdb-multiarch --args python3 rednotebook/journal.py GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git Copyright (C) 2024 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: https://www.gnu.org/software/gdb/bugs/. Find the GDB manual and other documentation resources online at: http://www.gnu.org/software/gdb/documentation/.

For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from python3... (No debugging symbols found in python3) (gdb) r Starting program: /usr/bin/python3 rednotebook/journal.py [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libglib-2.0.so.0 warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgobject-2.0.so.0 warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgmodule-2.0.so.0 warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libbrotlidec.so.1 warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libbrotlicommon.so.1 INFO Using GtkSourceView 4 Adding /scratch/sglass/rednotebook to sys.path INFO Available versions of the WebKit2 namespace: ['4.0', '4.1'] [Detaching after vfork from child process 2418185] warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgio-2.0.so.0 warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0 warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgdk-3.so.0 [New Thread 0x7ffff5b096c0 (LWP 2418194)] [New Thread 0x7ffff53086c0 (LWP 2418195)] [New Thread 0x7ffff4b076c0 (LWP 2418196)] [New Thread 0x7fffe7fff6c0 (LWP 2418197)] [New Thread 0x7fffe77fe6c0 (LWP 2418198)] warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libcap.so.2 warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgnomekbdui.so.8 warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgnomekbd.so.8 warning: could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so warning: could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so INFO Locale path: /usr/share/locale 2025-09-19 11:51:37,210 INFO Writing log to file "/home/sglass/.rednotebook/rednotebook.log" 2025-09-19 11:51:37,210 INFO System encoding: utf-8 2025-09-19 11:51:37,210 INFO Language code: en_NZ [Detaching after vfork from child process 2418208] warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libenchant-2.so.2 warning: could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/enchant-2/enchant_hspell.so warning: could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/enchant-2/enchant_aspell.so warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libaspell.so.15 warning: could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/enchant-2/enchant_hunspell.so 2025-09-19 11:51:37,223 INFO Spell checking languages: ['en', 'en_AU', 'en_CA', 'en_GB', 'en_US', 'en_ZA'] 2025-09-19 11:51:37,223 INFO Spell checking dictionaries: [('en', <Enchant: Aspell Provider>), ('en_AU', <Enchant: Aspell Provider>), ('en_CA', <Enchant: Aspell Provider>), ('en_GB', <Enchant: Aspell Provider>), ('en_US', <Enchant: Aspell Provider>), ('en_ZA', <Enchant: Hunspell Provider>)] 2025-09-19 11:51:37,231 INFO Using LibYAML warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libxslt.so.1 warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libwoff2dec.so.1.0.2 warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgstallocators-1.0.so.0 warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgstapp-1.0.so.0 warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgstbase-1.0.so.0 warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgstreamer-1.0.so.0 warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgstpbutils-1.0.so.0 warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgstaudio-1.0.so.0 warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgsttag-1.0.so.0 warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgstvideo-1.0.so.0 warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgstfft-1.0.so.0 warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libgbm.so.1 warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libwoff2common.so.1.0.2 warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/liborc-0.4.so.0 [New Thread 0x7fffca7ff6c0 (LWP 2418209)] 2025-09-19 11:51:37,359 INFO Connected Signals: [<Signals.SIGHUP: 1>, <Signals.SIGINT: 2>, <Signals.SIGQUIT: 3>, <Signals.SIGABRT: 6>, <Signals.SIGTERM: 15>, <Signals.SIGTSTP: 20>] 2025-09-19 11:51:37,360 INFO Running in portable mode: False 2025-09-19 11:51:37,361 INFO First Start: False 2025-09-19 11:51:37,361 INFO RedNotebook version: 2.41 [Detaching after vfork from child process 2418210] 2025-09-19 11:51:37,362 INFO System info: machine: x86_64, platform: Linux-6.8.0-78-generic-x86_64-with-glibc2.39, processor: x86_64, python_version: 3.12.3, release: 6.8.0-78-generic, system: Linux, GTK: (3, 24, 41), Glib: (2, 80, 0), PyGObject: (3, 48, 2), YAML: 6.0.1, WebKit2: (2, 48, 5) [New Thread 0x7fff85dfd6c0 (LWP 2418211)] warning: could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/gio/modules/libgioremote-volume-monitor.so [New Thread 0x7fff84fff6c0 (LWP 2418213)] [New Thread 0x7fff7ffff6c0 (LWP 2418214)] [New Thread 0x7fff7f7fe6c0 (LWP 2418215)] [New Thread 0x7fff7effd6c0 (LWP 2418216)] warning: could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules/im-wayland.so 2025-09-19 11:51:37,460 DEBUG Default font: Ubuntu 11 2025-09-19 11:51:37,460 DEBUG Default size: 11.0 warning: could not find '.gnu_debugaltlink' file for /lib/x86_64-linux-gnu/libtinfo.so.6

(journal.py:2418182): Gdk-CRITICAL **: 11:51:37.587: gdk_wayland_window_set_dbus_properties_libgtk_only: assertion 'GDK_IS_WAYLAND_WINDOW (window)' failed [New Thread 0x7fff7dfff6c0 (LWP 2418217)] [New Thread 0x7fff7d7fe6c0 (LWP 2418218)] [New Thread 0x7fff7cffd6c0 (LWP 2418219)] [New Thread 0x7fff619ff6c0 (LWP 2418220)] [New Thread 0x7fff611fe6c0 (LWP 2418221)] [New Thread 0x7fff609fd6c0 (LWP 2418222)] [New Thread 0x7fff4bfff6c0 (LWP 2418223)] [New Thread 0x7fff4b7fe6c0 (LWP 2418224)] [New Thread 0x7fff4affd6c0 (LWP 2418225)] [New Thread 0x7fff4a7fc6c0 (LWP 2418226)] [New Thread 0x7fff49ffb6c0 (LWP 2418227)] [New Thread 0x7fff497fa6c0 (LWP 2418228)] [New Thread 0x7fff48ff96c0 (LWP 2418229)] [Thread 0x7fff4a7fc6c0 (LWP 2418226) exited] [Thread 0x7fff4affd6c0 (LWP 2418225) exited] [Thread 0x7fff4b7fe6c0 (LWP 2418224) exited] warning: could not find '.gnu_debugaltlink' file for /usr/lib/x86_64-linux-gnu/gbm/dri_gbm.so [New Thread 0x7fff4b7fe6c0 (LWP 2418230)] [New Thread 0x7fff4affd6c0 (LWP 2418231)] [New Thread 0x7fff4a7fc6c0 (LWP 2418232)] [New Thread 0x7fff27fff6c0 (LWP 2418233)] [New Thread 0x7fff277fe6c0 (LWP 2418234)] [New Thread 0x7fff26ffd6c0 (LWP 2418235)] [New Thread 0x7fff267fc6c0 (LWP 2418236)] [New Thread 0x7fff25ffb6c0 (LWP 2418237)] [New Thread 0x7fff257fa6c0 (LWP 2418238)] [New Thread 0x7fff24ff96c0 (LWP 2418239)] [New Thread 0x7fff07fff6c0 (LWP 2418240)] [New Thread 0x7fff077fe6c0 (LWP 2418241)] [Thread 0x7fff077fe6c0 (LWP 2418241) exited] [Thread 0x7fff07fff6c0 (LWP 2418240) exited] [Thread 0x7fff24ff96c0 (LWP 2418239) exited] [Thread 0x7fff257fa6c0 (LWP 2418238) exited] [Thread 0x7fff25ffb6c0 (LWP 2418237) exited] [Thread 0x7fff267fc6c0 (LWP 2418236) exited]

(journal.py:2418182): Gdk-CRITICAL **: 11:51:37.618: gdk_wayland_window_set_dbus_properties_libgtk_only: assertion 'GDK_IS_WAYLAND_WINDOW (window)' failed [New Thread 0x7fff267fc6c0 (LWP 2418242)] [New Thread 0x7fff25ffb6c0 (LWP 2418243)] [New Thread 0x7fff257fa6c0 (LWP 2418244)] [Thread 0x7fff257fa6c0 (LWP 2418244) exited] [Thread 0x7fff25ffb6c0 (LWP 2418243) exited] [Thread 0x7fff267fc6c0 (LWP 2418242) exited] [New Thread 0x7fff267fc6c0 (LWP 2418245)] [New Thread 0x7fff25ffb6c0 (LWP 2418246)] [New Thread 0x7fff257fa6c0 (LWP 2418247)] [Thread 0x7fff257fa6c0 (LWP 2418247) exited] [Detaching after vfork from child process 2418248] [Thread 0x7fff7f7fe6c0 (LWP 2418215) exited] [Thread 0x7fff7ffff6c0 (LWP 2418214) exited] [Thread 0x7fff84fff6c0 (LWP 2418213) exited] [Thread 0x7ffff4b076c0 (LWP 2418196) exited]

Thread 1 "python3" received signal SIGSEGV, Segmentation fault. 0x00007fffe67350d4 in ?? () from /lib/x86_64-linux-gnu/libgtk-3.so.0 (gdb)

sjg20 avatar Sep 19 '25 17:09 sjg20

Oh, I can't reopen this either. Shall I create a new issue?

sjg20 avatar Sep 19 '25 17:09 sjg20

If there is any way I can debug this, PLMK,

I am using X11 for now, partly because wayland has mini hangs after using Chrome/Claude a lot, but I do log out every few weeks.

sjg20 avatar Sep 19 '25 20:09 sjg20

Thanks for the follow-up! I pushed another change to the "master" branch. Can you please test the latest revision?

jendrikseipp avatar Sep 20 '25 10:09 jendrikseipp

Thanks for looking at this.

sglass@okaro:~/dev/rednotebook$ pe c29e848b (HEAD, origin/master, origin/HEAD) Pin innosetup version and only keep common language files. (#864) 1d744d6f Kathenas/Debian changes... (#863) 358e2194 Bump pyinstaller from 5.13.1 to 6.16.0 (#861) 98166370 Add changelog entry. 15117948 Replace deprecated symbols with modern alternatives. df7d0b5e Replace some old GTK API calls with newer equivalents. 990befaa Create is_wayland_session() function. cbca3370 Don't store/restore window position on Wayland. a28c109c Fix X11 forwarding by adding WebKit2 workarounds (#847) 93d76ece Remove traces of CEFPython.

./run INFO Using GtkSourceView 4 Adding /home/sglass/dev/rednotebook to sys.path INFO Available versions of the WebKit2 namespace: ['4.1'] INFO Locale path: /usr/share/locale 2025-10-13 07:40:05,086 INFO Writing log to file "/home/sglass/.rednotebook/rednotebook.log" 2025-10-13 07:40:05,086 INFO System encoding: utf-8 2025-10-13 07:40:05,086 INFO Language code: en_US 2025-10-13 07:40:05,099 INFO Spell checking languages: ['en', 'en_AU', 'en_CA', 'en_GB', 'en_US', 'en_ZA', 'fr', 'fr_BE', 'fr_CA', 'fr_CH', 'fr_FR', 'fr_LU', 'fr_MC'] 2025-10-13 07:40:05,099 INFO Spell checking dictionaries: [('en', <Enchant: Aspell Provider>), ('en_AU', <Enchant: Aspell Provider>), ('en_CA', <Enchant: Aspell Provider>), ('en_GB', <Enchant: Aspell Provider>), ('en_US', <Enchant: Aspell Provider>), ('en_ZA', <Enchant: Hunspell Provider>), ('fr', <Enchant: Hunspell Provider>), ('fr_BE', <Enchant: Hunspell Provider>), ('fr_CA', <Enchant: Hunspell Provider>), ('fr_CH', <Enchant: Hunspell Provider>), ('fr_FR', <Enchant: Hunspell Provider>), ('fr_LU', <Enchant: Hunspell Provider>), ('fr_MC', <Enchant: Hunspell Provider>)] 2025-10-13 07:40:05,119 INFO Using LibYAML 2025-10-13 07:40:05,218 INFO Connected Signals: [<Signals.SIGHUP: 1>, <Signals.SIGINT: 2>, <Signals.SIGQUIT: 3>, <Signals.SIGABRT: 6>, <Signals.SIGTERM: 15>, <Signals.SIGTSTP: 20>] 2025-10-13 07:40:05,221 INFO Running in portable mode: False 2025-10-13 07:40:05,221 INFO First Start: False 2025-10-13 07:40:05,221 INFO RedNotebook version: 2.41 2025-10-13 07:40:05,224 INFO System info: machine: x86_64, platform: Linux-6.8.0-1013-intel-x86_64-with-glibc2.39, processor: x86_64, python_version: 3.12.3, release: 6.8.0-1013-intel, system: Linux, GTK: (3, 24, 41), Glib: (2, 80, 0), PyGObject: (3, 48, 2), YAML: 6.0.1, WebKit2: (2, 48, 5) 2025-10-13 07:40:05,451 DEBUG Default font: Ubuntu Sans 11 2025-10-13 07:40:05,452 DEBUG Default size: 11.0

(journal.py:419760): Gdk-CRITICAL **: 07:40:05.490: gdk_wayland_window_set_dbus_properties_libgtk_only: assertion 'GDK_IS_WAYLAND_WINDOW (window)' failed

(journal.py:419760): Gdk-CRITICAL **: 07:40:05.545: gdk_wayland_window_set_dbus_properties_libgtk_only: assertion 'GDK_IS_WAYLAND_WINDOW (window)' failed

./run: line 20: 419760 Segmentation fault (core dumped) python3 rednotebook/journal.py "$@"

sjg20 avatar Oct 13 '25 06:10 sjg20