GL stopped working with todays updates

Bug #506320 reported by Vidar Braut Haarr
98
This bug affects 19 people
Affects Status Importance Assigned to Milestone
wine1.2 (Ubuntu)
Fix Released
Medium
Scott Ritchie

Bug Description

Binary package hint: wine1.2

With todays updates in lucid (xorg, nvidia-current, mesa, etc), wine1.2 no longer works with GL apps, it seems.
(I also tried wine git master as of 10 minutes ago)

I get the following messages when trying to start World of Warcraft;
err:winediag:X11DRV_WineGL_InitOpenglInfo Direct rendering is disabled, most likely your OpenGL drivers haven't been installed correctly
err:d3d_caps:WineD3D_CreateFakeGLContext Can't find a suitable iPixelFormat.
err:d3d:InitAdapters Failed to get a gl context for default adapter
err:d3d:WineDirect3DCreate Direct3D9 is not available without opengl
err:d3d_caps:WineD3D_CreateFakeGLContext Can't find a suitable iPixelFormat.
err:d3d:InitAdapters Failed to get a gl context for default adapter
err:d3d:WineDirect3DCreate Direct3D9 is not available without opengl

Here's my glxinfo output: http://pastebin.com/m160d3338

Related branches

Revision history for this message
Vidar Braut Haarr (vhaarr+launchpad) wrote :

If you take a look at the dates listed from ls in the 32-bit directories, you'll see they are all older than the rest.

folk@folk:~/Programs/wine-git$ ls -l /usr/lib/libGL*
lrwxrwxrwx 1 root root 13 2010-01-12 10:30 /usr/lib/libGL.so -> mesa/libGL.so
lrwxrwxrwx 1 root root 13 2010-01-12 10:30 /usr/lib/libGLU.a -> mesa/libGLU.a
lrwxrwxrwx 1 root root 14 2010-01-12 10:30 /usr/lib/libGLU.so -> mesa/libGLU.so
folk@folk:~/Programs/wine-git$ ls -l /usr/lib32/libGL*
lrwxrwxrwx 1 root root 10 2009-12-25 23:22 /usr/lib32/libGL.so -> libGL.so.1
lrwxrwxrwx 1 root root 12 2009-12-25 23:22 /usr/lib32/libGL.so.1 -> libGL.so.1.2
-rw-r--r-- 1 root root 403800 2009-10-14 00:08 /usr/lib32/libGL.so.1.2
lrwxrwxrwx 1 root root 11 2009-12-25 23:22 /usr/lib32/libGLU.so -> libGLU.so.1
lrwxrwxrwx 1 root root 20 2009-12-25 23:22 /usr/lib32/libGLU.so.1 -> libGLU.so.1.3.070600
-rw-r--r-- 1 root root 456380 2009-10-14 00:08 /usr/lib32/libGLU.so.1.3.070600
folk@folk:~/Programs/wine-git$ ls -l /usr/lib32/dri/
totalt 37708
-rw-r--r-- 1 root root 2335280 2009-10-14 00:08 i810_dri.so
-rw-r--r-- 1 root root 2622160 2009-10-14 00:08 i915_dri.so
-rw-r--r-- 1 root root 2727888 2009-10-14 00:08 i965_dri.so
-rw-r--r-- 1 root root 2400788 2009-10-14 00:08 mach64_dri.so
-rw-r--r-- 1 root root 2437744 2009-10-14 00:08 mga_dri.so
-rw-r--r-- 1 root root 2327056 2009-10-14 00:08 r128_dri.so
-rw-r--r-- 1 root root 2490384 2009-10-14 00:08 r200_dri.so
-rw-r--r-- 1 root root 2487088 2009-10-14 00:08 r300_dri.so
-rw-r--r-- 1 root root 2447284 2009-10-14 00:08 radeon_dri.so
-rw-r--r-- 1 root root 2310608 2009-10-14 00:08 s3v_dri.so
-rw-r--r-- 1 root root 2372628 2009-10-14 00:08 savage_dri.so
-rw-r--r-- 1 root root 2400880 2009-10-14 00:08 sis_dri.so
-rw-r--r-- 1 root root 2166908 2009-10-14 00:08 swrast_dri.so
-rw-r--r-- 1 root root 2384432 2009-10-14 00:08 tdfx_dri.so
-rw-r--r-- 1 root root 2259156 2009-10-14 00:08 trident_dri.so
-rw-r--r-- 1 root root 2327096 2009-10-14 00:08 unichrome_dri.so
folk@folk:~/Programs/wine-git$ ls -l /usr/lib/dri/
totalt 37032
-rw-r--r-- 1 root root 2897520 2010-01-11 22:22 i915_dri.so
-rw-r--r-- 1 root root 2976624 2010-01-11 22:22 i965_dri.so
-rw-r--r-- 1 root root 2675928 2010-01-11 22:22 mach64_dri.so
-rw-r--r-- 1 root root 2708848 2010-01-11 22:22 mga_dri.so
-rw-r--r-- 1 root root 2598096 2010-01-11 22:22 r128_dri.so
-rw-r--r-- 1 root root 2785552 2010-01-11 22:22 r200_dri.so
-rw-r--r-- 1 root root 2767952 2010-01-11 22:22 r300_dri.so
-rw-r--r-- 1 root root 2696848 2010-01-11 22:22 r600_dri.so
-rw-r--r-- 1 root root 2744408 2010-01-11 22:22 radeon_dri.so
-rw-r--r-- 1 root root 2651992 2010-01-11 22:22 savage_dri.so
-rw-r--r-- 1 root root 2688336 2010-01-11 22:22 sis_dri.so
-rw-r--r-- 1 root root 2384504 2010-01-11 22:22 swrast_dri.so
-rw-r--r-- 1 root root 2651440 2010-01-11 22:22 tdfx_dri.so
-rw-r--r-- 1 root root 2598200 2010-01-11 22:22 unichrome_dri.so
folk@folk:~/Programs/wine-git$

Revision history for this message
Vidar Braut Haarr (vhaarr+launchpad) wrote :

Forgot a few key things; this is on lucid.
mesa packages are 7.7-0ubuntu4.
Using the new nvidia-current packages (190.53-ubuntu4).
xserver-xorg-core is at 2:1.7.3.902-1ubuntu4.

Revision history for this message
Vidar Braut Haarr (vhaarr+launchpad) wrote :
Revision history for this message
Vidar Braut Haarr (vhaarr+launchpad) wrote :

Output of WINEDEBUG=+wgl ./wine /home/folk/Games/wow/Wow.exe: http://pastebin.com/m413b73e4

Note line 10; "trace:wgl:X11DRV_WineGL_InitOpenglInfo Direct rendering enabled: False", but according to my glxinfo, it is; "direct rendering: Yes".

Revision history for this message
Vidar Braut Haarr (vhaarr+launchpad) wrote :

As suspected, but it has to be said, the latest xserver packages (-ubuntu5) didn't fix it.

Revision history for this message
3vi1 (launchpad-net-eternaldusk) wrote :

I'm seeing the same problem pop up here, even after recompiling wine from source as I do every day.

Runes of Magic generates:

  err:winediag:X11DRV_WineGL_InitOpenglInfo Direct rendering is disabled, most likely your OpenGL drivers haven't been installed correctly
  err:d3d_caps:WineD3D_CreateFakeGLContext Can't find a suitable iPixelFormat.
  err:d3d:InitAdapters Failed to get a gl context for default adapter
  err:d3d:WineDirect3DCreate Direct3D9 is not available without opengl

Even though glxinfo | grep "direct rend" results in:

  direct rendering: Yes

glxgears and desktop effects seem to work fine.

