Discussion:
issues with startxwin not loading x windows
michael messina
2016-08-18 18:37:05 UTC
Permalink
I recently switched from a windows 7 laptop to windows 10 at work here; I had cygwin 64 working with metacity as my preferred frontend for x windows with no problems.  Inexplicably on the 16th it ceased functioning.  I attempted a reinstall and instead, now I get is a black popup momentarily, then nothing happens.  Enclosed are various log files/etc.

I cannot unfortunately give my cygcheck.out without giving away a lot of internal corporate information so that was redacted since it's absolutely necessary.  That said, all of the various packages said 'ok' for them.  I've had my trend micro office scan administrator add my pc's C:\cygwin64 folder to the exceptions section of the configuration. Also scanned the hard drive/FS for filesystem on windows; nothing found.

I cannot boot into safe mode because of bitlocker.

So enclosed is my redacted cygcheck.out; my xsessions.error file from 8/16, my xwin.0 file, and a copy of the gdb output.

Interestingly when I try to do a strace on it, I just get 'segmentation fault' as the output. Output log file is empty.

I'm baffled here and being mostly pure linux, I kind of live and die by my cygwin instance.
Any thoughts here? Please note neither opening the terminal and typing any variation of startxwin, xwin, startx, or using any start menu icons for x windows will produce anything but the described result of nothing happening Though at least from a terminal window I get some output before it refuses to start like this:

$ startxwin

Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 1.18.4.0
OS: CYGWIN_NT-10.0 LTFA25932 2.5.2(0.297/5/3) 2016-06-23 14:29 x86_64
OS: Windows 10 [Windows NT 10.0 build 10586] (Win64)
Package: version 1.18.4-1 built 2016-07-22

XWin was started with the following command line:

/usr/bin/XWin :0 -multiwindow -auth
/home/050162/.serverauth.9444

