Wine troubleshooting

From Wowpedia
Jump to: navigation, search

Troubleshooting Wine tries to address the common issues people are having with running World of Warcraft using Wine on Linux. Important note: Make ABSOLUTELY SURE you run the latest Wine version, as well as the latest version of your graphic card drivers. If you don't, and encounter errors that have been fixed in newer versions... you're out of luck.

Can't see the installer tomes on the DVD

Most distros automounter programs don't include the "unhide" option for UDF filesystems. It will most likely be mandatory to remount manually.

The exact command that would need to be run (as root) would be

mount -o remount,unhide /dev/sr0

This will be different based on where your distro places the DVD drive. An easy way to check would be to run the mount command and choose the relevant device (which will typically be sr# or cd#).

Post-4.0.1 KERNEL32.SetFileValidData crash

The installer and launcher for WoW 4.0.1 and later require a new function in kernel32.dll. If your launcher crashes, upgrade Wine to at least version 1.2.1.

Crashes

As of this writing (WoW 4.3, wine 1.3.33 and some earlier versions), the WoW Launcher and Background Downloader both crash when Peer to Peer downloading is enabled and either needs to download a new update. Ironically, the Launcher's Preferences window does not work properly in wine either, so to fix this just open a terminal and type:

wine reg add "HKCU\Software\Blizzard Entertainment\Blizzard Downloader" /v "Disable Peer-to-Peer" /t REG_DWORD /d "1" /f

You could also do this the hard way by starting up BackgroundDownloader.exe in your World of Warcraft installation directory, and quickly click the View menu, Preferences. Uncheck Peer to Peer, and check Don't throttlem then click OK. Then you can either let the download continue in the Background Downloader, or you can close the Background Downloader, and re-open the Launcher and the download will not fail.

Note that the WoW Installer from the Account Management site uses the Launcher to download all of the game client beyond the basics it needs to start the Launcher, so if you are installing WoW for the first time, expect that the Launcher will crash (as of this writing) and so you will need to use the Background Downloader to change the preferences.

Config.wtf

Main article: Config.wtf

Sound corruption

If you have problems with sound stuttering you may have to increase or decrease the sound buffer a bit. It's configured by changing the value of the SET SoundBufferSize line in wtf/Config.wtf. Anything from 50 to 250 may cure your problem. Bear in mind that excessive buffer size may create audio sync issues.

You may try the following option as well:

SET SoundOutputSystem "1"

UI corruption

If you experience corrupt icons or interface textures, you then you may need to set the UIFaster parameter in wtf/Config.wtf

Use it like this:

Set UIFaster "x"

Where x equals:

0 – This turns off all UI acceleration
2 – Enables partial UI acceleration only.
3 – Enables all UI acceleration.

Example:

Set UIFaster "2"

The value 2 usually corrects this problem.

Winecfg

Audio driver

If you experience stuttering, bad sound or no sound what so ever, then you must try a few things in winecfg. Just type winecfg in a terminal, press enter, and the winecfg window should appear and you should go to the audio tab. Alsa is preferable.

Also, refer to the Voice chat section for information on getting multiple audio streams working with OSS and ALSA (more than one program using audio at once). It will save you grief should you ever want to listen to music and chat on Ventrilo or Teamspeak while playing, and similar.

Utilizing PulseAudio with Wine

Use ALSA mode and install pulseaudio-alsa or wine with pulseaudio support.

Other tweaks

Glitch every 3-5 sec

If you see a noticeable graphical stutter every 3 to 5 seconds or so for this you need to edit /etc/X11/xorg.conf and add something like:

Option "UseFastTLS" "2"

to the Video card "Device" Section. This is normally a problem with the proprietary Linux Drivers for ATI cards.

Another possibility is a problem with the default kernel scheduler; this is particularly an issue with nVidia graphics. This is the same fix as described below, in the "Stuttering every 15 seconds.." section.

Installer.exe and RAM type

On certain systems there is a problem with RAM and the WoW Installer. On a Core2 Duo 6400 with DDR2-800, setting the RAM to DDR2-533 in BIOS allowed the installer to work flawlessly the first time. It's easy to confuse this issue with a CD/DVD problem because the installer will complain about a checksum error.

Stuttering every 15 seconds and flickering line fix

On some distributions, World of Warcraft stutters exactly every 15 seconds. You will also notice a flickering bar on the top of your screen. This is associated with kernels using the CFS scheduler, which roughly corresponds with version 2.6.24 of the Linux kernel (or later).

In most cases, the fix will require rebuilding the kernel, and setting the kernel build configuration option "CONFIG_SCHED_DEBUG" to "y". To see if you need to rebuild the kernel, look for the file "/proc/sys/kernel/sched_features". If this file exists, you do not need to recompile your kernel.

Instructions for compiling your kernel are beyond the scope of this page; consult your distribution's documentation for information on how to do this. Here are some hints for specific distributions:

Once your kernel is recompiled (or you've found that it doesn't need to be recompiled), tuning your kernel is much easier. Just add the following lines to your /etc/sysctl.conf:

# World of Warcraft stutter and flickering line fix
kernel.sched_features=21
kernel.sched_batch_wakeup_granularity_ns=25000000
kernel.sched_min_granularity_ns=4000000

Save it, and reboot. World of Warcraft should now run without silly stuttering and flickering.

Wine source patches

Nvidia-specific issues

TwinView

You know that you have this problem if World of Warcraft does not display correctly, and you have TwinView enabled. To fix this, set the in-game video settings to "Windowed Mode", and "Maximized". Unfortunately, you will not be able to set the resolution at the video settings, so: set the appropriate resolution by changing gxResolution in Config.wtf to your liking (this looks just like running in fullscreen). E.g.:

SET gxResolution "1280x1024"

Alternatively, if you by any chance cannot access the in-game video settings you can force these settings by enabling:

SET gxWindow "1"
SET gxMaximize "1"

ATI-Specific issues

ATI no Object Textures/Models

Some ATI user have the problem, that character and object models are hidden. It seems to appear with newer ATI drivers. To solve the problem, add the following line to the Config.wtf

SET M2UseShaders "0"

ATI enter game world crash

For users with an ATI video card: certain cards have trouble rendering games and video in opengl using current flgrx drivers which will cause your computer to hard locks when you attempt to enter a domain. This error will occur just after character creation/selection, as the game environment is loading, or possibly after a short period of play. In order to fix this error, add the following lines of code to your xorg.conf file in the ATI device section:

Option "Capabilities" "0x00000800"
Option "UseFastTLS" "off"
Option "KernelModuleParm" "locked-userpages=0"

This is where you find the file:

/etc/X11/xorg.conf

The section should look something similar to this after editing:

Section "Device"
  Identifier  "aticonfig-Device[Amity wine]]ver      "fglrx"
  Option       "Capabilities" "0x00000800"
  Option       "UseFastTLS" "off"
  Option       "KernelModuleParm" "locked-userpages=0"
EndSection

Note: this has been tested and also works with NVidia cards.


Common errors

Can't eject the CD

If you've got the disk space, the easiest solution would be to rip the entirety of disc 1, and the Installer Tome #.mpq files from the remaining discs to some folder on your computer (like ~/wow/), then run the installer from there.

Waiting for files to close...

This message appears during patching when certain files are open (Launcher.exe, Wow.exe, etc). To make sure you don't have any of those files open, try killall -9 wineserver && killall -9 wine to close all wine applications. If this didn't do anything, open winecfg and change the Windows version to Windows NT 4.0. If it still doesn't work, you may have more luck with other Windows versions.

Your 3D accelerator card is not supported by World of Warcraft. Please install a 3D accelerator card with dual-TMU support.

There is a 99% chance that this is due to the drivers. If you just got a new graphic card or reinstalled the OS, you might be using outdated drivers. Distribution drivers are usually weeks or even months behind the current ones. It's strongly recommended to use the official ones (nVidia, ATI).

This error can also happen on 64-bit Linux distributions if you're using the proprietary drivers as packaged by the distribution. Some distributions put the 32-bit versions of the libraries in a separate package. Since Wine uses the 32-bit libraries even on 64-bit systems, Wine won't support accelerated OpenGL without them. Look for a package that's named similarly to the driver package, but includes a note about being 32-bit. For example, on 64-bit Debian, if you're using the "nvidia-glx" libraries, you want to also install "nvidia-glx-ia32".

If you have just updated your system's kernel or video drivers, you may simply need to restart your computer.

err:module:import_dll Library OPENGL32.dll

You get the following error on startup:

err:module:import_dll Library OPENGL32.dll (which is needed by L"C:Program Files/World of Warcraft/wow.exe")
not found err:module:LdrInitializeThunk Main exe initialization for L"C:/Program Files/World of Warcraft/wow.exe"
failed, status c0000135

Solution : check that /usr/local/lib/wine/opengl32.dll.so has ownership of root:root and permissions -rwxr-xr-x, if it does not then you may have not been super user when you ran the "make install" command. become superuser and repeat the make install command as shown in the howto. Do not just change the ownership/permissions of opengl32.dll.so as probably all the other files are wrong too, so do a make install. IMPORTANT: When going through the steps of compiling Wine from the source code to execute the "make install" command, be sure to include the following in the first step listed in the howto: sudo ./configure --enable-opengl If you miss this tiny part of the process, OpenGL will not install with Wine and WoW will not run, throwing the same error as listed above. You'll need to uninstall Wine and start the process all over again.


Error #134 "Unable to associate local address with socket..."

The socket is already bound to an address, or the parameter is a listening socket. You need to make sure your loopback interface is up, by running:

ifconfig lo up

or

sudo ifconfig lo up

"DOS address space" or "DOS memory range" errors

See the Wine wiki page on this issue.

Mouse moves camera angle improperly or mouse pointer is shifted

These errors have been experienced with Ubuntu 10.04 using the default window manager: GNOME.

The first error is when depressing a mouse button anywhere in the characters field of vision will cause the camera to immediately pan upwards until it is right above the player character. Mouse use on any menu item, however, does not affect the camera.

The second error is when the mouse pointer has been skewed. So, in order to press a button in game, the mouse pointer must be a few millimeters off the target.

The cause is unknown at this time, however the fix has been to use a more light weight window manager: Fluxbox.

To install (in Ubuntu), enable the universe software source, then you can use apt-get to install it.

sudo apt-get install fluxbox

Then, log out of your current window manager to get to the login screen. Under the title "Sessions", there will be the option to select "Fluxbox"

For Ubuntu users: To connect to the Internet in Fluxbox, you can hit Alt+F2 for a "Run Program" dialog. Then type in:

nm-applet

Cyrillic letters issue

If you have ????? letters while typing in wow with russian layout, try this steps:

1. Install MS fonts a. Install MS fonts with you distribution package manager (for ubuntu:

  $sudo apt-get install msttcorefonts  

for gentoo:

  emerge corefonts

b. copy them to your wine's drive_c/windows/fonts/ directory. Usually that can be done in such way:

  cp /path/to/installed/fonts/* /home/username/.wine/drive_c/windows/Fonts/


2. Force wow to use cp1251 charset a. Open menu item (.desktop file) wich you are using to launch wow with text editor

  nano /usr/share/applications/Wow.desktop

b. change exec line to include env LANG="ru_RU.cp1251". That's mine:

  Exec=env LANG="ru_RU.cp1251" WINEPREFIX="/home/username/.wine" wine H:\\\\path\\\\to\\\\World\\ of\\ Warcraft\\\\Wow.exe

Wow crashes on login/entering world

This happens when you use open source drivers which have legal issues with S3 texture compression, which is disabled and requires libtxc_dxtn to be installed. Otherwise you can force partial support with:

export force_s3tc_enable=true && wine Wow.exe