RE: XWin 6.8.99.901-4-Problems with fonts and clipboard module - cygcheck.out (0/1)

2007-05-11 Thread Phil Betts
Robert Neville wrote on Thursday, May 10, 2007 10:07 PM::

 After reinstalling X and all fonts, I mounted the font path and still
 receive this error. 
 
 Could not init font path element /usr/X11R6/lib/X11/fonts/CID/,
 removing from list!

This is not an error, it is just a warning.  If you had searched the
archive you would have known this.  Everyone will get this in their 
log unless they've explicitly installed fonts into the CID directory.

Your problem has nothing to do with fonts.

 winProcSetSelectionOwner - Clipboard not yet started, aborting. 
 winProcSetSelectionOwner - Clipboard not yet started, aborting.
 winClipboardProc - winClipboardFlushWindowsMessageQueue trapped
 WM_QUIT message, exiting main loop. winClipboardProc - XDestroyWindow
 succeeded. 
 
 winClipboardIOErrorHandler!

This appears to be your problem.  My guess is that either:

a) something is trying to communicate with the X clipboard before 
it has finished its initialisation.  If this is the case, you might
find my version of startxwin.bat useful (attached, just save  rename 
it).  This waits for a key line to appear in the XWin log file before
trying to launch any client programs.

b) you have some firewall/antivirus/other software that is interfering 
with the communication with the X clipboard.  The advice is generally 
to uninstall such software. Just disabling them still leaves them 
hooked into the system.  Dave Korn has been compiling a list of the 
known offenders in the cygwin-talk thread The Big List of Dodgy Apps.
Search the mail archives to see if you have any of the mentioned 
programs.

If none of the above works, you could always try the obsolete xwinclip,
which is a standalone clipboard handler.  To install it via cygwin 
setup, you need to uncheck the hide obsolete and administrative 
packages option.  To use it, you need to remove the -clipboard option 
from the XWin command line, start the X server, then enter the command 
run xwinclip.  This is not particularly reliable, and IIRC some key 
changes regarding data conversion are missing from it, but at least 
when it crashes, it doesn't cause X to die too.  Note that because 
this package is obsolete (and has been for quite some time), you 
cannot expect any support for it.

HTH,

Phil
@echo off
SET DISNO=0
SET DISPLAY=127.0.0.1:%DISNO%.0

REM 
REM The path in the CYGWIN_ROOT environment variable assignment assume
REM that Cygwin is installed in a directory called 'cygwin' in the root
REM directory of the current drive.  You will only need to modify
REM CYGWIN_ROOT if you have installed Cygwin in another directory.  For
REM example, if you installed Cygwin in \foo\bar\baz\cygwin, you will need 
REM to change \cygwin to \foo\bar\baz\cygwin.
REM 
REM This batch file will almost always be run from the same drive (and
REM directory) as the drive that contains Cygwin/X, therefore you will
REM not need to add a drive letter to CYGWIN_ROOT.  For example, you do
REM not need to change \cygwin to c:\cygwin if you are running this
REM batch file from the C drive.
REM 

SET CYGWIN_ROOT=C:\cygwin
SET CYGWIN_TMP=C:\cygwin\tmp
SET CYGWIN_USR=C:\cygwin\usr

SET PATH=%CYGWIN_USR%\X11R6\bin;%CYGWIN_ROOT%\bin;%CYGWIN_USR%\local\bin;%PATH%

SET XAPPLRESDIR=/usr/X11R6/lib/X11/app-defaults
SET XCMSDB=/usr/X11R6/lib/X11/Xcms.txt
SET XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB
SET XNLSPATH=/usr/X11R6/lib/X11/locale

REM
REM Cleanup after last run.
REM

if not exist %CYGWIN_TMP%\.X11-unix\X%DISNO% goto CLEANUP-FINISH
attrib -s %CYGWIN_TMP%\.X11-unix\X%DISNO%
del %CYGWIN_TMP%\.X11-unix\X%DISNO%

:CLEANUP-FINISH
if exist %CYGWIN_TMP%\.X11-unix rmdir %CYGWIN_TMP%\.X11-unix

REM
REM The error Fatal server error: could not open default font 'fixed' is
REM caused by using a DOS mode mount for the mount that the Cygwin/X
REM fonts are accessed through.  See the Cygwin/X FAQ for more 
REM information:
REM http://x.cygwin.com/docs/faq/cygwin-x-faq.html#q-error-font-eof
REM

if %OS% == Windows_NT goto OS_NT

REM Windows 95/98/Me
echo startxwin.bat - Starting on Windows 95/98/Me

goto STARTUP

:OS_NT

REM Windows NT/2000/XP/2003
echo startxwin.bat - Starting on Windows NT/2000/XP/2003

:STARTUP

