FS#30501 - [wine] wine apps crash when using opengl

Attached to Project: Community Packages
Opened by Coder of Salvation (sqz) - Sunday, 01 July 2012, 12:28 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Friday, 06 July 2012, 09:47 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Florian Pritz (bluewind)
Sven-Hendrik Haase (Svenstaro)
Laurent Carlier (lordheavy)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Ok, had 2 laptops where I installed fresh xorg & wine, using ati graphic cards.
Installed libgl, xf86-video-ati, ati-dri.
Everything works fine (glxgears), however opengl doesnt work in wine.
It seems that the current wine-package doesnt like libgl/dri-driver 8.x.x (win32 apps crash in wine as soon as opengl is called)..however if you install libgl/dri-driver 7.x.x everything works

Additional info:
* package version(s)

xorg: 1.11.3 and 1.12.2
wine 1.5.7


* config and/or log files etc.

laptop #1: x64 archlinux (multilib, used 'lib32-' prefix for some packages mentioned)
laptop #2: x86 pentium 4
both have ATI graphic cards

Steps to reproduce:

pacman -S wine
pacman -S xf86-video-ati
pacman -S ati-dri

*opengl crashes in wine*

SOLUTION: after installing wine, downgrade libgl & ati-dri to 7.x.x.

pacman --remove xf86-video-ati
pacman --remove ati-dri
pacman --remove libgl
downgrader -l libgl # choose 7.x.x version
downgrader -l ati-dri # choose 7.x.x version
pacman -S xf86-video-ati

*opengl works in wine now*
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Friday, 06 July 2012, 09:47 GMT
Reason for closing:  Upstream
Comment by Sven-Hendrik Haase (Svenstaro) - Sunday, 01 July 2012, 12:37 GMT
You have lib32-ati-dri right? Did you try a win64 wineprefix (read wiki)? Also this is a hardly a wine packaging problem.
Comment by Laurent Carlier (lordheavy) - Sunday, 01 July 2012, 20:04 GMT
Works fine for me with amd E450/radeon 6320 (Furmark tested).

Did you get a backtrace ? what is the output of glxinfo ?
Try to run them with LIBGL_DEBUG=verbose
Comment by Coder of Salvation (sqz) - Monday, 02 July 2012, 09:34 GMT
Thanks guys, Im amazed by the responsetime.

>You have lib32-ati-dri right?

yes

>Did you try a win64 wineprefix (read wiki)

Yes I tried a win64 wineprefix, but it gave me the same results (win64 & win32 on 64bit archlinux, and win32 on 32bit archlinux).

>what is the output of glxinfo?

here is the output of glxinfo, again on X everything runs just normally: http://pastebin.com/VU9sp0bc

> Did you get a backtrace?

I got a backtrace somewhere ( I already fixed it so I cannot reproduce it, I will search for the pastebin, cannot find it now ).
However, it was just a backtrace of the windows program indicating it failed in opengl (not really the functionname).
it was not wine crashing, but the program runned by wine (buze.exe or even an OpenGLTest.exe from http://nehe.gamedev.net).
Its the win32 opengl initialization which fails in windows programs: http://pastebin.com/aU85yvGJ

I was not sure if this was a wine packaging problem, but I think you guys are right.
Maybe i should move this issue to the wine maintainers.
The win for me for posting this ticket:

- I did not know about the LIBGL_DEBUG=verbose flag (that will help a lot more finding out whats going on)

Svenstaro, lordheavy thnx for the effort so far.
I will continue this issue @ wine bugtracker (just posted an issue).

So everybody can follow this problem from here now: http://bugs.winehq.org/show_bug.cgi?id=31097

Could you somehow close this ticket, but in a way that it still publicly accessible?
long live the semantical web! :)


Comment by Florian Pritz (bluewind) - Monday, 02 July 2012, 10:44 GMT
Output of glxinfo32 (part of lib32-mesa-demos)?

Loading...