Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 290695 - games-strategy/wesnoth-1.6.5 may not work with media-libs/libsdl-1.2.14 in windowed mode
Summary: games-strategy/wesnoth-1.6.5 may not work with media-libs/libsdl-1.2.14 in wi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-27 07:35 UTC by tman
Modified: 2010-07-20 07:31 UTC (History)
5 users (show)

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


Attachments
Fix mouse clicking (libsdl-1.2.14-fix-mouse-clicking.patch,804 bytes, patch)
2010-04-08 19:43 UTC, Tim Harder
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tman 2009-10-27 07:35:57 UTC
games-strategy/wesnoth-1.6.5 dont work with media-libs/libsdl-1.2.14

downgrade to  1.2.13-r1  it work fine.

Reproducible: Always

Steps to Reproduce:

Actual Results:  
Portage 2.1.7.1 (default/linux/amd64/10.0, gcc-4.4.2, glibc-2.10.1-r0, 2.6.31-gentoo-r3 x86_64)
=================================================================
System uname: Linux-2.6.31-gentoo-r3-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P9700_@_2.80GHz-with-gentoo-2.0.1
Timestamp of tree: Thu, 22 Oct 2009 04:30:01 +0000
app-shells/bash:     4.0_p33
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.3, 3.1.1-r1
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.5.2-r1
sys-apps/sandbox:    2.1
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/X11/Sessions/awesome /etc/X11/Sessions/dwm /etc/X11/xorg.conf /etc/apache2/httpd.conf /etc/conf.d/hwclock /etc/conf.d/keymaps /etc/fstab /etc/make.conf /etc/xdg/openbox/autostart.sh /etc/xdg/openbox/menu.xml /etc/xdg/openbox/rc.xml /etc/xdg/openbox/start /usr/share/X11/xkb /usr/share/xsessions/openbox.desktop"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="de en vi"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
USE="7zip X a52 aac aalib accessibility acl acpi adns afs aim alsa amd64 ao apache2 ass atm audio audiofile avahi bash-completion beagle berkdb bidi bluetooth bzip2 cairo caps cdda cdio cdparanoia cdr cgi cjk cli clisp consolekit cracklib crypt cscope css csv cups curl curlwrappers cvs dbus dc1394 dga dia dirac directfb dmx dri dts dv dvd dvdr dvi emacs enca encode enscript erandom exif expat extras faac faad fam fastcgi fbcon ffmpeg firefox flac flash fortran ftp fuse gcj gd gdbm geoip ggi gif gimp git glib gmp gnome gnome-keyring gnutls gphoto2 gpm graphviz gs gstreamer gtk gzip hal hash hddtemp highlight httpd iconv icq icu idn ieee1394 imagemagick imap imlib ipv6 jabber jack java java6 javascript jingle joystick jpeg jpeg2k kerberos lame lapack latex lcms ldap libcaca libwww live logrotate lua lzo mad maildir matroska md5sum memlimit mhash midi mikmod mime mjpeg mmap mmx mmxext mng mono motif mp3 mp4 mpeg mplayer msn mudflap mule multilib musepack mysql nas nautilus ncurses network networkmanager nfs nls nptl nptlonly nsplugin nvidia ogg ogg123 openal openexr opengl openmp oss pam pcmcia pcre pdf perl php pic pidgin png posix postgres ppds ps pulseaudio python qt3support qt4 quicktime radio rar raw rdesktop readline reflection rss rtsp ruby samba sasl savedconfig schroedinger sdl sdl-image session sip slang slp smp soap sockets sox spamassassin speex spell spl sqlite sse sse2 ssl stream stun subversion svg swat sysfs syslog sysvipc tcl tcpd theora threads tidy tiff timidity tk tokenizer truetype ucs2 udev unicode urandom usb userlocales v4l v4l2 vcd vhosts video vim-syntax vlc vlm vnc vorbis wav wavpack webkit wifi wma wmf wxwidgets x264 xattr xcb xcomposite xft xinerama xinetd xml xmlrpc xorg xpm xprint xscreensaver xsl xulrunner xv xvid xvmc yahoo zip zlib zsh-completion" ALSA_CARDS="hda_intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation php5 proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en vi" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa fbdev vga vmware" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 tman 2009-10-27 07:43:36 UTC
Error output: 

setting mode to 1278x943x32
ALSA lib pcm.c:7234:(snd_pcm_recover) underrun occured
20091027 09:42:50 error general: no location found for 'data/campaigns/Era_of_Myths/translations', not adding textdomain
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2009-10-29 06:42:14 UTC
works fine for me on x86
Comment 3 tman 2009-10-29 08:52:31 UTC
emerge --info ??

coz it dont work here 
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2009-10-29 17:53:37 UTC
Please run wesnoth under strace and attach the output:

strace -o out wesnoth

attach the out file.
Comment 5 Mr. Bones. (RETIRED) gentoo-dev 2009-10-30 19:34:20 UTC
reopen with that file please.
Comment 6 tman 2009-10-30 20:10:11 UTC
im sorry the curently output of strace has more then 1MB so upload it to RS

http://rapidshare.com/files/300145926/out.html

and addtion to this this bug ist still there and i reopen it again
Comment 7 Mr. Bones. (RETIRED) gentoo-dev 2009-10-30 20:29:11 UTC
Please attach /home/cornix/.wesnoth/preferences as text/plain
Comment 8 tman 2009-10-30 20:57:02 UTC
colour_cursors="no"
fullscreen="no"
grid="no"
ping_timeout="0"
scroll_threshold="10"
scroll_to_action="yes"
show_haloes="yes"
turbo="no"
turbo_speed="2"
upload_log_new="yes"
[history]
[/history]
Comment 9 Mr. Bones. (RETIRED) gentoo-dev 2009-10-30 21:02:41 UTC
try moving your .wesnoth directory completely aside and see if that changes the error.
Comment 10 tman 2009-10-30 21:08:21 UTC
i have done this nothing hapen. same problem like b4
Comment 11 Mr. Bones. (RETIRED) gentoo-dev 2009-10-30 21:18:39 UTC
I suspect you have old files lying around or something.  The string Era_of_Myths doesn't appear in the distributed tarball or the installed files.
Comment 12 tman 2009-10-30 21:28:42 UTC
however, this problem exist with games-strategy/wesnoth-1.6.5 and media-libs/libsdl-1.2.14


what i aldready tried:
#####################
rm -Rf ~/.wesnoth


result:
######################
with same errors like b4.

Comment 13 Mr. Bones. (RETIRED) gentoo-dev 2009-11-09 21:49:27 UTC
I can't reproduce this and the presence of messages about files that aren't included in the package makes me suspect a local problem.  Reopen if you can prove there's a problem with the ebuild.
Comment 14 tman 2009-11-24 23:18:23 UTC
this problem is still exist, here is some confirm of this problem:

http://forums.gentoo.org/viewtopic-t-803808-highlight-wesnoth.html


the only way is to make a work around by

 mask =libsdl-1.2.14 and downgrade to libsdl-1.2.13-r1

 
Comment 15 Mr. Bones. (RETIRED) gentoo-dev 2009-11-25 00:13:50 UTC
That link doesn't have anything to do with wesnoth-1.6.5.

I told you before, you have files that don't come with the tarball installed on your system.  You probably have another version of wesnoth installed or something.

At any rate, there's no problem with wesnoth-1.6.5 and libsdl-1.2.14 that you've shown yet.
Comment 16 Jesús Guerrero Botella (RETIRED) gentoo-dev 2009-12-15 16:37:49 UTC
See this, please.

http://bugs.archlinux.org/task/16809

There's a problem, though I am still not sure *where*. It seems to depend on both wesnoth and libsdl, and probably your window manager, and whether you run the game in full screen or windowed mode.

The results for me are as follows:

*  Windowed mode under fvwm and openbox: left click on grey buttons do NOT
   work, however clicking on the small mail icon to the bottom right do works.
   In this case, if I hold right click then I can use left click normally as
   well. But it's quite hard to play that way, at least for me.

*  Fullscreen mode, with or without window manager: it works. Left click works
   normally. I can't do anything else while I am running wesnoth though.

*  Windowed mode without a WM. When I set up a simple xinitrc file with only
   "wesnoth" on it, then it will also work normally without a problem even in
   Windowed mode. However X is not of much use without a WM.

So, it seems to be some kind of weird interaction between SDL and the Window
Manager. It's not the first time this happens, I remember other odds in the past
related to SDL when not in fullscreen mode but can't exactly remind what the
problems was.

If nothing else, I hope this helps some of you to at least reproduce the 
problem consistently. Remember, that all this applies only to libsd-1.2.14,
previous versions work ok.

I choose to reopen the bug because I can reproduce the problem consistently
and I also provided a link to another source where the same exact problem
has been spotted, reproduced in the same way, and worked around in the same
two ways. So I think it's consistent enough to deserve reopening the bug.

