njsmith / partiwm

[defunct] Experiments with window managers in Python + GTK+, including the original version of xpra
GNU General Public License v2.0
23 stars 3 forks source link

xpra client on OSX 10.6 dies when connecting to xpra server on FreeBSD 8.0-RELEASE-p4 #30

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Build xpra on both machines. Deps come from ports on FreeBSD, from fink 
unstable on OSX.
2. on FreeBSD "spiff:~$ xpra start :200; sleep 5; DISPLAY=:200 xterm"
3. on OSX "calvin:~$ xpra attach ssh:spiff:200"

What is the expected output? What do you see instead?

I expect an xterm to pop up on calvin.  Instead:

/sw/lib/python2.6/site-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could 
not open display
  warnings.warn(str(e), _gtk.Warning)
/Users/crhalpin/partiwm/install/lib/python/xpra/client.py:285: GtkWarning: 
gdk_screen_get_root_window: assertion `GDK_IS_SCREEN (screen)' failed
  root_w, root_h = gtk.gdk.get_default_root_window().get_size()
Traceback (most recent call last):
  File "/Users/crhalpin/partiwm/install/bin/xpra", line 6, in <module>
    xpra.scripts.main.main(__file__, sys.argv)
  File "/Users/crhalpin/partiwm/install/lib/python/xpra/scripts/main.py", line 116, in main
    run_client(parser, options, args)
  File "/Users/crhalpin/partiwm/install/lib/python/xpra/scripts/main.py", line 233, in run_client
    app = XpraClient(read_sock, write_sock, opts.compression_level)
  File "/Users/crhalpin/partiwm/install/lib/python/xpra/client.py", line 285, in __init__
    root_w, root_h = gtk.gdk.get_default_root_window().get_size()
AttributeError: 'NoneType' object has no attribute 'get_size'

What version of the product are you using? On what operating system?

I'm using xpra from revision d9fcc428d3fe.

Connecting from FreeBSD 8 clients works without a hitch.  I've got X11.app 
running in rootless mode.  Perhaps this is the problem?

Original issue reported on code.google.com by crhal...@gmail.com on 3 Aug 2010 at 4:47

GoogleCodeExporter commented 9 years ago
The line "GtkWarning: could not open display" suggests that xpra simply can't 
find your local X server to display stuff on -- is your DISPLAY environment 
variable set? Do other X apps work on OS X?

Original comment by njsmith@ucsd.edu on 3 Aug 2010 at 6:00

GoogleCodeExporter commented 9 years ago
Yes, DISPLAY is set. Yes, other X apps work.

Original comment by crhal...@gmail.com on 3 Aug 2010 at 6:14

GoogleCodeExporter commented 9 years ago
Strange.

Unfortunately, I don't have access to any OS X box to test on. Can you try the 
following:

1) start python at the command line
2) type 'import gtk' and tell me any output/errors you get
3) type 'gtk.gdk.get_default_root_window()' and tell me any output/errors you 
get
4) type 'gtk.gdk.get_default_root_window().get_size()' and tell me any 
output/errors you get

Also, does it work if you run X11.app in fullscreen mode, instead of rootless? 
(Obviously rootless *should* be supported, but it might help narrow down the 
problem.)

Original comment by njsmith@ucsd.edu on 4 Aug 2010 at 12:39

GoogleCodeExporter commented 9 years ago
After looking at issue 29, I checked to see if either of my machines had old 
files in the build directories, and both did.

Two fresh checkouts and two "rm -rf ~/.xpra"'s later, I can no longer reproduce 
the problem.

Note to self: make sure the build environment was clean before complaining.

Sorry for the noise, this issue can be closed.

Original comment by crhal...@gmail.com on 5 Aug 2010 at 7:59

GoogleCodeExporter commented 9 years ago
Huh. I can't think how that would have caused this, but good to know. Glad you 
figured it out.

Original comment by njsmith@ucsd.edu on 5 Aug 2010 at 8:39