(II) xorg.conf is not supported
(II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information
LoadPreferences: /home/050162/.XWinrc not found
LoadPreferences: Loading /etc/X11/system.XWinrc
LoadPreferences: Done parsing the configuration file...
winDetectSupportedEngines - RemoteSession: no
winDetectSupportedEngines - DirectDraw4 installed, allowing ShadowDDNL
winDetectSupportedEngines - Returning, supported engines 00000005
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
Marco Atzeri
2016-08-19 06:31:28 UTC
Permalink
I recently switched from a windows 7 laptop to windows 10 at work here; I had cygwin 64 working with metacity as my preferred frontend for x windows with no problems. Inexplicably on the 16th it ceased functioning. I attempted a reinstall and instead, now I get is a black popup momentarily, then nothing happens. Enclosed are various log files/etc.
I cannot unfortunately give my cygcheck.out without giving away a lot of internal corporate information so that was redacted since it's absolutely necessary. That said, all of the various packages said 'ok' for them. I've had my trend micro office scan administrator add my pc's C:\cygwin64 folder to the exceptions section of the configuration. Also scanned the hard drive/FS for filesystem on windows; nothing found.
I cannot boot into safe mode because of bitlocker.
So enclosed is my redacted cygcheck.out; my xsessions.error file from 8/16, my xwin.0 file, and a copy of the gdb output.
Interestingly when I try to do a strace on it, I just get 'segmentation fault' as the output. Output log file is empty.
I'm baffled here and being mostly pure linux, I kind of live and die by my cygwin instance.
the problem is Micro Trend:
https://cygwin.com/ml/cygwin/2016-08/msg00228.html



--
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
michael messina
2016-08-19 14:00:32 UTC
Permalink
Saw your reply, Marco.


So basically at this point I had them do further exclusions and now we're getting this as far as the window popping up but nothing happens for a moment, then it closes.


The X log looks like this:


Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 1.18.4.0
OS: CYGWIN_NT-10.0 LTFA25932 2.5.2(0.297/5/3) 2016-06-23 14:29 x86_64
OS: Windows 10  [Windows NT 10.0 build 10586] (Win64)
Package: version 1.18.4-1 built 2016-07-22

XWin was started with the following command line:

/usr/bin/X :0 -auth /home/050162/.serverauth.10232

ddxProcessArgument - Initializing default screens
winInitializeScreenDefaults - primary monitor w 1536 h 864
winInitializeScreenDefaults - native DPI x 96 y 96
[ 66808.562] (II) xorg.conf is not supported
[ 66808.562] (II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information
[ 66808.562] LoadPreferences: /home/050162/.XWinrc not found
[ 66808.562] LoadPreferences: Loading /etc/X11/system.XWinrc
[ 66808.562] LoadPreferences: Done parsing the configuration file...
[ 66808.562] winDetectSupportedEngines - RemoteSession: no
[ 66808.625] winDetectSupportedEngines - DirectDraw4 installed, allowing ShadowDDNL
[ 66808.625] winDetectSupportedEngines - Returning, supported engines 00000005
[ 66808.625] winSetEngine - Using Shadow DirectDraw NonLocking
[ 66808.625] winScreenInit - Using Windows display depth of 32 bits per pixel
[ 66808.656] winWindowProc - WM_SIZE - new client area w: 1520 h: 785
[ 66808.671] winFinishScreenInitFB - Masks: 00ff0000 0000ff00 000000ff
[ 66808.671] MIT-SHM extension disabled due to lack of kernel support
[ 66808.671] XFree86-Bigfont extension local-client optimization disabled due to lack of shared memory support in the kernel
[ 66808.671] (EE) AIGLX: No native OpenGL in modes with a root window
[ 66808.687] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[ 66808.687] (II) AIGLX: Loaded and initialized swrast
[ 66808.687] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[ 66810.203] winPointerWarpCursor - Discarding first warp: 760 392
[ 66810.203] (--) 5 mouse buttons found
[ 66810.203] (--) Setting autorepeat to delay=500, rate=31
[ 66810.203] (--) Windows keyboard layout: "00000409" (00000409) "US", type 7
[ 66810.203] (--) Found matching XKB configuration "English (USA)"
[ 66810.203] (--) Model = "pc105" Layout = "us" Variant = "none" Options = "none"
[ 66810.203] Rules = "base" Model = "pc105" Layout = "us" Variant = "none" Options = "none"
[ 66810.968] winProcEstablishConnection - winInitClipboard returned.
[ 66810.984] winClipboardThreadProc - DISPLAY=:0.0
[ 66810.984] OS maintains clipboard viewer chain: yes
[ 66810.984] OS maintains clipboard viewer chain: yes
[ 66810.984] winClipboardProc - XOpenDisplay () returned and successfully opened the display.
[ 66828.421] winClipboardProc - winClipboardFlushWindowsMessageQueue trapped WM_QUIT message, exiting main loop.
[ 66828.421] winClipboardProc - XDestroyWindow succeeded.
[ 66828.437] winDeinitMultiWindowWM - Noting shutdown in progress
[ 66828.437] (II) Server terminated successfully (0). Closing log file.



It's getting significantly farther but dies on startup as you can see.  Thoughts?





From: michael messina
Sent: Thursday, August 18, 2016 2:37 PM
To: ***@cygwin.com
Subject: issues with startxwin not loading x windows
 

I recently switched from a windows 7 laptop to windows 10 at work here; I had cygwin 64 working with metacity as my preferred frontend for x windows with no problems.  Inexplicably on the 16th it ceased functioning.  I attempted a reinstall and instead, now I get is a black popup momentarily, then nothing happens.  Enclosed are various log files/etc.

I cannot unfortunately give my cygcheck.out without giving away a lot of internal corporate information so that was redacted since it's absolutely necessary.  That said, all of the various packages said 'ok' for them.  I've had my trend micro office scan administrator add my pc's C:\cygwin64 folder to the exceptions section of the configuration.   Also scanned the hard drive/FS for filesystem on windows; nothing found.

I cannot boot into safe mode because of bitlocker.

So enclosed is my redacted cygcheck.out; my xsessions.error file from 8/16, my xwin.0 file, and a copy of the gdb output.

Interestingly when I try to do a strace on it, I just get 'segmentation fault' as the output.  Output log file is empty.

I'm baffled here and being mostly pure linux, I kind of live and die by my cygwin instance. 
Any thoughts here?  Please note neither opening the terminal and typing any variation of startxwin, xwin, startx, or using any start menu icons for x windows will produce anything but the described result of nothing happening Though at least from a terminal window I get some output before it refuses to start like this:

$ startxwin

Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 1.18.4.0
OS: CYGWIN_NT-10.0 LTFA25932 2.5.2(0.297/5/3) 2016-06-23 14:29 x86_64
OS: Windows 10  [Windows NT 10.0 build 10586] (Win64)
Package: version 1.18.4-1 built 2016-07-22

XWin was started with the following command line:

/usr/bin/XWin :0 -multiwindow -auth
 /home/050162/.serverauth.9444

(II) xorg.conf is not supported
(II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information


Cygwin/X Frequently Asked Questions
x.cygwin.com
Cygwin/X is a port of the X Window System to Cygwin. Cygwin provides a UNIX-like API on the Win32 platform.
LoadPreferences: /home/050162/.XWinrc not found
LoadPreferences: Loading /etc/X11/system.XWinrc
LoadPreferences: Done parsing the configuration file...
winDetectSupportedEngines - RemoteSession: no
winDetectSupportedEngines - DirectDraw4 installed, allowing ShadowDDNL
winDetectSupportedEngines - Returning, supported engines 00000005
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error


--
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
Eliot Moss
2016-08-19 14:28:07 UTC
Permalink
Maybe I am way off base, but this seems similar to what will happen if a
.startxwinrc file's commands don't have something that waits. My .startxwinrc
looks like this:

#!/bin/bash

xrdb -merge ${HOME}/.Xdefaults
xmodmap ${HOME}/.Xmodmap

UC="${USER} console"
xterm +tb -geometry 110x62+4+0 -T "${USER}" -n "${USER}" -name "${USER}" -bg rgbi:.0/.2/.2 -ls
-iconic &
xterm +tb -geometry 110x62-10+0 -T "${UC}" -n "${UC}" -name "${UC}" -bg rgbi:.5/.0/.1 -ls
-iconic &
xemacs -iconic -geometry 110x61+0+0 -T xemacs &
wait


That is, it sets some defaults using xrdb and xmodmap and that opens two xterms and one xemacs.
Note that those last three commands end in & ... they are this started in background. The
'wait' is very important here! Without it, the X startup process terminates and then the
X server exits.

Hope this helps, or at least does not add too much noise to the conversation!

Eliot Moss

--
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
Keith Christian
2016-10-26 14:13:26 UTC
Permalink
Michael,

To limit information leakage, I do this for several pieces of software
on my corporate PC. The sed script that you'll create is useful in
many other "cleaning" operations as well.

1. Create a text file dump using cygcheck or by whatever method named
"original_text_file"

2. Look for strings in "original_text_file" that you want filtered or
changed. (I simply delete entire lines containing anything with a
sensitive string, but you could obviously replace the string only.)

3. Add these strings to a sed file, e.g. "clean.sed"

4. To avoid matching short strings before long strings, run the
command below to put the longest strings first, so that partial
strings aren't replaced too early, causing misses later in the
original_text_file:

awk '{print length($0)";"$0}' clean.sed|sort -nr|awk -F\; '{print
$2}'>clean.longest_strings_first.sed


/sensitive_string_lowercase_002/d
/sensitive_string_lowercase_001/d
/sensitive_string_lowercase_000/d
/SENSITIVE_STRING_UPPERCASE_000/d
/SENSITIVE_STRING_MixedCase_000/d
/username_lowercase_001/d
/username_lowercase_000/d
/SENSITIVE_STRING_001/d
/^[0-9][0-9][0-9]*(/d
/USERNAME_MixedCase/d
/MACHINE_NAME_001/d
/DOMAINNAME_001/d
/DOMAINNAME_000/d
/USERNAME_CAPS/d
/LOGONSERVER/d
/xyzcompany/d
/XYZCOMPANY/d
/CLIENTNAME/d
/PuTTY/d
/BLART/d
/FOO/d


5. Run this command line to produce an output named "filtered_text_file"

sed -f clean.longest_strings_first.sed original_text_file>filtered_text_file

6. I like to use the "vimdiff" command to show the changes from
"original_text_file" to "filtered_text_file."


vimdiff original_text_file filtered_text_file


7. Iterate over steps 2 - 6 editing "clean.sed" until it produces a
clean.longest_strings_first.sed file that filters or modifies strings
that you don't want in the output.
Post by Eliot Moss
Maybe I am way off base, but this seems similar to what will happen if a
.startxwinrc file's commands don't have something that waits. My .startxwinrc
#!/bin/bash
xrdb -merge ${HOME}/.Xdefaults
xmodmap ${HOME}/.Xmodmap
UC="${USER} console"
xterm +tb -geometry 110x62+4+0 -T "${USER}" -n "${USER}" -name "${USER}"
-bg rgbi:.0/.2/.2 -ls -iconic &
xterm +tb -geometry 110x62-10+0 -T "${UC}" -n "${UC}" -name "${UC}"
-bg rgbi:.5/.0/.1 -ls -iconic &
xemacs -iconic -geometry 110x61+0+0 -T xemacs &
wait
That is, it sets some defaults using xrdb and xmodmap and that opens two
xterms and one xemacs.
Note that those last three commands end in & ... they are this started in background. The
'wait' is very important here! Without it, the X startup process terminates and then the
X server exits.
Hope this helps, or at least does not add too much noise to the conversation!
Eliot Moss
--
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
--
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

Loading...