[Bug 29676] New: .NET 4.0 runtime fails to initialize MediaSystem subsystem due to rpcrt4.dll RpcMgmtIsServerListening being a stub

wine-bugs at winehq.org wine-bugs at winehq.org
Sat Jan 21 16:38:55 CST 2012


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 at winehq.org
        ReportedBy: focht at 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/92ff5f354873cb845f79d950a9877e5c4c02b8aa:/dlls/rpcrt4/rpc_server.c#l1620

--- 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

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list