Stephen McCants wrote:
Hello,I've run into a problem with Cygwin X that I'm at a loss as to how to debug further. I have a trivial test case that uses Java and SWT, and it creates a simple dialog box (source code provided below - I found it as an example on the internet). I have two other machines - one is a Linux box (RHEL 4) and the other is an AIX machine (AIX 5.3). I start my Cygwin X server so that it displays its windows side by side on the desktop with Windows' windows. I then ssh with X11 tunnelling (using Putty) to the Linux and AIX boxes. Both can send back xterm windows without problem. However, when I run my simple test program, it works on Linux and fails on AIX (draws an ugly unresponsive gray box that I can drag around the screen but not close - it doesn't have the buttons). If I run both the applications to display on my Linux box, then they both work correctly, so it isn't AIX that is failing by itself or with a Linux X server, but an AIX/Cygwin interaction seems to be going awry. So, what are some of the obvious differences between AIX and Linux here: 1) Different Java binaries (they are the same Java version, so I think this is unlikely to be the problem) 2) Different graphics libraries. Both use SWT, but on Linux SWT uses GTK. On AIX, SWT uses Motif. Possibly related bugs I found: https://bugs.eclipse.org/bugs/show_bug.cgi?id=36806 At this point, I'm at a loss as to how to further debug the problem. I'd appreciate any thoughts. Thanks! Steps to reproduce: 0) Log into an AIX box from a Windows machine with SSH (X11 tunneling on) and Cygwin X.
Thanks for the clear repro steps. Unfortunately, I don't have access to an AIX box so I'm afraid I can't put use them myself.
I'm not sure what the best approach to debugging this is. It might be informative to use wireshark to look at the X protocol exchanges between the client and server in the AIX/Cygwin and AIX/Linux cases and see if there are differences which explain the difference in behaviour?
-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
