Fglrx problem with HL-based applications in Wine

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
panska
Newbie
Newbie
Posts: 3
Joined: Fri Feb 10, 2012 12:15 pm

Fglrx problem with HL-based applications in Wine

Post by panska »

I'm running Ubuntu 11.10 with a AMD Radeon HD 6xxxM series graphiccard. Recently I've had some serious problems with running Half Life-based applications in Wine which all used to work fine. Those include Counter-Strike 1.6 and Day of Defeat for now. I'm using Steam to play those games.

After a while in a multiplayer game the whole xorg crashes, I can't do anything and have to hard-reset my computer. And due to that, I'm sorry to say that I've been unable to grab a terminal output of the problem.

I've tried different Catalyst drivers including 12.1, 11.12 and 11.10. I know that I've had no problems with 11.12 and 11.10 before, but now all of a sudden this happens. Also tried different wine versions, 1.4-rc2, 1.3.37 and 1.3.19 (which I used to run the applications with before). It is also not a "gameoverlayrenderer.dll" (which is a known crash-problem when running games with Steam using Wine) I've changed it off and on helplessly as well as changing compatible Windows versions in winecfg.

After some serious searching at the web my conclusion is that this might have to do something with running opengl-applications in wine using fglrx. All though, switcihing from opengl to D3D in video settings still hangs xorg. Strange thing is that all used to work fine once..

I have yet to find a solution to the problem, any help is appreciated.
lahmbi5678
Level 7
Level 7
Posts: 823
Joined: Thu Aug 27, 2009 6:23 am

Post by lahmbi5678 »

Just a guess, if a clean wineprefix doesn't help (move/rename/backup .wine folder), it might be a unfortunate combination of kernel updates and mismatching graphics drivers.
panska
Newbie
Newbie
Posts: 3
Joined: Fri Feb 10, 2012 12:15 pm

Post by panska »

Currently using PlayOnLinux to launch my wine apps because of the neat option to use several wine versions. Reinstalled wine + pol and when that didn't work I tried reinstalling Ubuntu, still the same. Sorry to say that the problem is currently solved by dual-booting win 7, which sucks :/
lahmbi5678
Level 7
Level 7
Posts: 823
Joined: Thu Aug 27, 2009 6:23 am

Post by lahmbi5678 »

Hi panska,

sorry to hear that things didn't work out for you. Maybe you can try another linux like opensuse or an older or newer Ubuntu. The question would be, why things stopped working, it might be interesting, if a non-up-to-date Ubuntu 11.10 (maybe installed from an "old" dvd etc) might get your games working again. On the other hand, I could understand if you didn't want to invest more time into that issue.
lahmbi5678
Level 7
Level 7
Posts: 823
Joined: Thu Aug 27, 2009 6:23 am

Post by lahmbi5678 »

Hi,

Some other things you could try: get latest ati driver, if you haven't already, completely disable/uninstall pulseaudio in Ubuntu. In older wine versions, there used to be some issues with wine and hardware acceleration, which could be worked around with some settings, this won't work with recent wine versions due to architectural changes, for more information see
http://forum.winehq.org/viewtopic.php?t=14212
panska
Newbie
Newbie
Posts: 3
Joined: Fri Feb 10, 2012 12:15 pm

Post by panska »

Thanks alot for your effort into this matter lahmbi5678!

I might try out Opensuse, I've always found it interesting. I'm currently using up-to-date Ubuntu 11.10 and the latest ati drivers, installed the "fglrx-updates" package. As you say, an older version of Ubuntu might work, but at the time I think I'll leave it as a last solution thought.

The problem is that I'm using the Wine 1.4 release candidates, but disabling pulseaudio sounds like a good option when trying out version 1.3.19 again. I'll do that and get back to you.

Then again, thanks alot for your thoughts and help!
lahmbi5678
Level 7
Level 7
Posts: 823
Joined: Thu Aug 27, 2009 6:23 am

Post by lahmbi5678 »

Hi,

the disabling pulseaudio approach is quite independent from the hardware acceleration thing, there are different issues behind, so you could try disabling pulseaudio with up-to-date Ubuntu.
jaroslaw
Level 1
Level 1
Posts: 5
Joined: Sat Feb 25, 2012 6:27 am

Post by jaroslaw »

Hello,
by chance I've found this posts and while it's quite recent I'd like to add my comments in this matter. I also have Ubuntu 11.10 and similar graphic card(AMD 6850M). While playing under wine in D3D games(Drakensang: The dark eye, Crysis 2, Jagged Alliance Back In Action) after a while x-org crashes. So this is the same issue as panska described.
X-org output below:

