XWin seems to only starts partway

Bill Shaffer billshaf@hotmail.com
Fri Mar 30 21:12:00 GMT 2007


Hi:

I have just downloaded and installed the latest cygwin distribution, and I 
am seeing intermittent problems starting XWin using the startxwin.bat file 
from windows explorer.  This in on WinXPsp2.

Most of the time things start up fine; but I see the problem often enough 
that I can reproduce it within a few minutes.  When XWin fails to completely 
start up, I see:
- the black X in the system tray, but I can't right click on it for a menu
- port 6000 listening
- established connections on port 6000 (localhost to localhost)
- XWin, xhost, and xterm processes in ps -ef
- if I attempt to export my display from another server, I see the 
established connection but no X window
- if I attempt to display X from localhost, I see more extablished 
connections but no window

If I kill -9 Xwin and restart it, it usually works.

The /tmp/XWin.log from a normal working startup:
_XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be 
created.
(II) XF86Config is not supported
(II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information
winAdjustVideoModeShadowGDI - Using Windows display depth of 32 bits per 
pixel
winAllocateFBShadowGDI - Creating DIB with width: 1200 height: 1600 depth: 
32
winInitVisualsShadowGDI - Masks 00ff0000 0000ff00 000000ff BPRGB 8 d 24 bpp 
32
null screen fn ReparentWindow
null screen fn RestackWindow
InitQueue - Calling pthread_mutex_init
InitQueue - pthread_mutex_init returned
InitQueue - Calling pthread_cond_init
InitQueue - pthread_cond_init returned
winInitMultiWindowWM - Hello
winInitMultiWindowWM - Calling pthread_mutex_lock ()
winMultiWindowXMsgProc - Hello
winMultiWindowXMsgProc - Calling pthread_mutex_lock ()
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: "00000409" (00000409)
(--) Using preset keyboard for "English (USA)" (409), type "4"
(--) 3 mouse buttons found
Could not init font path element /usr/X11R6/lib/X11/fonts/TTF/, removing 
from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/Type1/, removing 
from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing 
from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/100dpi/, removing 
from list!
winInitMultiWindowWM - pthread_mutex_lock () returned.
winProcEstablishConnection - Hello
winInitClipboard ()
winProcEstablishConnection - winInitClipboard returned.
winClipboardProc - Hello
DetectUnicodeSupport - Windows NT/2000/XP
winInitMultiWindowWM - pthread_mutex_unlock () returned.
winMultiWindowXMsgProc - pthread_mutex_lock () returned.
winClipboardProc - DISPLAY=127.0.0.1:0.0
winMultiWindowXMsgProc - pthread_mutex_unlock () returned.
winInitMultiWindowWM - DISPLAY=127.0.0.1:0.0
winMultiWindowXMsgProc - DISPLAY=127.0.0.1:0.0
winInitMultiWindowWM - XOpenDisplay () returned and successfully opened the 
display.
winClipboardProc - XOpenDisplay () returned and successfully opened the 
display.
winMultiWindowXMsgProc - XOpenDisplay () returned and successfully opened 
the display.

The same log from a failed startup:
_XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be 
created.
(II) XF86Config is not supported
(II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information
winAdjustVideoModeShadowGDI - Using Windows display depth of 32 bits per 
pixel
winAllocateFBShadowGDI - Creating DIB with width: 1200 height: 1600 depth: 
32
winInitVisualsShadowGDI - Masks 00ff0000 0000ff00 000000ff BPRGB 8 d 24 bpp 
32
null screen fn ReparentWindow
null screen fn RestackWindow
InitQueue - Calling pthread_mutex_init
InitQueue - pthread_mutex_init returned
InitQueue - Calling pthread_cond_init
InitQueue - pthread_cond_init returned
winInitMultiWindowWM - Hello
winInitMultiWindowWM - Calling pthread_mutex_lock ()
winMultiWindowXMsgProc - Hello
winMultiWindowXMsgProc - Calling pthread_mutex_lock ()
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: "00000409" (00000409)
(--) Using preset keyboard for "English (USA)" (409), type "4"
(EE) Couldn't load XKB keymap, falling back to pre-XKB keymap
(--) 3 mouse buttons found
Could not init font path element /usr/X11R6/lib/X11/fonts/TTF/, removing 
from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/Type1/, removing 
from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing 
from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/100dpi/, removing 
from list!

The first line in the "good" log after the "bad" log stops is a mutex_return 
- which might indicate that a mutex is never returning from somewhere and 
keeping the startup from finishing?

Any help would be appreciated.

Bill

_________________________________________________________________
Live Search Maps – find all the local information you need, right when you 
need it. http://maps.live.com/?icid=hmtag2&FORM=MGAC01


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



More information about the Cygwin-xfree mailing list