http://bugs.winehq.org/show_bug.cgi?id=35133
Bug ID: 35133 Summary: The Incredible Adventures of Van Helsing crashes with built-in d3dx9_36 Product: Wine Version: 1.7.8 Hardware: x86 OS: Linux Status: NEW Severity: minor Priority: P2 Component: directx-d3dx9 Assignee: wine-bugs@winehq.org Reporter: gyebro69@gmail.com CC: wine-bugs@winehq.org Classification: Unclassified
Created attachment 46865 --> http://bugs.winehq.org/attachment.cgi?id=46865 terminal output
The game loads to the menu screen, but crashes when you start the campaign. Actually, the map is loaded and the crash occurs as you move the mouse pointer a bit (this might sound odd).
Demo is available on Steam (the full game is ~20 GB, I didn't try the demo if it has the reported problem): http://store.steampowered.com/app/215530
Native d3dx9_36 is a workaround.
Nvidia binary drivers 325.15
http://bugs.winehq.org/show_bug.cgi?id=35133
--- Comment #1 from GyB gyebro69@gmail.com --- Created attachment 46866 --> http://bugs.winehq.org/attachment.cgi?id=46866 (partial) +d3dx log (uncompressed 56 MB)
the last few megabytes of a +d3dx log. The complete log is accessible: https://drive.google.com/file/d/0B-tTbLKBl-tORXlTeVBCVG5MaUU/edit?usp=sharin...
http://bugs.winehq.org/show_bug.cgi?id=35133
Arthur amp@singingwizard.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |amp@singingwizard.org
--- Comment #2 from Arthur amp@singingwizard.org --- I can confirm that the same problem exists and the same work around fixes it on the demo on the open source driver using an Intel card. I am using Wine 1.7 on Ubuntu 13.10 (version installed from the PPA).
https://bugs.winehq.org/show_bug.cgi?id=35133
hanska2@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hanska2@luukku.com
--- Comment #3 from hanska2@luukku.com --- Is this still valid with 1.7 series of wine?
https://bugs.winehq.org/show_bug.cgi?id=35133
--- Comment #4 from Béla Gyebrószki gyebro69@gmail.com --- Still present in 1.7.26
https://bugs.winehq.org/show_bug.cgi?id=35133
Peter Norell bithir@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |bithir@gmail.com
--- Comment #5 from Peter Norell bithir@gmail.com --- Can confirm the problem still exists.
https://bugs.winehq.org/show_bug.cgi?id=35133
--- Comment #6 from Peter Norell bithir@gmail.com --- Created attachment 49509 --> https://bugs.winehq.org/attachment.cgi?id=49509 backtrace
The last bits of the backtrace
https://bugs.winehq.org/show_bug.cgi?id=35133
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL| |http://store.steampowered.c | |om/app/215530 CC| |focht@gmx.net Summary|The Incredible Adventures |The Incredible Adventures |of Van Helsing crashes with |of Van Helsing (Steam) |built-in d3dx9_36 |crashes with built-in | |d3dx9_36
--- Comment #7 from Anastasius Focht focht@gmx.net --- Hello Peter,
your backtrace shows you have Steam in-game overlay enabled. This is a big no-no unless bug 35361 gets fixed.
--- snip --- Unhandled exception: page fault on read access to 0x0000000c in 32-bit code (0x7e1ad4c0). Register dump: CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b EIP:7e1ad4c0 ESP:0033f2e0 EBP:0033f448 EFLAGS:00010246( R- -- I Z- -P- ) EAX:00000000 EBX:7e1b2128 ECX:0033f2e0 EDX:00000000 ESI:00193d10 EDI:00000090 ... Backtrace: =>0 0x7e1ad4c0 ImmProcessKey+0x80() in imm32 (0x0033f448) 1 0x7e90afaf in user32 (+0x6afae) (0x0033f808) 2 0x7e90c550 PeekMessageW+0x5f() in user32 (0x0033f864) 3 0x0282fab6 in gameoverlayrenderer (+0x5fab5) (0x0033f880) 4 0x009dab0e in vanhelsing_x86 (+0x5dab0d) (0x0033f8c4) 5 0x009db438 in vanhelsing_x86 (+0x5db437) (0x0033f91c) 6 0x009dbfe1 in vanhelsing_x86 (+0x5dbfe0) (0x0033fdd0) 7 0x00eb40b2 in vanhelsing_x86 (+0xab40b1) (0x0033fe60) ... 0x7e1ad4c0 ImmProcessKey+0x80 in imm32: movl 0xc(%eax),%ecx Modules: Module Address Debug info Name (126 modules) PE 340000- 356000 Deferred xinput1_3 PE 360000- 3e3000 Deferred physx3cooking_x86 PE 400000- 233b000 Export vanhelsing_x86 PE 2340000- 2620000 Deferred physx3_x86 PE 2620000- 27ba000 Deferred physx3common_x86 PE 27d0000- 28de000 Export gameoverlayrenderer PE 6b00000- 6bd1000 Deferred steam PE a260000- a2ee000 Deferred xaudio2_7 PE 10000000-101ff000 Deferred d3dx9_43 PE 30000000-302c1000 Deferred steam2 PE 38000000-38906000 Deferred steamclient PE 3b400000-3b41d000 Deferred steam_api PE 3f000000-3f0b0000 Deferred tier0_s PE 3f600000-3f652000 Deferred vstdlib_s PE 60000000-60021000 Deferred cserhelper ... --- snip ---
Please disable the overlay and run it again.
Regards
https://bugs.winehq.org/show_bug.cgi?id=35133
--- Comment #8 from Peter Norell bithir@gmail.com --- Confirmed that about minimum 5 minutes of play causes no crash when the steam overlay is disabled.
https://bugs.winehq.org/show_bug.cgi?id=35133
--- Comment #9 from Anastasius Focht focht@gmx.net --- Hello Peter,
--- quote --- Confirmed that about minimum 5 minutes of play causes no crash when the steam overlay is disabled. --- quote ---
are you sure that the WINEPREFIX you're running the game from doesn't use native 'd3dx9_36'?
vs.
--- quote --- Béla Gyebrószki 2014-09-07 00:52:04 CDT
Still present in 1.7.26 --- quote ---
I think Béla has to provide a fresh backtrace then.
Regards
https://bugs.winehq.org/show_bug.cgi?id=35133
Béla Gyebrószki gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #49509|0 |1 is obsolete| |
--- Comment #10 from Béla Gyebrószki gyebro69@gmail.com --- Created attachment 49514 --> https://bugs.winehq.org/attachment.cgi?id=49514 terminal output - Wine 1.7.26
https://bugs.winehq.org/show_bug.cgi?id=35133
--- Comment #11 from Anastasius Focht focht@gmx.net --- Hello Béla,
thanks for the backtrace.
--- snip --- wine: Unhandled page fault on write access to 0x00000000 at address 0x7e802156 (thread 0063), starting debugger... ... Register dump: CS:0073 SS:007b DS:007b ES:007b FS:0033 GS:003b EIP:7e802156 ESP:02dbe360 EBP:02dbe3e8 EFLAGS:00010202( R- -- I - - - ) EAX:00000000 EBX:7e84e000 ECX:02dbe340 EDX:02dbe380 ESI:02dbe390 EDI:0221d860 ... Backtrace: =>0 0x7e802156 D3DXIntersectTri+0x176(p0=<couldn't compute location>, p1=<couldn't compute location>, p2=<couldn't compute location>, praypos=<couldn't compute location>, praydir=<couldn't compute location>, pu=<couldn't compute location>, pv=<couldn't compute location>, pdist=<couldn't compute location>) [/home/gyebro/sources/wine-1.7.26/dlls/d3dx9_36/mesh.c:2410] in d3dx9_36 (0x02dbe3e8) 1 0x00a0e7b3 in vanhelsing_x86 (+0x60e7b2) (0x02dbe430) ... 0x7e802156 D3DXIntersectTri+0x176 [/home/gyebro/sources/wine-1.7.26/dlls/d3dx9_36/mesh.c:2410] in d3dx9_36: fstps 0x0(%eax) 2410 *pu = vec.x; Modules: Module Address Debug info Name (141 modules) PE 340000- 3c3000 Deferred physx3cooking_x86 PE 400000- 233b000 Export vanhelsing_x86 PE 2340000- 24da000 Deferred physx3common_x86 PE 4fd0000- 50a1000 Deferred steam PE 7140000- 71ce000 Deferred xaudio2_7 PE 10000000-102e0000 Deferred physx3_x86 PE 30000000-302c1000 Deferred steam2 PE 38000000-38906000 Deferred steamclient PE 3b400000-3b41d000 Deferred steam_api PE 3f000000-3f0b0000 Deferred tier0_s PE 3f600000-3f652000 Deferred vstdlib_s PE 60000000-60021000 Deferred cserhelper ... Threads: process tid prio (all id:s are in hex) ... 00000061 (D) C:\Program Files\Steam\steamapps\common\The Incredible Adventures of Van Helsing\VanHelsing_x86.exe 00000066 15 00000065 15 0000003d 0 00000027 0 00000026 0 00000025 0 0000004b 0 0000004c 0 00000067 0 00000064 0 00000063 0 <== 00000062 0 --- snip ---
It seems the barycentric hit coordinate out parameters (U,V) are optional.
There are various DX game engine/example snippets floating around that pass NULL for these:
https://stackoverflow.com/questions/11161165/d3dxintersecttri-parts-of-my-me...
--- snip --- if(D3DXIntersectTri(&v1,&v2,&v3, &rayObjOrigin, &rayObjDirection, NULL, NULL, &distanceToCollision)) { hasHit = true; } --- snip ---
MSDN: http://msdn.microsoft.com/en-us/library/windows/desktop/bb172885%28v=vs.85%2...
Regards
https://bugs.winehq.org/show_bug.cgi?id=35133
Sebastian Lackner sebastian@fds-team.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sebastian@fds-team.de
--- Comment #12 from Sebastian Lackner sebastian@fds-team.de --- (In reply to Anastasius Focht from comment #11)
Thanks! I've written some tests, and it seems like (at least) the last three arguments are optional. Patch + testcase was added to the staging tree:
https://github.com/wine-compholio/wine-staging/blob/master/patches/d3dx9_36-...
Will try to submit it during the next weeks.
https://bugs.winehq.org/show_bug.cgi?id=35133
--- Comment #13 from Sebastian Lackner sebastian@fds-team.de --- Patch was committed:
http://source.winehq.org/git/wine.git/commit/b69038e3d96bd4eee19be6d6c6de7d4...
https://bugs.winehq.org/show_bug.cgi?id=35133
Béla Gyebrószki gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |b69038e3d96bd4eee19be6d6c6d | |e7d4abb03460d Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #14 from Béla Gyebrószki gyebro69@gmail.com --- Fixed in wine-1.7.30-192-g4032eef, thanks.
https://bugs.winehq.org/show_bug.cgi?id=35133
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #15 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.7.31.