Revision history for this message
Scott Ritchie (scottritchie) wrote :

I'll work on it.

Changed in wine1.2 (Ubuntu):
assignee: nobody → Scott Ritchie (scottritchie)
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Vidar Braut Haarr (vhaarr+launchpad) wrote :

Alberto Milone noted in bug 248392 comment 19 that it would be fixed by bug 506437 and bug 506535.

Revision history for this message
Rthaduthd Anthnhkrc (nthnuekeu-deactivatedaccount) wrote :

Using:
  LD_PRELOAD=/usr/lib32/nvidia-current/libGL.so

...works as a temporary work-around here. E.g.,
  LD_PRELOAD=/usr/lib32/nvidia-current/libGL.so wine Wow.exe

Revision history for this message
3vi1 (launchpad-net-eternaldusk) wrote :

Thanks for the workaround info, Lars! I don't know why I didn't think of doing that.

Revision history for this message
Andrey Beljakov (andvalb) wrote :

err:winediag:X11DRV_WineGL_InitOpenglInfo Direct rendering is disabled, most likely your OpenGL drivers haven't been installed correctly
X Error of failed request: GLXBadDrawable
  Major opcode of failed request: 153 (GLX)
  Minor opcode of failed request: 5 (X_GLXMakeCurrent)
  Serial number of failed request: 986
  Current serial number in output stream: 986

------------------------------------------------------------------------------------
OpenGL vendor string: DRI R300 Project
OpenGL renderer string: Mesa DRI R300 (R580 7249) 20090101 TCL DRI2
OpenGL version string: 1.5 Mesa 7.8-devel

LD_PRELOAD trick not work.

Revision history for this message
Gilaras Drakeson (gilaras) wrote :

See the following warning in the build log from:
http://launchpadlibrarian.net/38706434/buildlog_ubuntu-lucid-amd64.wine1.2_1.1.37-0ubuntu2_FULLYBUILT.txt.gz

configure: libmpg123 32-bit development files not found (or too old), mp3 codec won't be supported.

configure: WARNING: No OpenGL library found on this system.
OpenGL and Direct3D won't be supported.

configure: WARNING: libpng 32-bit development files not found, PNG won't be supported.

Revision history for this message
dtaylor84 (davidt-launchpad) wrote :

