Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to connect with Apple M3 #4058

Closed
or-ims opened this issue Nov 21, 2023 · 1 comment
Closed

Not able to connect with Apple M3 #4058

or-ims opened this issue Nov 21, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@or-ims
Copy link

or-ims commented Nov 21, 2023

Describe the bug

I am trying to start a xpra session with a client running Mac OS Sonoma on a M3 and a server running ubuntu 20.04. After reporting multiple errors the process ends with "server connection failure". I can't tell, which error report is relevant and which is not.
Unfortunately, I can't install any software on the server, e.g. to update the server's xpra version.

Any help is appreciated :)

The terminal output is posted below:

<user>@dyn-094098 ~ % xpra start ssh://<user>@<server> --start-child=xterm
grep: /usr/share/locale/locale.alias: No such file or directory
grep: /usr/share/locale/locale.alias: No such file or directory

2023-11-21 14:55:25,154 Xpra GTK3 client version 6.0-r34709 (g5a97fac04) beta
2023-11-21 14:55:25,164  running on Mac OS X
2023-11-21 14:55:25,164  cpython 3.11
xpra main error:
Traceback (most recent call last):
  File "/Applications/Xpra.app/Contents/Resources/lib/python/xpra/scripts/main.py", line 124, in main
    return run_mode(script_file, cmdline, err, options, args, mode, defaults)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Applications/Xpra.app/Contents/Resources/lib/python/xpra/scripts/main.py", line 475, in run_mode
    return do_run_mode(script_file, cmdline, error_cb, options, args, mode, defaults)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Applications/Xpra.app/Contents/Resources/lib/python/xpra/scripts/main.py", line 670, in do_run_mode
    return run_splash(args)
           ^^^^^^^^^^^^^^^^
  File "/Applications/Xpra.app/Contents/Resources/lib/python/xpra/scripts/main.py", line 2428, in run_splash
    return splash.main(args)
           ^^^^^^^^^^^^^^^^^
  File "/Applications/Xpra.app/Contents/Resources/lib/python/xpra/gtk/dialogs/splash.py", line 298, in main
    with program_context("splash", "Splash"):
  File "/Applications/Xpra.app/Contents/Resources/lib/python/xpra/platform/__init__.py", line 83, in __enter__
    init(self.prgname, self.appname)
  File "/Applications/Xpra.app/Contents/Resources/lib/python/xpra/platform/__init__.py", line 25, in init
    do_init()
  File "/Applications/Xpra.app/Contents/Resources/lib/python/xpra/platform/darwin/__init__.py", line 15, in do_init
    from AppKit import NSApp
  File "AppKit/__init__.pyc", line 148, in <module>
  File "AppKit/__init__.pyc", line 12, in _setup
  File "Foundation/__init__.pyc", line 188, in <module>
  File "Foundation/__init__.pyc", line 12, in _setup
  File "CoreFoundation/__init__.pyc", line 37, in <module>
  File "CoreFoundation/__init__.pyc", line 12, in _setup
  File "objc/__init__.pyc", line 6, in <module>
  File "objc/_objc.pyc", line 14, in <module>
  File "objc/_objc.pyc", line 10, in __load
  File "imp.pyc", line 343, in load_dynamic
ImportError: dlopen(/Applications/Xpra.app/Contents/Resources/lib/python/lib-dynload/objc/_objc.so, 0x0002): symbol not found in flat namespace '_ffi_find_closure_for_code_np'

grep: /usr/share/locale/locale.alias: No such file or directory
2023-11-21 14:55:25,974 GStreamer version 1.22.6
2023-11-21 14:55:25,985 Warning: cannot enable SSH socket upgrades
2023-11-21 14:55:25,985  cannot import name 'exceptions' from 'cryptography.hazmat.bindings._rust' (/Applications/Xpra.app/Contents/Resources/lib/python/cryptography/hazmat/bindings/_rust/__init__.pyc)
2023-11-21 14:55:25,993 created unix domain sockets:
2023-11-21 14:55:25,993  '/Users/<user>/.xpra/clients/dyn-094098.<net>-6953'
2023-11-21 14:55:26,040 Warning: no keyboard support, dlopen(/Applications/Xpra.app/Contents/Resources/lib/python/lib-dynload/objc/_objc.so, 0x0002): symbol not found in flat namespace '_ffi_find_closure_for_code_np'
2023-11-21 14:55:26,275 OpenGL enabled on 'Apple M3 Pro'
2023-11-21 14:55:26.288 Xpra[6953:167385] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES.
/Applications/Xpra.app/Contents/Resources/lib/python/xpra/client/gtk3/statusicon_tray.py:39: DeprecationWarning: Gtk.StatusIcon.set_tooltip_text is deprecated
  self.tray_widget.set_tooltip_text(self.tooltip or "Xpra")
