Re: Can't start X on MS Windows 7

2013-04-12 Thread Jon TURNEY
On 11/04/2013 18:00, Harvey Stein (BLOOMBERG/ 731 LEXIN) wrote:
 $ startxwin
[...]
 (--) 3 mouse buttons found

There should be a few more lines after this in a normal X server startup.

This looks like perhaps the X server is somehow getting stuck trying to run
xkbcomp during it's startup.  You might want to take a look at FAQ entries
[1],[2] which discuss software which has been known to interfere with the
operation of Cygwin.

[1] http://x.cygwin.com/docs/faq/cygwin-x-faq.html#freeze-at-startup
[2] http://cygwin.com/faq-nochunks.html#faq.using.bloda

 waiting for X server to begin accepting connections .
 ..
 ..
 ..
 ..
 .. 

-- 
Jon TURNEY
Volunteer Cygwin/X X Server maintainer

--
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: Can't start X on MS Windows 7

2013-04-12 Thread Harvey Stein (BLOOMBERG/ 731 LEXIN)
Thanks for the references.  As for the cygwin-x-faq.html reference, I don't see 
the output symptomatic of Zone Alarm 5 causing trouble, so I gues that's not 
it, and all my mounts are binary, so it's not the /tmp issue.

As for the long list of software in the cygwin FAQ that is known to interfere 
with cygwin, I'm sure I have some of that running (like citrix  McAfee), but 
as this is a work computer, I can't uninstall that stuff.

To try to pin it down a little more, I straced startxwin  found some winsock 
errors showing up (see below).  They keep repeating over and over again, so I 
guss that's where it's hanging  there must be some sort of interference at the 
socket level.  Any way to pin it down more precisely, or even work around it?

Thanks,
Harvey

Snippet of output from strace startxwin:

 1082 544688314 [main] startxwin 15328 write: 1 = write(2, 0x611877D7, 1)
 1115 544689429 [main] startxwin 15328 cygwin_socket: socket (1, 1 (flags 
0x200), 0)
  160 544689589 [main] startxwin 15328 build_fh_pc: fh 0x61274610, dev 0x1E0079
   98 544689687 [main] startxwin 15328 fhandler_base::set_flags: flags 0x10002, 
supplied_bin 0x0
   46 544689733 [main] startxwin 15328 fhandler_base::set_flags: 
O_TEXT/O_BINARY set in flags 0x1
   42 544689775 [main] startxwin 15328 fhandler_base::set_flags: filemode set 
to binary
   42 544689817 [main] startxwin 15328 fdsock: fd 3, name '', soc 0xCC8
   55 544689872 [main] startxwin 15328 fhandler_base::set_close_on_exec: set 
close_on_exec for  to 1
   44 544689916 [main] startxwin 15328 cygwin_socket: 3 = socket(1, 1 (flags 
0x200), 0)
   46 544689962 [main] startxwin 15328 normalize_posix_path: src 
/tmp/.X11-unix/X0
   43 544690005 [main] startxwin 15328 normalize_posix_path: /tmp/.X11-unix/X0 
= normalize_posix_path (/tmp/.X11-unix/X0)
   43 544690048 [main] startxwin 15328 mount_info::conv_to_win32_path: 
conv_to_win32_path (/tmp/.X11-unix/X0)
   43 544690091 [main] startxwin 15328 set_flags: flags: binary (0x2)
   43 544690134 [main] startxwin 15328 mount_info::conv_to_win32_path: src_path 
/tmp/.X11-unix/X0, dst C:\cygwin\tmp\.X11-unix\X0, flags 0x3000A, rc 0
  193 544690327 [main] startxwin 15328 symlink_info::check: 0x0 = NtCreateFile 
(\??\C:\cygwin\tmp\.X11-unix\X0)
  301 544690628 [main] startxwin 15328 symlink_info::check: not a symlink
  117 544690745 [main] startxwin 15328 symlink_info::check: 0 = 
symlink.check(C:\cygwin\tmp\.X11-unix\X0, 0x289360) (0x4003000A)
   66 544690811 [main] startxwin 15328 path_conv::check: 
this-path(C:\cygwin\tmp\.X11-unix\X0), has_acls(1)
1000558 545691369 [main] startxwin 15328 __set_errno: void 
__set_winsock_errno(const char*, int):221 setting errno 111
  159 545691528 [main] startxwin 15328 __set_winsock_errno: connect:1078 - 
winsock error 10061 - errno 111
  101 545691629 [main] startxwin 15328 getpid: 15328 = getpid()
   77 545691706 [main] startxwin 15328 cygwin_connect: -1 = connect(3, 
0x28A9F6, 110), errno 111
   49 545691755 [main] startxwin 15328 close: close(3)
   92 545691847 [main] startxwin 15328 fhandler_socket::close: 0 = 
fhandler_socket::close()
   75 545691922 [main] startxwin 15328 close: 0 = close(3)
 2580 545694502 [main] startxwin 15328 cygwin_socket: socket (2, 1 (flags 
0x200), 0)
  100 545694602 [main] startxwin 15328 build_fh_pc: fh 0x61274610, dev 0x1E0024
   89 545694691 [main] startxwin 15328 fhandler_base::set_flags: flags 0x10002, 
supplied_bin 0x0
   47 545694738 [main] startxwin 15328 fhandler_base::set_flags: 
O_TEXT/O_BINARY set in flags 0x1
   42 545694780 [main] startxwin 15328 fhandler_base::set_flags: filemode set 
to binary
   42 545694822 [main] startxwin 15328 fdsock: fd 3, name '', soc 0xCC8
   54 545694876 [main] startxwin 15328 fhandler_base::set_close_on_exec: set 
