Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 16382 - xfree-4.2.99.902 allows winex to run but disables keyboard
Summary: xfree-4.2.99.902 allows winex to run but disables keyboard
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-25 21:02 UTC by Peter Ruskin
Modified: 2003-06-06 03:39 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Ruskin 2003-02-25 21:02:45 UTC
100% repeatable.  I run, as non-root user:
$ cd "$HOME/.transgaming/c_drive/Program Files/Phenomedia AG/Moorhuhn
Winter-Edition"
$ winex ./MoorhuhnWinter.exe

mouse works fine .. I play the game and if I get a high score I can't enter my
name - keyboard doesn't respond.  I try to quit by hitting Escape - no response.
No response to Ctrl-Alt-F? and none for Ctrl-Alt-Backspace.  Alt-SysReq-K
restarts X but then Ctrl-Alt-F? shows all consoles' video is corrupt - text is
unreadable.  This happens whether or not I boot with framebuffer console.  X is
still usable (without sound and without winex until I reboot).

This happens with xfree-4.2.99.902 and -4.2.99.4.  It has nothing to do with
glibc-2.3.2pre1 (see Bug #16355), as I have reverted to 2.3.1-r3 so I could test
xfree-4.2.99 with winex.

Winex works perfectly with xfree-4.2.1-r2.

 # emerge info
Portage 2.0.46-r12 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r3)
=================================================================
System uname: 2.4.20-xfs_pre6 i686 AMD Athlon(tm) XP 1900+
GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/texmf/tex/generic/config
/usr/share/texmf/tex/platex/config /usr/X11R6/lib/X11/xkb
/usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY="/usr/local/portage"
USE="x86 oss 3dnow apm avi cups encode gif jpeg mikmod mmx mpeg ncurses nls
pdflib png qtmt quicktime spell truetype xml2 xmms xv zlib alsa berkdb slang
readline arts tetex aalib bonobo svga ggi tcltk java guile mysql postgres X sdl
gpm tcpd pam ssl perl python esd imlib oggvorbis gtk qt kde opengl mozilla snmp
cdr scanner acpi doc dvd fbcon innodb maildir mbox nocardbus odbc samba slp sse
tiff usb wmf -crypt -gnome -libg++ -motif -gdbm -libwww"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe -mmmx -msse -m3dnow "
CXXFLAGS="-O2 -march=athlon-xp -pipe -mmmx -msse -m3dnow "
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 1 SpanKY gentoo-dev 2003-02-25 21:34:08 UTC
does this occur with other games ?
what version of winex are you using ?
Comment 2 Peter Ruskin 2003-02-25 22:34:28 UTC
don't know about other games, sorry
app-emulation/winex-20021123

That winex and xfree-4.2.99 allowed Fort
Comment 3 Peter Ruskin 2003-02-25 22:34:28 UTC
don't know about other games, sorry
app-emulation/winex-20021123