/Applications/Xpra.app/Contents/Resources/lib/python/xpra/client/gtk3/statusicon_tray.py:106: DeprecationWarning: Gtk.StatusIcon.get_geometry is deprecated
  ag = self.tray_widget.get_geometry()
/Applications/Xpra.app/Contents/Resources/lib/python/xpra/client/gtk3/statusicon_tray.py:167: DeprecationWarning: Gtk.StatusIcon.set_from_pixbuf is deprecated
  self.tray_widget.set_from_pixbuf(tray_icon)
/Applications/Xpra.app/Contents/Resources/lib/python/xpra/client/gtk3/statusicon_tray.py:46: DeprecationWarning: Gtk.StatusIcon.set_visible is deprecated
  self.tray_widget.set_visible(True)
/Applications/Xpra.app/Contents/Resources/lib/python/xpra/gtk/info.py:353: DeprecationWarning: Gdk.Screen.get_width is deprecated
  sw, sh = screen.get_width(), screen.get_height()
/Applications/Xpra.app/Contents/Resources/lib/python/xpra/gtk/info.py:353: DeprecationWarning: Gdk.Screen.get_height is deprecated
  sw, sh = screen.get_width(), screen.get_height()
2023-11-21 14:55:26,330  desktop size is 3840x2369:
2023-11-21 14:55:26,331   dyn-094098.<net> (445x4544 mm - DPI: 219x13)
2023-11-21 14:55:26,331     2                1920x1200 at    0x0    (518x331 mm - DPI: 94x92) workarea: 1920x1175 at    0x25
2023-11-21 14:55:26,331     1                1920x1200 at 1920x0    (518x331 mm - DPI: 94x92) workarea: 1920x1175 at 1920x25
2023-11-21 14:55:26,331     monitor 3        1800x1169 at 1049x1200 (301x195 mm - DPI: 152x152) workarea: 1800x1065 at 1049x1244
Warning: the 'start-child' option is used,
 but 'exit-with-children' is not enabled,
 you should just use 'start' instead
Entering daemon mode; any further errors will be reported to:
  '/run/user/31092/xpra/S2223439/server.log'
Actual display used: :12
Actual log file name is now: '/run/user/31092/xpra/12/server.log'
2023-11-21 14:55:29,494 removing unix domain socket '/Users/...-6953'
/Applications/Xpra.app/Contents/Resources/lib/python/xpra/gtk/notifier.py:175: DeprecationWarning: Gtk.Window.set_opacity is deprecated
  self.set_opacity(0.2)
/Applications/Xpra.app/Contents/Resources/lib/python/xpra/gtk/notifier.py:184: DeprecationWarning: Gtk.Misc.set_padding is deprecated
  self.header.set_padding(3, 3)
/Applications/Xpra.app/Contents/Resources/lib/python/xpra/gtk/notifier.py:185: DeprecationWarning: Gtk.Misc.set_alignment is deprecated
  self.header.set_alignment(0, 0)
/Applications/Xpra.app/Contents/Resources/lib/python/xpra/gtk/notifier.py:226: DeprecationWarning: Gtk.Widget.modify_bg is deprecated
  self.modify_bg(Gtk.StateType.NORMAL, stack.bg_color)
/Applications/Xpra.app/Contents/Resources/lib/python/xpra/gtk/notifier.py:302: DeprecationWarning: Gtk.Window.get_opacity is deprecated
  opacity = self.get_opacity()
2023-11-21 14:55:31,482 Warning: server connection failure:
2023-11-21 14:55:31,482  Connection failed: disconnected before the session could be established
2023-11-21 14:55:31,482  connection error
2023-11-21 14:55:31,482  client failed to specify any supported encodings

To Reproduce
Steps to reproduce the behavior:
Client command: xpra start ssh://<user>@<server> --start-child=xterm

System Information (please complete the following information):

  • Server OS: Ubuntu 20.04.6 LTS
  • Client OS: macOS 14.1.1 BuildVersion: 23B2082
  • Xpra Server Version: xpra v4.4.6-r29
  • Xpra Client Version: arm64 beta PKG xpra v6.0-r34709 (g5a97fac04) beta
@or-ims or-ims added the bug Something isn't working label Nov 21, 2023
@totaam
Copy link
Collaborator

totaam commented Nov 21, 2023

ImportError: dlopen(/Applications/Xpra.app/Contents/Resources/lib/python/lib-dynload/objc/_objc.so, 0x0002): symbol not found in flat namespace '_ffi_find_closure_for_code_np'

Looks like Xpra-org/gtk-osx-build#27
And a duplicate of #4017

I don't have the hardware to test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants