Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 445902

Summary: app-emulation/emul-linux-x86-opengl-20121202{,-r1} makes some wine programs very sluggish
Product: Gentoo Linux Reporter: Casper Ti. Vector <CasperVector>
Component: [OLD] LibraryAssignee: Gentoo X packagers <x11>
Status: RESOLVED WONTFIX    
Severity: normal CC: alex_y_xu, amd64, CasperVector, fallosistema
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Casper Ti. Vector 2012-12-04 09:39:10 UTC
app-emulation/emul-linux-x86-opengl-20121202 and app-emulation/emul-linux-x86-opengl-20121202-r1 make some wine programs (at least Plants vs Zombies for now :|) very sluggish (but normal with previous versions of app-emulation/emul-linux-x86-opengl).


Reproducible: Always

Steps to Reproduce:
1. emerge -uDN world  # With global ~amd64, as of 2012/12/04.
2. emerge -v1 --nodeps '=app-emulation/emul-linux-x86-opengl-20121028'
3. # Run PvZ in wine (Free trial version downloadable from PopCap.com).
4. emerge -v1 --nodeps '=app-emulation/emul-linux-x86-opengl-20121202-r1'
5. # Run PvZ in wine, again.
Actual Results:  
A very significant decline in the speed of the program can be observed.


Expected Results:  
The program runs smoothly, as with previous versions of app-emulation/emul-linux-x86-opengl.


Portage 2.1.11.33 (default/linux/amd64/10.0/desktop, gcc-4.6.3, glibc-2.16.0, 3.6.8-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.6.8-gentoo-x86_64-Intel-R-_Pentium-R-_Dual_CPU_T2370_@_1.73GHz-with-gentoo-2.2
Timestamp of tree: Mon, 03 Dec 2012 12:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p39
dev-java/java-config:     2.1.12
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.10.2
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.6
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6, 1.12.5
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.16.0::caspervector
Repositories: gentoo-zh gentoo-haskell gentoo caspervector
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --keep-going=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fakeroot fixlafiles merge-sync metadata-transfer news parallel-fetch parallel-install protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirrors.ustc.edu.cn/gentoo/ http://debian.bjtu.edu.cn/gentoo/"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_GB"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS=""
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--human-readable --timeout 15"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/gentoo-zh /var/lib/layman/haskell /usr/portage /usr/local/portage"
SYNC="rsync://rsync.cn.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cxx dbus dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fontconfig fortran gif gnutls gpg gpm gtk gtk3 iconv ipv6 jack jpeg lcms libedit libnotify mad maildir mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pppd qt3support qt4 readline sdl session smp socks5 spell sse sse2 sse3 ssl ssse3 startup-notification svg system-sqlite tcpd threads tiff truetype udev udisks unicode upower usb vaapi vorbis wxwidgets x264 xcb xft xinerama xml xv xvid 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 mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_GB" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

app-emulation/emul-linux-x86-opengl-20121028 was built with the following:
USE="(multilib) -development"


app-emulation/wine-1.5.18 was built with the following:
USE="X alsa fontconfig gecko gnutls jpeg lcms mono mp3 (multilib) ncurses nls opengl perl png ssl threads truetype udisks win32 xcomposite xinerama xml -capi -cups -custom-cflags -gphoto2 -gsm (-gstreamer) -hardened -ldap -odbc -openal -opencl -osmesa -oss -pulseaudio -samba -scanner (-selinux) -test -v4l -win64"
Comment 1 Pacho Ramos gentoo-dev 2012-12-04 22:11:37 UTC
Probably a problem with newer mesa, package includes:
media-libs/freeglut	2.8.0-r1
media-libs/glew	1.6.0-r1
media-libs/mesa	9.0
x11-libs/libdrm	2.4.40
Comment 2 Erik 2013-01-10 22:54:42 UTC
Duplicate:

https://bugs.gentoo.org/show_bug.cgi?id=449256#add_comment
Comment 3 Sergey Popov gentoo-dev 2013-01-11 07:48:31 UTC
*** Bug 449256 has been marked as a duplicate of this bug. ***
Comment 4 Erik 2013-01-11 11:54:06 UTC
(In reply to comment #1)
> Probably a problem with newer mesa, package includes:
> media-libs/freeglut	2.8.0-r1
> media-libs/glew	1.6.0-r1
> media-libs/mesa	9.0
> x11-libs/libdrm	2.4.40



I am using the same packages ,all are stable gentoo tree:



[ebuild   R    ] x11-libs/libdrm-2.4.40  USE="libkms -static-libs" VIDEO_CARDS="radeon (-exynos) -intel -nouveau (-omap) -vmware" 482 kB
[ebuild   R    ] media-libs/mesa-9.0.1  USE="classic egl g3dvl gallium llvm nptl shared-glapi vdpau xorg -bindist -debug -gbm -gles1 -gles2 -openvg -osmesa -pax_kernel -pic -r600-llvm-compiler (-selinux) (-wayland) -xa -xvmc" VIDEO_CARDS="r600 radeon -i915 -i965 -intel -nouveau -r100 -r200 -r300 -radeonsi -vmware" 0 kB
[ebuild   R    ] media-libs/freeglut-2.8.0-r1  USE="-debug -static-libs" 957 kB
[ebuild   R    ] media-libs/glew-1.6.0-r1  USE="-doc -static-libs" 0 kB
Comment 5 Pacho Ramos gentoo-dev 2013-02-25 18:58:11 UTC
Maybe 20130224 improves the situation
Comment 6 Casper Ti. Vector 2013-02-26 03:52:13 UTC
(In reply to comment #5)
> Maybe 20130224 improves the situation

Just tried, but unfortunately it does not fix the problem.
Comment 7 philippe alberty 2013-03-29 05:56:23 UTC
If you have a dual display setup, prefer the twinview extension to xinerama.
I had the same performance issue and the switch to twinview did the trick.
Comment 9 Erik 2013-06-18 16:42:18 UTC
I'm not using any wine program, and the bug is still there.
If i downgrade to old emu-opengl versions, games runs fine but the 2013 and 2012 versions its imposible to play anything in 32 bits.
Comment 10 Chí-Thanh Christopher Nguyễn gentoo-dev 2013-06-19 16:00:25 UTC
Probably this situation will not change until someone who sees this problem provides the requested information to the upstream bugs.
Comment 11 Erik 2013-06-20 21:52:17 UTC
I launch the game from terminal, i dont get any error to report, only black screen 3 seconds and the game continues again about 5 seconds very slow down and its a a bucle of freezes and black screen.
Comment 12 Pacho Ramos gentoo-dev 2013-10-08 21:07:11 UTC
Try with 20131008 set
Comment 13 Casper Ti. Vector 2013-10-09 15:34:57 UTC
(In reply to Pacho Ramos from comment #12)
> Try with 20131008 set

Just tested, but again it does not solve the problem, and I have to (again) mask all updates to emul-linux-* and wine to get things correct...

I might try to provide some debug output to upstream (see comment 8) as they seem to have problems reproducing this issue, but I can't promise I will do this very soon.
Comment 14 Pacho Ramos gentoo-dev 2013-10-09 16:45:57 UTC
In that case, I think you should try latest mesa version that provides native multilib support (for that, you will need to enable the abi_x86_32). If still valid, it's a problem in mesa itself (even with emul package I think it's a mesa bug, but that will let you update mesa more easily in the future)
Comment 15 Casper Ti. Vector 2013-10-12 14:21:15 UTC
(In reply to Pacho Ramos from comment #14)
> In that case, I think you should try latest mesa version that provides
> native multilib support (for that, you will need to enable the abi_x86_32).
> If still valid, it's a problem in mesa itself (even with emul package I
> think it's a mesa bug, but that will let you update mesa more easily in the
> future)

In fact I have already been quite convinced that this should be a problem in at least one among mesa and wine, because the symptoms described in those bug reports in comment 8 :)

And since these bug reports still seem unresolved, I think multilib mesa probably won't solve the problems.  As said in comment 13, I will try to provide helpful info to upstream on these issues, but I can't promise to do this soon :(
Comment 16 Casper Ti. Vector 2014-06-08 13:04:57 UTC
For anyone that is interested, this problem seems to be gone (tested with PvZ) with current ~amd64 tree (in particular =app-emulation/wine-1.7.19-r1 and =emul-linux-x86-opengl-20140508).

This might have already be resolved in earlier versions, since I have not tested this for at least 4 months, during which quite a few versions of mesa and wine have been released.

Anyway, if you (just like me) masked newer emul-linux-x86-opengl and wine versions because of this issue, it might be worth a try to unmask them.
Comment 17 Casper Ti. Vector 2014-07-04 16:05:18 UTC
Hello everyone, may this bug be closed now?
Comment 18 Casper Ti. Vector 2014-08-06 16:30:44 UTC
Reverting status to `UNCONFIRMED' after consulting devs on #gentoo at freenode.
Comment 19 Alex Xu (Hello71) 2014-11-27 14:35:14 UTC
1. applicable versions are already stable
2. just use multilib (tm)