Re: startx hangs on WinXP, xinit doesn't

2004-08-16 Thread p v
More details - I tried to debug the problem (as much
as I could) and this is what I found out. First I
found out how startx calls xinit -

xinit /usr/X11R6/lib/X11/xinit/xinitrc -- \
-multiwindow -clipboard

Since this exact command starts X every time with no
problem I looked at the output when running startx and
xinit - the only difference is that with xinit I call
more routines - here is the diff

---
$ diff startx.out xinit.out
46a47,51
 winInitClipboard ()
 winProcEstablishConnection - winInitClipboard
returned.
 winClipboardProc - Hello
 DetectUnicodeSupport - Windows NT/2000/XP
 winClipboardProc - DISPLAY=127.0.0.1:0.0
51a57,62
 winClipboardProc - XOpenDisplay () returned and
successfully opened the display.
 winMultiWindowXMsgProc - XOpenDisplay () returned
and successfully opened the display.
 winProcSetSelectionOwner - Clipboard not yet
started, aborting.
 winProcSetSelectionOwner - Clipboard not yet
started, aborting.
 winInitMultiWindowWM - XOpenDisplay () returned and
successfully opened the display.
 
-

The only difference in the execution of the two is the
environment so I experimented and finally I commented
this portion of startx script -

if [ x$XAUTHORITY = x ]; then
XAUTHORITY=$HOME/.Xauthority
export XAUTHORITY
fi

Once I commented that out I get X to start correctly
and the output is the same as it is with xinit on its
own. It's been long time since I worked with X - any
ideas why XAUTHORITY set makes startx to hang ?
thanks

--pv


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


startx hangs on WinXP, xinit doesn't

2004-08-15 Thread p v
Dell Optiplex 260 P4,
No ZoneaAlarm installed (ever),
/tmp mounted in binary mode.

startx hangs after printing out -

$ startx

Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 6.7.99.1-1

Contact: [EMAIL PROTECTED]

XWin was started with the following command line:

X :0 -multiwindow -clipboard 

_XSERVTransmkdir: Owner of /tmp/.X11-unix should be
set to root
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
winDetectSupportedEngines - Windows NT/2000/XP
winDetectSupportedEngines - DirectDraw installed
winDetectSupportedEngines - DirectDraw4 installed
winDetectSupportedEngines - Returning, supported
engines 0007
winSetEngine - Multi Window or Rootless = ShadowGDI
winAdjustVideoModeShadowGDI - Using Windows display
depth of 32 bits per pixel
winAllocateFBShadowGDI - Creating DIB with width: 1280
height: 1023 depth: 32
winFinishScreenInitFB - Masks: 00ff ff00
00ff
winInitVisualsShadowGDI - Masks 00ff ff00
00ff 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: 0409 (0409)

(--) Using preset keyboard for English (USA) (409),
type 4
Rules = xorg Model = pc105 Layout = us Variant =
(null) Options = (null)
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!
winPointerWarpCursor - Discarding first warp: 640 511
winInitMultiWindowWM - pthread_mutex_lock () returned.
winProcEstablishConnection - Hello
winMultiWindowXMsgProc - pthread_mutex_lock ()
returned.
winMultiWindowXMsgProc - pthread_mutex_unlock ()
returned.
winMultiWindowXMsgProc - DISPLAY=127.0.0.1:0.0
winInitMultiWindowWM - pthread_mutex_unlock ()
returned.
winInitMultiWindowWM - DISPLAY=127.0.0.1:0.0

$ ps -ef
 UID PIDPPID TTY STIME COMMAND
  pv 128   1 con  10:57:58 /usr/bin/rxvt
  pv 192 128   0  10:57:59 /usr/bin/bash
  pv 244 192   0  11:08:03 /usr/bin/sh
  pv1556 244   0  11:08:03
/usr/X11R6/bin/xinit
  pv 2481556   0  11:08:03
/usr/X11R6/bin/XWin
  pv 496 248   0  11:08:11
/usr/X11R6/bin/XWin
  pv 184   1 con  11:09:21 /usr/bin/rxvt
  pv 468 184   1  11:09:21 /usr/bin/bash
  pv2220 468   1  11:09:24 /usr/bin/ps


and that's it - I have to kill -9 all XWin and xinit.

xinit -- -multiwindow on the other hand works just
fine -

$ xinit -- -multiwindow

Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 6.7.99.1-1

Contact: [EMAIL PROTECTED]

XWin was started with the following command line:

X :0 -multiwindow 

_XSERVTransmkdir: Owner of /tmp/.X11-unix should be
set to root
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
winDetectSupportedEngines - Windows NT/2000/XP
winDetectSupportedEngines - DirectDraw installed
winDetectSupportedEngines - DirectDraw4 installed
winDetectSupportedEngines - Returning, supported
engines 0007
winSetEngine - Multi Window or Rootless = ShadowGDI
winAdjustVideoModeShadowGDI - Using Windows display
depth of 32 bits per pixel
winAllocateFBShadowGDI - Creating DIB with width: 1280
height: 1023 depth: 32
winFinishScreenInitFB - Masks: 00ff ff00
00ff
winInitVisualsShadowGDI - Masks 00ff ff00
00ff 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: 0409 (0409)

(--) Using preset keyboard for English