[Bug 25617] Clones crashes after a period of time (occasionally with an out of memory error)

wine-bugs at winehq.org wine-bugs at winehq.org
Thu Apr 14 00:49:03 CDT 2011


http://bugs.winehq.org/show_bug.cgi?id=25617

--- Comment #4 from Tom Kaminski <ttkaminski at gmail.com> 2011-04-14 00:48:59 CDT ---
I've done some more debugging on this issue and found the cause of it.  In the
main game loop, a specific texture was being released and reloaded (allocated)
from file every time (ie. for each rendered frame).  This texture is not large,
and the game properly releases the texture to free up memory.  This isn't a
problem in Windows, but it under wine, the allocation of the texture would
eventually fail after a few minutes.  It seems like wine has some sort of
internal limit to the absolute number of textures that can be allocated (even
if the previously loaded textures were all freed up).  

In any case, I've implemented a simple fix in the Clones code to avoid
reloading the same texture over and over again.  After this, I was able to run
the game for a few hours without a crash.  This fix will be included in the
upcoming v1.30 patch.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list