Xpra: Ticket #1746: Latest OSX client GTK traceback

Using the latest trunk r17825 client, I am unable to attach to my Fedora 26 trunk r18032 server. The client produces the following traceback and then fails to attach:

/Users/max/Desktop/xpradists/r17825/Xpra.app/Contents/Resources/lib/python/xpra/platform/darwin/gui.py:95: Warning: invalid cast from 'GtkMenuBar' to 'GtkWindow'
  osxapp.set_menu_bar(mh.rebuild())
/Users/max/Desktop/xpradists/r17825/Xpra.app/Contents/Resources/lib/python/xpra/platform/darwin/gui.py:95: GtkWarning: gtk_window_add_accel_group: assertion 'GTK_IS_WINDOW (window)' failed
  osxapp.set_menu_bar(mh.rebuild())
xpra main error:
Traceback (most recent call last):
  File "/Users/max/Desktop/xpradists/r17825/Xpra.app/Contents/Resources/lib/python/xpra/scripts/main.py", line 175, in main
    return run_mode(script_file, err, options, args, mode, defaults)
  File "/Users/max/Desktop/xpradists/r17825/Xpra.app/Contents/Resources/lib/python/xpra/scripts/main.py", line 1503, in run_mode
    return run_client(error_cb, options, args, mode)
  File "/Users/max/Desktop/xpradists/r17825/Xpra.app/Contents/Resources/lib/python/xpra/scripts/main.py", line 2452, in run_client
    app = get_client_app(error_cb, opts, extra_args, mode)
  File "/Users/max/Desktop/xpradists/r17825/Xpra.app/Contents/Resources/lib/python/xpra/scripts/main.py", line 2530, in get_client_app
    app = make_client(error_cb, opts)
  File "/Users/max/Desktop/xpradists/r17825/Xpra.app/Contents/Resources/lib/python/xpra/scripts/main.py", line 2591, in make_client
    toolkit_module = __import__(client_module, globals(), locals(), ['XpraClient'])
  File "/Users/max/Desktop/xpradists/r17825/Xpra.app/Contents/Resources/lib/python/xpra/client/gtk2/client.py", line 21, in <module>
    from xpra.client.gtk2.client_window import ClientWindow
  File "/Users/max/Desktop/xpradists/r17825/Xpra.app/Contents/Resources/lib/python/xpra/client/gtk2/client_window.py", line 11, in <module>
    from xpra.client.gtk2.gtk2_window_base import GTK2WindowBase
  File "/Users/max/Desktop/xpradists/r17825/Xpra.app/Contents/Resources/lib/python/xpra/client/gtk2/gtk2_window_base.py", line 33, in <module>
    DISPLAY_HAS_SCREEN_INDEX = os.environ.get("DISPLAY").split(":")[-1].find(".")>=0
AttributeError: 'NoneType' object has no attribute 'split'

Blocker for #1157



Wed, 17 Jan 2018 23:23:17 GMT - Antoine Martin: status changed; resolution set

This particular bug had been fixed in r17852.

You can workaround it by running xpra with:

DISPLAY=whatever Xpra attach ...

Until I can make newer builds.


Thu, 18 Jan 2018 01:27:45 GMT - Antoine Martin:

New beta builds posted: https://xpra.org/beta/osx/

Note: unless you are testing recent 2.3 features, most other builds have everything needed.


Sat, 23 Jan 2021 05:32:41 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/1746