http://bugs.winehq.org/show_bug.cgi?id=15423
Summary: mIRC enters deadlock after a second playback attempt Product: Wine Version: CVS/GIT Platform: PC URL: http://www.mirc.com/get.html OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winmm&mci AssignedTo: wine-bugs@winehq.org ReportedBy: nodisgod@yahoo.com
Created an attachment (id=16285) --> (http://bugs.winehq.org/attachment.cgi?id=16285) mIRC thread backtrace
With current Git (wine-1.1.5-207-gc425c8a), when using the splay mIRC command to play back a WAV file, the first playback attempt succeeds, but a second attempt causes mIRC to lose all responsiveness. A bit of investigation seemed to indicate that the first playback thread blocks inside WAVE_mciPlayWaitDone() in line 853 of dlls/mciwave/mciwave.c after exiting the playback loop:
WAVE_mciPlayWaitDone(wmw); /* to balance first buffer */
which does not allow the code after it to run. When mIRC tries to close the device, it ends up waiting on
while (wmw->dwStatus != MCI_MODE_STOP) Sleep(10);
in WAVE_mciStop() in the process of closing the device, thus resulting in a deadlock. Removing the line in mciwave.c eliminates the deadlock, although the resulting mciwave behavior when attempting to play back another stream in mIRC while a stream is playing does not match the behavior on Windows. Backtraces and winmm/mciwave traces are attached.
http://bugs.winehq.org/show_bug.cgi?id=15423
--- Comment #1 from scguy318 nodisgod@yahoo.com 2008-09-26 13:23:36 --- Created an attachment (id=16286) --> (http://bugs.winehq.org/attachment.cgi?id=16286) mIRC winmm/mciwave traces
http://bugs.winehq.org/show_bug.cgi?id=15423
--- Comment #2 from scguy318 nodisgod@yahoo.com 2008-09-26 13:25:29 --- Created an attachment (id=16287) --> (http://bugs.winehq.org/attachment.cgi?id=16287) Tentative patch that removes the problematic line in mciwave.c
http://bugs.winehq.org/show_bug.cgi?id=15423
scguy318 nodisgod@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, patch
http://bugs.winehq.org/show_bug.cgi?id=15423
Jeff Zaroyko jeffz@jeffz.name changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|CVS/GIT |1.1.5
http://bugs.winehq.org/show_bug.cgi?id=15423
Felx Ericson xcan_@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #3 from Felx Ericson xcan_@hotmail.com 2009-05-10 06:55:48 --- *** This bug has been confirmed by popular vote. ***
http://bugs.winehq.org/show_bug.cgi?id=15423
Jerome Leclanche adys.wh@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |adys.wh@gmail.com
--- Comment #4 from Jerome Leclanche adys.wh@gmail.com 2010-08-01 17:15:07 --- Is this still an issue in wine-1.3.0? Seeing as there's a possible patch already.
http://bugs.winehq.org/show_bug.cgi?id=15423
Jörg Höhle hoehle@users.sourceforge.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hoehle@users.sourceforge.ne | |t
--- Comment #5 from Jörg Höhle hoehle@users.sourceforge.net 2010-09-06 07:33:52 CDT --- Felix told me last April that using the splay command twice works (since at least 1.1.38). However, he also wrote that enabling splay in scripts causes mIRC to deadlock after running for an extended period of time. Probably he should post a backtrace for us to see whether it's still a related issue or something different entirely?
http://bugs.winehq.org/show_bug.cgi?id=15423
Trygve Vea trygve.vea@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |trygve.vea@gmail.com
--- Comment #6 from Trygve Vea trygve.vea@gmail.com 2011-01-08 20:14:56 CST --- Unable to reproduce this in mIRC 7.17 with wine 1.3.11.
http://bugs.winehq.org/show_bug.cgi?id=15423
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #7 from Austin English austinenglish@gmail.com 2011-01-12 14:48:36 CST --- Reported fixed.
http://bugs.winehq.org/show_bug.cgi?id=15423
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #8 from Alexandre Julliard julliard@winehq.org 2011-01-21 13:44:06 CST --- Closing bugs fixed in 1.3.12.