Bug 56788 - [nv96] Dota2 (wine) consistently crashes with "WARNING: out of code space, evicting all shaders"
Summary: [nv96] Dota2 (wine) consistently crashes with "WARNING: out of code space, ev...
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/nouveau (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Nouveau Project
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-05 22:50 UTC by Emil Velikov
Modified: 2012-12-16 15:10 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Untrimmed stdout & stderr (424.02 KB, text/plain)
2012-11-05 22:50 UTC, Emil Velikov
Details
Wine backtrace (26.80 KB, text/plain)
2012-11-05 22:53 UTC, Emil Velikov
Details
NV50_PROG_DEBUG_NO_COLORS=1 NV50_PROG_DEBUG=1 WINEPREFIX="~/.local/share/wineprefixes/steam" wine C:\\\\windows\\\\command\\\\start.exe steam://rungameid/570 1>dota2.log 2>&1 (572.27 KB, application/x-xz)
2012-11-10 14:17 UTC, Emil Velikov
Details

Description Emil Velikov 2012-11-05 22:50:52 UTC
Created attachment 69589 [details]
Untrimmed stdout & stderr

As of approx 1 Nov 2012, Dota2 crashes while playing/spectating a game

Initially I was suspecting the recent vbo work by Marek, although I'm leaning towards memory bug/buggy shader in one of the Dota2 3 updates - 29,30 and 1 Nov

Cannot downgrade to verify, although backtrace does point that the crash occurs after the above message is printed to stderr

Brief list of the other messages printed to strout & strerr

WARNING: value %35 not uniquely defined
...
WARNING: value %277 not uniquely defined
WARNING: value %17 not uniquely defined
context mis-match in pipe_sampler_view_release()
WARNING: value %28 not uniquely defined
...
WARNING: value %17 not uniquely defined
WARNING: out of code space, evicting all shaders.
Comment 1 Emil Velikov 2012-11-05 22:53:46 UTC
Created attachment 69590 [details]
Wine backtrace
Comment 2 Emil Velikov 2012-11-05 22:54:23 UTC
Correcting component
Comment 3 Emil Velikov 2012-11-05 23:19:22 UTC
To clear any confusion that I may have caused

Arch Linux 64bit -> wine 64bit -> wine 32bit -> Steam -> Dota2

Around the date mentioned I have updated the 64bit mesa not the multilib (which is used), thus it is caused by the Dota updates

Since the issue has appeared I have updated to

{lib32-,}libgl-git 20121104.gite3542ea-1
{lib32-,}libglapi-git 20121104.gite3542ea-1
{lib32-,}mesa-git 20121104.gite3542ea-1
{lib32-,}nouveau-dri-git 20121104.gite3542ea-1

I cannot reproduce if -dxlevel81 is used (appended to command line)
Comment 4 Emil Velikov 2012-11-10 14:17:11 UTC
Created attachment 69862 [details]
NV50_PROG_DEBUG_NO_COLORS=1 NV50_PROG_DEBUG=1 WINEPREFIX="~/.local/share/wineprefixes/steam" wine C:\\\\windows\\\\command\\\\start.exe steam://rungameid/570 1>dota2.log  2>&1

The shaders, compressed in xz as the raw file is ~19MB

Note this is unedited output, thus it contains some wine messages
Most of which can be stripped with grep -v "fixme" logfile
Comment 5 Maarten Lankhorst 2012-11-10 21:48:30 UTC
you can shut up wine with WINEDEBUG=-all
Comment 6 Emil Velikov 2012-12-16 15:10:09 UTC
nv50/c0 was reworked to reallocate the last shader after the eviction, thus resolving the crash

Messages about "not uniquely defined" are still present although do not cause any noticeable issues

Closing bug


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.