http://bugs.winehq.org/show_bug.cgi?id=22275
Summary: Need for Speed: Most Wanted demo crashes with invalid floating pointer exception after intro video Product: Wine Version: 1.1.42 Platform: x86 URL: http://www.nfshome.com/demos.php?download=12 OS/Version: Linux Status: NEW Keywords: download, regression Severity: normal Priority: P2 Component: directx-d3d AssignedTo: wine-bugs@winehq.org ReportedBy: arethusa26@gmail.com CC: hverbeet@gmail.com
Created an attachment (id=27212) --> (http://bugs.winehq.org/attachment.cgi?id=27212) Need for Speed: Most Wanted crash output
After a disclaimer and intro videos are displayed, and a profile management dialog is dismissed, the Need for Speed: Most Wanted demo crashes with:
wine: Unhandled exception 0xc0000090 at address 0x4b652db2 (thread 0009), starting debugger... Unhandled exception: invalid float operation in 32-bit code (0x4b652db6). ...
Since the demo successfully reached the main menu in wine-1.0, a regression test was performed, which indicated:
bef792f5ff2cd87db98b58acb182123ef76be6e6 is first bad commit commit bef792f5ff2cd87db98b58acb182123ef76be6e6 Author: Henri Verbeet hverbeet@codeweavers.com Date: Mon Feb 1 13:52:55 2010 +0100
wined3d: Handle zero-length vectors for WINED3DSIH_NRM.
Unfortunately there's no reliable way to generate infinity in GLSL, but a sufficiently large value will probably do. The important part of the patch is that we don't generate NaN, because that will keep propagating through the entire shader.
:040000 040000 0ef00367f6f2d00ed8d3eb05490f782731308d50 2926b708a9273393700d983848a1c8429d1cb867 M dlls
Wine prior to this commit lets the game successfully reach the main menu. While bug 21627 identifies the same commit, the patch attached to that bug does not change the bug symptoms at all.
http://bugs.winehq.org/show_bug.cgi?id=22275
--- Comment #1 from Henri Verbeet hverbeet@gmail.com 2010-04-05 03:43:01 --- I'm pretty sure I've seen that exception before in this game, it just happens sooner now. Does the patch attached to bug 21876 make any difference?
http://bugs.winehq.org/show_bug.cgi?id=22275
Andrew Nguyen arethusa26@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE
--- Comment #2 from Andrew Nguyen arethusa26@gmail.com 2010-04-05 06:03:55 --- Indeed, that patch resolves the launch issue. The fifth comment of bug 21876 implies that this bug is a duplicate, so I'm resolving accordingly.
*** This bug has been marked as a duplicate of bug 21876 ***
http://bugs.winehq.org/show_bug.cgi?id=22275
Andrew Nguyen arethusa26@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Andrew Nguyen arethusa26@gmail.com 2010-04-05 06:04:45 --- I forgot to mention that the patch doesn't apply on top of wine-1.1.42, so I had to apply it on top of wine-1.1.38. Closing the bug.