That winex and xfree-4.2.99 allowed Forté Agent to run with the --managed option (by default I don't use --managed).
Comment 4 phoen][x 2003-02-26 09:15:31 UTC
Thanks for the CC, seemant.

Peter:
Try it with app-emulation/winex-cvs please (you have to unmask it first). 

-phoen][x-
Comment 5 Peter Ruskin 2003-02-26 12:40:59 UTC
Results identical with winex-cvs.  Alt-SysReq-K closes the game and X restarts on Console 8 (previously 7) with all vcs garbled and no sound.
Comment 6 Peter Ruskin 2003-02-28 12:35:44 UTC
Results identical with new xfree-4.3.0.  I'm going back to 4.2.1-r2
Comment 7 phoen][x 2003-03-05 06:12:15 UTC
Hey Peter.

winex-cvs, winex-transgaming and winex work flawlessy (as in 'the keyboard works') on my box using the latest xfree-4.3.0. Do me a favor and try to run the game in a desktop (check ~/.winex/config). 

-phoen][x-
Comment 8 Peter Ruskin 2003-03-06 15:21:45 UTC
OK, tried that.  The problem I reported doesn't occur with
   "Desktop" = "N"
or
   "Managed" = "Y"

It *always* occurs with xfree-4.2.99* and -4.3.0 with:
   "Managed" = "N"
which is my preferred mode of operation.  The 640x480 desktop is too small for
my use so I'll stick with 4.3.0 and "Managed" = "Y" for now.

This is definitely a bug, however, when {wine,winex,winex-cvs} mixes with
xfree > 4.2.1-r2 and "Managed" = "N"
Comment 9 Peter Ruskin 2003-03-11 21:16:02 UTC
I just rebuilt kernel-2.4.20-xfs_pre6 without framebuffer support, thinking that may have some bearing on the matter, then remerged xfree-2.4.20-xfs_pre6.  It's still the same.  <Ctrl>-<Alt>-{Backspace,KeyPad+/-,FKey} have absolutely no effect.  sys-libs/glibc-2.3.1-r3.

So off I go back again to xfree-4.2.1-r2

Comment 10 Stefan Jones (RETIRED) gentoo-dev 2003-04-14 08:43:55 UTC
I don't use winex or have any games to test this on.
Comment 11 Seemant Kulleen (RETIRED) gentoo-dev 2003-04-14 08:48:29 UTC
phoenix can you test this with 4.3.0-r2 please?
Comment 12 phoen][x 2003-04-14 09:12:49 UTC
Diablo 2 and Master of Orion 2 work flawlessy on my box (yes, the keyboard does work indeed).

Package versions:
binutils-2.13.90.0.20-r1
gcc-3.2.2
glibc-2.3.1-r3
gnome-2.2.1
gs-sources-2.4.21_pre7
sawfish-1.2
wine-20030411
xfree-4.3.0-r2

-phoen][x-
Comment 13 Peter Ruskin 2003-04-14 12:54:36 UTC
OK, I did `emerge binutils xfree` and had the same versions as phoen][x (the others he listed were alredy the same.  Running solitaire and notepad with that wine, keystrokes don't reach the app but are echoed at the originating console, even when started backgrounded)

winex-20021123 doesn't start at all, even after remerging, usually providing no error message, but:

$ winex /home/peter/win/windows/sol.exe
Could not load 'SHELL.DLL' required by 'SOL', error=2
Comment 14 Peter Ruskin 2003-04-21 09:21:05 UTC
OK, as per GWN I emerged x11-base/xfree-4.3.0-r2 and media-libs/libsdl-1.2.5-r2, having previously unmerged xft.

wine and winex are still broken.
$ wine /home/peter/win/windows/sol.exe
  (Solitaire - this works OK)

$ wine /home/peter/win/windows/notepad.exe
hdhdh
  (the "hdhdh" is what I typed but didn't appear in notepad)

$ winex ./MoorhuhnWinter.exe
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  45 (X_OpenFont)
  Value in failed request:  0x3000006
  Serial number of failed request:  50
  Current serial number in output stream:  51

...so it's back to 4.2.1 _again_ for me
Comment 15 Seemant Kulleen (RETIRED) gentoo-dev 2003-06-02 18:49:42 UTC
Peter -- curious -- do you run openmotif or lesstif?
Comment 16 Seemant Kulleen (RETIRED) gentoo-dev 2003-06-02 18:55:52 UTC
*** Bug 20522 has been marked as a duplicate of this bug. ***
Comment 17 Peter Ruskin 2003-06-02 18:59:03 UTC
No lesstif but openmotif-2.2.2-r1.  The only reason for my having openmotif is that it's  
necessary for netscape plugins in KDE  
Comment 18 Seemant Kulleen (RETIRED) gentoo-dev 2003-06-02 19:12:19 UTC
Peter can you remerge it?  Just for kicks.
Comment 19 Peter Ruskin 2003-06-02 19:30:30 UTC
Sure, anything for kicks...but remerge what? 
Comment 20 Seemant Kulleen (RETIRED) gentoo-dev 2003-06-02 19:45:11 UTC
well, emerge xfree-4.3.0-r2 and then re-emerge *tif and try the wine thing again.
Comment 21 Peter Ruskin 2003-06-03 07:14:57 UTC
No, it won't do Seemant.  I unmerged openmotif and emerged xfree-4.3.0-r2.  Openmotif 
is emerging now on a console.  This happens when I try a winex program: 
 
$ my_moorhuhn 
Building font metrics. This may take some time... 
X Error of failed request:  BadValue (integer parameter out of range for operation) 
  Major opcode of failed request:  45 (X_OpenFont) 
  Value in failed request:  0x280001e 
  Serial number of failed request:  247 
  Current serial number in output stream:  248 
Comment 22 Seemant Kulleen (RETIRED) gentoo-dev 2003-06-05 03:55:56 UTC
ok, let's get some info: can I see your fontpaths in XF86Config?

Also, are you running xfs?  If so, can I see /etc/X11/fs/config as well?

Finally, do you have custom fonts installed in /usr/X11R6/lib/X11/fonts?
Comment 23 Seemant Kulleen (RETIRED) gentoo-dev 2003-06-05 03:56:50 UTC
from the wine faq:
Run wine -debugmsg +font -sync to see what fonts it was querying the
X server about, then remove the offending font.
Comment 24 Marco Hennings 2003-06-05 04:58:53 UTC
fontpaths:
    FontPath   "/usr/X11R6/lib/X11/fonts/local/"
    FontPath   "/usr/share/fonts/"
    FontPath   "/usr/X11R6/lib/X11/fonts/misc/"
    FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
    FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
    FontPath   "/usr/X11R6/lib/X11/fonts/Type1/"
    FontPath   "/usr/X11R6/lib/X11/fonts/Speedo/"
    FontPath   "/usr/X11R6/lib/X11/fonts/100dpi/"
    FontPath   "/usr/X11R6/lib/X11/fonts/75dpi/"

xfs is not running,
/usr/share/fonts contains various ttf fonts. 
I dont remember if those are custom installed. 


Comment 25 Seemant Kulleen (RETIRED) gentoo-dev 2003-06-05 05:10:56 UTC
Spider, I could use some help on this.
Comment 26 Peter Ruskin 2003-06-05 06:09:15 UTC
From XF86Config: 
Section "Files" 
  	FontPath  	"/usr/local/truetype" 
  	FontPath  	"/usr/X11R6/lib/X11/fonts/misc:unscaled" 
  	FontPath  	"/usr/X11R6/lib/X11/fonts/TTF" 
  	FontPath  	"/usr/X11R6/lib/X11/fonts/100dpi:unscaled" 
  	FontPath  	"/usr/X11R6/lib/X11/fonts/75dpi:unscaled" 
  	FontPath  	"/usr/X11R6/lib/X11/fonts/Type1" 
  	FontPath  	"/usr/X11R6/lib/X11/fonts/Speedo" 
  	FontPath  	"/usr/X11R6/lib/X11/fonts/cyrillic:unscaled" 
  	FontPath  	"/usr/X11R6/lib/X11/fonts/CID" 
  	FontPath  	"/usr/X11R6/lib/X11/fonts/TrueType" 
  	FontPath  	"/usr/X11R6/lib/X11/fonts/truetype" 
  	FontPath  	"/usr/X11R6/lib/X11/fonts/freefont" 
	FontPath	"/usr/share/fonts/ttf-bitstream-vera" 
        RgbPath 	"/usr/X11R6/lib/X11/rgb" 
#    FontPath "unix/:-1" 
EndSection 
 
Using xfree-4.2.1-r2 because of this bug...when I emerge 4.3.0-r2 I first unmerge xft.  So 
current /etc/X11/fs/config: 
# 
# X Font Server configuration file 
# 
 
# allow a max of 4 clients to connect to this font server 
#client-limit = 4 
 
# no tcp, use sockets! 
no-listen  =  tcp 
 
# when a font server reaches its limit, start up a new one 
clone-self = on 
 
# alternate font servers for clients to use 
#alternate-servers = foo:7101,bar:7102 
 
# where to look for fonts 
# Some of these are commented out, i.e. the TrueType and Type1 
# directories in /usr/share, because they aren't forced to be 
# installed alongside X. 
# 
catalogue = /usr/X11R6/lib/X11/fonts/75dpi, 
	/usr/X11R6/lib/X11/fonts/100dpi, 
	/usr/X11R6/lib/X11/fonts/misc, 
	/usr/X11R6/lib/X11/fonts/Type1, 
	/usr/X11R6/lib/X11/fonts/Speedo, 
	/usr/X11R6/lib/X11/fonts/CID, 
	/usr/X11R6/lib/X11/fonts/Speedo, 
	/usr/X11R6/lib/X11/fonts/TrueType, 
	/usr/X11R6/lib/X11/fonts/truetype, 
	/usr/X11R6/lib/X11/fonts/TTF, 
	/usr/X11R6/lib/X11/fonts/cyrillic, 
	/usr/X11R6/lib/X11/fonts/freefont, 
	/usr/share/fonts/ttf-bitstream-vera 
 
# in 12 points, decipoints 
default-point-size = 120 
 
# 100 x 100 and 75 x 75 
default-resolutions = 100,100,75,75 
 
# how to log errors 
use-syslog = on 
 
# font cache control, specified in KB 
cache-hi-mark = 2048 
cache-low-mark = 1433 
cache-balance = 70 
 
My custom? fonts are in /usr/X11R6/lib/X11/fonts/truetype 
Comment 27 Spider (RETIRED) gentoo-dev 2003-06-05 08:13:25 UTC
okay, remove the "webdings.ttf" font in the truetype directory.. its a flawed font that garbles this.

Comment 28 Marco Hennings 2003-06-05 11:15:28 UTC
deleting webdings had no effect here; is there a way to check which fonts are responsible?

i am here by bug 20522, broken xfig on xfree 4.3. 

why does xfig run properly inside xnest? isnt xnest using the same fonts?
Does winex work inside xnest?
Comment 29 Peter Ruskin 2003-06-05 12:07:41 UTC
No, nothing to do with webdings.  I've found the font problem in the winex config. 
The ~/.winex/config that worked fine with xfree-4.2.1 doesn't work with 4.3.0.   
I had an old trangaming config file from a previous life.  Using that config with  
4.3.0 made winex work again.  Checking all the differences revealed that you  
need to add the following to ~/.winex/config: 
 
[FontPatterns] 
"Pattern0" = "-adobe-times*" 
"Pattern1" = "-adobe-helvetica*" 
"Pattern2" = "-adobe-courier*" 
"Pattern3" = "-misc-fixed*" 
 
winex-cvs can be fixed the same way 
Comment 30 Seemant Kulleen (RETIRED) gentoo-dev 2003-06-06 02:54:58 UTC
Peter, happily using 4.3.0-r2/3 then?
Comment 31 Peter Ruskin 2003-06-06 03:39:29 UTC
Yes, at last :-)