Code: Select all

X.Org X Server 1.10.4
Release Date: 2011-08-19
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.24-29-server x86_64 Ubuntu
Current Operating System: Linux jaroslaw-Aspire-7750G 3.0.0-13-generic #22-Ubuntu SMP Wed Nov 2 13:27:26 UTC 2011 x86_64
Kernel command line: BOOT_IMAGE=/@/boot/vmlinuz-3.0.0-13-generic root=/dev/sda1 ro rootflags=subvol=@ crashkernel=384M-2G:64M,2G-:128M quiet splash vt.handoff=7
Build Date: 19 October 2011  05:21:26AM
xorg-server 2:1.10.4-1ubuntu4.2 (For technical support please see http://www.ubuntu.com/support) 
Current version of pixman: 0.22.2
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Mon Nov 28 20:03:45 2011
(==) Using config file: "/etc/X11/xorg.conf"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(WW) fglrx: No matching Device section for instance (BusID PCI:0@1:0:1) found
[-     XMM_GLX] [I ]glesxXvInit Configureable RGBOutputColorRange
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
>                   Ignoring extra symbols
Errors from xkbcomp are not fatal to the X server
Wine 1.4-rc4 output till crash:

Code: Select all

fixme:win:EnumDisplayDevicesW ((null),0,0x33ee10,0x00000000), stub!
Setting breakpad minidump AppID = 57740
Steam_SetMinidumpSteamID:  Caching Steam ID:  76561197960265728 [API loaded no]
fixme:win:EnumDisplayDevicesW ((null),0,0x33f264,0x00000000), stub!
fixme:avrt:AvSetMmThreadCharacteristicsW (L"Audio",0x228e9d4): stub
fixme:d3d:wined3d_swapchain_set_gamma_ramp Ignoring flags 0x1.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
...
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
err:quartz:GetClassMediaFile Media class not found
err:quartz:GetClassMediaFile Media class not found
err:quartz:GetClassMediaFile Media class not found
err:quartz:GetClassMediaFile Media class not found
err:quartz:GetClassMediaFile Media class not found
err:quartz:GetClassMediaFile Media class not found
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:thread:SetThreadIdealProcessor (0x1dc): stub
fixme:thread:SetThreadIdealProcessor (0x1e0): stub
fixme:thread:SetThreadIdealProcessor (0x1fc): stub
fixme:thread:SetThreadIdealProcessor (0x200): stub
fixme:thread:SetThreadIdealProcessor (0x21c): stub
fixme:thread:SetThreadIdealProcessor (0x220): stub
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
...
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
err:quartz:GetClassMediaFile Media class not found
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
err:winediag:shader_generate_glsl_declarations The hardware does not support enough uniform components to run this shader, it may not render correctly.
fixme:d3d9:Direct3DShaderValidatorCreate9 stub
fixme:thread:SetThreadIdealProcessor (0x274): stub
...
fixme:thread:SetThreadIdealProcessor (0x290): stub
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
...
If anybody can figure anything out from the logs or at least confirm that this is only Ubuntu specific I would greatful.[/code]
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

jaroslaw wrote:While playing under wine in D3D games(Drakensang: The dark eye, Crysis 2, Jagged Alliance Back In Action) after a while x-org crashes.
If X is crashing, it's not a Wine bug. Wine is a user level-process and shouldn't be able to crash X, but it can expose bugs in the driver.
jaroslaw
Level 1
Level 1
Posts: 5
Joined: Sat Feb 25, 2012 6:27 am

Post by jaroslaw »

Probably this isfglrx bug and I've already took part in AMD Linux Crew Survey but I doubt AMD will do anything to solve this without some hint what may be wrong. They did not contact me for any further details. I am pretty sure that without "digging" deeper into problem this will not be fixed in the future. Open Source driver unfortunately is not an option and I hope that in this forum I can find help to figure out what is wrong. Maybe this is X-org bug, maybe Ubuntu or Wine itself(as far as I am concerned even Wine can crash X). Without knowing that I can't do anything and my programming skills are to little.
lahmbi5678
Level 7
Level 7
Posts: 823
Joined: Thu Aug 27, 2009 6:23 am

Post by lahmbi5678 »

Hi jaroslaw,

it might be interesting, if this issue is somehow related to certain xserver-, xorg-versions, as panska stated, that things were working well up to a certain point. Maybe you could try to install a non-up-to-date Ubuntu from an old dvd etc and perform some tests.
Locked