close_on_exec for  to 1
   42 545694918 [main] startxwin 15328 cygwin_socket: 3 = socket(2, 1 (flags 
0x200), 0)
   54 545694972 [main] startxwin 15328 cygwin_setsockopt: setsockopt optval=1
   44 545695016 [main] startxwin 15328 cygwin_setsockopt: 0 = setsockopt(3, 6, 
1, 0x28A998, 4)
   51 545695067 [main] startxwin 15328 cygwin_setsockopt: setsockopt optval=1
   42 545695109 [main] startxwin 15328 cygwin_setsockopt: 0 = setsockopt(3, 
65535, 8, 0x28A998, 4)
1000307 546695416 [main] startxwin 15328 __set_errno: void 
__set_winsock_errno(const char*, int):221 setting errno 111
  159 546695575 [main] startxwin 15328 __set_winsock_errno: connect:1078 - 
winsock error 10061 - errno 111
  108 546695683 [main] startxwin 15328 cygwin_connect: -1 = connect(3, 
0x800431A8, 16), errno 111
   91 546695774 [main] startxwin 15328 close: close(3)
  151 546695925 [main] startxwin 15328 fhandler_socket::close: 0 = 
fhandler_socket::close()
   88 546696013 [main] startxwin 15328 close: 0 = close(3)
  106 546696119 [main] startxwin 15328 cygwin_socket: socket (23, 1 (flags 
0x200), 0)
  182 546696301 [main] startxwin 15328 build_fh_pc: fh 0x61274610, dev 0x1E0024
   96 546696397 [main] startxwin 15328 

Can't start X on MS Windows 7

2013-04-11 Thread Harvey Stein (BLOOMBERG/ 731 LEXIN)
I'm trying to run X under MS Windows 7 within Cygwin.  I bring up a bash 
window, run startxwin  I get:

waiting for X server to begin accepting connections .
..
..
..
..

and it never starts up.  An X icon appears on the toolbar  then disappears.  
XWin.exe shows up in the task manager  doesn't exit.  I searched the mailing 
list  found the suggestion of wiping out the full installation  reinstalling, 
but I'd rather avoid that.  Any other ideas?

Output (which appears to match /var/log/xwin/XWin.0.log):

$ startxwin

Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 1.14.0.0
OS: CYGWIN_NT-6.1-WOW64 NY731-3W-143A 1.7.17(0.262/5/3) 2012-10-19 14:39 i686
OS: Windows 7 Service Pack 1 [Windows NT 6.1 build 7601] (WoW64)
Package: version 1.14.0-2 built 2013-04-11

XWin was started with the following command line:

X :0 -multiwindow

Initializing built-in extension Generic Event Extension
Initializing built-in extension SHAPE
Initializing built-in extension MIT-SHM
Initializing built-in extension XInputExtension
Initializing built-in extension XTEST
Initializing built-in extension BIG-REQUESTS
Initializing built-in extension SYNC
Initializing built-in extension XKEYBOARD
Initializing built-in extension XC-MISC
Initializing built-in extension XINERAMA
Initializing built-in extension XFIXES
Initializing built-in extension XFree86-Bigfont
Initializing built-in extension RENDER
Initializing built-in extension RANDR
Initializing built-in extension COMPOSITE
Initializing built-in extension DAMAGE
Initializing built-in extension MIT-SCREEN-SAVER
Initializing built-in extension DOUBLE-BUFFER
Initializing built-in extension RECORD
Initializing built-in extension DPMS
Initializing built-in extension X-Resource
Initializing built-in extension GLX
(II) xorg.conf is not supported
(II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information
LoadPreferences: /home/hstein/.XWinrc not found
LoadPreferences: Loading /etc/X11/system.XWinrc
LoadPreferences: Done parsing the configuration file...
winDetectSupportedEngines - DirectDraw installed, allowing ShadowDD
winDetectSupportedEngines - Windows NT, allowing PrimaryDD
winDetectSupportedEngines - DirectDraw4 installed, allowing ShadowDDNL
winDetectSupportedEngines - Returning, supported engines 001f
winSetEngine - Multi Window or Rootless = ShadowGDI
winScreenInit - Using Windows display depth of 32 bits per pixel
winAllocateFBShadowGDI - Creating DIB with width: 2560 height: 1440 depth: 32
winFinishScreenInitFB - Masks: 00ff ff00 00ff
winInitVisualsShadowGDI - Masks 00ff ff00 00ff BPRGB 8 d 24 bpp 32
winInitMultiWindowWM - Calling pthread_mutex_lock ()
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
GL_VERSION: 4.2.0
GL_VENDOR:  NVIDIA Corporation
GL_RENDERER:NVS 310/PCIe/SSE2
(II) AIGLX: enabled GLX_SGI_make_current_read
(II) AIGLX: enabled GLX_MESA_copy_sub_buffer
(II) AIGLX: enabled GLX_SGI_swap_control and GLX_MESA_swap_control
(II) AIGLX: enabled GLX_SGIX_pbuffer
(II) AIGLX: enabled GLX_ARB_multisample and GLX_SGIS_multisample
(II) 482 pixel formats reported by wglGetPixelFormatAttribivARB
(II) AIGLX: Set GLX version to 1.4
(II) 359 fbConfigs
(II) GLX: Initialized Win32 native WGL GL provider for screen 0
[dix] Could not init font path element /usr/share/fonts/TTF/, removing from 
list!
[dix] Could not init font path element /usr/share/fonts/OTF/, removing from 
list!
winPointerWarpCursor - Discarding first warp: 1280 720
(--) 3 mouse buttons found

waiting for X server to begin accepting connections .
..
..
..
..
..