Problem when trying to start Codemasters DiRT (GLX error)

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Detructor
Level 3
Level 3
Posts: 61
Joined: Thu Feb 28, 2008 8:27 am

Problem when trying to start Codemasters DiRT (GLX error)

Post by Detructor »

Hi,

my system is a Ubuntu 9.10, PulseAudio removed (using Alsa), a Nvidia 7800GTX (since my nice ATI 5870 was killed due to unknown reason with 80% of the components of my pc (only power supply and DVDburner survived)) however, I've downloaded the source of the actual wine build, and compiled it without errors or warnings and installed it using checkinstall.

After that I tried to start Codemasters - DiRT (patched to the newest version -> no copy protection anymore) but all I got is this

Code: Select all

detructor15@detructor15-desktop:~/.wine/drive_c/Programme/Codemasters/DiRT$ wine ./DiRT.exe 
fixme:system:SetProcessDPIAware stub!
fixme:dwmapi:DwmIsCompositionEnabled 0x33cfc4
fixme:iphlpapi:NotifyAddrChange (Handle 0xa6ce8e8, overlapped 0xa6ce8f0): stub
fixme:iphlpapi:GetAdaptersAddresses no support for IPv6 addresses
fixme:shell:DllCanUnloadNow stub
wine: configuration in '/home/detructor15/.wine' has been updated.
fixme:thread:SetThreadIdealProcessor (0x168): stub
fixme:thread:SetThreadIdealProcessor (0x188): stub
fixme:thread:SetThreadIdealProcessor (0x100): stub
fixme:win:EnumDisplayDevicesW ((null),0,0x32d338,0x00000000), stub!
fixme:win:EnumDisplayDevicesW ((null),0,0x32d0a8,0x00000000), stub!
fixme:d3d:debug_d3dformat Unrecognized 1129272385 (as fourcc: ATOC) WINED3DFORMAT!
fixme:d3d:getFormatDescEntry Can't find format unrecognized(1129272385) in the format lookup table
fixme:thread:SetThreadIdealProcessor (0x1e0): stub
fixme:thread:SetThreadIdealProcessor (0x1fc): stub
fixme:thread:SetThreadIdealProcessor (0x218): stub
X Error of failed request:  GLXBadDrawable
  Major opcode of failed request:  136 (GLX)
  Minor opcode of failed request:  11 (X_GLXSwapBuffers)
  Serial number of failed request:  748
  Current serial number in output stream:  901
and I can't find anything useful using google.

maybe someone can help me with this?
Thunderbird
Level 5
Level 5
Posts: 336
Joined: Mon Nov 24, 2008 8:10 am

Post by Thunderbird »

Most likely you lack a proper 32-bit nvidia libGL. The following page could help you diagnose if this is the case http://wiki.winehq.org/3DDriverIssues
Detructor
Level 3
Level 3
Posts: 61
Joined: Thu Feb 28, 2008 8:27 am

Post by Detructor »

