https://bugs.winehq.org/show_bug.cgi?id=45871
Bug ID: 45871 Summary: Several apps in .NET472 crash with unhandled exception.\nException at System.Windows.Media.Composition.DUCE+Channel.SyncFlus h()\n at System.Windows.Media.MediaContext.Complet"...(native d3dcompiler works around it) Product: Wine Version: 3.16 Hardware: x86 OS: Linux Status: NEW Keywords: dotnet, download Severity: normal Priority: P2 Component: directx-d3d Assignee: wine-bugs@winehq.org Reporter: xerox.xerox2000x@gmail.com Distribution: ---
Created attachment 62374 --> https://bugs.winehq.org/attachment.cgi?id=62374 part of crashlog
Hi
Seen this for a bunch of programs while trying to run them with installed dotnet472.
The bug seems to be hidden for several apps as they ship their owm d3dcompiler_47, but some don`t I found out, and they crash
Something like: 01c2:fixme:d3dcompiler:make_assignment Check for casts in the lhs. 01c2:err:d3dcompiler:compile_shader HLSL shader parsing failed. 01c2:err:ntdll:vDbgPrintExWithPrefix 65: MIL FAILURE: Unexpected HRESULT 0x88760b59 in caller: intermediate rendering error 01c2:err:ntdll:vDbgPrintExWithPrefix 65: MIL FAILURE: Unexpected HRESULT 0x88760b59 in caller: The render thread failed unexpectedly.
Then crash
Example: Slackinstaller.exe:
winetricks dotnet452 win7 corefonts, then start installer with builtin d3dcomiler_47 works fine.
However winetricks dotnet472 win7 corefonts, then start installer with builtin d3dcomiler_47 --> crash
(Note: for Slackinstller one also needs Staging-patches for bug 40613)
https://bugs.winehq.org/show_bug.cgi?id=45871
Louis Lenders xerox.xerox2000x@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- URL| |https://slack.com/ssb/downl | |oad-win
--- Comment #1 from Louis Lenders xerox.xerox2000x@gmail.com --- sha1sum ~/Downloads/SlackSetup.exe 2ccec50a2f9cc8ff5aa758cd82c43ac911f94d3b /home/louis/Downloads/SlackSetup.exe
But also present in PhaseOne CaptureOne, Windower beta portable
https://bugs.winehq.org/show_bug.cgi?id=45871
--- Comment #2 from Louis Lenders xerox.xerox2000x@gmail.com --- Created attachment 62375 --> https://bugs.winehq.org/attachment.cgi?id=62375 +d3dcompiler log
added +d3dcompiler log
https://bugs.winehq.org/show_bug.cgi?id=45871
--- Comment #3 from Louis Lenders xerox.xerox2000x@gmail.com --- Easier to reproduce, no workarounds needed, just set d3dcompiler_47 to builtin:
https://www.puffinbrowser.com/windows/
https://bugs.winehq.org/show_bug.cgi?id=45871
zzzzzyzz@hacari.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |zzzzzyzz@hacari.org
https://bugs.winehq.org/show_bug.cgi?id=45871
Matteo Bruni matteo.mystral@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Several apps in .NET472 |Several .NET 4.7.2 |crash with unhandled |applications crash with |exception.\nException at |HLSL shader parsing failure |System.Windows.Media.Compos | |ition.DUCE+Channel.SyncFlus | |h()\n at | |System.Windows.Media.MediaC | |ontext.Complet"...(native | |d3dcompiler works around | |it) | Component|directx-d3d |directx-d3dx9
https://bugs.winehq.org/show_bug.cgi?id=45871
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |focht@gmx.net Summary|Several .NET 4.7.2 |Several .NET 4.7 WPF |applications crash with |applications crash with |HLSL shader parsing failure |HLSL shader parsing failure | |when using builtin | |'d3dcompiler_47.dll' URL|https://slack.com/ssb/downl |https://web.archive.org/web |oad-win |/20180207155940/https://dow | |nloads.slack-edge.com/relea | |ses/SlackSetup.exe
--- Comment #4 from Anastasius Focht focht@gmx.net --- Hello folks,
confirming and adding one more .NET 4.7 WPF app 'Gaea 1.0.19' from bug 47282
https://web.archive.org/web/20190523115754/http://viridian.quadspinner.com/g...
--- snip --- $ pwd /home/focht/.wine/drive_c/users/focht/Local Settings/Application Data/QuadSpinner/Gaea
$ wine ./Gaea.exe ... 003b:fixme:d3dcompiler:make_assignment Check for casts in the lhs. 003b:err:d3dcompiler:compile_shader HLSL shader parsing failed. ... 003b:err:ntdll:vDbgPrintExWithPrefix 65: MIL FAILURE: Unexpected HRESULT 0x88760b59 in caller: intermediate rendering error ... 003b:err:ntdll:vDbgPrintExWithPrefix 65: MIL FAILURE: Unexpected HRESULT 0x88760b59 in caller: The render thread failed unexpectedly. --- snip ---
'winetricks -q d3dcompiler_47' works around.
Tidbit, although not directly related to the HLSL shader compiler insufficiency:
https://blogs.msdn.microsoft.com/dsui_team/2013/11/18/wpf-render-thread-fail... ("WPF Render Thread Failures")
This also works around:
https://docs.microsoft.com/en-us/dotnet/framework/wpf/graphics-multimedia/gr...
--- snip --- $ wine reg add "HKCU\SOFTWARE\Microsoft\Avalon.Graphics" /v DisableHWAcceleration /t REG_DWORD /d 1 /f --- snip ---
You will have worse performance as the name indicates (if it matters), hence it should be only used for debugging and testing purpose.
$ sha1sum Gaea-1.0.19.exe 29ddfa3e404148babbae479153e438097077fb13 Gaea-1.0.19.exe
$ du -sh Gaea-1.0.19.exe 41M Gaea-1.0.19.exe
$ wine --version wine-4.9-134-gd535df42f6
Regards
https://bugs.winehq.org/show_bug.cgi?id=45871
Louis Lenders xerox.xerox2000x@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |pavel.sklenak@gmail.com
--- Comment #5 from Louis Lenders xerox.xerox2000x@gmail.com --- *** Bug 47314 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=45871
pattietreutel katyaberezyaka@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |katyaberezyaka@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=45871
--- Comment #6 from Anastasius Focht focht@gmx.net --- Hello folks,
revisiting and adding another app: Cairo Shell v0.3.x (.NET 4.7 WPF app)
Project site: https://cairoshell.com/
https://github.com/cairoshell/cairoshell/releases/tag/v0.3.6842
Prerequisite:
* bug 48611 ("Cairo Shell v0.3.x (.NET 4.7 app) crashes due to missing 'HKCU\Software\Microsoft\Windows NT\CurrentVersion\WinLogon\Shell' registry sub-key")
* bug 31890 ("Multiple applications need IAudioEndpointVolume::GetMasterVolumeLevelScalar method implementation (Cisco IP Communicator, Cairo Shell v0.3.x)")
Work around with: 'winetricks -q d3dcompiler_47' or
--- snip --- $ wine reg add "HKCU\SOFTWARE\Microsoft\Avalon.Graphics" /v DisableHWAcceleration /t REG_DWORD /d 1 /f --- snip ---
Pimp Wine with a shiny Windows Desktop ;-)
$ sha1sum CairoSetup_32bit.exe ba4098fce86a2d63a9107c0c18b2f68eb9417039 CairoSetup_32bit.exe
$ du -sh CairoSetup_32bit.exe 2.2M CairoSetup_32bit.exe
$ wine --version wine-5.1-391-g7332de64a5
Regards
https://bugs.winehq.org/show_bug.cgi?id=45871
maniikarabera@protonmail.ch changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |maniikarabera@protonmail.ch
https://bugs.winehq.org/show_bug.cgi?id=45871
mirh mirh@protonmail.ch changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mirh@protonmail.ch
--- Comment #7 from mirh mirh@protonmail.ch --- This also affects ME3 Explorer (which is .NET 4.8)
https://github.com/ME3Tweaks/ME3Explorer/releases/tag/4.1.1.314
https://bugs.winehq.org/show_bug.cgi?id=45871
Kat katisntgood@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |katisntgood@gmail.com
--- Comment #8 from Kat katisntgood@gmail.com --- The Construction Set Extender script editor for TES 4 Oblivion (which uses AvalonEdit) also seems to be affected, though it is a .NET 4.5.2 app (I think?, there doesn't seem to be a version requirement). It crashes with this error
0160:err:ntdll:vDbgPrintExWithPrefix 65: MIL FAILURE: Unexpected HRESULT 0x88760b59 in caller: intermediate rendering error 0160:err:ntdll:vDbgPrintExWithPrefix 65: MIL FAILURE: Unexpected HRESULT 0x88760b59 in caller: The render thread failed unexpectedly.
which seems consistent with this bug
The workaround that Anastasius Focht introduced seems to work
https://www.nexusmods.com/oblivion/mods/36370/?
https://bugs.winehq.org/show_bug.cgi?id=45871
Louis Lenders xerox.xerox2000x@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |skokkineas@protonmail.com
--- Comment #9 from Louis Lenders xerox.xerox2000x@gmail.com --- *** Bug 51013 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=45871
Jinoh Kang jinoh.kang.kr@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jinoh.kang.kr@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=45871
Louis Lenders xerox.xerox2000x@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |nekoNexus@protonmail.ch
--- Comment #10 from Louis Lenders xerox.xerox2000x@gmail.com --- *** Bug 52299 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=45871
Esme Povirk madewokherd@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |madewokherd@gmail.com
--- Comment #11 from Esme Povirk madewokherd@gmail.com --- This bug is interesting to me because we're currently working around the wpf->d3dcompiler dependency in Wine Mono, and once it works, we can remove those work-arounds. I suspect they may be subtly breaking things.
https://bugs.winehq.org/show_bug.cgi?id=45871
Louis Lenders xerox.xerox2000x@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hsehnt@q.com
--- Comment #12 from Louis Lenders xerox.xerox2000x@gmail.com --- *** Bug 53933 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=45871
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|3.16 |1.9 Product|Wine |vkd3d Component|d3d-util |hlsl
https://bugs.winehq.org/show_bug.cgi?id=45871
--- Comment #13 from Nikolay Sivov bunglehead@gmail.com --- Created attachment 75342 --> https://bugs.winehq.org/attachment.cgi?id=75342 shader
I tried with .NET 4.8 with ME3 Explorer. Current failure is about unsupported effect syntax:
--- 0164:trace:d3dcompiler:D3DCompile data 00007F2AF96D4BB0, data_size 2436, filename (null), defines 0000000000000000, include 0000000000000000, entrypoint "VertexShaderImpl", target "vs_3_0", sflags 0, eflags 0, shader 00007F2AF0DCE2A8, error_messages 00007F2AF0DCE2B0. 0164:trace:d3dcompiler:D3DCompile2 data 00007F2AF96D4BB0, data_size 2436, filename (null), macros 0000000000000000, include 0000000000000000, entry_point "VertexShaderImpl", profile "vs_3_0", flags 0, effect_flags 0, secondary_flags 0, secondary_data 0000000000000000, secondary_data_size 0, shader_blob 00007F2AF0DCE2A8, messages_blob 00007F2AF0DCE2B0. 0164:err:d3dcompiler:D3DCompile2 Failed to compile shader, vkd3d result -4. 0164:err:d3dcompiler:D3DCompile2 Shader log: 0164:err:d3dcompiler:D3DCompile2 <anonymous>:142:1: E5000: syntax error, unexpected KW_TECHNIQUE 0164:err:d3dcompiler:D3DCompile2 ---
Interesting part is that it should be enough for this particular compilation to ignore technique block.
Attached the source as well.
https://bugs.winehq.org/show_bug.cgi?id=45871
soredake broaden_acid002@simplelogin.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|broaden_acid002@simplelogin | |.com |
https://bugs.winehq.org/show_bug.cgi?id=45871
temp82@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |temp82@luukku.com
--- Comment #14 from temp82@luukku.com --- (In reply to Nikolay Sivov from comment #13)
Created attachment 75342 [details]
0164:err:d3dcompiler:D3DCompile2 <anonymous>:142:1: E5000: syntax error, unexpected KW_TECHNIQUE 0164:err:d3dcompiler:D3DCompile2
Interesting part is that it should be enough for this particular compilation to ignore technique block.
you mean a dupe of bug 54580?
https://bugs.winehq.org/show_bug.cgi?id=45871
--- Comment #15 from Nikolay Sivov bunglehead@gmail.com --- It doesn't matter, it's better to test this separately.
https://bugs.winehq.org/show_bug.cgi?id=45871
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #16 from Nikolay Sivov bunglehead@gmail.com --- This example now compiles, after https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/943.
https://bugs.winehq.org/show_bug.cgi?id=45871
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #17 from Nikolay Sivov bunglehead@gmail.com --- Closing bugs fixed in 1.14.