https://bugs.winehq.org/show_bug.cgi?id=42463
Bug ID: 42463 Summary: ZmLearn crash at startup: "Assertion 'm->state == STATE_PASSIVE' failed at pulse/mainloop.c:787, function pa_mainloop_prepare(). Aborting." Product: Wine Version: 2.1 Hardware: x86 OS: Linux Status: NEW Severity: normal Priority: P2 Component: winepulse.drv Assignee: wine-bugs@winehq.org Reporter: jactry92@gmail.com Distribution: ---
Created attachment 57309 --> https://bugs.winehq.org/attachment.cgi?id=57309 Log with pulse,tid,pid channel.
reproduce: 1. Setting Windows version as XP and install it. 2. $ cd .wine/drive_c/users/USER_NAME/Application\ Data/ZmLearn 3. $ wine ZmClient.exe then it will crash.
I find this patch from staging can fix it: https://github.com/wine-compholio/wine-staging/blob/master/patches/winepulse...
Wine version: wine-2.1-285-gd00f7315e0
https://bugs.winehq.org/show_bug.cgi?id=42463
Jactry Zeng jactry92@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- URL| |https://ojc93nz4u.qnssl.com | |/ZmLearnClient.exe Keywords| |download, Installer CC| |sebastian@fds-team.de
https://bugs.winehq.org/show_bug.cgi?id=42463
Sebastian Lackner sebastian@fds-team.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |aeikum@codeweavers.com
--- Comment #1 from Sebastian Lackner sebastian@fds-team.de --- (In reply to Jactry Zeng from comment #0)
I find this patch from staging can fix it: https://github.com/wine-compholio/wine-staging/blob/master/patches/winepulse... PulseAudio_Support/0001-winepulse.drv-Use-a-separate-mainloop-and-ctx-for-pu. patch
Based on the log it looks like AUDDRV_GetPriority is called from two different threads. Although this works with the patch, it shouldn't really happen in the first place. The real component is probably mmdevapi.
@Andrew: Should the driver initialization be moved to a init-once section, or what is your suggestion?
https://bugs.winehq.org/show_bug.cgi?id=42463
--- Comment #2 from Sebastian Lackner sebastian@fds-team.de --- Created attachment 57310 --> https://bugs.winehq.org/attachment.cgi?id=57310 Proposed patch.
@Jactry: Could you please test that this patch fixes the issue?
https://bugs.winehq.org/show_bug.cgi?id=42463
--- Comment #3 from Jactry Zeng jactry92@gmail.com --- (In reply to Sebastian Lackner from comment #2)
Created attachment 57310 [details] Proposed patch.
@Jactry: Could you please test that this patch fixes the issue?
Yes, it can fix this bug.
https://bugs.winehq.org/show_bug.cgi?id=42463
--- Comment #4 from Andrew Eikum aeikum@codeweavers.com --- (In reply to Sebastian Lackner from comment #2)
Created attachment 57310 [details] Proposed patch.
@Jactry: Could you please test that this patch fixes the issue?
I'm not opposed to this, but I don't understand why calling the init function twice would cause the assertion failure. It's protected by a mutex, so they should run in series, and we completely clean up when pulse_test_connect exits.
(See also Bug 40147 and Bug 41102.)
https://bugs.winehq.org/show_bug.cgi?id=42463
Jactry Zeng jactry92@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED Fixed by SHA1| |db0518507a595fbad33e47c1afe | |54edcf6a50b5d
--- Comment #5 from Jactry Zeng jactry92@gmail.com --- Fixed by http://source.winehq.org/git/wine.git/?a=commit;h=db0518507a595fbad33e47c1af... .
Thanks Sebastian! Thanks Andrew!
https://bugs.winehq.org/show_bug.cgi?id=42463
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 2.3.
https://bugs.winehq.org/show_bug.cgi?id=42463
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |2.0.x CC| |mstefani@winehq.org
https://bugs.winehq.org/show_bug.cgi?id=42463
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|2.0.x |---
--- Comment #7 from Michael Stefaniuc mstefani@winehq.org --- Removing the 2.0.x milestone from bugs included in 2.0.2.