http://bugs.winehq.org/show_bug.cgi?id=18202
Summary: WMP9 causes two unhandled exceptions on every Wine run Product: Wine Version: 1.1.20 Platform: PC URL: http://www.microsoft.com/windows/windowsmedia/download/A llDownloads.aspx?displang=en&qstechnology= OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: kennybobs@o2.co.uk
Created an attachment (id=20692) --> (http://bugs.winehq.org/attachment.cgi?id=20692) Wine 1.1.20 console output
WMP9 is needed by a number of other Windows apps. WMP9 causes two unhandled exceptions that could be safely ignored, but Wine 1.1.20 has introduced a "Program Error" dialog in winedbg. This dialog shows twice every time any app is run under Wine.
To recreate: 1. winetricks -q wmp9 2. winecfg
Although this is a new feature, I guess it's technically a regression.
Two options: 1. Fix the exceptions or 2. Remove the dialog from winedbg.
Unhandled exception: unimplemented function ntoskrnl.exe.KeInitializeMutex Unhandled exception: unimplemented function ntoskrnl.exe.ExInitializeResourceLite
To clarify, once WMP9 is installed, two unhandled exceptions occur EVERY TIME Wine is run.
http://bugs.winehq.org/show_bug.cgi?id=18202
Ken Sharp kennybobs@o2.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, regression
http://bugs.winehq.org/show_bug.cgi?id=18202
--- Comment #1 from Ken Sharp kennybobs@o2.co.uk 2009-04-25 06:51:21 --- Ah, Wine remains in memory once the app is closed too.
http://bugs.winehq.org/show_bug.cgi?id=18202
Ken Sharp kennybobs@o2.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |minor
--- Comment #2 from Ken Sharp kennybobs@o2.co.uk 2009-04-25 08:10:34 --- Workaround is to disable the services causing the problem, as suggested by A. Focht.
Run these two lines to workaround: wine regedit /D "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Cdr4_2K"
wine regedit /D "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Cdralw2k"
Opened http://code.google.com/p/winezeug/issues/detail?id=40 to see if Dan will add this to winetricks.
http://bugs.winehq.org/show_bug.cgi?id=18202
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|minor |enhancement Keywords|regression |
--- Comment #3 from Vitaliy Margolen vitaliy@kievinfo.com 2009-04-25 11:54:54 --- That's not a services - those are kernel drivers. Not regression - they never worked before. Also make sure you doing this on the clean WINEPREFIX.
http://bugs.winehq.org/show_bug.cgi?id=18202
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |focht@gmx.net
--- Comment #4 from Anastasius Focht focht@gmx.net 2009-04-25 12:55:46 --- Hello,
--- quote --- That's not a services - those are kernel drivers. Not regression - they never worked before. Also make sure you doing this on the clean WINEPREFIX. --- quote ---
Ken Sharp used the term "service" in generic fashion. Kernel drivers are system services, they have their own service type.
Those issues are result of Wine's new UI crash handler. Earlier, kernel driver hosting processes died rather silently and the problem lived rather unnoticed (except for the bug reports which included backtraces).
Regarding this bug ... those drivers are part of Windows Media Player package. They belong to the Roxio burn engine, installed in sub-installer (engsetup.exe).
You have to disable them ("Start"=dword:00000004) to prevent automatic startup (and subsequent crash). I suggested to add winetricks post-install step which does this because the drivers are of no use due to missing Wine kernel infrastructure.
Regards
http://bugs.winehq.org/show_bug.cgi?id=18202
Ken Sharp kennybobs@o2.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|enhancement |minor
--- Comment #5 from Ken Sharp kennybobs@o2.co.uk 2009-04-25 14:59:00 --- This is probably going to cause a lot of duplicate bugs to be opened.
Other than manual workarounds, can something be added to Wine to simply stop the exception and therefore the Program Error box popping up?
As Anastasius said, it never used to do this. Wine 1.0, for example, just "ignores" it and no exception occurs. So the new exceptions themselves are regressions (appear sometime after 1.0). This bug is not about getting them to work, it's about stopping the exceptions.
It's also not an enhancement; it's a nuisance that will affect anyone who needs or wants to install WMP9.
Workaround is still simple though.
http://bugs.winehq.org/show_bug.cgi?id=18202
--- Comment #6 from Anastasius Focht focht@gmx.net 2009-04-25 15:57:24 --- Hello,
--- quote --- As Anastasius said, it never used to do this. Wine 1.0, for example, just "ignores" it and no exception occurs. So the new exceptions themselves are regressions (appear sometime after 1.0). This bug is not about getting them to work, it's about stopping the exceptions.
It's also not an enhancement; it's a nuisance that will affect anyone who needs or wants to install WMP9. --- quote ---
Please don’t twist my words and read what I wrote! These exceptions were there the whole time - since the beginning of the universe .. err addition of Wine kernel driver infrastructure! What changed is that unhandled exceptions are now made visible to user by displaying crash dialog box.
Previously you wouldn't notice it until you ran the app from console (backtraces).
Regards
http://bugs.winehq.org/show_bug.cgi?id=18202
--- Comment #7 from Ken Sharp kennybobs@o2.co.uk 2009-04-25 16:40:03 --- I wasn't twisting anyone's words.
Still needs a fix, of sorts.
http://bugs.winehq.org/show_bug.cgi?id=18202
--- Comment #8 from Anastasius Focht focht@gmx.net 2009-04-25 16:45:50 --- Hello again,
--- quote --- This bug is not about getting them to work, it's about stopping the exceptions. --- quote ---
if you want to keep both Roxio kernel drivers (Cdr4_2K.sys, Cdralw2k.sys) from crashing at load time, add the following minimum required stubs to ntoskrnl:
--- snip --- ExInitializeResourceLite -> return STATUS_NOT_IMPLEMENTED ExInitializeZone -> return STATUS_NOT_IMPLEMENTED IoInitializeTimer -> return STATUS_NOT_IMPLEMENTED IoStartTimer -> (void) KeInitializeMutex -> (void) KeWaitForSingleObject -> return STATUS_NOT_IMPLEMENTED PsTerminateSystemThread -> return STATUS_NOT_IMPLEMENTED --- snip ---
Also add proper definitions for kernel structures used in parameter lists.
You could send each stub one by one to patch mailing list for review or ask someone to do it for you. Though these stubs don't make the drivers functional in any way!
Regards
http://bugs.winehq.org/show_bug.cgi?id=18202
Jeff Zaroyko jeffz@jeffz.name changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |chemacg@gmail.com
--- Comment #9 from Jeff Zaroyko jeffz@jeffz.name 2009-05-24 09:44:02 --- *** Bug 18603 has been marked as a duplicate of this bug. ***
http://bugs.winehq.org/show_bug.cgi?id=18202
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Summary|WMP9 causes two unhandled |Programs show unhandled |exceptions on every Wine |exception dialog on every |run |run Ever Confirmed|0 |1
--- Comment #10 from Vitaliy Margolen vitaliy@kievinfo.com 2009-05-24 11:45:11 --- Make summary more generic. And confirm.
http://bugs.winehq.org/show_bug.cgi?id=18202
--- Comment #11 from Ken Sharp kennybobs@o2.co.uk 2009-05-28 16:33:28 --- Also affects any Adobe product that decides to install the Adobe Drive File System driver (adfs.sys).
http://bugs.winehq.org/show_bug.cgi?id=18202
--- Comment #12 from Anders Jonsson anders.jonsson@norsjonet.se 2009-06-12 14:47:02 --- Created an attachment (id=21761) --> (http://bugs.winehq.org/attachment.cgi?id=21761) ntoskrnl stubs to fix the crash messages
Have stubbed the functions that Anastasius mentioned. Please comment if there is something I have missed. Will split the patch into pieces and send to wine-patches later.
http://bugs.winehq.org/show_bug.cgi?id=18202
--- Comment #13 from Ken Sharp kennybobs@o2.co.uk 2009-06-13 09:47:08 --- Patch works, but reveals a new problem
unimplemented function ntoskrnl.exe.ExInitializeNPagedLookasideList
http://bugs.winehq.org/show_bug.cgi?id=18202
--- Comment #14 from Anders Jonsson anders.jonsson@norsjonet.se 2009-06-13 15:03:07 --- Created an attachment (id=21776) --> (http://bugs.winehq.org/attachment.cgi?id=21776) stub for ExInitializeNPagedLookasideList (apply on top of previous patch)
(In reply to comment #13)
Patch works, but reveals a new problem
unimplemented function ntoskrnl.exe.ExInitializeNPagedLookasideList
I see no such message, the previous patch fixed all problems for me.
Does this stub help? (Should be applied on top of last patch)
http://bugs.winehq.org/show_bug.cgi?id=18202
Anders Jonsson anders.jonsson@norsjonet.se changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |anders.jonsson@norsjonet.se
http://bugs.winehq.org/show_bug.cgi?id=18202
--- Comment #15 from Ken Sharp kennybobs@o2.co.uk 2009-06-13 19:34:43 --- The first patch fixes the problem with WMP9's kernel drivers. Photoshop CS4 installs more kernel drivers. Second patch works also (with a minor fix):
FIXME( "stub: %p, %p, %p, %u, %u, %u, %u\n", should be FIXME( "stub: %p, %p, %p, %u, %lu, %u, %u\n",
but there are more unimplemented functions that follow.
I'll try and patch them as I find them.
http://bugs.winehq.org/show_bug.cgi?id=18202
Ken Sharp kennybobs@o2.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |ntoskrnl
http://bugs.winehq.org/show_bug.cgi?id=18202
--- Comment #16 from Ken Sharp kennybobs@o2.co.uk 2009-06-13 20:36:11 --- Created an attachment (id=21781) --> (http://bugs.winehq.org/attachment.cgi?id=21781) Third patch
OK, with first patch + second patch + third patch, the Photoshop CS4 install won't cause this bug.
Anders, can you let me know when your patches have been submitted? Second patch needs the slight correction then the third patch will need putting right. Thanks.
http://bugs.winehq.org/show_bug.cgi?id=18202
--- Comment #17 from Anders Jonsson anders.jonsson@norsjonet.se 2009-06-14 15:43:40 --- Patch series sent, containing the seven stubs of comment #12
http://www.winehq.org/pipermail/wine-patches/2009-June/074199.html
http://bugs.winehq.org/show_bug.cgi?id=18202
--- Comment #18 from Ken Sharp kennybobs@o2.co.uk 2009-06-14 17:09:38 --- Thanks Anders, could you send your patch for ExInitializeNPagedLookasideList too?
I'll wait until they're commited to send my stubs.
http://bugs.winehq.org/show_bug.cgi?id=18202
--- Comment #19 from Anders Jonsson anders.jonsson@norsjonet.se 2009-06-15 12:27:25 --- (In reply to comment #18)
Thanks Anders, could you send your patch for ExInitializeNPagedLookasideList too?
I'll wait until they're commited to send my stubs.
The patch series is now committed. Has sent the other stub to wine-patches as well: http://www.winehq.org/pipermail/wine-patches/2009-June/074263.html
http://bugs.winehq.org/show_bug.cgi?id=18202
Saulius K. saulius2@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |saulius2@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=18202
--- Comment #20 from Anders Jonsson anders.jonsson@norsjonet.se 2009-06-16 10:41:42 --- All sent patches are now in Git.
Ken, feel free to send your stubs.
http://bugs.winehq.org/show_bug.cgi?id=18202
Ken Sharp kennybobs@o2.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch
--- Comment #21 from Ken Sharp kennybobs@o2.co.uk 2009-06-17 17:10:04 --- Anders patches accepted. My patches sent.
http://bugs.winehq.org/show_bug.cgi?id=18202
Ken Sharp kennybobs@o2.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #22 from Ken Sharp kennybobs@o2.co.uk 2009-06-18 15:21:15 --- All patches commited.
Maybe some other kernel drivers will trigger more issues, but for now, this is fixed.
http://bugs.winehq.org/show_bug.cgi?id=18202
--- Comment #23 from Austin English austinenglish@gmail.com 2009-06-18 18:10:13 --- (In reply to comment #22)
All patches commited.
Maybe some other kernel drivers will trigger more issues, but for now, this is fixed.
Great job guys!
http://bugs.winehq.org/show_bug.cgi?id=18202
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #24 from Alexandre Julliard julliard@winehq.org 2009-06-19 11:07:22 --- Closing bugs fixed in 1.1.24.
http://bugs.winehq.org/show_bug.cgi?id=18202
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |afff5f9da515c4053a175f5e114 | |282c3ed00d4cd
--- Comment #25 from Anastasius Focht focht@gmx.net 2011-12-22 05:08:28 CST --- Hello,
filling fields...
Regards
http://bugs.winehq.org/show_bug.cgi?id=18202
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |wiccio84@yahoo.it
--- Comment #26 from Anastasius Focht focht@gmx.net 2011-12-22 05:11:29 CST --- *** Bug 18909 has been marked as a duplicate of this bug. ***