Cygwin/X XWinrc menu no longer launches after recent updates

Roland Roberts roland@astrofoto.org
Tue Mar 3 05:14:00 GMT 2020


I only noticed this in the last week or so, and assumed I'd messed up 
something with Windows 10 permission, which is still a possibility. My
first attempt to "fix" this was to reinstall pretty much everything in
Cygwin that was part of X11 or Base. And that seemed to fix 
things...until I rebooted Windows.

There are no errors in the logs, not stackdumps, nothign to indicate 
anything is not working. The X log is below. You'll notice it says

     "executing '/bin/mintty', pid 3152"

but that window never opens. If I start a shell directly via my desktop 
shortcut, which has this as it's target

     C:\cygwin64\bin\mintty.exe -i /Cygwin-Terminal.ico -

I can see that there is no PID 3152.

My .XWinrc is this:

---- .XWinrc ----
menu root {
  "Cygwin Terminal" exec "/bin/mintty -e /bin/bash"
  Emacs exec "/bin/emacs"
  xterm exec "/bin/xterm"
  notepad exec notepad
  SEPARATOR
  FAQ            EXEC "cygstart 
http://x.cygwin.com/docs/faq/cygwin-x-faq.html"
  "User's Guide" EXEC "cygstart 
http://x.cygwin.com/docs/ug/cygwin-x-ug.html"
  SEPARATOR
  "View logfile" EXEC "xterm -title $XWINLOGFILE -e less +F $XWINLOGFILE"
  SEPARATOR
  "Reload .XWinrc"        RELOAD
  SEParATOR
}

RootMenu root
----

and my .startxwinrc is

---- .startxwinrc ----
if [ -f $HOME/.Xdefaults ]; then
     xrdb -merge $HOME/.Xdefaults &
fi
sleep infinity
----

I'm lost on what might be causing this. One thing that I *did* change, 
though that was over a month ago, was to add the Cygwin sshd service. On 
the off-chance that that was the issue, I disabled it and rebooted to 
get a clean start. No joy, I still can't launch from the .XWinrc menu. 
The log entry makes it clear that it is seen and is trying.

Oh, and from a mintty shell, if I set DISPLAY=:0.0 when X is running, I 
*can* launch other X apps.

2041 roland> cat XWin.0.log
Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 1.20.5.0
OS: CYGWIN_NT-10.0-18363 flamsteed 3.1.4-340.x86_64 2020-02-19 08:49 UTC 
x86_64
OS: Windows 10  [Windows NT 10.0 build 18363] (Win64)
Package: version 1.20.5-3 built 2019-09-06

XWin was started with the following command line:

/usr/bin/XWin :0 -multiwindow -auth
  /home/roland/.serverauth.2909

ddxProcessArgument - Initializing default screens
winInitializeScreenDefaults - primary monitor w 2560 h 1440
winInitializeScreenDefaults - native DPI x 96 y 96
[   734.546] (II) xorg.conf is not supported
[   734.546] (II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for 
more information
[   734.546] LoadPreferences: Loading /home/roland/.XWinrc
[   734.562] winDetectSupportedEngines - RemoteSession: no
[   734.625] winDetectSupportedEngines - DirectDraw4 installed, allowing 
ShadowDDNL
[   734.625] winDetectSupportedEngines - Returning, supported engines 
00000005
[   734.625] winSetEngine - Multi Window or Rootless => ShadowGDI
[   734.625] winScreenInit - Using Windows display depth of 32 bits per 
pixel
[   734.625] winAllocateFBShadowGDI - Creating DIB with width: 3760 
height: 1920 depth: 32
[   734.625] winFinishScreenInitFB - Masks: 00ff0000 0000ff00 000000ff
[   734.625] winInitVisualsShadowGDI - Masks 00ff0000 0000ff00 000000ff 
BPRGB 8 d 24 bpp 32
[   734.625] MIT-SHM extension disabled due to lack of kernel support
[   734.625] XFree86-Bigfont extension local-client optimization 
disabled due to lack of shared memory support in the kernel
[   734.640] glWinSelectGLimplementation: Loaded 'cygnativeGLthunk.dll'
[   735.171] (II) AIGLX: Testing pixelFormatIndex 5
[   735.265] GL_VERSION:     4.6.0 NVIDIA 425.91
[   735.265] GL_VENDOR:      NVIDIA Corporation
[   735.265] GL_RENDERER:    Quadro K1000M/PCIe/SSE2
[   735.265] (II) GLX: enabled GLX_SGI_make_current_read
[   735.265] (II) GLX: enabled GLX_SGI_swap_control
[   735.265] (II) GLX: enabled GLX_MESA_swap_control
[   735.265] (II) GLX: enabled GLX_SGIX_pbuffer
[   735.265] (II) GLX: enabled GLX_ARB_multisample
[   735.265] (II) GLX: enabled GLX_SGIS_multisample
[   735.265] (II) GLX: enabled GLX_ARB_fbconfig_float
[   735.265] (II) GLX: enabled GLX_EXT_fbconfig_packed_float
[   735.265] (II) GLX: enabled GLX_ARB_create_context
[   735.265] (II) GLX: enabled GLX_ARB_create_context_profile
[   735.265] (II) GLX: enabled GLX_ARB_create_context_robustness
[   735.265] (II) GLX: enabled GLX_EXT_create_context_es2_profile
[   735.265] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[   735.265] (II) 1182 pixel formats reported by 
wglGetPixelFormatAttribivARB
[   735.296] (II) 1146 fbConfigs
[   735.296] (II) ignored pixel formats: 0 not OpenGL, 0 unknown pixel 
type, 36 unaccelerated
[   735.296] (II) GLX: Initialized Win32 native WGL GL provider for screen 0
[   735.562] winPointerWarpCursor - Discarding first warp: 1880 960
[   735.562] (--) 5 mouse buttons found
[   735.562] (--) Setting autorepeat to delay=500, rate=31
[   735.562] (--) Windows keyboard layout: "00000409" (00000409) "US", 
type 7
[   735.562] (--) Found matching XKB configuration "English (USA)"
[   735.562] (--) Model = "pc105" Layout = "us" Variant = "none" Options 
= "none"
[   735.562] Rules = "base" Model = "pc105" Layout = "us" Variant = 
"none" Options = "none"
[   735.562] [   735.562] winInitMultiWindowWM - DISPLAY=:0.0
winMultiWindowXMsgProc - DISPLAY=:0.0
[   735.625] winInitMultiWindowWM - xcb_connect () returned and 
successfully opened the display.
[   735.625] winProcEstablishConnection - winInitClipboard returned.
[   735.625] winClipboardThreadProc - DISPLAY=:0.0
[   735.625] winMultiWindowXMsgProc - xcb_connect() returned and 
successfully opened the display.
[   735.625] winClipboardProc - xcb_connect () returned and successfully 
opened the display.
[   735.625] Using Composite redirection
[   795.156] executing '/bin/mintty', pid 3152
[  1287.562] LoadPreferences: Loading /home/roland/.XWinrc
[  1287.562] SetupSysMenu: GetSystemMenu() failed for HWND 0x5093c
[  1287.562] SetupSysMenu: GetSystemMenu() failed for HWND 0x507be


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list