http://bugs.winehq.org/show_bug.cgi?id=30179
Bug #: 30179 Summary: War of the Ring: Game crashes when building any structure. Product: Wine Version: 1.4 Platform: x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: samurai_no_densetsu@yahoo.es Classification: Unclassified Regression SHA1: 68b15bc5ffe6ddf5d08cbc13479eaf718ad5e39f
Lord of the Rings: War of the Ring used to work fine but when tested it recently it crashes as soon as you try to build any structure in the game. Since this is a regression, did a regresion test, the result was:
68b15bc5ffe6ddf5d08cbc13479eaf718ad5e39f is first bad commit commit 68b15bc5ffe6ddf5d08cbc13479eaf718ad5e39f Author: Stefan Dösinger stefan@codeweavers.com Date: Tue Apr 19 21:24:26 2011 +0200
wined3d: Give GL_ARB_map_buffer_range another try.
Nvidia's 270.xx.yy driver series fix the glMapBuffer alignment issues that caused major performance problems. If the user is using an older driver we now drop the VBO instead of using doublebuffered loading, which means that we fall back to the current behavior(no dynamic VBO) as needed. Dynamic VBOs are needed on Nvidia drivers for GL_ARB_instanced_arrays.
:040000 040000 0cada15043b731febf2ef2a673aaaecc4af75f8d c474ade74a8db2a9c547674dbb4c809841087a3d M dlls
There's a working demo showing the same problem at:
http://www.fileplanet.com/130634/130000/fileinfo/The-War-of-the-Ring-Single-...
To reproduce, use game level on the top right of the map.
http://bugs.winehq.org/show_bug.cgi?id=30179
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, regression URL| |http://www.fileplanet.com/1 | |30634/130000/fileinfo/The-W | |ar-of-the-Ring-Single-Playe | |r-Demo CC| |stefan@codeweavers.com
http://bugs.winehq.org/show_bug.cgi?id=30179
--- Comment #1 from Stefan Dösinger stefan@codeweavers.com 2012-03-15 18:06:10 CDT --- The app is broken. It is accessing buffer memory after unlocking the buffer:
err:d3d:wined3d_buffer_map 0x83bd8c8: Returning memory at 0x6a67020 (base 0x6a67020, offset 0), lock count 1. err:d3d:wined3d_buffer_unmap buffer 0x83bd8c8, count 1 wine: Unhandled page fault on write access to 0x06a67020 at address 0x60605b (thread 0024), starting debugger... Unhandled exception: page fault on write access to 0x06a67020 in 32-bit code (0x0060605b).
This used to work sort of without VBOs because our HeapAlloc'ed memory remains at the same address. Even though the written data doesn't necessarily show up in draws, the write at least doesn't cause an exception.
This is a d3d9 app, the buffer is a dynamic buffer. The app doesn't have any high ground here. The only feasible option I see is offering the user a way to disable dynamic buffers, e.g. by making the HKCU/software/wine/opengl/disabledextensions registry key work for wined3d.
Other than that the application tends to freeze before showing the main menu or before entering a game, even if I limit it to one CPU as the appdb suggests. This is not related to this bug though.
http://bugs.winehq.org/show_bug.cgi?id=30179
Henri Verbeet hverbeet@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |directx-d3d
http://bugs.winehq.org/show_bug.cgi?id=30179
--- Comment #2 from Athrun samurai_no_densetsu@yahoo.es 2012-03-16 16:03:28 CDT --- A small update. Looks like that they did a better work with later versions of the games since patching it to its latest versions solves the issue. I didn't applied it earlier because almost all units are tweaked and the game itself becomes too easy (for my taste).
Knowing this I am not sure if it worths the effort so I will let you choose about fixing or not.
http://bugs.winehq.org/show_bug.cgi?id=30179
--- Comment #3 from Stefan Dösinger stefan@codeweavers.com 2012-03-16 16:54:18 CDT --- I'm not sure I understand you correctly. Does a game update fix the problem?
http://bugs.winehq.org/show_bug.cgi?id=30179
--- Comment #4 from Athrun samurai_no_densetsu@yahoo.es 2012-03-16 17:37:13 CDT --- Exactly. A game update fixes this issue. The demo will remain the same but that's why I was saying that didn't know if it was worth spending time fixing just the demo.
http://bugs.winehq.org/show_bug.cgi?id=30179
Stefan Dösinger stefan@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID
--- Comment #5 from Stefan Dösinger stefan@codeweavers.com 2012-03-16 19:34:27 CDT --- Nah, the app's behavior is clearly broken. I am not surprised they had problems with it on Windows too. There's no way to fix this, other than add quirks for broken apps, which we generally don't do.
http://bugs.winehq.org/show_bug.cgi?id=30179
Jerome Leclanche adys.wh@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED CC| |adys.wh@gmail.com
--- Comment #6 from Jerome Leclanche adys.wh@gmail.com 2012-03-16 19:38:45 CDT --- Closing.