http://bugs.winehq.org/show_bug.cgi?id=29676
Bug #: 29676 Summary: .NET 4.0 runtime fails to initialize MediaSystem subsystem due to rpcrt4.dll RpcMgmtIsServerListening being a stub Product: Wine Version: 1.3.37 Platform: x86 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: rpc AssignedTo: wine-bugs@winehq.org ReportedBy: focht@gmx.net Classification: Unclassified
Hello,
encountered this while running .NET 4.0 based apps that make use WPF.
Managed backtrace:
--- snip --- fixme:rpc:RpcMgmtIsServerListening (0x1724e8): stub
Unhandled Exception: System.Windows.Markup.XamlParseException: 'Add value to collection of type 'System.Windows.Controls.UIElementCollection' threw an exception.' Line number '4' and line position '28'. ---> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x800706A6 at System.Windows.Media.MediaSystem.ConnectTransport() at System.Windows.Media.MediaSystem.Startup(MediaContext mc) at System.Windows.Media.MediaContext..ctor(Dispatcher dispatcher) at System.Windows.Media.MediaContext.From(Dispatcher dispatcher) at System.Windows.Media.Visual.VerifyAPIReadWrite() at System.Windows.Media.VisualCollection.Add(Visual visual) at System.Windows.Controls.UIElementCollection.AddInternal(UIElement element) at System.Windows.Controls.UIElementCollection.Add(UIElement element) at System.Windows.Controls.UIElementCollection.System.Collections.IList.Add(Object value) at System.Xaml.Schema.XamlTypeInvoker.AddToCollection(Object instance, Object item) at MS.Internal.Xaml.Runtime.ClrObjectRuntime.Add(Object collection, XamlType collectionType, Object value, XamlType valueXamlType) --- End of inner exception stack trace --- at System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri) at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri) at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri) at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream) at System.Windows.Application.LoadBamlStreamWithSyncInfo(Stream stream, ParserContext pc) at System.Windows.Application.LoadComponent(Uri resourceLocator, Boolean bSkipJournaledProperties) at System.Windows.Application.DoStartup() --- snip ---
Trace log:
--- snip --- 002a:CALL wpfgfx_v0400.WgxConnection_Create(<unknown, check return>) ret=04c1aa1b ... 002a:RET wpfgfx_v0400.WgxConnection_Create(00000000,0478617c) retval=00000000 ret=04c1aa1b ... 002a:CALL wpfgfx_v0400.MilConnection_CreateChannel(<unknown, check return>) ret=04c1aac4 ... 002a:Call KERNEL32.LoadLibraryW(55084500 L"wpftxt_v0400.dll") ret=550844d6 002a:Ret KERNEL32.LoadLibraryW() retval=561c0000 ret=550844d6 ... 002a:CALL wpftxt_v0400.1(<unknown, check return>) ret=5508259e ... 002a:Call rpcrt4.RpcStringBindingComposeW(00000000,561d9a24 L"ncalrpc",00000000,561d9a38 L"{2da8dded-086f-4cb9-a77f-b974b9cb0186}",00000000,0032d6d0) ret=561d99b2 002a:Call ntdll.RtlAllocateHeap(00110000,00000000,000000bc) ret=20317376 002a:Ret ntdll.RtlAllocateHeap() retval=0017cc48 ret=20317376 002a:Ret rpcrt4.RpcStringBindingComposeW() retval=00000000 ret=561d99b2 002a:Call rpcrt4.RpcBindingFromStringBindingW(0017cc48 L"ncalrpc:[{2da8dded-086f-4cb9-a77f-b974b9cb0186}]",0032d68c) ret=561d991b ... 002a:Ret rpcrt4.RpcBindingFromStringBindingW() retval=00000000 ret=561d991b 002a:Call rpcrt4.RpcBindingSetAuthInfoExW(0017cd68,561d9970 L"LocalService",00000006,0000000a,00000000,00000000,0032d690) ret=561d9955 ... 002a:Call secur32.AcquireCredentialsHandleW(00000000,0018cc92 L"NTLM",00000002,00000000,00000000,00000000,00000000,0032d538,0032d530) ret=2031b47b ... 002a:Ret secur32.AcquireCredentialsHandleW() retval=00000000 ret=2031b47b ... 002a:Ret rpcrt4.RpcBindingSetAuthInfoExW() retval=00000000 ret=561d9955 ... 002a:Call rpcrt4.RpcMgmtIsServerListening(0017cd68) ret=561d99db 002a:fixme:rpc:RpcMgmtIsServerListening (0x17cd68): stub 002a:Ret rpcrt4.RpcMgmtIsServerListening() retval=000006a6 ret=561d99db ... 002a:CALL MSVCR100_CLR0400._CxxThrowException(<unknown, check return>) ret=562006a7 002a:Call KERNEL32.RaiseException(e06d7363,00000001,00000003,0032d694) ret=79084c0f 002a:trace:seh:raise_exception code=e06d7363 flags=1 addr=0x7b838ccb ip=7b838ccb tid=002a 002a:trace:seh:raise_exception info[0]=19930520 002a:trace:seh:raise_exception info[1]=0032d6c0 002a:trace:seh:raise_exception info[2]=5625e764 002a:trace:seh:raise_exception eax=7b8261a9 ebx=7b8a9a08 ecx=19930520 edx=0032d5a4 esi=0032d680 edi=0032d600 002a:trace:seh:raise_exception ebp=0032d5e8 esp=0032d584 cs=0023 ds=002b es=002b fs=0063 gs=006b flags=00000207 002a:trace:seh:call_vectored_handlers calling handler at 0x791f5a7c code=e06d7363 flags=1 ... 002a:RET wpftxt_v0400.1(00000000,550825b0,0032d924) retval=800706a6 ret=5508259e ... 002a:RET wpfgfx_v0400.MilConnection_CreateChannel(001763a0,00000000,00cd588c) retval=800706a6 ret=04c1aac4 ... 002a:Call KERNEL32.FormatMessageW(000031ff,00000000,800706a6,00000400,0032d558,00000000,0032d504) ret=7923ae16 002a:Ret KERNEL32.FormatMessageW() retval=00000000 ret=7923ae16 ... 002a:Call KERNEL32.RaiseException(e0434352,00000001,00000005,0032d970) ret=791cac08 002a:trace:seh:raise_exception code=e0434352 flags=1 addr=0x7b838ccb ip=7b838ccb tid=002a 002a:trace:seh:raise_exception info[0]=800706a6 002a:trace:seh:raise_exception info[1]=00000000 ... 002a:Call KERNEL32.WideCharToMultiByte(000001b5,00000000,00197a40 L"System.Windows.Markup.XamlParseException: 'Add value to collection of type 'System.Windows.Controls.UIElementCollection' threw an exception.' Line number '4' and line position '28'. ---> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x800706A6\r\n at System.Windows.Media.Medi"...,000012cc,00000000,00000000,00000000,00000000) ret=7943d8b0 ... --- snip ---
Code: http://source.winehq.org/git/wine.git/blob/92ff5f354873cb845f79d950a9877e5c4...
--- snip --- 1620 /*********************************************************************** 1621 * RpcMgmtIsServerListening (RPCRT4.@) 1622 */ 1623 RPC_STATUS WINAPI RpcMgmtIsServerListening(RPC_BINDING_HANDLE Binding) 1624 { 1625 FIXME("(%p): stub\n", Binding); 1626 return RPC_S_INVALID_BINDING; 1627 } --- snip ---
If RPC_S_NOT_LISTENING is returned, "WPFFontCache_v0400" service started and the subsystem doesn't fail.
Later it runs into bug 18640
Regards
http://bugs.winehq.org/show_bug.cgi?id=29676
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |dotnet URL| |http://www.codeproject.com/ | |KB/WF/wcf-wpf-wf-hello-worl | |d/wpfwcfwf.zip Depends on| |25535
--- Comment #1 from Anastasius Focht focht@gmx.net 2012-01-21 16:42:35 CST --- Hello,
filling fields ...
Added download to small WPF test app, taken from http://bugs.winehq.org/show_bug.cgi?id=18640#c30
Regards
http://bugs.winehq.org/show_bug.cgi?id=29676
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |28924
http://bugs.winehq.org/show_bug.cgi?id=29676
--- Comment #2 from Anastasius Focht focht@gmx.net 2012-03-11 13:03:56 CDT --- Hello,
"Kinect for Windows SDK V1" installer also suffers from this. Requires .NET Framework 4.0 prerequisite ('winetricks -q dotnet40').
http://www.kinectforwindows.org/
--- snip --- $ wine ./KinectSDK-v1.0-Setup.exe ... fixme:rpc:RpcMgmtIsServerListening (0x1a3168): stub fixme:advapi:RegisterTraceGuidsW (0xdd503a, (nil), {8e9f5090-2d75-4d03-8a81-e5afbf85daf1}, 1, 0x460be2c, (null), (null), 0x11e10b4,): stub ... Unhandled Exception: System.Windows.Markup.XamlParseException: Add value to collection of type 'System.Windows.Controls.UIElementCollection' threw an exception. ---> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x800706A6 at System.Windows.Media.MediaSystem.ConnectTransport() at System.Windows.Media.MediaSystem.Startup(MediaContext mc) at System.Windows.Media.MediaContext..ctor(Dispatcher dispatcher) at System.Windows.Media.MediaContext.From(Dispatcher dispatcher) at System.Windows.Media.Visual.VerifyAPIReadWrite() at System.Windows.Media.VisualCollection.Add(Visual visual) at System.Windows.Controls.UIElementCollection.AddInternal(UIElement element) at System.Windows.Controls.UIElementCollection.Add(UIElement element) at System.Windows.Controls.UIElementCollection.System.Collections.IList.Add(Object value) at System.Xaml.Schema.XamlTypeInvoker.AddToCollection(Object instance, Object item) at MS.Internal.Xaml.Runtime.ClrObjectRuntime.Add(Object collection, XamlType collectionType, Object value, XamlType valueXamlType) --- End of inner exception stack trace --- at System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri) at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri) at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri) at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream) at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator) at Microsoft.Tools.WindowsInstallerXml.UX.RootView.InitializeComponent() at Microsoft.Tools.WindowsInstallerXml.UX.RootView..ctor(RootViewModel viewModel) at Microsoft.Tools.WindowsInstallerXml.UX.WixUX.Run() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() --- snip ---
$ du -sh KinectSDK-v1.0-Setup.exe 227M KinectSDK-v1.0-Setup.exe
$ sha1sum KinectSDK-v1.0-Setup.exe 0196f075418a117eb4447e7d64fa8fbcf6346ea5 KinectSDK-v1.0-Setup.exe
$ wine --version wine-1.4-78-g94953f1
Regards
http://bugs.winehq.org/show_bug.cgi?id=29676
Bug 29676 depends on bug 25535, which changed state.
Bug 25535 Summary: .NET Framework 4.0 Fails to install with HRESULT 0x80070643 http://bugs.winehq.org/show_bug.cgi?id=25535
What |Old Value |New Value ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
http://bugs.winehq.org/show_bug.cgi?id=29676
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dank@kegel.com
--- Comment #3 from Dan Kegel dank@kegel.com 2012-07-11 23:37:26 CDT --- Also affects "Mobile Sheets Companion", http://www.zubersoft.com/mobilesheets/MobileSheetsCompanion.msi
Prerequisites: winetricks dotnet40, winetricks windowscodecs (for bug 31105)
http://bugs.winehq.org/show_bug.cgi?id=29676
Ken Sharp kennybobs@o2.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download
http://bugs.winehq.org/show_bug.cgi?id=29676
François Gouget fgouget@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fgouget@codeweavers.com
--- Comment #4 from François Gouget fgouget@codeweavers.com 2012-11-10 21:11:28 CST --- This also impacts Microsoft's Image Composite Editor 1.4.4 application. It is downloadable from: http://research.microsoft.com/en-us/downloads/730cd6bb-6450-4e66-8101-a94e71...
$ sha1sum ICE-1.4.4-for-32-bit-Windows.msi 1564b60398afa04301c14ff59baca93a917d15fc ICE-1.4.4-for-32-bit-Windows.msi
http://bugs.winehq.org/show_bug.cgi?id=29676
Hans Leidekker hans@meelstraat.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |a5750a1fdf05960d03ad3fc30dd | |3e3a1c70408bb Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #5 from Hans Leidekker hans@meelstraat.net 2012-11-12 15:31:22 CST --- Should be fixed by a5750a1fdf05960d03ad3fc30dd3e3a1c70408bb.
http://bugs.winehq.org/show_bug.cgi?id=29676
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Alexandre Julliard julliard@winehq.org 2012-11-23 14:30:25 CST --- Closing bugs fixed in 1 5.18.
http://bugs.winehq.org/show_bug.cgi?id=29676
Marc Weber no_name_@gmx.ch changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |no_name_@gmx.ch
--- Comment #7 from Marc Weber no_name_@gmx.ch 2012-12-07 12:25:03 CST --- (In reply to comment #6)
Closing bugs fixed in 1 5.18.
Sorry, but not true in my case. I've got wine v.1.5.18 the git way installed. Environment settings are setted right and dotnet20 over winetricks is installed and running as well (checked with netfx_setupverifier.exe). Although I've got the latest wine-devel version and winetricks windowscodecs as well installed, msiexec /i ICE...msi is not installable because of error
err:msi:ITERATE_Actions Execution halted, action L"VSDCA_VsdLaunchConditions" returned 1603
@Anastasius Focht Can you tell me what kind of dependecies you've had installed (maybe over winetricks) that you don't get closing bugs?
Looking forward for an answer. Thx a lot!
Cheers mates,
Marc
https://bugs.winehq.org/show_bug.cgi?id=29676
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|http://www.codeproject.com/ |https://web.archive.org/web |KB/WF/wcf-wpf-wf-hello-worl |/20120709110847/http://ftp. |d/wpfwcfwf.zip |research.microsoft.com/down | |loads/730cd6bb-6450-4e66-81 | |01-a94e71cb0779/ICE-1.4.4-f | |or-32-bit-Windows.msi