REM Brief descriptions of XWin-specific options:
REM
REM -engine engine_type_id
REM  Override the server's automatically selected engine type:
REM 1 - Shadow GDI
REM 2 - Shadow DirectDraw
REM 4 - Shadow DirectDraw4 Non-Locking
REM 16 - Native GDI - experimental
REM -screen scr_num [width height]
REM  Enable screen scr_num and optionally specify a width and
REM  height for that screen.
REM  Most importantly, any parameters specified before the first -screen
REM  parameter apply to all screens.  Any options after the first -screen
REM  parameter apply only to the screen that precedes the parameter.
REM  Example:
REM  XWin -fullscreen -screen 0 -screen 1 -depth 8 -screen 2
REM  All screens will be fullscreen, but screen 2 will be depth 8, 

XWin 6.8.99.901-4-Problems with fonts and clipboard module - cygcheck.out (0/1)

2007-05-10 Thread Robert Neville
I am reposting my problem since it has not been resolved after forty hours of 
troubleshooting the
situation.   Even though this mail list gave me some insight, I still need 
better guidance. General
comments will not help this newcomer decipher the error log and deduct the 
course of action. This
post is my last effort to avoid installing and reinstalling cygwin, which will 
provide a challenge
after setting up ssh and all the paths. 

Startx failed to initialize when it had been working in the past. I ran setup 
and the process may
have not completed (it was late). After running setup.exe again, I navigated to 
the System category
and reinstalled rebase. Then I reviewed the README file; kill all processes 
associated with cygwin;
ran ash; and typed /bin/rebaseall -v; the utility performed some actions and 
returned without
errors.

I fired up a cygwin console and startx would still not initialize. The console 
gave me the following
font error.

sageQueue trapped WM_QUIT message, exiting main loop.
winClipboardProc - XDestroyWindow succeeded.
FreeFontPath: FPE /usr/X11R6/lib/X11/fonts/misc/ refcount is 2, should be 1; 
fixing.


I have also removed the clipboard and multiplewindows arguments from the startx 
script; it did not
help. The clipboard module is the main advantage of running X for me.  
Startxwin.bat and starxwin.sh
do not launch Xwin either. Xwin should not be conflicting with a firewall; 
since this system does
not have software firewall.

After reinstalling X and all fonts, I mounted the font path and still receive 
this error.

Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from li
st!

The cygwin console appears fully functional. Please give me whatever insight 
you may have on these
scenarios. I can read the logs, but I can not decipher them am not familiar 
with the action
necessary.  I found this interesting commentary as well (it didn't work 
either). 

http://quantumg.blogspot.com/2006/11/god-damn-i-hate-cygwin.html


#--#
$ startx

_XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root
(II) XF86Config is not supported
(II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information
winAdjustVideoModeShadowGDI - Using Windows display depth of 32 bits per pixel
winAllocateFBShadowGDI - Creating DIB with width: 2048 height: 768 depth: 32
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
winMultiWindowXMsgProc - Hello
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
(--) Setting autorepeat to delay=500, rate=31
(--) winConfigKeyboard - Layout: 0409 (0409) 
(--) Using preset keyboard for English (USA) (409), type 4
(--) 5 mouse buttons found
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from 
list!
winInitMultiWindowWM - pthread_mutex_lock () returned.
winProcEstablishConnection - Hello
winInitMultiWindowWM - pthread_mutex_unlock () returned.
winMultiWindowXMsgProc - pthread_mutex_lock () returned.
winInitMultiWindowWM - DISPLAY=127.0.0.1:0.0
winMultiWindowXMsgProc - pthread_mutex_unlock () returned.
winMultiWindowXMsgProc - DISPLAY=127.0.0.1:0.0
winInitClipboard ()
winProcEstablishConnection - winInitClipboard returned.
winClipboardProc - Hello
DetectUnicodeSupport - Windows NT/2000/XP
winClipboardProc - DISPLAY=127.0.0.1:0.0
winMultiWindowXMsgProc - XOpenDisplay () returned and successfully opened the 
display.
winClipboardProc - XOpenDisplay () returned and successfully opened the display.
winInitMultiWindowWM - XOpenDisplay () returned and successfully opened the 
display.
winProcSetSelectionOwner - Clipboard not yet started, aborting.
winProcSetSelectionOwner - Clipboard not yet started, aborting.
winClipboardProc - winClipboardFlushWindowsMessageQueue trapped WM_QUIT 
message, exiting main loop.
winClipboardProc - XDestroyWindow succeeded.

winClipboardIOErrorHandler!

#--#
$ startxwin.bat
startxwin.bat - Starting on Windows NT/2000/XP/2003
  3 [main] run 728 tty_list::allocate: No tty allocated
  3 [main] run 4424 tty_list::allocate: No tty allocated

#--#
[EMAIL PROTECTED] /usr/X11R6/bin
$ startxwin.sh

_XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.
(II) XF86Config is not supported
(II) See