public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
* Unable to connect to font server
@ 2013-03-28 12:57 Owen, Todd
  2013-03-28 13:09 ` Jon TURNEY
  0 siblings, 1 reply; 3+ messages in thread
From: Owen, Todd @ 2013-03-28 12:57 UTC (permalink / raw)
  To: cygwin-xfree

[-- Attachment #1: Type: text/plain, Size: 1674 bytes --]

I am trying to use an element of the form "tcp/127.0.0.1:7100" in my
font path, and it is being rejected. Furthermore, my testing shows that
XWin is not even attempting to open a socket. Is the "tcp" transport
still supported in the font path? Question 7.7 of the FAQ refers to this
syntax, so presumably it worked at some stage.

The font server I actually wish to use is on a remote machine, but I
have reduced it to a failing test case using localhost:


# Listen for connections on port 7100, in the background
$ socat TCP-LISTEN:7100 stdio >/dev/null &
$ jobs
[1]+  Running                 socat TCP-LISTEN:7100 stdio > /dev/null &

$ startxwin /usr/bin/true -- -fp tcp/127.0.0.1:7100

Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 1.13.3.0
...
[dix] Could not init font path element tcp/127.0.0.1:7100, removing from
list!
...

# The background process is still waiting for a connection on port 7100
$ jobs
[1]+  Running                 socat TCP-LISTEN:7100 stdio > /dev/null &

# But if we make a connection to the port, then the listening process
will stop:
$ socat stdio TCP-CONNECT:127.0.0.1:7100 </dev/null

[1]+  Stopped                 socat TCP-LISTEN:7100 stdio > /dev/null

# Conclusion: XWin never even made a connection to port 7100.


I have tested this on two machines, both running Window XP Professional
SP3. The difference is that on one machine Cygwin runs under a non-admin
account, and on the other machine the account has local admin rights. I
got the same results on both.

I've also tested this with Xming, and it does work.

Any idea what's going on?

Kind regards,
Todd


[-- Attachment #2: XWin.0.log --]
[-- Type: application/octet-stream, Size: 9113 bytes --]

Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 1.13.3.0
OS: CYGWIN_NT-5.1 EPE00132406 1.7.17(0.262/5/3) 2012-10-19 14:39 i686
OS: Windows XP Service Pack 3 [Windows NT 5.1 build 2600] (Win32)
Package: version 1.13.3-1 built 2013-03-09

XWin was started with the following command line:

X :0 -multiwindow 

ddxProcessArgument - Initializing default screens
winInitializeScreenDefaults - primary monitor w 1680 h 1050
winInitializeScreenDefaults - native DPI x 96 y 96
_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/EPE00132406:0
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6
Initializing built-in extension Generic Event Extension
[ 11453.156] Initializing built-in extension Generic Event Extension
Initializing built-in extension SHAPE
[ 11453.156] Initializing built-in extension SHAPE
Initializing built-in extension MIT-SHM
[ 11453.156] Initializing built-in extension MIT-SHM
Initializing built-in extension XInputExtension
[ 11453.156] Initializing built-in extension XInputExtension
Initializing built-in extension XTEST
[ 11453.156] Initializing built-in extension XTEST
Initializing built-in extension BIG-REQUESTS
[ 11453.156] Initializing built-in extension BIG-REQUESTS
Initializing built-in extension SYNC
[ 11453.156] Initializing built-in extension SYNC
Initializing built-in extension XKEYBOARD
[ 11453.156] Initializing built-in extension XKEYBOARD
Initializing built-in extension XC-MISC
[ 11453.156] Initializing built-in extension XC-MISC
Initializing built-in extension XINERAMA
[ 11453.156] Initializing built-in extension XINERAMA
Initializing built-in extension XFIXES
[ 11453.156] Initializing built-in extension XFIXES
Initializing built-in extension XFree86-Bigfont
[ 11453.156] Initializing built-in extension XFree86-Bigfont
Initializing built-in extension RENDER
[ 11453.156] Initializing built-in extension RENDER
Initializing built-in extension RANDR
[ 11453.156] Initializing built-in extension RANDR
Initializing built-in extension COMPOSITE
[ 11453.156] Initializing built-in extension COMPOSITE
Initializing built-in extension DAMAGE
[ 11453.156] Initializing built-in extension DAMAGE
Initializing built-in extension MIT-SCREEN-SAVER
[ 11453.156] Initializing built-in extension MIT-SCREEN-SAVER
Initializing built-in extension DOUBLE-BUFFER
[ 11453.156] Initializing built-in extension DOUBLE-BUFFER
Initializing built-in extension RECORD
[ 11453.156] Initializing built-in extension RECORD
Initializing built-in extension DPMS
[ 11453.156] Initializing built-in extension DPMS
Initializing built-in extension X-Resource
[ 11453.156] Initializing built-in extension X-Resource
Initializing built-in extension GLX
[ 11453.156] Initializing built-in extension GLX
(II) xorg.conf is not supported
[ 11453.156] (II) xorg.conf is not supported
(II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information
[ 11453.156] (II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information
LoadPreferences: /home/he65689/.XWinrc not found
[ 11453.156] LoadPreferences: /home/he65689/.XWinrc not found
LoadPreferences: Loading /etc/X11/system.XWinrc
[ 11453.156] LoadPreferences: Loading /etc/X11/system.XWinrc
LoadPreferences: Done parsing the configuration file...
[ 11453.156] LoadPreferences: Done parsing the configuration file...
winDetectSupportedEngines - DirectDraw installed, allowing ShadowDD
[ 11453.156] winDetectSupportedEngines - DirectDraw installed, allowing ShadowDD
winDetectSupportedEngines - Windows NT, allowing PrimaryDD
[ 11453.156] winDetectSupportedEngines - Windows NT, allowing PrimaryDD
winDetectSupportedEngines - DirectDraw4 installed, allowing ShadowDDNL
[ 11453.156] winDetectSupportedEngines - DirectDraw4 installed, allowing ShadowDDNL
winDetectSupportedEngines - Returning, supported engines 0000001f
[ 11453.156] winDetectSupportedEngines - Returning, supported engines 0000001f
winTaskbarInit - Could not get SHGetPropertyStoreForWindow address
[ 11453.156] winTaskbarInit - Could not get SHGetPropertyStoreForWindow address
winSetEngine - Multi Window or Rootless => ShadowGDI
[ 11453.156] winSetEngine - Multi Window or Rootless => ShadowGDI
winScreenInit - Using Windows display depth of 32 bits per pixel
[ 11453.156] winScreenInit - Using Windows display depth of 32 bits per pixel
winAllocateFBShadowGDI - Creating DIB with width: 2960 height: 1050 depth: 32
[ 11453.156] winAllocateFBShadowGDI - Creating DIB with width: 2960 height: 1050 depth: 32
winFinishScreenInitFB - Masks: 00ff0000 0000ff00 000000ff
[ 11453.156] winFinishScreenInitFB - Masks: 00ff0000 0000ff00 000000ff
winInitVisualsShadowGDI - Masks 00ff0000 0000ff00 000000ff BPRGB 8 d 24 bpp 32
[ 11453.156] winInitVisualsShadowGDI - Masks 00ff0000 0000ff00 000000ff BPRGB 8 d 24 bpp 32
winInitMultiWindowWM - Calling pthread_mutex_lock ()
[ 11453.156] winInitMultiWindowWM - Calling pthread_mutex_lock ()
winMultiWindowXMsgProc - Calling pthread_mutex_lock ()
[ 11453.156] winMultiWindowXMsgProc - Calling pthread_mutex_lock ()
MIT-SHM extension disabled due to lack of kernel support
[ 11453.156] 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
[ 11453.156] XFree86-Bigfont extension local-client optimization disabled due to lack of shared memory support in the kernel
GL_VERSION:     3.1.0 - Build 6.14.10.5421
[ 11453.343] GL_VERSION:     3.1.0 - Build 6.14.10.5421
GL_VENDOR:      Intel
[ 11453.343] GL_VENDOR:      Intel
GL_RENDERER:    Intel(R) HD Graphics
[ 11453.343] GL_RENDERER:    Intel(R) HD Graphics
(II) AIGLX: enabled GLX_SGI_make_current_read
[ 11453.343] (II) AIGLX: enabled GLX_SGI_make_current_read
(II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[ 11453.343] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
(II) AIGLX: enabled GLX_SGI_swap_control and GLX_MESA_swap_control
[ 11453.343] (II) AIGLX: enabled GLX_SGI_swap_control and GLX_MESA_swap_control
(II) AIGLX: enabled GLX_SGIX_pbuffer
[ 11453.343] (II) AIGLX: enabled GLX_SGIX_pbuffer
(II) AIGLX: enabled GLX_ARB_multisample and GLX_SGIS_multisample
[ 11453.343] (II) AIGLX: enabled GLX_ARB_multisample and GLX_SGIS_multisample
(II) 60 pixel formats reported by wglGetPixelFormatAttribivARB
[ 11453.343] (II) 60 pixel formats reported by wglGetPixelFormatAttribivARB
(II) AIGLX: Set GLX version to 1.4
[ 11453.343] (II) AIGLX: Set GLX version to 1.4
(II) 51 fbConfigs
[ 11453.343] (II) 51 fbConfigs
(II) GLX: Initialized Win32 native WGL GL provider for screen 0
[ 11453.343] (II) GLX: Initialized Win32 native WGL GL provider for screen 0
winPointerWarpCursor - Discarding first warp: 1480 525
[ 11453.468] winPointerWarpCursor - Discarding first warp: 1480 525
(--) 3 mouse buttons found
[ 11453.468] (--) 3 mouse buttons found
(--) Setting autorepeat to delay=500, rate=31
[ 11453.468] (--) Setting autorepeat to delay=500, rate=31
(--) Windows keyboard layout: "00000409" (00000409) "US", type 4
[ 11453.468] (--) Windows keyboard layout: "00000409" (00000409) "US", type 4
(--) Found matching XKB configuration "English (USA)"
[ 11453.468] (--) Found matching XKB configuration "English (USA)"
(--) Model = "pc105" Layout = "us" Variant = "none" Options = "none"
[ 11453.468] (--) Model = "pc105" Layout = "us" Variant = "none" Options = "none"
Rules = "base" Model = "pc105" Layout = "us" Variant = "none" Options = "none"
[ 11453.468] Rules = "base" Model = "pc105" Layout = "us" Variant = "none" Options = "none"
winBlockHandler - pthread_mutex_unlock()
[ 11453.468] winBlockHandler - pthread_mutex_unlock()
winInitMultiWindowWM - pthread_mutex_lock () returned.
[ 11453.468] winInitMultiWindowWM - pthread_mutex_lock () returned.
winInitMultiWindowWM - pthread_mutex_unlock () returned.
[ 11453.468] winInitMultiWindowWM - pthread_mutex_unlock () returned.
winMultiWindowXMsgProc - pthread_mutex_lock () returned.
[ 11453.468] winMultiWindowXMsgProc - pthread_mutex_lock () returned.
winInitMultiWindowWM - DISPLAY=:0.0
[ 11453.468] winInitMultiWindowWM - DISPLAY=:0.0
winMultiWindowXMsgProc - pthread_mutex_unlock () returned.
[ 11453.468] winMultiWindowXMsgProc - pthread_mutex_unlock () returned.
winProcEstablishConnection - winInitClipboard returned.
[ 11453.468] winProcEstablishConnection - winInitClipboard returned.
winMultiWindowXMsgProc - DISPLAY=:0.0
[ 11453.468] winMultiWindowXMsgProc - DISPLAY=:0.0
winClipboardProc - DISPLAY=:0.0
[ 11453.468] winClipboardProc - DISPLAY=:0.0
winInitMultiWindowWM - XOpenDisplay () returned and successfully opened the display.
[ 11453.468] winInitMultiWindowWM - XOpenDisplay () returned and successfully opened the display.
winMultiWindowXMsgProc - XOpenDisplay () returned and successfully opened the display.
[ 11453.468] winMultiWindowXMsgProc - XOpenDisplay () returned and successfully opened the display.
winClipboardProc - XOpenDisplay () returned and successfully opened the display.
[ 11453.484] winClipboardProc - XOpenDisplay () returned and successfully opened the display.

[-- Attachment #3: cygcheck.out --]
[-- Type: application/octet-stream, Size: 109187 bytes --]

[-- Attachment #4: Type: text/plain, Size: 223 bytes --]

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Unable to connect to font server
  2013-03-28 12:57 Unable to connect to font server Owen, Todd
@ 2013-03-28 13:09 ` Jon TURNEY
  2013-04-02  7:24   ` Owen, Todd
  0 siblings, 1 reply; 3+ messages in thread
From: Jon TURNEY @ 2013-03-28 13:09 UTC (permalink / raw)
  To: cygwin-xfree; +Cc: Todd.Owen

On 28/03/2013 06:58, Owen, Todd wrote:
> I am trying to use an element of the form "tcp/127.0.0.1:7100" in my
> font path, and it is being rejected. Furthermore, my testing shows that
> XWin is not even attempting to open a socket. Is the "tcp" transport
> still supported in the font path? Question 7.6 of the FAQ refers to this
> syntax, so presumably it worked at some stage. 

> # Conclusion: XWin never even made a connection to port 7100.

Sorry, font server font path elements are disabled because of an upstream bug
(See [1],[2])

If you really, truly need font server support, I would suggest you use
xorg-server 1.8.2-1 (unfortunately I can't arrange for this to be offered
through setup due to setup limitations, so you'll have to get it from the
cygwin time machine [3]), or agitate for this upstream bug to be fixed.

> I have tested this on two machines, both running Window XP Professional
> SP3. The difference is that on one machine Cygwin runs under a non-admin
> account, and on the other machine the account has local admin rights. I
> got the same results on both.
> 
> Any idea what's going on?

[1] http://cygwin.com/ml/cygwin-xfree-announce/2012-09/msg00000.html
[2] https://bugs.freedesktop.org/show_bug.cgi?id=31501
[3] http://www.fruitbat.org/Cygwin/#cygwintimemachine

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: Unable to connect to font server
  2013-03-28 13:09 ` Jon TURNEY
@ 2013-04-02  7:24   ` Owen, Todd
  0 siblings, 0 replies; 3+ messages in thread
From: Owen, Todd @ 2013-04-02  7:24 UTC (permalink / raw)
  To: cygwin-xfree

Hi Jon,

Thanks for your advice. I've just tried installing Cygwin from the time
machine (circa 2010/10/15-101233) in order to use the version of
xorg-server that you mentioned. Unfortunately, I'm now encountering some
issue where XWin stops responding (regardless of whether I'm using the
font server or not).

So I'll fall back onto Plan B, which is copying the fonts from our
Solaris servers to each of the client machines.

Regards,
Todd


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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-04-02  7:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-28 12:57 Unable to connect to font server Owen, Todd
2013-03-28 13:09 ` Jon TURNEY
2013-04-02  7:24   ` Owen, Todd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).