http://bugs.winehq.org/show_bug.cgi?id=31056
Bug #: 31056 Summary: .NET Framework 3.x/4.x WPF Media Integration Layer deadlocks between ui and render thread when calling SetPixelFormat Product: Wine Version: 1.5.7 Platform: x86 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: winex11.drv AssignedTo: wine-bugs@winehq.org ReportedBy: focht@gmx.net Classification: Unclassified
Hello,
with bug 18640 fixed, .NET 3.x/4.x WPF based apps now run into a message deadlock between main UI app thread and renderer thread.
When the d3d9 device is created, the window handle created by main UI thread is passed. The pixel format is propagated synchronously to target window. Because the target thread waits for event without pumping messages (by design) it deadlocks.
Easy to reproduce with small example app:
http://stuff.hamstersoft.com/software/hamsterfreeburningstudio.exe
Prerequisite: clean WINEPREFIX and 'winetricks -q dotnet30'
Regards
http://bugs.winehq.org/show_bug.cgi?id=31056
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |dotnet, download URL| |http://stuff.hamstersoft.co | |m/software/hamsterfreeburni | |ngstudio.exe
--- Comment #1 from Anastasius Focht focht@gmx.net 2012-06-28 06:54:34 CDT --- Hello,
filling fields ...
$ wine --version wine-1.5.7-158-g4a367c5
$ du -sh hamsterfreeburningstudio.exe 6.1M hamsterfreeburningstudio.exe
$ sha1sum hamsterfreeburningstudio.exe 15a735a15060fc57c90f5b2e9ac77efdaa3d123f hamsterfreeburningstudio.exe
Regards
http://bugs.winehq.org/show_bug.cgi?id=31056
--- Comment #2 from Anastasius Focht focht@gmx.net 2012-06-28 07:04:34 CDT --- Created attachment 40769 --> http://bugs.winehq.org/attachment.cgi?id=40769 winedbg backtrace of deadlocked threads
The issue looks similar to bug 26924 "Calling UpdateLayeredWindowIndirect in multi-threaded apps might lead to freezes (Beta League of Legends Patcher, Tunatic, .NET 3.x/4.x WPF apps)" where a SendMessage call also deadlocks.
Bug 26924 will be encountered after this one in case of .NET 3.x/4.x WPF-based apps.
Regards
http://bugs.winehq.org/show_bug.cgi?id=31056
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |4ac1a5ac608bad7111f7cb99170 | |a3be99b5059f0 Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #3 from Alexandre Julliard julliard@winehq.org 2012-10-03 13:25:32 CDT --- Probably fixed by 4ac1a5ac608bad7111f7cb99170a3be99b5059f0.
http://bugs.winehq.org/show_bug.cgi?id=31056
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Alexandre Julliard julliard@winehq.org 2012-10-12 13:34:46 CDT --- Closing bugs fixed in 1.5.15.