https://bugs.winehq.org/show_bug.cgi?id=40036
Bug ID: 40036 Summary: Shadows of Destiny Crash After Begins Product: Wine Version: 1.9.2 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: mrdeathjr28@yahoo.es Distribution: ---
Game Crash with this message
fixme:win:EnumDisplayDevicesW ((null),0,0x33f978,0x00000000), stub! fixme:win:EnumDisplayDevicesW ((null),0,0x33f6f8,0x00000000), stub! fixme:d3d8:ValidateVertexShader (0x15415f0 (nil) (nil) 1 0x33f958): stub wine: Unhandled page fault on read access to 0x00000000 at address 0x7a89e4 (thread 0074), starting debugger...
Using devenum as native crash with same messsage
System Specs used in test
Nvidia Drivers 361.18 Linux Mint 17.2 Raffaela XFCE Edition 64Bit - Kernel 4.0.0-040000-generic (ubuntu mainline) CPU: INTEL Pentium G3258 (Haswell 22nm) 4.1Ghz + Artic Cooling Alpine 11 Plus MEM: 8GB DDR3 1333 (2x4) Patriot value (128 bit dual channel: 21.3 gb/s) GPU: Zotac Nvidia Geforce GT630 (GK208 28nm: 384 Shaders / 8 ROPS) Zone Edition Passive Cooling 2GB DDR3 1800Mhz 64Bit (14.4Gb/s) BOARD: MSI H81M E33
https://bugs.winehq.org/show_bug.cgi?id=40036
mrdeathjr28@yahoo.es changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mrdeathjr28@yahoo.es
https://bugs.winehq.org/show_bug.cgi?id=40036
super_man@post.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |super_man@post.com
--- Comment #1 from super_man@post.com --- You should attach the backtrace too. It shows the exact location more accurately.
https://bugs.winehq.org/show_bug.cgi?id=40036
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winetest@luukku.com
--- Comment #2 from winetest@luukku.com --- Can you test more recent wine version? I know you test it often.
https://bugs.winehq.org/show_bug.cgi?id=40036
--- Comment #3 from mrdeathjr28@yahoo.es --- Created attachment 55898 --> https://bugs.winehq.org/attachment.cgi?id=55898 backtrace-wine-1.9.21
https://bugs.winehq.org/show_bug.cgi?id=40036
--- Comment #4 from mrdeathjr28@yahoo.es --- Game still crash at begins
System Specs Used In Test
Wine 1.9.21
Nvidia Drivers 370.28 (run package from nvidia drivers homepage)
Xubuntu 16.04 64Bit - Kernel 4.4.0-41 generic (ubuntu mainline) - CPUFreq: Performance
CPU: INTEL Pentium G3258 (Haswell 22nm) 4.1Ghz + Artic Cooling Alpine 11 Plus
MEMORY: 8GB DDR3 1333 (2x4) Patriot value (128 bit dual channel: 21.3 gb/s)
GPU: Zotac Nvidia Geforce GT630 (GK208 28nm: 384 Shaders / 8 ROPS) Zone Edition Passive Cooling 2GB DDR3 1800Mhz 64Bit (14.4Gb/s)
MAINBOARD: MSI H81M E33
https://bugs.winehq.org/show_bug.cgi?id=40036
--- Comment #5 from winetest@luukku.com --- I cant test this specifig game but if you have time and interestes you could also try wine-staging version of wine 1.9.21. If it works then it means that they have a patch for this and this bug report is most likely a dupe of some other bug.
https://bugs.winehq.org/show_bug.cgi?id=40036
Jeff D. Hanson jhansonxi@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jhansonxi@gmail.com
--- Comment #6 from Jeff D. Hanson jhansonxi@gmail.com --- Xubuntu 14.04 x86_64, AMD Phenom 9550, GeForce GTX 750Ti with Nvidia 340.98 driver. Windows version: Windows XP Wine Staging 2.0-rc3
Occurs with both Shadow of Destiny (USA release) CD and Shadow of Memories (EU) demo.
On the hunch that the page fault is a DirectX 9 compatibility problem, I tested several DirectX 8 to DirectX 9 converters (d3d8.dll override set, d3dcompiler_43 from winetricks installed).
ReShade: https://reshade.me/forum/releases/419-d3d8to9 Boris Vorontsov: http://enbdev.com/download_convertor_dx8todx9.htm AnKor: http://forum.turboduck.net/threads/31760-wr2-dx9-converter-by-ankor
Other than changing the backtraces slightly the converters did not prevent the error.
https://bugs.winehq.org/show_bug.cgi?id=40036
--- Comment #7 from Jeff D. Hanson jhansonxi@gmail.com --- Created attachment 56606 --> https://bugs.winehq.org/attachment.cgi?id=56606 Shadow of Destiny (USA CD) backtrace
https://bugs.winehq.org/show_bug.cgi?id=40036
--- Comment #8 from winetest@luukku.com --- Can you provide a link to demo that has the exact issue?
https://bugs.winehq.org/show_bug.cgi?id=40036
--- Comment #9 from Jeff D. Hanson jhansonxi@gmail.com --- Created attachment 56607 --> https://bugs.winehq.org/attachment.cgi?id=56607 Shadow of Memories (EU) demo backtrace
Wine Staging 2.0-rc3 win32 WinXP Demo: http://www.gamepressure.com/download.asp?ID=2199
https://bugs.winehq.org/show_bug.cgi?id=40036
--- Comment #10 from winetest@luukku.com --- (In reply to Jeff D. Hanson from comment #9)
Created attachment 56607 [details] Shadow of Memories (EU) demo backtrace
Wine Staging 2.0-rc3 win32 WinXP Demo: http://www.gamepressure.com/download.asp?ID=2199
Can confirm wine 2.0.rc3 and staging 2.0.rc3 crashes similar way.
https://bugs.winehq.org/show_bug.cgi?id=40036
Sebastian Lackner sebastian@fds-team.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dmitry@baikal.ru, | |erich.e.hoover@wine-staging | |.com, michael@fds-team.de, | |sebastian@fds-team.de Staged patchset| |https://github.com/wine-com | |pholio/wine-staging/tree/ma | |ster/patches/d3d8-ValidateS | |hader Ever confirmed|0 |1 Status|UNCONFIRMED |STAGED
https://bugs.winehq.org/show_bug.cgi?id=40036
--- Comment #11 from Jeff D. Hanson jhansonxi@gmail.com --- Still occurring with Wine 3.0 rc3. Also saw a dialog regarding XBox shaders. Will attach backtrace and screenshot of dialog.
https://bugs.winehq.org/show_bug.cgi?id=40036
--- Comment #12 from Jeff D. Hanson jhansonxi@gmail.com --- Created attachment 60043 --> https://bugs.winehq.org/attachment.cgi?id=60043 Shadow of Memories (EU) demo backtrace Wine 3 rc3
Xubuntu 16.04.3 x86_64 wine-devel 3.0~rc3~xenial from winehq.org Nvidia 750Ti using 384.90 proprietary driver
https://bugs.winehq.org/show_bug.cgi?id=40036
--- Comment #13 from Jeff D. Hanson jhansonxi@gmail.com --- Created attachment 60044 --> https://bugs.winehq.org/attachment.cgi?id=60044 Screenshot of xbox_shaders.cpp dialog
Screenshot of dialog displayed during crash. Made visible by alt-tab at black screen.
https://bugs.winehq.org/show_bug.cgi?id=40036
--- Comment #14 from Jeff D. Hanson jhansonxi@gmail.com --- Noticed the d3d8-ValidateShader patch for staging. I switched to a different system (32-bit to work around GStreamer plugin multiarch problems on Ubuntu) loaded wine-staging and tried the demo again.
Multiple crashes again (with the shader message dialog). But somewhere in my test/alt-tab/messing around with the Nvidia control panel (to reset screen mode after each crash) it started working.
The screen was the wrong size and the Konami logo was mostly off the edge of the screen. Next the intro video played at the size of a postage stamp in the upper-left corner. Then the menu loaded but at the wrong resolution and I had to pan around to see it. I couldn't get any of the buttons to click because the graphics didn't align so I killed it and tried again.
Back to crashing. I don't know what I did to make it work that one time but I can't reproduce it. Makes me think there is a race condition of some sort. I tried changing affinity with schedtool but it just crashed again. Maybe there's a conflict with screen resolution between the logo, video, and shaders.
Some people on the PlayOnLinux forum did some debugging and also thought it was the shaders that were causing the problem: https://www.playonlinux.com/en/topic-11112-Help_me_please_Shadow_of_destiny....
The shaders are in: …/Program Files/Konami/Shadow Of Memories Demo/prefix/engine
Test system: Xubuntu 17.04 x86, Intel Pentium D 3.46GHz, GeForce 8600 GT with Nvidia 340.102 driver. wine-staging 2.21.0~zesty from dl.winehq.org
https://bugs.winehq.org/show_bug.cgi?id=40036
--- Comment #15 from Jeff D. Hanson jhansonxi@gmail.com --- I figured it out. The vague "xbox_shaders.cpp" shader error wasn't referring to a shader error - it was simply reporting that it couldn't find the shader file. Because I was in a terminal and trying to capture a log I wasn't using the start menu link or specifying a working directory. It started working when I executed "ShadowAuto.exe" on the CD (which presumably set the correct working directory). Specifying the directory using the /d option of start.exe solved the problem.
Both the demo and CD version now start with wine-staging. There are several other problems including video playback size, a missing codec on 64-bit Ubuntu due to GStreamer multiarch problems, a freeze at the display configuration screen, and a page fault when starting the game from the main menu, but those are beyond the scope of this bug.
IOW, the patchset works.
https://bugs.winehq.org/show_bug.cgi?id=40036
André H. nerv@dawncrow.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nerv@dawncrow.de Staged patchset|https://github.com/wine-com |https://github.com/wine-sta |pholio/wine-staging/tree/ma |ging/wine-staging/tree/mast |ster/patches/d3d8-ValidateS |er/patches/d3d8-ValidateSha |hader |der
https://bugs.winehq.org/show_bug.cgi?id=40036
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |directx-d3d
https://bugs.winehq.org/show_bug.cgi?id=40036
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #16 from joaopa jeremielapuree@yahoo.fr --- Bug still occurs with wine-4.0-rc4. The ValidateVertexShader patch fix the crash. Henri Verbeet, do you think that Sbastian's patch could be accepted for vanilla wine?
https://bugs.winehq.org/show_bug.cgi?id=40036
--- Comment #17 from Henri Verbeet hverbeet@gmail.com --- (In reply to joaopa from comment #16)
Bug still occurs with wine-4.0-rc4. The ValidateVertexShader patch fix the crash. Henri Verbeet, do you think that Sbastian's patch could be accepted for vanilla wine?
It could do with some touching up, but it doesn't look wrong to me.
https://bugs.winehq.org/show_bug.cgi?id=40036
--- Comment #18 from joaopa jeremielapuree@yahoo.fr --- Thanks Henri. Bug is fixed thanks to the commit 3ccbb762d2982ca3cf3117b3cc4dd0cd92855593
https://bugs.winehq.org/show_bug.cgi?id=40036
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|STAGED |RESOLVED Resolution|--- |FIXED Fixed by SHA1| |3ccbb762d2982ca3cf3117b3cc4 | |dd0cd92855593
--- Comment #19 from Gijs Vermeulen gijsvrm@gmail.com --- (In reply to joaopa from comment #18)
Thanks Henri. Bug is fixed thanks to the commit 3ccbb762d2982ca3cf3117b3cc4dd0cd92855593
Marking FIXED.
https://bugs.winehq.org/show_bug.cgi?id=40036
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #20 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 4.2.