https://bugs.winehq.org/show_bug.cgi?id=35364
Bug ID: 35364 Summary: PaintRibbon 1.x (.NET 3.5 SP1 app) complains on startup with "Cannot create ActiveX component." (WinMGMTS_ParseDisplayName is a stub) Product: Wine Version: 1.7.10 Hardware: x86 OS: Linux Status: NEW Severity: normal Priority: P2 Component: wmi&wbemprox Assignee: wine-bugs@winehq.org Reporter: focht@gmx.net Classification: Unclassified
Hello folks,
as the summary says ...
Prerequisite: 'winetricks -q dotnet35sp1 corefonts'
Work around bug 34764: 'winetricks -q windowscodecs'
Work around bug 15670:
--- snip --- $ wine reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\ProfileList\S-1-5-21-0-0-0-1000" --- snip ---
Relevant part of trace log:
--- snip --- $ pwd /home/focht/.wine/drive_c/Program Files/Paintribbon
$ WINEDEBUG=+tid,+seh,+relay,+ole,+variant wine ./PaintRibbon.exe >>log.txt 2>&1 ... 002b:trace:ole:CreateClassMoniker ({172bddf8-ceea-11d1-8b05-00600806d9b6},0x33cc44) 002b:Call ntdll.RtlAllocateHeap(00110000,00000000,00000020) ret=7e5d6b13 002b:Ret ntdll.RtlAllocateHeap() retval=05e62c48 ret=7e5d6b13 002b:trace:ole:ClassMoniker_Construct (0x5e62c48,{172bddf8-ceea-11d1-8b05-00600806d9b6}) 002b:trace:ole:ClassMoniker_QueryInterface (0x5e62c48,0x7e6cfdac,0x33cc44) 002b:trace:ole:ClassMoniker_AddRef (0x5e62c48) 002b:trace:ole:ClassMoniker_BindToObject (0x5e62998,(nil),0x7e6d033c,0x33cc40) 002b:trace:ole:BindCtxImpl_GetBindOptions (0x5e62998,0x33cb7c) 002b:trace:ole:CoGetClassObject CLSID: {172bddf8-ceea-11d1-8b05-00600806d9b6},IID: {0000011a-0000-0000-c000-000000000046} ... 002b:trace:ole:COMPOBJ_DllList_Add L"C:\windows\system32\wbem\wbemdisp.dll" 002b:Call KERNEL32.LoadLibraryExW(0033c80e L"C:\windows\system32\wbem\wbemdisp.dll",00000000,00000008) ret=7e5e0673 ... 002b:trace:ole:create_local_service Attempting to start Local service for {172bddf8-ceea-11d1-8b05-00600806d9b6} ... 002b:err:ole:create_server class {172bddf8-ceea-11d1-8b05-00600806d9b6} not registered 002b:fixme:ole:CoGetClassObject CLSCTX_REMOTE_SERVER not supported 002b:err:ole:CoGetClassObject no class object {172bddf8-ceea-11d1-8b05-00600806d9b6} could be created for context 0x15 002b:trace:ole:ClassMoniker_BindToObject (0x5e62998,(nil),0x7e6cfc8c,0x33cc3c) 002b:trace:ole:BindCtxImpl_GetBindOptions (0x5e62998,0x33cb7c) 002b:trace:ole:CoGetClassObject CLSID: {172bddf8-ceea-11d1-8b05-00600806d9b6},IID: {00000001-0000-0000-c000-000000000046} ... 002b:trace:ole:apartment_getclassobject found L"C:\windows\system32\wbem\wbemdisp.dll" already loaded 002b:trace:ole:apartment_getclassobject calling DllGetClassObject 0x7d80d79c 002b:Call wbemdisp.DllGetClassObject(05e62c54,7e6cfc8c,0033cc3c) ret=7e5e2c80 002b:Ret wbemdisp.DllGetClassObject() retval=00000000 ret=7e5e2c80 ... 002b:fixme:wbemdisp:WinMGMTS_ParseDisplayName (0x5e62998 L"WinMgmts:" 0x33cd00 0x33cd04) 002b:Ret ole32.MkParseDisplayName() retval=80004001 ret=047612c0 ... 002b:Call KERNEL32.RaiseException(e0434f4d,00000001,00000001,0033c9f8) ret=79eda91c 002b:trace:seh:raise_exception code=e0434f4d flags=1 addr=0x7b83a913 ip=7b83a913 tid=002b 002b:trace:seh:raise_exception info[0]=80004001 002b:trace:seh:raise_exception eax=7b826989 ebx=7b8ba000 ecx=80004001 edx=0033c938 esi=0033c9d8 edi=0033c9a0 002b:trace:seh:raise_exception ebp=0033c978 esp=0033c914 cs=0023 ds=002b es=002b fs=0063 gs=006b flags=00000287 002b:trace:seh:call_stack_handlers calling handler at 0x79f908a2 code=e0434f4d flags=1 002b:trace:seh:call_stack_handlers handler at 0x79f908a2 returned 1 002b:trace:seh:call_stack_handlers calling handler at 0x79edc3bc code=e0434f4d flags=1 ... 002b:Call user32.MessageBoxW(00010072,00ffb518 L"Cannot create ActiveX component.",00ead49c L"Error",00000030) ret=047659df --- snip ---
With the help of a managed debugger:
--- snip --- ... 0033cb94 7b83a913 [GCFrame: 0033cb94] 0033cbdc 7b83a913 [GCFrame: 0033cbdc] 0033cf90 7b83a913 [NDirectMethodFrameSlim: 0033cf90] System.Runtime.InteropServices.Marshal.MkParseDisplayName(System.Runtime.InteropServices.ComTypes.IBindCtx, System.String, UInt32 ByRef, System.Runtime.InteropServices.ComTypes.IMoniker ByRef) 0033cfa8 061a7440 System.Runtime.InteropServices.Marshal.BindToMoniker(System.String) 0033cfc4 061a72ba Microsoft.VisualBasic.Interaction.GetObject(System.String, System.String) 0033cff0 061a6867 PaintRibbon.MainWindow.GetHardware() 0033d048 0602758f PaintRibbon.MainWindow.Initialize() 0033d1fc 05ceb52e PaintRibbon.MainWindow.frmMain_Loaded(System.Object, System.Windows.RoutedEventArgs) 0033d214 0588ecad System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs) 0033d22c 0571c704 System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean) 0033d2f0 0571a5f9 System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs) 0033d334 0571a484 System.Windows.UIElement.RaiseEvent(System.Windows.RoutedEventArgs) 0033d340 05fdd7d1 System.Windows.BroadcastEventHelper.BroadcastEvent(System.Windows.DependencyObject, System.Windows.RoutedEvent) 0033d388 05fdd509 System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(System.Object) 0033d3a8 05fdd466 MS.Internal.LoadedOrUnloadedOperation.DoWork() 0033d3ac 04d837d0 System.Windows.Media.MediaContext.FireLoadedPendingCallbacks() 0033d3bc 04d836f5 System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks() 0033d3d8 04d82eaa System.Windows.Media.MediaContext.RenderMessageHandlerCore(System.Object) 0033d428 04d82df8 System.Windows.Media.MediaContext.RenderMessageHandler(System.Object) 0033d450 04d82d64 System.Windows.Media.MediaContext.Resize(System.Windows.Media.ICompositionTarget) 0033d460 04d82ca1 System.Windows.Interop.HwndTarget.OnResize() ... --- snip ---
After dismissing the error message box the full user interface shows up so it seems the error is not really that critical.
MSDN: http://technet.microsoft.com/en-us/library/ee198932.aspx (WMI monikers -> "WinMgmts:" prefix)
Source: http://source.winehq.org/git/wine.git/blob/fb9e8bc94e84ce278d7467e21bc33d401...
--- snip --- 67 static HRESULT WINAPI WinMGMTS_ParseDisplayName(IParseDisplayName *iface, IBindCtx *pbc, LPOLESTR pszDisplayName, 68 ULONG *pchEaten, IMoniker **ppmkOut) 69 { 70 FIXME("(%p %s %p %p)\n", pbc, debugstr_w(pszDisplayName), pchEaten, ppmkOut); 71 return E_NOTIMPL; 72 } --- snip ---
$ sha1sum paintribbonsetup.exe d74c6a5ddca61c0f62019db14657993cb552daf2 paintribbonsetup.exe
$ du -sh paintribbonsetup.exe 1.7M paintribbonsetup.exe
$ wine --version wine-1.7.10-343-g770d09d
Regards
https://bugs.winehq.org/show_bug.cgi?id=35364
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |dotnet, download URL| |http://download.cnet.com/Pa | |intRibbon/3000-2191_4-10958 | |115.html?part=dl-10119948&s | |ubj=dl&tag=button Depends on| |34764, 15670
https://bugs.winehq.org/show_bug.cgi?id=35364
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|PaintRibbon 1.x (.NET 3.5 |Multiple |SP1 app) complains on |applications/installers |startup with "Cannot create |fail due to |ActiveX component." |WinMGMTS_ParseDisplayName |(WinMGMTS_ParseDisplayName |stub (PaintRibbon 1.x, |is a stub) |MicroStation V8i)
--- Comment #1 from Anastasius Focht focht@gmx.net --- Hello folks,
revisiting, 'MicroStation V8i' installer also needs this. Refining summary.
Prerequisite: 'winetricks -q dotnet35sp1'
--- snip --- $ WINEDEBUG=+tid,+seh,+relay,+vbscript,+msi,+wbemprox wine ./Setup.exe >> log.txt 2>&1 ... 0024:trace:msi:ACTION_CustomAction Handling custom action L"TranslateUserGroupUsers" (6 L"TranslateSidTool" L"Main") ... 0028:Starting thread proc 0x7ed19e4c (arg=0x1f03cdc) 0028:trace:msi:ScriptThread custom action (28) started ... 0028:trace:msi:call_script Calling function L"Main" 0028:trace:vbscript:VBScript_GetScriptDispatch (0x1e8d038)->(0x396e8c0) 0028:trace:vbscript:ScriptDisp_AddRef (0x1adcb8) ref=2 0028:trace:vbscript:ScriptDisp_GetIDsOfNames (0x1adcb8)->({00000000-0000-0000-0000-000000000000} 0x396e9bc 1 1024 0x396e8ac) 0028:trace:vbscript:ScriptDisp_GetDispID (0x1adcb8)->(L"Main" 0 0x396e8ac) ... 0028:fixme:msi:AutomationObject_GetIDsOfNames Unknown member L"GetObject", clsid {000c109e-0000-0000-c000-000000000046} ... 0028:trace:vbscript:DispatchEx_QueryInterface (0x1e2fdb8)->(IID_IDispatchEx 0x396e4d0) 0028:trace:vbscript:DispatchEx_AddRef (0x1e2fdb8) ref=2 0028:trace:vbscript:DispatchEx_InvokeEx (0x1e2fdb8)->(b0 0 3 0x396e58c 0x396e600 0x396e4b0 (nil)) 0028:trace:vbscript:Global_GetObject {VT_BSTR: L"winmgmts:\\.\root\cimv2"} ... 0028:Call wbemdisp.DllGetClassObject(01cf3df4,7ebdfb5c,0396e0c0) ret=7eaf1cd8 0028:fixme:wbemdisp:factory_QueryInterface interface {0000011a-0000-0000-c000-000000000046} not implemented 0028:Ret wbemdisp.DllGetClassObject() retval=80004002 ret=7eaf1cd8 0028:err:ole:apartment_getclassobject DllGetClassObject returned error 0x80004002 ... 0028:fixme:wbemdisp:WinMGMTS_ParseDisplayName (0x1cf3da8 L"winmgmts:\\.\root\cimv2" 0x396e180 0x396e184) 0028:Ret ole32.MkParseDisplayName() retval=80004001 ret=7d0c4e49 ... 0028:err:ole:create_server class {172bddf8-ceea-11d1-8b05-00600806d9b6} not registered 0028:fixme:ole:CoGetClassObject CLSCTX_REMOTE_SERVER not supported 0028:err:ole:CoGetClassObject no class object {172bddf8-ceea-11d1-8b05-00600806d9b6} could be created for context 0x15 ... 0028:trace:msi:ACTION_CallScript script returned 1603 ... 0024:err:msi:ITERATE_Actions Execution halted, action L"TranslateUserGroupUsers" returned 1603 ... 0024:Call user32.CreateWindowExW(00000000,7ed96360 L"Static",01cd0d30 L"MicroStation V8i (SELECTseries 3) 08.11.09.459 Setup Wizard ended prematurely because of an error. Your system has not been modified. To install this program at a later time, run Setup Wizard again. Click the Finish button to exit the Setup Wizard.",50020000,000000b4,0000005d,00000125,0000006b,000900c0,00000000,00000000,00000000) ret=7ed226a6 --- snip ---
The extracted VBScript code:
--- snip --- TranslateSidTool.vbs,v $ '# $RCSfile: TranslateSidTool.vbs,v $ '# $Revision: 1.1 $ '# $Date: 2008/08/07 13:58:10 $ '# $Author: Vishal.Sharma $ '# '# $Copyright: (c) 2008 Bentley Systems, Incorporated. All rights reserved. $ '# | '#----------------------------------------------------------------------*/ ' Option Explicit Sub Main On Error Resume Next Dim strComputer : strComputer = "." Dim objWMIService : Set objWMIService = GetObject("winmgmts:\" & strComputer & "\root\cimv2") Dim UsersGroupName Dim colItems Dim objItem
Set colItems = objWMIService.ExecQuery _ ("Select * From Win32_Group Where LocalAccount = True And SID = 'S-1-5-32-545'") For Each objItem in colItems UsersGroupName = objItem.Name Next Session.Property("USERGROUP_USERS")=UsersGroupName End Sub --- snip ---
$ wine --version wine-1.7.14
Regards
https://bugs.winehq.org/show_bug.cgi?id=35364
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fhajad@gmail.com
--- Comment #2 from Anastasius Focht focht@gmx.net --- *** Bug 30521 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=35364
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |ff251092a7b400b128e1b0096cf | |0dc95db500c02 Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #3 from Anastasius Focht focht@gmx.net --- Hello folks,
this is fixed by commit http://source.winehq.org/git/wine.git/commitdiff/ff251092a7b400b128e1b0096cf...
Thanks Hans.
--- snip --- WINEDEBUG=+tid,+seh,+loaddll,+process,+ole,+variant,+wbemdisp,+wbemprox wine ./PaintRibbon.exe >>log.txt 2>&1 ... 0031:trace:ole:MkParseDisplayName (0x6877540, L"WinMgmts:", 0x33cfac, 0x33cef0) 0031:trace:ole:guid_from_string L"{172BDDF8-CEEA-11D1-8B05-00600806D9B6}" -> 0x33cda8 0031:trace:ole:CreateClassMoniker ({172bddf8-ceea-11d1-8b05-00600806d9b6},0x33cda4) 0031:trace:ole:ClassMoniker_Construct (0x6871ea8,{172bddf8-ceea-11d1-8b05-00600806d9b6}) 0031:trace:ole:ClassMoniker_QueryInterface (0x6871ea8,0x7e64712c,0x33cda4) 0031:trace:ole:ClassMoniker_AddRef (0x6871ea8) 0031:trace:ole:ClassMoniker_BindToObject (0x6877540,(nil),0x7e6476bc,0x33cda0) 0031:trace:ole:BindCtxImpl_GetBindOptions (0x6877540,0x33ccdc) 0031:trace:ole:CoGetClassObject CLSID: {172bddf8-ceea-11d1-8b05-00600806d9b6},IID: {0000011a-0000-0000-c000-000000000046} 0031:trace:ole:COMPOBJ_DllList_Add L"C:\windows\system32\wbem\wbemdisp.dll" 0031:trace:loaddll:load_builtin_dll Loaded L"C:\windows\system32\wbemdisp.dll" at 0x7cae0000: builtin ... 0031:trace:wbemdisp:factory_CreateInstance (nil), {0000011a-0000-0000-c000-000000000046}, 0x33cda0 0031:trace:wbemdisp:WinMGMTS_QueryInterface (IID_IParseDisplayName 0x33cda0) 0031:trace:ole:ClassMoniker_Release (0x6871ea8) 0031:trace:wbemdisp:WinMGMTS_ParseDisplayName 0x7caffcbc, 0x6877540, L"WinMgmts:", 0x33ce60, 0x33ce64 0031:trace:ole:CoCreateInstance (rclsid={cf4cc405-e2c5-4ddd-b3ce-5e7582d8c9fa}, pUnkOuter=(nil), dwClsContext=00000001, riid={3bc15af2-736c-477e-9e51-238af8667dcc}, ppv=0x33cc10) 0031:trace:ole:CoGetTreatAsClass ({cf4cc405-e2c5-4ddd-b3ce-5e7582d8c9fa},0x33cb48) 0031:trace:ole:CoGetClassObject CLSID: {cf4cc405-e2c5-4ddd-b3ce-5e7582d8c9fa},IID: {00000001-0000-0000-c000-000000000046} 0031:trace:ole:COMPOBJ_DllList_Add L"C:\windows\system32\WBEM\wmiutils.dll" 0031:trace:loaddll:load_builtin_dll Loaded L"C:\windows\system32\wmiutils.dll" at 0x7d210000: builtin 0031:trace:loaddll:free_modref Unloaded module L"C:\windows\system32\wmiutils.dll" : builtin 0031:trace:loaddll:load_native_dll Loaded L"C:\windows\system32\WBEM\wmiutils.dll" at 0x74e60000: native 0031:trace:ole:apartment_getclassobject added new loaded dll L"C:\windows\system32\WBEM\wmiutils.dll" 0031:trace:ole:apartment_getclassobject calling DllGetClassObject 0x74e63d96 0031:trace:ole:CoCreateFreeThreadedMarshaler (0x6871a30 0x6871a6c) ... 0031:trace:wbemdisp:SWbemLocator_create 0x33ccd8 0031:trace:wbemdisp:SWbemLocator_create returning iface 0x6871a30 0031:trace:wbemdisp:locator_ConnectServer 0x6871a30, (null), L"", (null), (nil), (null), (null), 0x00000000, (nil), 0x33ccd4 0031:trace:ole:CoCreateInstance (rclsid={4590f811-1d3a-11d0-891f-00aa004b2e24}, pUnkOuter=(nil), dwClsContext=00000001, riid={dc12a687-737f-11cf-884d-00aa004b2e24}, ppv=0x6871a38) 0031:trace:ole:CoGetTreatAsClass ({4590f811-1d3a-11d0-891f-00aa004b2e24},0x33cb28) 0031:trace:ole:CoGetClassObject CLSID: {4590f811-1d3a-11d0-891f-00aa004b2e24},IID: {00000001-0000-0000-c000-000000000046} 0031:trace:ole:COMPOBJ_DllList_Add L"C:\windows\system32\wbem\wbemprox.dll" 0031:trace:loaddll:load_builtin_dll Loaded L"C:\windows\system32\dxgi.dll" at 0x7bf20000: builtin 0031:trace:loaddll:load_builtin_dll Loaded L"C:\windows\system32\wbemprox.dll" at 0x7ba90000: builtin 0031:trace:ole:apartment_getclassobject added new loaded dll L"C:\windows\system32\wbem\wbemprox.dll" 0031:trace:ole:apartment_getclassobject calling DllGetClassObject 0x7baa49d8 0031:trace:wbemprox:DllGetClassObject {4590f811-1d3a-11d0-891f-00aa004b2e24} {00000001-0000-0000-c000-000000000046} 0x33cb38 0031:trace:wbemprox:wbemprox_cf_CreateInstance (nil) {dc12a687-737f-11cf-884d-00aa004b2e24} 0x6871a38 0031:trace:wbemprox:WbemLocator_create (0x33caac) 0031:trace:wbemprox:WbemLocator_create returning iface 0x68779c0 0031:trace:wbemprox:wbem_locator_QueryInterface 0x68779c0 {dc12a687-737f-11cf-884d-00aa004b2e24} 0x6871a38 0031:trace:ole:SysAllocStringLen (null) 0031:trace:wbemprox:wbem_locator_ConnectServer 0x68779c0, L"\\.\root\default", (null), (null), (null), 0x00000000, (null), (nil), 0x33cc18) 0031:trace:wbemprox:WbemServices_create (0x33cc18) 0031:trace:wbemprox:WbemServices_create returning iface 0x6878eb0 0031:trace:wbemdisp:SWbemServices_create 0x33ccd4, 0x6878eb0 0031:trace:wbemdisp:SWbemServices_create returning iface 0x6878e98 0031:trace:wbemdisp:Moniker_create 0x6878e98, 0x33ce64 0031:trace:wbemdisp:Moniker_create returning iface 0x68779d8 --- snip ---
Regards
https://bugs.winehq.org/show_bug.cgi?id=35364
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.7.34.
https://bugs.winehq.org/show_bug.cgi?id=35364 Bug 35364 depends on bug 34764, which changed state.
Bug 34764 Summary: .NET Framework 3.5 SP1 based WPF applications crash on direct access of MIL (Media Integration Layer) to internal bitmap struct/class impl (depends on exact layout) https://bugs.winehq.org/show_bug.cgi?id=34764
What |Removed |Added ---------------------------------------------------------------------------- Status|STAGED |RESOLVED Resolution|--- |FIXED
https://bugs.winehq.org/show_bug.cgi?id=35364 Bug 35364 depends on bug 15670, which changed state.
Bug 15670 Summary: .NET applications that make use of System.IO.IsolatedStorage crash (missing "HKLM\Software\Microsoft\Windows NT\CurrentVersion\ProfileList<UserSID>" registry subkey) https://bugs.winehq.org/show_bug.cgi?id=15670
What |Removed |Added ---------------------------------------------------------------------------- Status|STAGED |RESOLVED Resolution|--- |FIXED
https://bugs.winehq.org/show_bug.cgi?id=35364
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|http://download.cnet.com/Pa |https://web.archive.org/web |intRibbon/3000-2191_4-10958 |/20190516060109/http://fs2. |115.html?part=dl-10119948&s |download82.com/software/bbd |ubj=dl&tag=button |8ff9dba17080c0c121804efbd61 | |d5/paintribbon/paintribbons | |etup.exe