http://bugs.winehq.org/show_bug.cgi?id=15290
Summary: Wine memory issues and related crashes Product: Wine Version: 1.0.0 Platform: PC-x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: major Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: tom.weingarten@gmail.com
When I open any application (even regedit, winecfg, etc) in wine 1.0.0 or 1.1.4 it uses more than 3 gigs of virtual memory.
When I use wine to play Warcraft 3, the game runs fine for a while, and then will randomly freeze or crash giving an error message. Either GL_OUT_OF_MEMORY or "Not Enough Memory", seemingly at random. This is preceded by a huge number of sound errors: err:wave:wodUpdatePlayedTotal ioctl(/dev/dsp, SNDCTL_DSP_GETOSPACE) failed (Input/output error)
I've attached the results of cat /proc/PID/maps. I'm running Ubuntu 64bit Intrepid Ibex, kernel 2.6.27-3, with 6 gigs of RAM.
I've searched google for hours and haven't been able to find anything useful. Any help would be greatly appreciated. Thanks for reading!
http://bugs.winehq.org/show_bug.cgi?id=15290
--- Comment #1 from Tom tom.weingarten@gmail.com 2008-09-14 17:14:52 --- Created an attachment (id=16099) --> (http://bugs.winehq.org/attachment.cgi?id=16099) result of cat /proc/PID/maps
http://bugs.winehq.org/show_bug.cgi?id=15290
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|major |normal Summary|Wine memory issues and |Warcraft 3 randomly freeze |related crashes |or crash
--- Comment #2 from Vitaliy Margolen vitaliy@kievinfo.com 2008-09-14 17:24:58 --- What video card and driver? Please upgrade to latest Wine version (wine-1.1.4) and retry.
http://bugs.winehq.org/show_bug.cgi?id=15290
--- Comment #3 from Tom tom.weingarten@gmail.com 2008-09-14 18:37:57 --- I've tried on both 1.0.0 and 1.1.4 with the same results. I'm using a Nvidia GeForce 9600 with the 177.70 driver.
http://bugs.winehq.org/show_bug.cgi?id=15290
--- Comment #4 from Tom tom.weingarten@gmail.com 2008-09-28 03:18:14 --- I've now had this same error when playing Dungeon Keeper II using wine. The output displays the same GL_OUT_OF_MEMORY error.err:
ddraw:PixelFormat_WineD3DtoDD Can't translate this Pixelformat 62 err:ddraw:PixelFormat_WineD3DtoDD Can't translate this Pixelformat 63 err:ddraw:PixelFormat_WineD3DtoDD Can't translate this Pixelformat 64 fixme:d3d:state_subpixel Render state WINED3DRS_SUBPIXEL not implemented yet fixme:d3d_surface:surface_prepare_system_memory >>>>>>>>>>>>>>>>> GL_OUT_OF_MEMORY (0x505) from glBufferDataARB @ surface.c / 985 fixme:d3d_surface:surface_download_data >>>>>>>>>>>>>>>>> GL_INVALID_OPERATION (0x502) from glGetTexImage() @ surface.c / 154 fixme:d3d_surface:IWineD3DSurfaceImpl_LockRect >>>>>>>>>>>>>>>>> GL_OUT_OF_MEMORY (0x505) from glMapBufferARB @ surface.c / 1132 wine: Unhandled page fault on write access to 0x00000000 at address 0xf7cc7183 (thread 0009), starting debugger...
http://bugs.winehq.org/show_bug.cgi?id=15290
--- Comment #5 from Rico kgbricola@web.de 2008-09-28 05:33:01 --- Created an attachment (id=16323) --> (http://bugs.winehq.org/attachment.cgi?id=16323) OUT_OF_MEMORY workaround
Could you try the attached patch? This seems to solve the problem for me with several games (Crysis, Gothic3). At least this moves the border al little bit further.
http://bugs.winehq.org/show_bug.cgi?id=15290
--- Comment #6 from Tom tom.weingarten@gmail.com 2008-09-28 13:50:19 --- Thanks! I've installed the bug, and I will let you know if I see any crashes within the next few days.
The memory reported in top is still very high though, over 3 gigs for all of wine's processes even when the applications themselves use very little memory. Is this behavior normal?
http://bugs.winehq.org/show_bug.cgi?id=15290
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch
http://bugs.winehq.org/show_bug.cgi?id=15290
Tom tom.weingarten@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords|patch |
--- Comment #7 from Tom tom.weingarten@gmail.com 2008-09-29 21:09:02 --- Unfortunately that doesn't seem to have done the trick. I compiled wine 1.1.5 with the patch and installed it in /usr/local/. I still experienced a GL_OUT_OF_MEMORY crash as usual. The error was a bit more specific (I think since I compiled myself) but still not very helpful:
fixme:d3d_texture:IWineD3DBaseTextureImpl_BindTexture >>>>>>>>>>>>>>>>> GL_OUT_OF_MEMORY (0x505) from glBindTexture @ basetexture.c / 302
This error was repeated many times and then the eventual crash:
*** glibc detected *** C:\Program Files\Bullfrog\Dungeon Keeper II\DKII.exe: corrupted double-linked list: 0x79cfcf38 ***
followed by a memory trace and then:
err:ntdll:RtlpWaitForCriticalSection section 0x7e78ef00 "x11drv_main.c: X11DRV_CritSection" wait timed out in thread 001a, blocked by 0009, retrying (60 sec)
I will concur that it seems the error happens less often with the patch, but it could just be my imagination.
http://bugs.winehq.org/show_bug.cgi?id=15290
--- Comment #8 from Rico kgbricola@web.de 2008-09-30 12:55:13 --- Created an attachment (id=16381) --> (http://bugs.winehq.org/attachment.cgi?id=16381) workaround for a NVIDIA driver bug
*** glibc detected *** C:\Program Files\Bullfrog\Dungeon Keeper II\DKII.exe: corrupted double-linked list: 0x79cfcf38 ***
This looks more like the NVIDIA driver bug. Could you try the attached workaround? I don't know if it helps.
http://bugs.winehq.org/show_bug.cgi?id=15290
--- Comment #9 from Tom tom.weingarten@gmail.com 2008-10-04 11:46:04 --- Unfortunately with both the patches and the newest nvidia driver, I still get the GL_OUT_OF_MEMORY error, although it took much longer to show up this time. I'm also now seeing this weird error in color:
E: shm.c: mmap() failed: Cannot allocate memory W: pstream.c: Failed to import memory block.
I've run a bunch of benchmarking to test for hardware trouble and haven't come up with anything. Is it possible that this bug is related to my kernel version, 2.6.27.4?
http://bugs.winehq.org/show_bug.cgi?id=15290
--- Comment #10 from Tom tom.weingarten@gmail.com 2008-10-08 21:07:03 --- I realized that since I installed wine into /usr/local/ it was still using the original wine libraries. So I've completely uninstalled the original wine and will now re-test both of the patches. Sorry about that!
http://bugs.winehq.org/show_bug.cgi?id=15290
--- Comment #11 from Tom tom.weingarten@gmail.com 2008-10-12 21:24:27 --- Hi again. Unfortunately I'm still getting crashes with the patches. The most recent one gave this error:
*** glibc detected *** war3.exe: corrupted double-linked list: 0x7a7cbfc8 *** ======= Backtrace: ========= /lib32/libc.so.6[0xf7d7ffe4] /lib32/libc.so.6[0xf7d83092] /lib32/libc.so.6(__libc_malloc+0x95)[0xf7d84485] /usr/lib32/libGLcore.so.1[0x7cf900c2]
I'm also experiencing a weird memory error with the kernel that locks the system, I have a feeling they might be related. The bug for that is here:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/280756
http://bugs.winehq.org/show_bug.cgi?id=15290
Danial Klimkin decha@mail.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |decha@mail.ru
--- Comment #12 from Danial Klimkin decha@mail.ru 2008-11-10 16:29:44 --- Have the same thing, 1.16 with both patches applied:
STDOUT: === *** glibc detected *** war3.exe: corrupted double-linked list: 0x35dc62f0 *** ======= Backtrace: ========= /lib32/libc.so.6[0xf7cd3440] /lib32/libc.so.6[0xf7cd57bd] /lib32/libc.so.6(__libc_calloc+0x8d)[0xf7cd6a0d] //usr/lib32/opengl/nvidia/lib/libGLcore.so.1[0x7ca00431] ======= Memory map: ======== [...]
STDERR: === [...] fixme:d3d_draw:drawStridedSlow >>>>>>>>>>>>>>>>> GL_OUT_OF_MEMORY (0x505) from glEnd and previous calls @ drawprim.c / 506 fixme:d3d_texture:IWineD3DBaseTextureImpl_BindTexture >>>>>>>>>>>>>>>>> GL_OUT_OF_MEMORY (0x505) from glBindTexture @ basetexture.c / 302 fixme:d3d_texture:IWineD3DBaseTextureImpl_BindTexture >>>>>>>>>>>>>>>>> GL_OUT_OF_MEMORY (0x505) from glBindTexture @ basetexture.c / 302 fixme:d3d_texture:IWineD3DBaseTextureImpl_BindTexture >>>>>>>>>>>>>>>>> GL_OUT_OF_MEMORY (0x505) from glBindTexture @ basetexture.c / 302 fixme:d3d_draw:drawStridedSlow >>>>>>>>>>>>>>>>> GL_OUT_OF_MEMORY (0x505) from glEnd and previous calls @ drawprim.c / 506 fixme:d3d_texture:IWineD3DBaseTextureImpl_BindTexture >>>>>>>>>>>>>>>>> GL_OUT_OF_MEMORY (0x505) from glBindTexture @ basetexture.c / 302 fixme:ntdll:FILE_GetNtStatus Converting errno 12 to STATUS_UNSUCCESSFUL fixme:ntdll:FILE_GetNtStatus Converting errno 12 to STATUS_UNSUCCESSFUL fixme:ntdll:FILE_GetNtStatus Converting errno 12 to STATUS_UNSUCCESSFUL fixme:ntdll:FILE_GetNtStatus Converting errno 12 to STATUS_UNSUCCESSFUL fixme:ntdll:FILE_GetNtStatus Converting errno 12 to STATUS_UNSUCCESSFUL fixme:ntdll:FILE_GetNtStatus Converting errno 12 to STATUS_UNSUCCESSFUL fixme:ntdll:FILE_GetNtStatus Converting errno 12 to STATUS_UNSUCCESSFUL err:seh:raise_exception Unhandled exception code c0000005 flags 0 addr 0xf7de1542
Thanks.
-Danial.
http://bugs.winehq.org/show_bug.cgi?id=15290
Adys adys.wh+winehqdotorg@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |adys.wh+winehqdotorg@gmail.c | |om
--- Comment #13 from Adys adys.wh+winehqdotorg@gmail.com 2009-01-23 01:55:56 --- Duplicate of bug 10778 / bug 16131 / etc, I guess.
http://bugs.winehq.org/show_bug.cgi?id=15290
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |DUPLICATE
--- Comment #14 from Austin English austinenglish@gmail.com 2009-01-23 09:03:02 --- Looks like it to me.
*** This bug has been marked as a duplicate of bug 10778 ***
http://bugs.winehq.org/show_bug.cgi?id=15290
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #15 from Austin English austinenglish@gmail.com 2009-01-23 09:03:25 --- Closing.