xpra icon
Bug tracker and wiki

Opened 3 weeks ago

Closed 3 weeks ago

#2536 closed defect (upstream)

forcing wayland without a wayland display segfaults

Reported by: Antoine Martin Owned by: Antoine Martin
Priority: major Milestone: 4.0
Component: platforms Version: 3.0.x
Keywords: Cc:

Description

This is a feature of GTK: segfault when no X11 is available / DISPLAY="".

The gdb backtrace looks like this:

Traceback (most recent call first):
  File "/usr/lib64/python3.7/site-packages/xpra/client/gtk_base/gtk_tray_menu_base.py", line 327, in setup_menu
    menu = Gtk.Menu()
  File "/usr/lib64/python3.7/site-packages/xpra/client/gtk_base/gtk_tray_menu_base.py", line 306, in build
    self.menu = self.setup_menu(SHOW_CLOSE)
  File "/usr/lib64/python3.7/site-packages/xpra/client/mixins/tray.py", line 110, in create_xpra_tray
    menu = self.menu_helper.build()
  File "/usr/lib64/python3.7/site-packages/xpra/client/mixins/tray.py", line 49, in setup_xpra_tray
    tray = self.create_xpra_tray(self.tray_icon or "xpra")
  File "/usr/lib64/python3.7/site-packages/gi/overrides/Gtk.py", line 1630, in main
    return _Gtk_main(*args, **kwargs)
  File "/usr/lib64/python3.7/site-packages/xpra/client/gtk_base/gtk_client_base.py", line 141, in gtk_main
    Gtk.main()
  File "/usr/lib64/python3.7/site-packages/xpra/client/gtk_base/gtk_client_base.py", line 135, in run
    self.gtk_main()
  File "/usr/lib64/python3.7/site-packages/xpra/scripts/main.py", line 1735, in do_run_client
    return app.run()
  File "/usr/lib64/python3.7/site-packages/xpra/scripts/main.py", line 1406, in run_client
    return do_run_client(app)
  File "/usr/lib64/python3.7/site-packages/xpra/scripts/main.py", line 447, in run_mode
    return run_client(error_cb, options, args, mode)
  File "/usr/lib64/python3.7/site-packages/xpra/scripts/main.py", line 115, in main
    return run_mode(script_file, err, options, args, mode, defaults)
  File "/usr/bin/xpra", line 26, in <module>
    sys.exit(main(sys.argv[0], sys.argv))

Change History (1)

comment:1 Changed 3 weeks ago by Antoine Martin

Resolution: upstream
Status: newclosed

Not much we can do about this.

This needs to be fixed in GTK.

Note: See TracTickets for help on using tickets.