wine1.2 ver 1.1.37-0ubuntu2 was a rebuild to pick up the changes in ia32-libs 2.7ubuntu19 (see bug #513544).

However, based on the build log (see comment #12), it was built against the old ia32-libs:

> ...
> Get:21 http://ftpmaster.internal lucid/universe ia32-libs 2.7ubuntu18 [29.2MB]
> ...

Having rebuilt the wine1.2 package locally, against the new ia32-libs package, amd64 opengl support seems to work again.

Revision history for this message
Pavel Plesov (frewq28) wrote :

No /usr/lib32/wine/opengl32.dll.so in the new 1.1.37-0ubuntu2 package:

err:module:import_dll Library OPENGL32.dll (which is needed by L"Z:\\some.exe") not found

ls: cannot access /usr/lib32/wine/opengl32.dll.so: No such file or directory

Revision history for this message
dtaylor84 (davidt-launchpad) wrote :

Sorry, above should be bug #513554!

Revision history for this message
Roland (Rolandixor) Taylor (rolandixor) wrote :

is this fixed? I'm a bit confused.

Revision history for this message
Roland (Rolandixor) Taylor (rolandixor) wrote :

btw, should I recompile wine? I've been restriceted from using Battleswarm for a while and my guild must think I've abandoned them.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package wine1.2 - 1.1.38-0ubuntu1

---------------
wine1.2 (1.1.38-0ubuntu1) lucid; urgency=low

  * New upstream release
    - Better support for memory allocations debugging.
    - Improved MIDI support.
    - A wide range of Direct3D fixes.
    - OLEDB fixes (should fix Clipart in Office).
    - Improved debugger support on x86-64.
    - Many MSI fixes.
    - Various bug fixes.
  * Also rebuild (LP: #506320)
 -- Scott Ritchie <email address hidden> Sun, 07 Feb 2010 14:53:05 -0800

Changed in wine1.2 (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Roland (Rolandixor) Taylor (rolandixor) wrote :

confirmed the fix works =)

Revision history for this message
ooze (zoe-gauthier) wrote :

wine1.2 version 1.1.39-0ubuntu1 does not fix this problem for me. However I am using an Intel GMA4500 graphic processor. Error in wine output is:

X Error of failed request: GLXBadDrawable
  Major opcode of failed request: 152 (GLX)
  Minor opcode of failed request: 5 (X_GLXMakeCurrent)
  Serial number of failed request: 2437
  Current serial number in output stream: 2437

Revision history for this message
Ernst (ernst-blaauw) wrote :

I'm using the ati open source driver. For me, this bug is not fixed.

Revision history for this message
Josef Andersson (northar) wrote :

Ernst: same here, bug not fixed when using ati os driver

Revision history for this message
lirel (m8r-lcodw5) wrote :

with wine1.2 1.1.42-0ubuntu1 on lucid beta this still happens for at least ati.
a workaround is to hint wine with
 LIBGL_DRIVERS_PATH=/usr/lib32/dri wine application.exe
to use the right libs.

Revision history for this message
Jens Grassel (jan0sch) wrote :

I can confirm that this bug is still open.

Trying to run games that use 3D I get the following error:

err:winediag:X11DRV_WineGL_InitOpenglInfo Direct rendering is disabled, most likely your OpenGL drivers haven't been installed correctly
fixme:win:EnumDisplayDevicesW ((null),0,0x33f024,0x00000000), stub!
err:winediag:X11DRV_WineGL_InitOpenglInfo Direct rendering is disabled, most likely your OpenGL drivers haven't been installed correctly
fixme:win:EnumDisplayDevicesW ((null),0,0x33f5cc,0x00000000), stub!
fixme:win:EnumDisplayDevicesW ((null),0,0x33f550,0x00000000), stub!
X Error of failed request: GLXBadRenderRequest
  Major opcode of failed request: 158 (GLX)
  Minor opcode of failed request: 1 (X_GLXRender)
  Serial number of failed request: 1806
  Current serial number in output stream: 1807

Revision history for this message
J.L. (jl2001) wrote :

Linux ErgSTaiLik 2.6.32-23-preempt #37-Ubuntu SMP PREEMPT Fri Jun 11 10:19:07 UTC 2010 x86_64 GNU/Linux

server glx vendor string: SGI
server glx version string: 1.2
client glx vendor string: Mesa Project and SGI
client glx version string: 1.4
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: Gallium 0.4 on softpipe
OpenGL version string: 2.1 Mesa 7.9-devel
OpenGL shading language version string: 1.20

err:winediag:X11DRV_WineGL_InitOpenglInfo The Mesa OpenGL driver is using software rendering, most likely your OpenGL drivers haven't been installed correctly
fixme:d3d_caps:wined3d_guess_card No card selector available for GL vendor 4 and card vendor 0000.

Revision history for this message
J.L. (jl2001) wrote :

wine 1.2~rc6-0ubuntu1

Revision history for this message
Travis Pew (travisp) wrote :

I'm still seeing this in wine 1.2~rc7 on ubuntu 10.04 64-bit

Revision history for this message
Scott Ritchie (scottritchie) wrote :

If you are still seeing this issue and have an ATI card with the open source drivers please go here: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-ati/+bug/605126

If you have this issue with a different card/drivers please post them here.

Revision history for this message
i.Dark_Templar (dark-templar) wrote :

If it's relevant, I had same issue before I installed "nvidia-glx-ia32" package. Debian Squeeze/Testing, nvidia card.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.