Bug 14076

Summary: GL_OUT_OF_MEMORY crash with R300 driver and Lineage II under Wine
Product: DRI Reporter: rm+bfo
Component: DRM/otherAssignee: Default DRI bug account <dri-devel>
Status: RESOLVED NOTOURBUG QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description rm+bfo 2008-01-14 21:51:48 UTC
My videocard is a PCI-E Radeon X800GT with 256 MB of RAM.

I am using current Debian Testing with the latest version of Wine, and trying to run the Windows game "Lineage II" in it.

In Windows, this game runs smoothly and without any problems with maximum level of graphic details.

But in GNU/Linux, when the level of graphic detail is set to anything higher than "Low" for everything (Texture quality, etc), the game often crashes in many game world locations, leaving messages in the console, similar to the following:

fixme:d3d_surface:surface_upload_data >>>>>>>>>>>>>>>>> GL_OUT_OF_MEMORY (0x505) from glTexSubImage2D @ surface.c / 243
fixme:d3d_surface:surface_upload_data >>>>>>>>>>>>>>>>> GL_OUT_OF_MEMORY (0x505) from glTexSubImage2D @ surface.c / 243
fixme:d3d_surface:surface_upload_data >>>>>>>>>>>>>>>>> GL_OUT_OF_MEMORY (0x505) from glTexSubImage2D @ surface.c / 243
fixme:d3d_surface:surface_upload_data >>>>>>>>>>>>>>>>> GL_OUT_OF_MEMORY (0x505) from glTexSubImage2D @ surface.c / 243
fixme:d3d_surface:surface_upload_data >>>>>>>>>>>>>>>>> GL_OUT_OF_MEMORY (0x505) from glTexSubImage2D @ surface.c / 243
DRM_RADEON_TEXTURE: return = -14
   offset=0xd57ce000
   image width=512 height=512
    blit width=512 height=512 data=0x4d

The first five messages are from Wine. The last one is from DRM, as I suppose.

I would appreciate any advice, about how this issue can be fixed. Or pointers where to look at, and what else to try.

I have tried setting GART size in xorg.conf to 64 and 128 MB, this made no difference.
Also, I was testing with Acceleration architecture set to XAA or EXA (with FBTexPercent "80"), with no effect.

I understand this may be a problem not in DRM at all, but in Wine. If that is the case, then please forgive me for wasting a bit of your time with this bugreport.

Thanks for any reply in advance.
Comment 1 Michel Dänzer 2008-01-15 00:33:46 UTC
It looks like Mesa can't get enough virtual memory to process the glTexSubImage2D calls, probably there's a memory/resource leak somewhere. If you could attach gdb to the process, set a breakpoint at _mesa_error and get a full backtrace when it triggers, that might give an idea. Or, try a memory leak debugging tool such as valgrind.
Comment 2 Maciej Cencora 2009-03-19 06:04:15 UTC
This looks like wine bug http://bugs.winehq.org/show_bug.cgi?id=13335
How much system RAM do you have?
Comment 3 rm+bfo 2009-03-20 08:58:46 UTC
I had 2 GB at the time.

Also, I have since upgraded the X800GT to a 3870, which has no 3D support with Mesa drivers atm, so I wouldn't be able to further track if this issue continues to occur or not.
Comment 4 Maciej Cencora 2009-03-23 01:44:37 UTC
It is wine's bug. Closing

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.