Comment 17 Jesús Guerrero Botella (RETIRED) gentoo-dev 2009-12-15 16:45:54 UTC
The wesnoth people are also aware of this, and they seem to have contacted one SDL dev about it.

http://gna.org/bugs/?14770

For the time being their proposed solution is to make wesnoth depend on <libsdl-1.2.14, so until sdl is fixed maybe we should do that.
Comment 18 tman 2009-12-15 21:04:54 UTC
thx for confirm this bug- finally. i hope in the upcoming version 1.8x of wesnoth there are a work around or fix for this problem
Comment 19 Nils Kneuper 2009-12-27 09:53:02 UTC
(In reply to comment #18)
> thx for confirm this bug- finally. i hope in the upcoming version 1.8x of
> wesnoth there are a work around or fix for this problem
> 

Sadly it looks like we (Wesnoth team) can't do much about this issue. We already told the maintainer of libsdl and he answered that he is not able to reproduce it himself. I pointed him to this thread, maybe he finds some more info in here so that he is eventually able to fix the issues.
With other words: don't expect this issues to fixed unless you get an update for libsdl!
Comment 20 Ivan Diorditsa 2010-01-31 20:25:53 UTC
Please make wesnoth depend on libsdl-1.2.13 only.

It took me a few months to find this bug (not that I searched eagerly, but anyway).
Comment 21 Mr. Bones. (RETIRED) gentoo-dev 2010-02-01 03:20:20 UTC
It only fails with certain configurations.  If it doesn't work for you, you should mask media-libs/libsdl-1.2.14 locally with:

echo "~media-libs/libsdl-1.2.14" >> /etc/portage/package.mask
Comment 22 Ivan Diorditsa 2010-03-11 14:45:50 UTC
Can you add a postinst einfo for those who have a 'failing' configuration then?
Comment 23 Mr. Bones. (RETIRED) gentoo-dev 2010-03-11 16:11:23 UTC
No, since it's not yet clear exactly what the problem is.
Comment 24 Mr. Bones. (RETIRED) gentoo-dev 2010-03-31 16:08:42 UTC
link to upstream bug report:

http://bugzilla.libsdl.org/show_bug.cgi?id=894
Comment 25 Mr. Bones. (RETIRED) gentoo-dev 2010-03-31 17:22:37 UTC
link to wesnoth upstream bug:

https://gna.org/bugs/index.php?14770
Comment 26 Nils Kneuper 2010-04-08 18:24:20 UTC
Someone posted a patch in the report for this in the Debian tracker. It is probably a good idea if this patch does fix the issues and. in case that it does help, apply the patch until it is eventually included in upstream libsdl. Here is the respective URL:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=565788#19
Comment 27 Tim Harder gentoo-dev 2010-04-08 19:43:52 UTC
Created attachment 227053 [details, diff]
Fix mouse clicking

Patch to fix mouse clicking in Wesnoth while using libsdl-1.2.14

Note that this patch is based off of the debian patch [1] seen on the upstream bugtracker.

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=565788#19
Comment 28 Tim Harder gentoo-dev 2010-04-08 19:47:06 UTC
(In reply to comment #27) 
> Patch to fix mouse clicking in Wesnoth while using libsdl-1.2.14

The ebuild change needed to add this patch is trivial (add another epatch line in the src_prepare phase) so I'm not attaching a patch for it.
Comment 29 Mr. Bones. (RETIRED) gentoo-dev 2010-04-08 20:26:49 UTC
I added the patch from Debian to libsdl-1.2.14-r2 so if you're able to reproduce the problem, give that version a try and see how things work out.
Comment 30 Nils Kneuper 2010-04-09 10:25:48 UTC
I was not affected completely by this issue, but just "partly". For me it was sometimes not possible to have clicks registered, but selecting a different app and then switching back to Wesnoth made the clicks register.
Clicking seems to work all the time now (once Wesnoth is in focus, this is intentional!) when using libsdl-1.2.14-r2.
Comment 31 Tim Harder gentoo-dev 2010-07-07 08:38:57 UTC
This bug can probably be closed now since the latest patch works as expected and no one has said otherwise for awhile.
Comment 32 Nils Kneuper 2010-07-20 07:31:20 UTC
Sam Lantinga had a look at the issue and created a different patch that does not break the original bugfix. The patch is attached to his bugtracker: http://bugzilla.libsdl.org/show_bug.cgi?id=894#c13

It might make sense to replace the current patch by this one.