http://bugs.winehq.org/show_bug.cgi?id=33603
Bug #: 33603 Summary: Metro: Last Light crash after several minutes Product: Wine Version: 1.5.29 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: andrey.goosev@gmail.com CC: andrey.goosev@gmail.com Classification: Unclassified
Game works fine, but has a stable crash after several minutes of gameplay.
From terminal:
err:d3d_surface:surface_load_pbo >>>>>>>>>>>>>>>>> GL_OUT_OF_MEMORY (0x505) from glBufferDataARB @ surface.c / 545 err:d3d_surface:surface_download_data >>>>>>>>>>>>>>>>> GL_INVALID_OPERATION (0x502) from glGetCompressedTexImageARB @ surface.c / 2125 err:d3d_surface:surface_map >>>>>>>>>>>>>>>>> GL_OUT_OF_MEMORY (0x505) from glMapBufferARB @ surface.c / 926 wine: Unhandled page fault on read access to 0x00000000 at address 0x971ee0 (thread 0009), starting debugger...
http://bugs.winehq.org/show_bug.cgi?id=33603
Bartek bp1994@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |bp1994@gmail.com
--- Comment #1 from Bartek bp1994@gmail.com 2013-05-19 15:23:30 CDT --- How did you even start it at all? It quits on start for me, not even seeing MetroLL window.
http://bugs.winehq.org/show_bug.cgi?id=33603
--- Comment #2 from Andrey Gusev andrey.goosev@gmail.com 2013-05-20 05:51:06 CDT --- Just installed DirectX.
http://bugs.winehq.org/show_bug.cgi?id=33603
--- Comment #3 from Andrey Gusev andrey.goosev@gmail.com 2013-05-21 08:17:10 CDT --- Created attachment 44520 --> http://bugs.winehq.org/attachment.cgi?id=44520 backtrace
http://bugs.winehq.org/show_bug.cgi?id=33603
Bully Bull bully@mailinator.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |bully@mailinator.com
--- Comment #4 from Bully Bull bully@mailinator.com 2013-05-29 14:04:35 CDT --- I have exactly the same error
fixme:d3d:wined3d_occlusion_query_ops_get_data 0x18e39758 Wrong thread, returning 1. err:d3d:wined3d_debug_callback 0x1c56e8: "GL_OUT_OF_MEMORY error generated. Failed to allocate memory for buffer data.". err:d3d_surface:surface_load_pbo >>>>>>>>>>>>>>>>> GL_OUT_OF_MEMORY (0x505) from glBufferDataARB @ surface.c / 545 err:d3d:wined3d_debug_callback 0x1c56e8: "GL_INVALID_OPERATION error generated.". err:d3d_surface:surface_download_data >>>>>>>>>>>>>>>>> GL_INVALID_OPERATION (0x502) from glGetCompressedTexImageARB @ surface.c / 2125 err:d3d:wined3d_debug_callback 0x1c56e8: "GL_OUT_OF_MEMORY error generated. Failed to map buffer.". err:d3d_surface:surface_map >>>>>>>>>>>>>>>>> GL_OUT_OF_MEMORY (0x505) from glMapBufferARB @ surface.c / 926 wine: Unhandled page fault on write access to 0x00000000 at address 0x78aa1ed7 (thread 004c), starting debugger...
http://bugs.winehq.org/show_bug.cgi?id=33603
--- Comment #5 from Bully Bull bully@mailinator.com 2013-05-29 14:50:38 CDT --- here are a few more details
wine --version wine-1.5.31
glxinfo | grep direct direct rendering: Yes GL_AMD_multi_draw_indirect, GL_AMD_seamless_cubemap_per_texture, GL_ARB_draw_elements_base_vertex, GL_ARB_draw_indirect, GL_ARB_multi_draw_indirect, GL_ARB_multisample, GL_ARB_multitexture, GL_EXT_direct_state_access, GL_EXT_draw_buffers2, GL_EXT_draw_instanced, GL_AMD_multi_draw_indirect, GL_AMD_seamless_cubemap_per_texture, GL_ARB_draw_indirect, GL_ARB_draw_instanced, GL_ARB_multi_draw_indirect, GL_ARB_multisample, GL_ARB_multitexture, GL_EXT_direct_state_access, GL_EXT_draw_buffers2, GL_EXT_draw_instanced,
Graphics driver NVIDIA 319.17
output from WINEDEBUG=fixme-all,+wine_d3d wine Steam.exe -applaunch 43160 . . . err:ole:CoInitializeEx Attempt to change threading model of this apartment from multi-threaded to apartment threaded err:d3d:resource_unload Resource 0x1c2a40 is being unloaded while mapped. err:d3d:resource_unload Resource 0x1c2a40 is being unloaded while mapped. err:d3d:wined3d_debug_callback 0x189c4c98: "GL_INVALID_OPERATION error generated. Invalid PBO operation.". err:d3d_surface:surface_upload_data >>>>>>>>>>>>>>>>> GL_INVALID_OPERATION (0x502) from glTexSubImage2D @ surface.c / 2348 err:d3d:wined3d_debug_callback 0x189c4c98: "GL_INVALID_OPERATION error generated. Invalid PBO operation.". err:d3d_surface:surface_upload_data >>>>>>>>>>>>>>>>> GL_INVALID_OPERATION (0x502) from glTexSubImage2D @ surface.c / 2348 err:d3d:wined3d_debug_callback 0x189c4c98: "GL_INVALID_OPERATION error generated. Invalid PBO operation.". err:d3d_surface:surface_upload_data >>>>>>>>>>>>>>>>> GL_INVALID_OPERATION (0x502) from glTexSubImage2D @ surface.c / 2348 err:d3d:wined3d_debug_callback 0x189c4c98: "GL_INVALID_OPERATION error generated. Invalid PBO operation.". err:d3d_surface:surface_upload_data >>>>>>>>>>>>>>>>> GL_INVALID_OPERATION (0x502) from glTexSubImage2D @ surface.c / 2348 err:d3d:wined3d_debug_callback 0x1c07e0: "GL_OUT_OF_MEMORY error generated. Failed to allocate memory for buffer data.". err:d3d_surface:surface_load_pbo >>>>>>>>>>>>>>>>> GL_OUT_OF_MEMORY (0x505) from glBufferDataARB @ surface.c / 545 err:d3d:wined3d_debug_callback 0x1c07e0: "GL_OUT_OF_MEMORY error generated. Failed to map buffer.". err:d3d_surface:surface_map >>>>>>>>>>>>>>>>> GL_OUT_OF_MEMORY (0x505) from glMapBufferARB @ surface.c / 926 wine: Unhandled page fault on write access to 0x00000000 at address 0x78aa1ed7 (thread 0049), starting debugger... . . .
http://bugs.winehq.org/show_bug.cgi?id=33603
igor romanov romanov@mailinator.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |romanov@mailinator.com
--- Comment #6 from igor romanov romanov@mailinator.com 2013-06-09 22:31:28 CDT --- Hi all,
I am experiencing the same issue too.
I tried 3 different versions of wine, 1.5.25, 1.5.31 and 1.6-rc1. I also tried the setarch trick:
setarch i386 -R -B -3 wine Steam.exe
MetroLL crashes after at least 5 minutes but no more than 10 minutes.
I am running ubuntu 12.04-amd64
On the hardware side, i got: 32 GB of ram 1 GeForce GTX 670X board using driver 310.14
Metroll.exe turns into a zombie. I have to CTRL+ALT+F1 and kill -9 it to be able to use X again. Log file ends up with these lines.
err:d3d:wined3d_debug_callback 0x17918d10: "GL_OUT_OF_MEMORY error generated. Failed to map buffer.". err:d3d_surface:surface_map >>>>>>>>>>>>>>>>> GL_OUT_OF_MEMORY (0x505) from glMapBufferARB @ surface.c / 948
http://bugs.winehq.org/show_bug.cgi?id=33603
Andrey Gusev andrey.goosev@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |directx-d3d
http://bugs.winehq.org/show_bug.cgi?id=33603
DL dredgingthelake@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dredgingthelake@gmail.com
--- Comment #7 from DL dredgingthelake@gmail.com 2013-06-12 09:38:53 CDT --- Are you setting VideoMemorySize to the correct value with Regedit? I've heard you don't normally need to do this any more as most cards are detected but it might be worth a shot in this case.
http://bugs.winehq.org/show_bug.cgi?id=33603
--- Comment #8 from Andrey Gusev andrey.goosev@gmail.com 2013-06-12 11:48:50 CDT --- (In reply to comment #7)
Are you setting VideoMemorySize to the correct value with Regedit? I've heard you don't normally need to do this any more as most cards are detected but it might be worth a shot in this case.
It doesn't help.
http://bugs.winehq.org/show_bug.cgi?id=33603
--- Comment #9 from igor romanov romanov@mailinator.com 2013-06-12 23:10:31 CDT --- I tried to set VideoMemorySize, first to 2048 which is really the amount of video memory that i have. Didn't do much.
Then i tried to set it to a different setting lower then higher. I have the strange feeling than the game runs a few minutes longer on the 4096 setting but i am not sure. I need to figure out a way to measure the amount of time metroll.exe actually runs.
I also pulled wine from the git repository to be able to try out patches but it won't configure:
checking whether gcc -m32 works... no configure: error: Cannot build a 32-bit program, you need to install 32-bit development libraries.
I tried to installed these 32 bit libraries but apt-get fails with lots of dependencies issues.
I'll try metro using a 32 bit ubuntu to see how it works. At least, i should be able to compile wine and try patches.
http://bugs.winehq.org/show_bug.cgi?id=33603
--- Comment #10 from igor romanov romanov@mailinator.com 2013-06-22 11:58:58 CDT --- Created attachment 44907 --> http://bugs.winehq.org/attachment.cgi?id=44907 workaround
Metro 2033 has similar issues. Made this workaround by looking here:
http://appdb.winehq.org/objectManager.php?sClass=version&iId=19666
http://bugs.winehq.org/show_bug.cgi?id=33603
--- Comment #11 from igor romanov romanov@mailinator.com 2013-06-22 12:01:17 CDT --- The game does no longer crashed with this workaround applied against wine 1.6-rc3. I played for 5 hours straight and left the game normally after getting killed
http://bugs.winehq.org/show_bug.cgi?id=33603
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch
http://bugs.winehq.org/show_bug.cgi?id=33603
Bartek bp1994@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|bp1994@gmail.com |
http://bugs.winehq.org/show_bug.cgi?id=33603
--- Comment #12 from Bully Bull bully@mailinator.com 2013-06-23 11:37:41 CDT --- thumbs up Thanks for the patch!
http://bugs.winehq.org/show_bug.cgi?id=33603
root the.root.life@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |the.root.life@gmail.com
--- Comment #13 from root the.root.life@gmail.com 2013-07-21 02:30:09 CDT --- Just wanted to confirm this issue and that igor's patch worked good on wine 1.6 and this game.
http://bugs.winehq.org/show_bug.cgi?id=33603
Tomas deucalion59@yahoo.com.au changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |deucalion59@yahoo.com.au
http://bugs.winehq.org/show_bug.cgi?id=33603
Tom fastumzug@fastmail.fm changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fastumzug@fastmail.fm
--- Comment #14 from Tom fastumzug@fastmail.fm 2013-09-15 08:38:28 CDT --- I got several errors while playing. Maybe it's related to this bug:
fixme:d3d:wined3d_occlusion_query_ops_get_data 0xfb2a3f0 Wrong thread, returning 1. fixme:d3d:wined3d_occlusion_query_ops_get_data 0x16eb79e8 Wrong thread, returning 1. fixme:d3d:wined3d_occlusion_query_ops_get_data 0x11ad56c0 Wrong thread, returning 1. fixme:d3d:wined3d_occlusion_query_ops_get_data 0x16eb6230 Wrong thread, returning 1. fixme:d3d:wined3d_occlusion_query_ops_get_data 0x16eb7a98 Wrong thread, returning 1. fixme:d3d:wined3d_occlusion_query_ops_get_data 0x16eb6128 Wrong thread, returning 1. fixme:d3d:wined3d_occlusion_query_ops_get_data 0x16eb6338 Wrong thread, returning 1. fixme:d3d:wined3d_occlusion_query_ops_get_data 0x16eb67b0 Wrong thread, returning 1. fixme:d3d:wined3d_occlusion_query_ops_get_data 0x16eb6288 Wrong thread, returning 1. fixme:d3d:wined3d_occlusion_query_ops_get_data 0x16eb6cd8 Wrong thread, returning 1. fixme:d3d:wined3d_occlusion_query_ops_get_data 0x11ad59d8 Wrong thread, returning 1. fixme:d3d:wined3d_occlusion_query_ops_get_data 0x119ce9d0 Wrong thread, returning 1. fixme:d3d:wined3d_occlusion_query_ops_get_data 0xfb2a760 Wrong thread, returning 1. fixme:d3d:wined3d_occlusion_query_ops_get_data 0x11ad5cf0 Wrong thread, returning 1. fixme:d3d:wined3d_occlusion_query_ops_get_data 0x16eb62e0 Wrong thread, returning 1. fixme:d3d:wined3d_occlusion_query_ops_get_data 0x16eb5f70 Wrong thread, returning 1. fixme:d3d:wined3d_occlusion_query_ops_get_data 0x16eb6968 Wrong thread, returning 1. fixme:d3d:wined3d_occlusion_query_ops_get_data 0x11ad5928 Wrong thread, returning 1. fixme:d3d:wined3d_occlusion_query_ops_get_data 0x119ce920 Wrong thread, returning 1. fixme:d3d:wined3d_occlusion_query_ops_get_data 0x1822df00 Wrong thread, returning 1. fixme:d3d:wined3d_occlusion_query_ops_get_data 0xfb2a340 Wrong thread, returning 1. fixme:d3d:wined3d_occlusion_query_ops_get_data 0x16eb6ff0 Wrong thread, returning 1.
http://bugs.winehq.org/show_bug.cgi?id=33603
--- Comment #15 from Tom fastumzug@fastmail.fm 2013-09-15 11:03:32 CDT --- Created attachment 45964 --> http://bugs.winehq.org/attachment.cgi?id=45964 Crach backtrace and terminal output
http://bugs.winehq.org/show_bug.cgi?id=33603
--- Comment #16 from Tom fastumzug@fastmail.fm 2013-09-15 11:05:20 CDT --- It's running fine with the following settings:
export WINEDEBUG=-all export LD_PRELOAD="libpthread.so.0 libGL.so.1" export __GL_THREADED_OPTIMIZATIONS=0 export __GL_SYNC_TO_VBLANK=0 export __GL_YIELD="NOTHING"
Especailly "export __GL_THREADED_OPTIMIZATIONS=0" setting to zero seems to help. Nevertheless I had a crash while everything else is great now. The Backtrace report with terminal outpuut its attached.
http://bugs.winehq.org/show_bug.cgi?id=33603
--- Comment #17 from Andrey Gusev andrey.goosev@gmail.com 2013-10-04 08:20:03 CDT --- Game with the latest update on clean 1.7.3
err:d3d:wined3d_debug_callback 0x1cbdd0: "GL_OUT_OF_MEMORY error generated. Failed to allocate memory for buffer data.". err:d3d_surface:surface_load_pbo >>>>>>>>>>>>>>>>> GL_OUT_OF_MEMORY (0x505) from glBufferDataARB @ surface.c / 562 err:d3d:wined3d_debug_callback 0x1cbdd0: "GL_INVALID_OPERATION error generated.". err:d3d_surface:surface_download_data >>>>>>>>>>>>>>>>> GL_INVALID_OPERATION (0x502) from glGetCompressedTexImageARB @ surface.c / 1749 err:d3d:wined3d_debug_callback 0x1cbdd0: "GL_OUT_OF_MEMORY error generated. Failed to map buffer.". err:d3d_surface:surface_map >>>>>>>>>>>>>>>>> GL_OUT_OF_MEMORY (0x505) from glMapBufferARB @ surface.c / 916
http://bugs.winehq.org/show_bug.cgi?id=33603
TestSubject sirbubbles01@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sirbubbles01@gmail.com
--- Comment #18 from TestSubject sirbubbles01@gmail.com 2013-11-12 13:02:10 CST --- (In reply to comment #16)
It's running fine with the following settings:
export WINEDEBUG=-all export LD_PRELOAD="libpthread.so.0 libGL.so.1" export __GL_THREADED_OPTIMIZATIONS=0 export __GL_SYNC_TO_VBLANK=0 export __GL_YIELD="NOTHING"
Especailly "export __GL_THREADED_OPTIMIZATIONS=0" setting to zero seems to help. Nevertheless I had a crash while everything else is great now. The Backtrace report with terminal outpuut its attached.
I'm trying this under wine-1.7.1 with the CSMT patches, and it seems to do the job just fine so far. I've only gone so far as to play the game for a relatively short time, but if memory serves, it would have crashed pretty quick otherwise. I tried the workaround patch, but the trouble is that it causes troubles with many games and the steam overlay, so not a good fix.
http://bugs.winehq.org/show_bug.cgi?id=33603
--- Comment #19 from TestSubject sirbubbles01@gmail.com 2013-11-12 13:04:37 CST --- (In reply to comment #11)
The game does no longer crashed with this workaround applied against wine 1.6-rc3. I played for 5 hours straight and left the game normally after getting killed
The patch does work for me, however it also causes a lot of trouble with games and the steam overlay. For instance, flatout 2 and the entire bethesda lineup (fallout 3, the elder scrolls series) won't work unless the steam overlay is disabled. It might be possible that exporting the variables as shown in comment #16 is a better fix.
http://bugs.winehq.org/show_bug.cgi?id=33603
Jerome Leclanche adys.wh@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |adys.wh@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=33603
Jarkko K jarkko_korpi@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jarkko_korpi@hotmail.com
--- Comment #20 from Jarkko K jarkko_korpi@hotmail.com --- Could someone please try this patch?
http://www.startux.de/index.php/articles/51-wine-patch-to-use-3gb-userspace
I have read it helped someone with metro2033 and another with World of Subways
http://bugs.winehq.org/show_bug.cgi?id=33603
--- Comment #21 from Andrey Gusev andrey.goosev@gmail.com --- Actually, I don't have this issue anymore in a clean 1.7.15
http://bugs.winehq.org/show_bug.cgi?id=33603
Jerome Leclanche adys.wh@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
--- Comment #22 from Jerome Leclanche adys.wh@gmail.com --- Fixed
https://bugs.winehq.org/show_bug.cgi?id=33603
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #23 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.7.16.