http://bugs.winehq.org/show_bug.cgi?id=17097
Summary: Wine and wincfg won't start, winmm.dll failed to initialize Product: Wine Version: 1.1.10 Platform: PC-x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winmm&mci AssignedTo: wine-bugs@winehq.org ReportedBy: thefirstkeet@gmail.com
Wine and winecfg worked fine for me a few days ago. I'm running Gentoo, and I re-emerged my system (everything went well), but now I receive the following error when I try to run a program in Wine, or start winecfg, and neither program will start:
hcontrol.c:330: _snd_hctl_find_elem: Assertion `hctl->compare' failed. err:module:attach_process_dlls "winmm.dll" failed to initialize, aborting err:module:LdrInitializeThunk Main exe initialization for L"C:\windows\system32\winecfg.exe" failed, status 80000101
http://bugs.winehq.org/show_bug.cgi?id=17097
--- Comment #1 from thefirstkeet@gmail.com 2009-01-23 13:33:56 --- Sorry for double posting, but when I boot with kernel-2.6.26-r4, winecfg works. I suspect, then, that it's a problem with my new kernel configuration. Does WINE use the old ALSA API? Perhaps it's not working because I removed support for that from the kernel?
http://bugs.winehq.org/show_bug.cgi?id=17097
--- Comment #2 from H. Verbeet hverbeet@gmail.com 2009-01-23 13:58:42 --- Does it hang on a call to snd_pcm_open() on the capture device by any chance? Which version of alsa-lib are you using?
http://bugs.winehq.org/show_bug.cgi?id=17097
thefirstkeet@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #3 from thefirstkeet@gmail.com 2009-01-23 14:23:10 --- (In reply to comment #2)
Does it hang on a call to snd_pcm_open() on the capture device by any chance? Which version of alsa-lib are you using?
Thanks for your help! I just fixed the problem myself. I tried booting with kernel-2.6.26-r4, and it worked fine. So I edited my kernel .config file (2.6.27-r7) and set:
[code]CONFIG_SND_SUPPORT_OLD_API=y[/code]
Recompiled my kernel, copied it to my boot directory, and rebooted, and now WINE works fine. :-) Apparently WINE still wants kernel support for the old ALSA API? Just in case you're still wondering, though, I'm using alsa-lib-1.0.17a, and I'm using the relatively new xfi-drivers-1.00 for my Sound Blaster X-Fi card. Thank you again, and sorry for posting something that I caused and should have just fixed myself.
http://bugs.winehq.org/show_bug.cgi?id=17097
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|FIXED |INVALID
--- Comment #4 from Austin English austinenglish@gmail.com 2009-01-23 15:58:27 --- It's invalid then, nothing was fixed in wine.
http://bugs.winehq.org/show_bug.cgi?id=17097
Lei Zhang thestig@google.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Lei Zhang thestig@google.com 2009-01-23 16:05:34 --- Closing invalid.
http://bugs.winehq.org/show_bug.cgi?id=17097
Antonio ilcorsaronero@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ilcorsaronero@gmail.com
--- Comment #6 from Antonio ilcorsaronero@gmail.com 2010-01-06 03:57:49 --- You can fix winmm.dll problem, without recompiling the kernel, by setting your audio output to oss in winecfg. Run winecfg, switch to audio tab, select oss output. If you can't access winecfg, please try the following steps: disable any soundcard which is giving problem (i.e. remove usb soundcards, disable internal ones from bios), then run winecfg, set the right output, enable all your soundcards, reboot. For me, everything has worked fine since I took these steps.
http://bugs.winehq.org/show_bug.cgi?id=17097
--- Comment #7 from Austin English austinenglish@gmail.com 2010-01-06 11:31:10 --- (In reply to comment #6)
You can fix winmm.dll problem, without recompiling the kernel, by setting your audio output to oss in winecfg. Run winecfg, switch to audio tab, select oss output. If you can't access winecfg, please try the following steps: disable any soundcard which is giving problem (i.e. remove usb soundcards, disable internal ones from bios), then run winecfg, set the right output, enable all your soundcards, reboot. For me, everything has worked fine since I took these steps.
Or just use 'winetricks sound=oss'.