XWin hangs on opening xterms

2005-10-05 Thread Norbert Harendt
Hello,

I updated cygwin a few days ago, now my xwindow-remote sessions are often
hanging and are consuming a lot of cpu-power. In detail:

I am running a W2K-machine with 2 cpus and connect to a linux-X-server via 
cygwins 
   XWin -query 192.168.1.100 -once
in order to get the logon-screen of the linux-server. Before last days update
all was performing very will (but now i don't know which version that was)

Now i get the following output:

**
$ XWin -query 192.168.1.100 -once
Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 6.8.2.0-4

Contact: cygwin-xfree@cygwin.com

XWin was started with the following command line:

XWin -query 192.168.1.100 -once

_XSERVTransmkdir: Mode of /tmp/.X11-unix should be set to 0777
_XSERVTransmkdir: this may cause subsequent errors
winValidateArgs - g_iNumScreens: 1 iMaxConsecutiveScreen: 1
(II) XF86Config is not supported
(II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information
(==) FontPath set to /usr/X11R6/lib/X11/fonts/misc/,...
winDetectSupportedEngines - Windows NT/2000/XP
winDetectSupportedEngines - DirectDraw installed
winDetectSupportedEngines - DirectDraw4 installed
winDetectSupportedEngines - Returning, supported engines 0007
winSetEngine - Using Shadow DirectDraw NonLocking
winAdjustVideoModeShadowDDNL - Using Windows display depth of 
   16 bits per pixel
winFinishScreenInitFB - Masks: f800 07e0 001f
MIT-SHM extension disabled due to lack of kernel support
XFree86-Bigfont extension local-client optimization disabled due to lack of 
   shared memory support in the kernel
(--) Setting autorepeat to delay=500, rate=31
(--) winConfigKeyboard - Layout: 0407 (0407)
(--) Using preset keyboard for German (Germany) (407), type 4
Rules = xorg Model = pc105 Layout = de Variant = (null) 
  Options = (null)
**

At this point the Cygin/X-windows hangs.
Opening the windows taskmanager i killed the second running instance of 
   XWin.exe and get the output

**
 40 [main] XWin 804 fork_parent: child 1524 died waiting for dll loading
(EE) Couldn't load XKB keymap, falling back to pre-XKB keymap
(--) 3 mouse buttons found
winPointerWarpCursor - Discarding first warp: 637 499
winProcEstablishConnection - Hello
winProcEstablishConnection - Clipboard is not enabled, returning.
winProcQueryTree - Clipboard is not enabled, returning.
**

but than the logon screen of the linuxserver appears in the Cygwin/X-Window 
and i am able to login. The initialisation of the X-desktop is done as usual.
But every time i open an xterm, the Cygwin/X-Window hangs again. Again killing
the second XWin.exe brings Cygwin/X-Window back to life, producing an output 
similar to the following

**
332281787 [main] XWin 804 fork_parent: child 1476 died waiting for dll loading
**


Can anybody tell me, what is happening 

Thanks in advance
   Norbert


--
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/



Keyboard Layout

2005-10-05 Thread Rainer . Kunert
Hello,

as stated in the CygwinXTroubleShooting on www.freedesktop.org I send this
mail:

I have problems with my keyboard layout (german keyboard on a toshiba
laptop). The lines in /tmp/XWin.log are these:

(--) winConfigKeyboard - Layout: 0407 (0407)
(--) Using preset keyboard for German (Germany) (407), type 4
Rules = xorg Model = pc105 Layout = de Variant = (null) Options =
(null)
(EE) Couldn't load XKB keymap, falling back to pre-XKB keymap

Instead of german characters I always get the us keyboard characters.
What should I do now?

Thanks for any help!

Kind regards
Rainer


--
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/



Re: XWin hangs on opening xterms

2005-10-05 Thread Igor Pechtchanski
On Wed, 5 Oct 2005, Norbert Harendt wrote:

 Hello,

 I updated cygwin a few days ago, now my xwindow-remote sessions are
 often hanging and are consuming a lot of cpu-power. In detail:

 I am running a W2K-machine with 2 cpus and connect to a linux-X-server
 via cygwins
XWin -query 192.168.1.100 -once
 in order to get the logon-screen of the linux-server. Before last days
 update all was performing very will (but now i don't know which version
 that was)

 Now i get the following output:
 [snip]
 At this point the Cygin/X-windows hangs.

Did you let it run long enough?  Looks like it's trying to fork, and the
DLLs are being loaded.  Does the CPU show any activity during the hang?
Does the disk?  Try running it under strace to see if it's really a hang,
a busy loop, etc.  If you get any output at all during the hang, XWin is
probably doing something useful.

 but than the logon screen of the linuxserver appears in the
 Cygwin/X-Window and i am able to login. The initialisation of the
 X-desktop is done as usual. But every time i open an xterm, the
 Cygwin/X-Window hangs again. Again killing the second XWin.exe brings
 Cygwin/X-Window back to life, producing an output similar to the
 following

 **
 332281787 [main] XWin 804 fork_parent: child 1476 died waiting for dll loading
 **

 Can anybody tell me, what is happening 

Yes.  XWin forks to be able to spawn off a process (in this case, xterm).
You have killed the forked child, thus XWin is not able to create the
xterm process.  Don't do that.
HTH,
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

--
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/



Xauth and cygwin-X

2005-10-05 Thread Kris Thielemans
Hi

I'm trying to get xauth going. From some previous posts and some reading I
do the following:

On my PC (called bach)

$ xauth generate bach:0 . trusted timeout 300
$ xauth nextract - bach:0   | ssh 172.16.2.55 xauth nmerge -
$ ssh -f -n  172.16.2.55 xterm -display bach:0

xterm launches, but my application (Analyze, a commercial image processing
program) still says:
Attempted a 'send' command, but X server insecure (must use xauth-style
authorization).

I also tried to tunnel X after this

$ ssh -f -n -Y  172.16.2.55 xterm

but I have exactly the same behaviour as above. Note that ssh still outputs
the message
Warning: No xauth data; using fake authentication data for X11 forwarding.
I had this message already before using xauth, and the tunnel works exactly
the same.

I get the feeling that I do this wrong. From man Xsecurity I get the
impression I should  pass -auth to the X server, but there is no such option
documented for Xwin.

I've seen some emails from other people that they cannot get this to work.
Hopefully somebody on this list knows better...

Many thanks!

Kris Thielemans
Hammersmith Imanet, part of GE Healthcare
London, United Kingdom



--
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/



Cygwin X file structure

2005-10-05 Thread Andy Little
Hi to the Folks at Cygwin-X,

I am trying to get XWindows running on my WinXP box using Cygwin. I am 
hoping to write some C++ applications using it.
I am however totally confused by what to do after building the XWindows 
sources.

1) Should I copy the lib files in my my_build_dir/exports/lib directory 
to 
usr/X11/lib/ ?
2) How do I get gcc to automatically use the library files I have 
created?
3) Is there a tutorial on writing simple XWindows applications?

