https://bugs.winehq.org/show_bug.cgi?id=37676
Bug ID: 37676 Summary: The Settlers II: 10th Anniversary 2.0 (GOG.com) doesn't work out of the box Product: Wine Version: unspecified Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: bog_dan_ro@yahoo.com Distribution: ---
GOG.com version http://www.gog.com/game/the_settlers_2_10th_anniversary it needs directx9 to be installed, otherwise S2DNG.exe it just exits and S2DNGEditor.exe crashed with the attached backtrace.
I'm pretty sure that GOG will give any developer a copy of the game, if not please mail me and I'll buy one for you (or share my own one).
https://bugs.winehq.org/show_bug.cgi?id=37676
--- Comment #1 from Bruno Jesus 00cpxxx@gmail.com --- Missing the attachment, if it was only the crash backtrace read http://wiki.winehq.org/FAQ#get_log and get a proper log.
https://bugs.winehq.org/show_bug.cgi?id=37676
--- Comment #2 from BogDan Vatra bog_dan_ro@yahoo.com --- Created attachment 50155 --> https://bugs.winehq.org/attachment.cgi?id=50155 S2DNGEditor backtrace
https://bugs.winehq.org/show_bug.cgi?id=37676
--- Comment #3 from BogDan Vatra bog_dan_ro@yahoo.com --- Created attachment 50156 --> https://bugs.winehq.org/attachment.cgi?id=50156 S2DNG_log with WINEDEBUG=+relay,+seh,+tid set
https://bugs.winehq.org/show_bug.cgi?id=37676
--- Comment #4 from BogDan Vatra bog_dan_ro@yahoo.com --- without WINEDEBUG=+relay,+seh,+tid wine produces no output for S2DNG.exe, so I took the liberty to attach the log with WINEDEBUG=+relay,+seh,+tid evn set.
https://bugs.winehq.org/show_bug.cgi?id=37676
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW URL| |http://www.gog.com/game/the | |_settlers_2_10th_anniversar | |y CC| |focht@gmx.net Component|-unknown |directx-d3d Version|unspecified |1.7.31 Summary|The Settlers II: 10th |The Settlers II: 10th |Anniversary 2.0 (GOG.com) |Anniversary 2.0 (GOG.com) |doesn't work out of the box |crashes on startup | |(compile_shader Compilation | |target "fx_2_0" not yet | |supported) Ever confirmed|0 |1
--- Comment #5 from Anastasius Focht focht@gmx.net --- Hello folks,
relevant part of your trace log:
--- snip --- ... 0009:Call KERNEL32.CreateProcessW(00000000,0032d49c L"C:\GOG Games\The Settlers II - 10th Anniversary\bin\S2DNG.exe -fullscreen ",00000000,00000000,00000000,00000410,00000000,00131ee0 L"C:\GOG Games\The Settlers II - 10th Anniversary\bin\",0032bae0,0032bad0) ret=7fc310b1 ... 0023:Call KERNEL32.__wine_kernel_init() ret=7bc56a83 ... 0009:Ret KERNEL32.CreateProcessW() retval=00000001 ret=7fc310b1 ... 0023:Call KERNEL32.CreateFileA(00dbcc00 "C:\users\bogdan\Documentele mele\S2\dumps\Logfile_0.txt",40000000,00000003,00000000,00000002,00000080,00000000) ret=00593fee 0023:Ret KERNEL32.CreateFileA() retval=000006b0 ret=00593fee ... 0023:Call d3dx9_36.D3DXCreateEffectCompiler(00dbd330,00000f59,0092f4c8,00dbcd4c,00000000,0092f4bc,0092f4b4) ret=0051ce01 ... 0023:Call d3dcompiler_43.D3DCompile(00dbd330,00000f59,00000000,0092f4c8,00dbcd4c,7f5c4fe4 "main",7f5c4fdd "fx_2_0",00000000,00000000,0092f398,0092f39c) ret=7f587c98 ... 0023:Call KERNEL32.CreateFileA(00dbce08 "data\gfx\fx_20\shared.inc",80000000,00000003,00000000,00000003,00000080,00000000) ret=00594294 0023:Ret KERNEL32.CreateFileA() retval=000006b8 ret=00594294 ... 0023:fixme:d3dcompiler:compile_shader Compilation target "fx_2_0" not yet supported ... 0023:Ret d3dcompiler_43.D3DCompile() retval=8876086c ret=7f587c98 0023:fixme:d3dx:d3dx9_effect_compiler_init Failed to parse effect, hr 0x8876086c. ... 0023:Ret d3dx9_36.D3DXCreateEffectCompiler() retval=8876086c ret=0051ce01 ... 0023:Call KERNEL32.CreateFileA(00dbce08 "C:\users\bogdan\Local Settings\Application Data\S2\ui_shader.fxPS_3_0v20",80000000,00000003,00000000,00000003,00000080,00000000) ret=00594294 0023:Ret KERNEL32.CreateFileA() retval=ffffffff ret=00594294 0023:Call KERNEL32.GetLastError() ret=0059b1ed 0023:Ret KERNEL32.GetLastError() retval=00000002 ret=0059b1ed 0023:Call KERNEL32.FormatMessageA(00001300,00000000,00000002,00000400,0092f4f0,00000000,00000000) ret=0059b1fb 0023:Ret KERNEL32.FormatMessageA() retval=0000001b ret=0059b1fb ... 0023:Call KERNEL32.GetLocalTime(0092f4b4) ret=00594e80 0023:Ret KERNEL32.GetLocalTime() retval=00000000 ret=00594e80 0023:Call KERNEL32.WriteFile(000006b0,006c5a30,0000000d,0092f4a4,00000000) ret=00593b68 0023:Ret KERNEL32.WriteFile() retval=00000001 ret=00593b68 0023:Call KERNEL32.WriteFile(000006b0,006c5a30,0000005a,0092f4a4,00000000) ret=00593b68 0023:Ret KERNEL32.WriteFile() retval=00000001 ret=00593b68 ... 0023:trace:seh:raise_exception code=c0000005 flags=0 addr=0x51c29f ip=0051c29f tid=0023 0023:trace:seh:raise_exception info[0]=00000000 0023:trace:seh:raise_exception info[1]=00000000 0023:trace:seh:raise_exception eax=00000000 ebx=00000000 ecx=00000000 edx=00661240 esi=00dbcc48 edi=00000010 0023:trace:seh:raise_exception ebp=00dbcd40 esp=0092f5e0 cs=0023 ds=002b es=002b fs=006b gs=0063 flags=00010202 ... 0023:Call KERNEL32.CreateFileA(00d73118 "C:\users\bogdan\Documentele mele\S2\dumps\crashlog.txt",40000000,00000003,0092eed8,00000002,00000080,00000000) ret=005ad1cc 0023:Ret KERNEL32.CreateFileA() retval=000006bc ret=005ad1cc ... --- snip ---
'winetricks -q d3dcompiler_43' might work around.
Regards
https://bugs.winehq.org/show_bug.cgi?id=37676
Józef Kucia joseph.kucia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |joseph.kucia@gmail.com Component|directx-d3d |directx-d3dx9 Summary|The Settlers II: 10th |Multiple games needs |Anniversary 2.0 (GOG.com) |"fx_2_0" compilation target |crashes on startup |(The Settlers II: 10th |(compile_shader Compilation |Anniversary 2.0, Hitman: |target "fx_2_0" not yet |Blood Money, Star Wars |supported) |Empire at War)
https://bugs.winehq.org/show_bug.cgi?id=37676
Józef Kucia joseph.kucia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Multiple games needs |Multiple games need |"fx_2_0" compilation target |"fx_2_0" compilation target |(The Settlers II: 10th |(The Settlers II: 10th |Anniversary 2.0, Hitman: |Anniversary 2.0, Hitman: |Blood Money, Star Wars |Blood Money, Star Wars |Empire at War) |Empire at War)
https://bugs.winehq.org/show_bug.cgi?id=37676
Mark K markk@clara.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |markk@clara.co.uk
--- Comment #6 from Mark K markk@clara.co.uk --- WinUAE (http://www.winuae.net/) is another program which would like fx_2_0. It reports:
D3D9Ex: PS=3.0 VS=3.0 1920*1200*0p VS=0 B=2WE 32-bit 0 (8192x8192) D3D9Ex: D3DXCreateEffectCompilerFromResource failed: 8876086C S=1 F=0876 C=086C (2156) () D3D9Ex: pixelshader filter 'C:\Program Files\WinUAE\plugins\filtershaders\direct3d_winuae.fx':-1 failed to initialize Falling back to non-shader mode D3D9Ex: GetMaximumFrameLatency() failed: 80004001 S=1 F=0000 C=4001 (16385) ()
Doing the "winetricks -q d3dcompiler_43" workaround from comment 5 didn't really help, since WinUAE then crashes in d3dx9_43:
D3D9Ex: Attempting to load 'C:\Program Files\WinUAE\plugins\filtershaders\direct3d_winuae.fx' ExceptionFilter Trap: 00000034 3A3F2020 00000000 wine: Unhandled page fault on read access to 0x00000034 at address 0xf3c16e29 (thread 0009), starting debugger... err:winediag:xrandr12_init_modes Broken NVIDIA RandR detected, falling back to RandR 1.0. Please consider using the Nouveau driver instead. Unhandled exception: page fault on read access to 0x00000034 in 32-bit code (0xf3c16e29). [stuff deleted for brevity] Backtrace: =>0 0xf3c16e29 in d3dx9_43 (+0x16e29) (0x06a4cbb8) 1 0xf3c201b4 in d3dx9_43 (+0x201b3) (0x06a4cc48) 2 0xf3c20af2 D3DXCreateEffectCompiler+0xe1() in d3dx9_43 (0x06a4cca8) 3 0xf3c2164a D3DXCreateEffectCompilerFromFileW+0x89() in d3dx9_43 (0x06a4cd18)
https://bugs.winehq.org/show_bug.cgi?id=37676
fjfrackiewicz@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fjfrackiewicz@gmail.com
--- Comment #7 from fjfrackiewicz@gmail.com --- Created attachment 56087 --> https://bugs.winehq.org/attachment.cgi?id=56087 Terminal output Wine 1.9.22-113-gb32a0ea
Way of the Samurai 4 also requires this feature as it crashes without it. Terminal output attached.
https://bugs.winehq.org/show_bug.cgi?id=37676
--- Comment #8 from fjfrackiewicz@gmail.com --- Created attachment 56088 --> https://bugs.winehq.org/attachment.cgi?id=56088 Backtrace from Wine 1.9.22-113-gb32a0ea
Without compilation target "fx_2_0" Way of the Samurai 4 crashes when launching. Attached the backtrace from the crash at start.
https://bugs.winehq.org/show_bug.cgi?id=37676
--- Comment #9 from fjfrackiewicz@gmail.com --- This Nvidia "Antialissing with Transparency" demo also needs the fx_2_0 compilation target feature and you can download it here:
http://download.nvidia.com/developer/SDK/Individual_Samples/DEMOS/Direct3D9/...
winetricks d3dcompiler_43 is a work around.
https://bugs.winehq.org/show_bug.cgi?id=37676
WineBuG winebugs140@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winebugs140@gmail.com
--- Comment #10 from WineBuG winebugs140@gmail.com --- *** Bug 41965 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=37676
Ped7g kukadlo@pobox.sk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |kukadlo@pobox.sk
https://bugs.winehq.org/show_bug.cgi?id=37676
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winetest@luukku.com
--- Comment #11 from winetest@luukku.com --- This bug has an easy workaround, but does anyone know how hard is it to fix this? I am just thinking if we are waiting something that's really hard to get fixed.
https://bugs.winehq.org/show_bug.cgi?id=37676
--- Comment #12 from winetest@luukku.com --- Still valid with Hitman blood demo. wine 2.8.
https://bugs.winehq.org/show_bug.cgi?id=37676
Michael Müller michael@fds-team.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sr-tream@yandex.ru
--- Comment #13 from Michael Müller michael@fds-team.de --- *** Bug 43150 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=37676
zebra de_dani@gmx.ch changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |de_dani@gmx.ch
--- Comment #14 from zebra de_dani@gmx.ch --- Still present in Anno 1404 with wine-staging 3.5
https://bugs.winehq.org/show_bug.cgi?id=37676
tokktokk fdsfgs@krutt.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fdsfgs@krutt.org
https://bugs.winehq.org/show_bug.cgi?id=37676
Josh winehq@iooioio.hadar.uberspace.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winehq@iooioio.hadar.ubersp | |ace.de
https://bugs.winehq.org/show_bug.cgi?id=37676
consolelogger consolelogger@rhyta.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |consolelogger@rhyta.com
--- Comment #15 from consolelogger consolelogger@rhyta.com --- Created attachment 65493 --> https://bugs.winehq.org/attachment.cgi?id=65493 console log for Empire at War FoC with Wine 4.18
https://bugs.winehq.org/show_bug.cgi?id=37676
--- Comment #16 from consolelogger consolelogger@rhyta.com --- Ubuntu 19.10 - Wine 4.18 - wine-mono-4.9.3.msi
This bug is still a thing. Star Wars: Empire at War - Forces of Corruption crashes on startup.
0009:fixme:d3dcompiler:compile_shader Compilation target "fx_2_0" not yet supported wine: Unhandled exception 0x80000003 in thread 9 at address 7BCAE720 (thread 0009), starting debugger...
(full console log with backtrace attached.)
https://bugs.winehq.org/show_bug.cgi?id=37676
r3d9u11 r3d9u11@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |r3d9u11@gmail.com
--- Comment #17 from r3d9u11 r3d9u11@gmail.com --- KDE Neon 5.17 (Ubuntu 18.04) Steam-Play Proton 4.11-9
Alien Shooter: Revisited requires fx_2_0
https://github.com/ValveSoftware/Proton/issues/3277
https://bugs.winehq.org/show_bug.cgi?id=37676
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4@web.de
--- Comment #18 from Fabian Maurer dark.shadow4@web.de --- Still an issue in wine-5.7. Another affected game is a visual novel with a free demo: https://www.dmm.co.jp/en/mono/pcgame/-/detail/=/cid=1790hw0021/
https://bugs.winehq.org/show_bug.cgi?id=37676
Anya animegirl@stronzi.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |animegirl@stronzi.org
https://bugs.winehq.org/show_bug.cgi?id=37676
KAMI kami911@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |kami911@gmail.com
--- Comment #19 from KAMI kami911@gmail.com --- I have this error with FLatout 2 V1.2. AMD card, RADV driver, Linux Mint 20 (Ubuntu 20.04 base).
https://bugs.winehq.org/show_bug.cgi?id=37676
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gyebro69@gmail.com
--- Comment #20 from Zebediah Figura z.figura12@gmail.com --- *** Bug 28851 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=37676
rtentser@yandex.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |rtentser@yandex.ru
--- Comment #21 from rtentser@yandex.ru --- Still here with 6.0-rc4, can reproduce with "The Secret of Monkey Island™: Special Edition".
https://bugs.winehq.org/show_bug.cgi?id=37676
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mario@cosmophobia.net
--- Comment #22 from Gijs Vermeulen gijsvrm@gmail.com --- *** Bug 41783 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=37676
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|1.7.31 |1.10 Product|Wine |vkd3d Component|d3d-util |hlsl
https://bugs.winehq.org/show_bug.cgi?id=37676
soredake broaden_acid002@simplelogin.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|broaden_acid002@simplelogin | |.com |
https://bugs.winehq.org/show_bug.cgi?id=37676
yoshimo.kristin@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |yoshimo.kristin@gmail.com
--- Comment #23 from yoshimo.kristin@gmail.com --- I did an extensive dive into 東方聖戦影 ~ Forlorn Souls of Wicked Past Demo. My full findings were for ValveSoftware's Proton, but my most recent findings also affect Wine's vkd3d.
In short, this game uses Touhou Danmakufu ph3sx v1.33a-pre (source: https://github.com/Natashi/Touhou-Danmakufu-ph3sx-2/tree/v1.33a-pre ), allegedly slightly modified according to unconfirmed hearsay. It attempts to compile Direct3DX9 HLSL effects with `D3DXCreateEffect`. The first one it attempts to compile starts with a sampler declaration, which causes vkd3d to eventually reach `libs/vkd3d-shader/fx.c:write_fx_2_object_initializer:1089`. As the error message says, sampler object initializers aren't implemented yet.
The full extent of my findings are in a compatibility report for Proton, available here https://github.com/ValveSoftware/Proton/issues/8190 . While much of the report involves errors in Proton's Wine and vkd3d (due to being behind), the issue mentioned above is still in Wine's vkd3d, and there are other useful details too.