public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
From: "Weeber, Burkhard" <b.weeber@viastore.com>
To: <cygwin-xfree@cygwin.com>
Subject: AW: AW: 1.9.2.0: Xwin SIGSEGV when font server should be queried
Date: Tue, 09 Nov 2010 08:45:00 -0000	[thread overview]
Message-ID: <578A937A9A719E4CB564C5A9013A6012032EAA31@MAILD.viastore.de> (raw)
In-Reply-To: <4CD7FFC2.3090004@dronecode.org.uk>

I managed to work around it.

In the startup of XWin I start a few windows.
In one of them I add the font server after a bit of sleep to settle down
XWin.
Now the XWin does not SIGSEGV any more why so ever.

Here are the scripts I use to start up my X environment

Burkhard

Startxwin.bat:
@echo off
SET DISPLAY=127.0.0.1:0.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=\cygwin
SET RUN=%CYGWIN_ROOT%\bin\run -p /usr/bin

SET PATH=.;%CYGWIN_ROOT%\bin;%PATH%

SET XAPPLRESDIR=
SET XCMSDB=
SET XKEYSYMDB=
SET XNLSPATH=

REM Shared Memory support
SET CYGWIN=server

REM
REM Cleanup after last run.
REM

if not exist %CYGWIN_ROOT%\tmp\.X11-unix\X0 goto CLEANUP-FINISH
attrib -s %CYGWIN_ROOT%\tmp\.X11-unix\X0
del %CYGWIN_ROOT%\tmp\.X11-unix\X0

:CLEANUP-FINISH
if exist %CYGWIN_ROOT%\tmp\.X11-unix rmdir %CYGWIN_ROOT%\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 Description of XWin-specific options is in XWin(1) manpage.


REM
REM Startup the programs
REM


REM Startup the X Server with the integrated Windows-based window
manager.
REM WARNING: Do not use 'xwinclip' in conjunction with the
``-clipboard''
REM command-line parameter for XWin.  Doing so would start two clipboard
REM managers, which is never supposed to happen.

%RUN% XWin -multiwindow -clipboard -silent-dup-error -xkbvariant
nodeadkeys -logverbose 3

REM add my favorites
%RUN% bash ~/.startxwinrc

~/startxwinrc:
sleep 3
xrdb -all -load ~/.Xdefaults 2>>/tmp/startxwin.log
# add WEE's favorites
ssh -Y as1 "aixterm -fullcursor -geometry 81x30-125+93 -T
\"ROUTERS-LOG\" -fn 6x10 -e /usr/local/bin/max.pl" &
ssh -Y as1 "aixterm -ls -fullcursor -geometry 81x25+711+1 -bg magenta
-fg snow -T \"Mail-LOG\" -fn 6x10 -e ~/bin/maillog.sh" &
ssh -Y as1 "~/bin/termtk.pl" &

#now add font server ; terminal closes upon script end
ssh -Y as1 "aixterm -ls -fullcursor -geometry 81x25+37+208 -e
~/.xsetwee"

ssh -Y as1 "aixterm -ls -fullcursor -geometry 81x25+37+208" &
ssh -Y as1 "aixterm -ls -fullcursor -geometry 81x25+88+217" &

.xsetwee:
echo "Sleeping 10 seconds"
sleep 10
xset fp+ tcp/mystique:7100
xset q
echo "Sleeping 10 seconds until close"
sleep 10
exit


_________________________________________________________________________________________
Geschaeftsfuehrer/Managing Directors: Christoph Hahn-Woernle, Frank Apel
HRB 17335, Amtsgericht Stuttgart (Commercial Register District Court Stuttgart)
St.-Nr. 99064/06051, USt-IdNr./VAT Reg.No.: DE 203036780


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


  reply	other threads:[~2010-11-09  8:45 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-04 14:49 Weeber, Burkhard
2010-11-05 19:52 ` Jon TURNEY
2010-11-08 10:21   ` AW: " Weeber, Burkhard
2010-11-08 13:48     ` Jon TURNEY
2010-11-09  8:45       ` Weeber, Burkhard [this message]
2010-11-09  9:52       ` AW: " Weeber, Burkhard
2010-11-08 14:11   ` Weeber, Burkhard
2010-11-10 16:12     ` Jon TURNEY

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=578A937A9A719E4CB564C5A9013A6012032EAA31@MAILD.viastore.de \
    --to=b.weeber@viastore.com \
    --cc=cygwin-xfree@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).