regards
Andy Little






--
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/



RE: Cygwin X file structure

2005-10-05 Thread Reid Thompson
Andy Little wrote:
 Hi to the Folks at Cygwin-X,
 
   I am trying to get XWindows running on my WinXP box
 using Cygwin. I am
 hoping to write some C++ applications using it.
   I am however totally confused by what to do after
 building the XWindows
 sources.
 
   1) Should I copy the lib files in my
 my_build_dir/exports/lib directory to
 usr/X11/lib/ ?
   2) How do I get gcc to automatically use the library
 files I have created?

3) Is there a tutorial on writing simple XWindows applications?
 
 regards
 Andy Little


http://www.google.com/search?q=gtk+tutorialsourceid=mozilla-searchstar
t=0start=0ie=utf-8oe=utf-8client=firefox-arls=org.mozilla:en-US:off
icial

http://www.google.com/search?q=X+windows+tutorialsourceid=mozilla-searc
hstart=0start=0ie=utf-8oe=utf-8client=firefox-arls=org.mozilla:en-
US:official

reid

--
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/



Re: How can get Windows fonts to appear in Oracle Developer with Cygwin/X?

2005-10-05 Thread David Pelinka

I found my own solution. Here's what I did:

mkdir c:\cygwin\usr\X11R6\lib\X11\fonts\TTF
cp \windows\fonts\verdana* \cygwin\usr\X11R6\lib\X11\fonts\TTF
start Cygwin bash
cd /usr/X11R6/lib/X11/fonts/TTF
mkfontscale .
mkfontdir .
exit Cygwin bash
start Cygwin bash
run xset -q and note that the font path now includes the TTF directory
run xfontsel and note that when you select regstry/microsoft that verdata 
appears under fmly



Date: Tue, 04 Oct 2005 14:33:38 -0700
To: cygwin-xfree@cygwin.com
From: David Pelinka [EMAIL PROTECTED]
Subject: How can get Windows fonts to appear in Oracle Developer with 
Cygwin/X?


How can I get Windows fonts to appear in an application running under 
Cygwin/X?


When I use Cygwin/X 1.5.18 to run the Oracle Developer 9.0.4.2 on Red Hat 
3.0, I'm don't see the verdana font in the field property sheets. With 
Cygwin/X, I see 25 fonts beginning with clean and ending with utopia. 
If I run ncdsoft PC-Xware, I see verdana in the list of 100 fonts 
beginning with @arial unicode ms and ending with vtspecl_normal.


Here's what I tried:
1) Expose the Windows fonts to Cygwin on the PC. I copied the windows/font 
directory to the Cygwin home and ran mkfontscale, but fonts.scale ends up 
with only a zero in it.
2) Point Cygwin at the fonts server running on the host. I verified that 
xfs was running on the server on port 7100. From the PC, I ran Xwin.exe 
-query {host} -fp {host:7100), and also xset fp+ host:7100. Neither 
command worked.


Any help would be appreciated.



--
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/