jendrikseipp / rednotebook

RedNotebook is a cross-platform journal
https://rednotebook.app
GNU General Public License v2.0
477 stars 108 forks source link

Fails to launch remotely with X11 forwarding #726

Open tedgin opened 8 months ago

tedgin commented 8 months ago

Describe the bug When I'm remotely connected to my Linux desktop, RedNotebook won't launch from the command line. Instead it exits with status code 133.

To Reproduce

  1. Connect to a remote host with X11 forwarding enabled (ssh -X remote.host.net).
  2. Attempt to launch RedNotebook (rednotebook).

Expected behavior I expect the RedNotebook GUI to open on my local computer.

Screenshots

? 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
2023-10-18 15:48:29,289 INFO     Writing log to file "/home/tedgin/.rednotebook/rednotebook.log"
2023-10-18 15:48:29,289 INFO     System encoding: utf-8
2023-10-18 15:48:29,289 INFO     Language code: en_US
2023-10-18 15:48:29,295 INFO     Spell checking languages: ['en', 'en_AU', 'en_CA', 'en_GB', 'en_US']
2023-10-18 15:48:29,295 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>)]
2023-10-18 15:48:29,445 INFO     Using LibYAML
2023-10-18 15:48:29,446 INFO     Connected Signals: [<Signals.SIGHUP: 1>, <Signals.SIGINT: 2>, <Signals.SIGQUIT: 3>, <Signals.SIGABRT: 6>, <Signals.SIGTERM: 15>, <Signals.SIGTSTP: 20>]
2023-10-18 15:48:29,921 INFO     Running in portable mode: False
2023-10-18 15:48:29,921 INFO     First Start: False
2023-10-18 15:48:29,921 INFO     RedNotebook version: 2.31
2023-10-18 15:48:29,922 INFO     System info: machine: x86_64, platform: Linux-6.2.0-34-generic-x86_64-with-glibc2.35, processor: x86_64, python_version: 3.10.12, release: 6.2.0-34-generic, system: Linux, GTK: (3, 24, 33), Glib: (2, 71, 3), PyGObject: (3, 42, 1), YAML: 5.4.1, WebKit2: (2, 42, 1)
2023-10-18 15:48:30,992 DEBUG    Default font: Ubuntu 11
2023-10-18 15:48:30,993 DEBUG    Default size: 11.0
libEGL warning: DRI3: failed to query the version
libEGL warning: DRI2: failed to authenticate

(rednotebook:479583): Gdk-ERROR **: 15:48:31.151: The program 'rednotebook' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadRequest (invalid request code or no such operation)'.
  (Details: serial 185 error_code 1 request_code 154 (unknown) minor_code 1)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the GDK_SYNCHRONIZE environment
   variable to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
fish: Job 1, 'rednotebook' terminated by signal SIGTRAP (Trace or breakpoint trap)
✗(133)

Versions:

Log output when reproducing bug

2023-10-18 15:48:29,289 INFO     Writing log to file "/home/tedgin/.rednotebook/rednotebook.log"
2023-10-18 15:48:29,289 INFO     System encoding: utf-8
2023-10-18 15:48:29,289 INFO     Language code: en_US
2023-10-18 15:48:29,295 INFO     Spell checking languages: ['en', 'en_AU', 'en_CA', 'en_GB', 'en_US']
2023-10-18 15:48:29,295 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>)]
2023-10-18 15:48:29,445 INFO     Using LibYAML
2023-10-18 15:48:29,446 INFO     Connected Signals: [<Signals.SIGHUP: 1>, <Signals.SIGINT: 2>, <Signals.SIGQUIT: 3>, <Signals.SIGABRT: 6>, <Signals.SIGTERM: 15>, <Signals.SIGTSTP: 20>]
2023-10-18 15:48:29,921 INFO     Running in portable mode: False
2023-10-18 15:48:29,921 INFO     First Start: False
2023-10-18 15:48:29,921 INFO     RedNotebook version: 2.31
2023-10-18 15:48:29,922 INFO     System info: machine: x86_64, platform: Linux-6.2.0-34-generic-x86_64-with-glibc2.35, processor: x86_64, python_version: 3.10.12, release: 6.2.0-34-generic, system: Linux, GTK: (3, 24, 33), Glib: (2, 71, 3), PyGObject: (3, 42, 1), YAML: 5.4.1, WebKit2: (2, 42, 1)
2023-10-18 15:48:30,992 DEBUG    Default font: Ubuntu 11
2023-10-18 15:48:30,993 DEBUG    Default size: 11.0
jendrikseipp commented 8 months ago

Thanks for the report! Do other Python+GTK work remotely, such as Meld?

tedgin commented 8 months ago

Meld works remotely.