since games like Heroes of Newerth, Savage 2 and BloodFrontier (okay that game is running at bad performance, don't know why...even my laptop with it's low performance video card can run this game, but in turn can't run HoN or Savage 2) are running, I don't think it's a driver problem. However, here is the result of the command
trace:wgl:wglGetProcAddress func: 'wglGetIntegerv'
trace:wgl:X11DRV_WineGL_InitOpenglInfo GL version : 2.1.2 NVIDIA 195.36.24.
trace:wgl:X11DRV_WineGL_InitOpenglInfo GL renderer : GeForce 7800 GTX/PCI/SSE2/3DNOW!.
trace:wgl:X11DRV_WineGL_InitOpenglInfo GLX version : 1.4.
trace:wgl:X11DRV_WineGL_InitOpenglInfo Server GLX version : 1.4.
trace:wgl:X11DRV_WineGL_InitOpenglInfo Server GLX vendor: : NVIDIA Corporation.
trace:wgl:X11DRV_WineGL_InitOpenglInfo Client GLX version : 1.4.
trace:wgl:X11DRV_WineGL_InitOpenglInfo Client GLX vendor: : NVIDIA Corporation.
trace:wgl:X11DRV_WineGL_InitOpenglInfo Direct rendering enabled: True
so all fine here.

what is disturbs me is this line:
trace:wgl:has_opengl GLX is up and running error_base = 147
it's a few lines under the above posted lines.

and this are the last lines of the file
trace:wgl:ConvertPixelFormatWGLtoGLX Returning FBConfig=0x14b for iPixelFormat=155
trace:wgl:ConvertPixelFormatWGLtoGLX Number of returned pixelformats=155
trace:wgl:X11DRV_wglGetPixelFormatAttribivARB pAttr[0] = 2041
trace:wgl:X11DRV_wglGetPixelFormatAttribivARB pAttr[1] = 2042
trace:wgl:wglMakeCurrent hdc: ((nil)), hglrc: ((nil))
trace:wgl:X11DRV_wglMakeCurrent (0x314,(nil))
trace:wgl:X11DRV_wglMakeCurrent returning True
trace:wgl:wglDeleteContext hglrc: (0x147738)
trace:wgl:X11DRV_wglDeleteContext (0x147738)
fixme:d3d:debug_d3dformat Unrecognized 1129272385 (as fourcc: ATOC) WINED3DFORMAT!
fixme:d3d:getFormatDescEntry Can't find format unrecognized(1129272385) in the format lookup table
fixme:thread:SetThreadIdealProcessor (0x1e8): stub
fixme:thread:SetThreadIdealProcessor (0x204): stub
fixme:thread:SetThreadIdealProcessor (0x220): stub
trace:wgl:X11DRV_SwapBuffers (0x145010)
trace:wgl:X11DRV_SwapBuffers (0x145010)
trace:wgl:X11DRV_SwapBuffers (0x145010)
trace:wgl:X11DRV_SwapBuffers (0x145010)
trace:wgl:X11DRV_SwapBuffers (0x145010)
trace:wgl:X11DRV_SwapBuffers (0x145010)
trace:wgl:X11DRV_SwapBuffers (0x145010)
trace:wgl:X11DRV_SwapBuffers (0x145010)
X Error of failed request: GLXBadDrawable
Major opcode of failed request: 136 (GLX)
Minor opcode of failed request: 11 (X_GLXSwapBuffers)
Serial number of failed request: 748
Current serial number in output stream: 856
James Mckenzie

Problem when trying to start Codemasters DiRT (GLX error)

Post by James Mckenzie »

X Error of failed request: GLXBadDrawable
Major opcode of failed request: 136 (GLX)
Minor opcode of failed request: 11 (X_GLXSwapBuffers)
Serial number of failed request: 748
Current serial number in output stream: 856
Like Thunderbird said: YOU NEED TO INSTALL THE 32 BIT VERSION OF THE DRIVERS.

What you may have is the 64 bit version and they will NOT work with the release/development version of Wine.

Yes, 64 bit Wine is coming, but for now we only have availability to 32 bit.

James McKenzie
Detructor
Level 3
Level 3
Posts: 61
Joined: Thu Feb 28, 2008 8:27 am

Post by Detructor »

ok, sorry if I/you missunderstood: I've a 32 bit system! So it shouldn't be possible for me to have a 64bit driver
Thunderbird
Level 5
Level 5
Posts: 336
Joined: Mon Nov 24, 2008 8:10 am

Post by Thunderbird »

These days the most common cause of GLX errors are misconfigured drivers, that's why I said to check that first. The opengl info looks correct. I can't easily say why you see a GLXBadDrawable error. Are you using compiz?
Detructor
Level 3
Level 3
Posts: 61
Joined: Thu Feb 28, 2008 8:27 am

Post by Detructor »

Thunderbird wrote:These days the most common cause of GLX errors are misconfigured drivers, that's why I said to check that first. The opengl info looks correct. I can't easily say why you see a GLXBadDrawable error. Are you using compiz?
yes to the last one...but I've tested it with metacity active...no change.

but if you say it's on the driver side...hmm...don't know, I've never seen that error nor had I ever glx errors (only when (indeed) the driver wasn't installed correctly. But I reinstalled it now and rebooted without a change...
Detructor
Level 3
Level 3
Posts: 61
Joined: Thu Feb 28, 2008 8:27 am

Post by Detructor »

ok, I've upgraded to Ubuntu 10.04 (had some other problems with 9.04) and it still isn't working...I can play CS:S (okay, I can't use my keyboard but it starts and I can join a game and the graphic is "normal")...
Thunderbird
Level 5
Level 5
Posts: 336
Joined: Mon Nov 24, 2008 8:10 am

Post by Thunderbird »

Is there a demo of this game which shows the same issue? If there is I can give it a try and see where the bug is.
xuebao
Level 1
Level 1
Posts: 5
Joined: Tue Jun 08, 2010 9:41 pm

Post by xuebao »

Thanks to share this information!
Detructor
Level 3
Level 3
Posts: 61
Joined: Thu Feb 28, 2008 8:27 am

Post by Detructor »

http://www.chip.de/downloads/c1_downloa ... e6e7995582 there you go.

but I don't know if the demo has the same error...it should've, but I'm not sure. will try it during the next days
Detructor
Level 3
Level 3
Posts: 61
Joined: Thu Feb 28, 2008 8:27 am

Post by Detructor »

ok, I got my ATI HD5870 back today and I tried to start the game, but I still get the exact same error.

It has to be an error inside wine, two different vendors, and on the ATI side I tried 2 different driver versions (.6 and .4)...
Detructor
Level 3
Level 3
Posts: 61
Joined: Thu Feb 28, 2008 8:27 am

Post by Detructor »

or maybe it's an error in one of the subsystems like X11 but I don't think so.
Locked