Hi, I am trying to get a command line tool to run under wine, and have varied success. The command msconvert.exe is part of the mixed open/closed source Proteowizard project [1], which provides a unified access to the mass spectrometry data from any instrument vendor through their closed source data access DLLs. In particular, msconvert converts into vendor-neutral open XML formats. Download available from [2]. If people here think this should be filed in bugzilla, I'd be happy to do so. So success or failure running msconvert depends on which and how these DLLs are written and called, which I have no direct control of. * I can run msconvert just fine when converting from one open format to another, which does not require any closed DLLs. So msconvert itself is fine. * I have one instrument that has a mix of *.dll that are identified as "PE32 executable (DLL)" for console and GUI, and also include Mono/.Net assemblies. Runs fine. * I have data and DLLs from a different instrument, where at runtime a few err:ole messages are suspicious to my (wine-untrained) eye, see also full trace below: err:ole:marshal_object Failed to create an IRpcStubBuffer from IPSFactory for {00000126-0000-0000-c000-000000000046} with error 0x80004002 err:ole:ClientIdentity_QueryMultipleInterfaces IRemUnknown_RemQueryInterface failed with error 0x80004002 A few output lines later the process just hangs, it can be terminated with ^C. I am running Ubuntu 16.04, and previously 14.04, and I have tried Wine Staging 1.9.15, wine-1.6.2 and wine-1.8.0. Needless to say, works under Windows. The msconvert sources are living under [3]. I tried a "normal" wineprefix and WINEARCH=win32 wineprefix. Dependencies I know of are installed via a recent winetricks: ./winetricks --unattended msxml3 mfc42 corefonts ./winetricks --unattended vcrun2005 ./winetricks --unattended vcrun2008 ./winetricks --unattended vcrun2010 ./winetricks --unattended dotnet35sp1 ./winetricks --unattended dotnet40 All my attempts so far were quite random, following https://www.winehq.org/docs/wineusr-guide/bugs Thanks in advance, yours, Steffen --------------------------------------------------------------------------- [1] http://proteowizard.sourceforge.net/ [2] http://proteowizard.sourceforge.net/downloads.shtml [3] https://sourceforge.net/p/proteowizard/code/HEAD/tree/trunk/pwiz/ --------------------------------------------------------------------------- WINEDEBUG=-all,+loaddll,err+all,fixme+all wine ./msconvert.exe /tmp/pwiz/thermo.raw trace:loaddll:load_builtin_dll Loaded L"KERNEL32.dll" at 0x7b810000: builtin trace:loaddll:load_builtin_dll Loaded L"KERNEL32.dll" at 0x7b810000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\wineboot.exe" at 0x7efe0000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\advapi32.dll" at 0x7eb50000: builtin trace:loaddll:load_builtin_dll Loaded L"KERNEL32.dll" at 0x7b810000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\winemenubuilder.exe" at 0x7efe0000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\advapi32.dll" at 0x7e980000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\gdi32.dll" at 0x7e710000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\version.dll" at 0x7e6f0000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\user32.dll" at 0x7e830000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\rpcrt4.dll" at 0x7e680000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\ole32.dll" at 0x7ea00000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\oleaut32.dll" at 0x7e550000: builtin trace:loaddll:load_builtin_dll Loaded L"KERNEL32.dll" at 0x7b810000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\shlwapi.dll" at 0x7e4d0000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\windowscodecs.dll" at 0x7eb30000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\shell32.dll" at 0x7e2a0000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\services.exe" at 0x7eba0000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\advapi32.dll" at 0x7eab0000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\rpcrt4.dll" at 0x7eb20000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\userenv.dll" at 0x7eff0000: builtin trace:loaddll:load_builtin_dll Loaded L"KERNEL32.dll" at 0x7b810000: builtin trace:loaddll:load_native_dll Loaded L"C:\\windows\\Microsoft.NET\\Framework\\v4.0.30319\\mscorsvw.exe" at 0x10000000: native trace:loaddll:load_native_dll Loaded L"C:\\windows\\system32\\MSVCR100_CLR0400.dll" at 0x79060000: native trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\advapi32.dll" at 0x7eb50000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\gdi32.dll" at 0x7e8f0000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\version.dll" at 0x7eff0000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\user32.dll" at 0x7ea10000: builtin trace:loaddll:load_native_dll Loaded L"C:\\windows\\system32\\mscoree.dll" at 0x79000000: native trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\rpcrt4.dll" at 0x7e730000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\ole32.dll" at 0x7e7c0000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\oleaut32.dll" at 0x7e610000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\imm32.dll" at 0x7dfc0000: builtin trace:loaddll:load_builtin_dll Loaded L"KERNEL32.dll" at 0x7b810000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\explorer.exe" at 0x7eb90000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\advapi32.dll" at 0x7eaa0000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\rpcrt4.dll" at 0x7eb20000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\gdi32.dll" at 0x7e840000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\version.dll" at 0x7eff0000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\user32.dll" at 0x7e960000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\imm32.dll" at 0x7e340000: builtin fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub fixme:process:SetProcessDEPPolicy (1): stub fixme:heap:RtlSetHeapInformation (nil) 1 (nil) 0 stub trace:loaddll:load_builtin_dll Loaded L"KERNEL32.dll" at 0x7b810000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\winedevice.exe" at 0x7eff0000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\advapi32.dll" at 0x7eb60000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\ntoskrnl.exe" at 0x7eb10000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\rpcrt4.dll" at 0x7ea90000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\mountmgr.sys" at 0x7ea70000: builtin trace:loaddll:load_builtin_dll Loaded L"KERNEL32.dll" at 0x7b810000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\plugplay.exe" at 0x7eff0000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\advapi32.dll" at 0x7eb60000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\rpcrt4.dll" at 0x7eae0000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\gdi32.dll" at 0x7e640000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\version.dll" at 0x7e610000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\user32.dll" at 0x7e760000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\shlwapi.dll" at 0x7e8a0000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\shell32.dll" at 0x7e920000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\gdi32.dll" at 0x7e1a0000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\version.dll" at 0x7ea60000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\user32.dll" at 0x7e2c0000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\imm32.dll" at 0x7e570000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\winex11.drv" at 0x7e4f0000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\shlwapi.dll" at 0x7e010000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\shell32.dll" at 0x7e090000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\ole32.dll" at 0x7dee0000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\oleaut32.dll" at 0x7dab0000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\actxprxy.dll" at 0x7dbf0000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\winex11.drv" at 0x7df40000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\imm32.dll" at 0x7e350000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\rpcrt4.dll" at 0x7e1a0000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\ole32.dll" at 0x7e220000: builtin trace:loaddll:load_native_dll Loaded L"C:\\Program Files\\ProteoWizard\\ProteoWizard 3.0.9870\\msconvert.exe" at 0x400000: native trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\advapi32.dll" at 0x7ea30000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\gdi32.dll" at 0x7e7d0000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\version.dll" at 0x7eff0000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\user32.dll" at 0x7e8f0000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\rpcrt4.dll" at 0x7e750000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\ole32.dll" at 0x7eab0000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\oleaut32.dll" at 0x7e620000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\shlwapi.dll" at 0x7e370000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\shell32.dll" at 0x7e3e0000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\msvcr110.dll" at 0x7e1a0000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\msvcp110.dll" at 0x7e290000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\vcomp110.dll" at 0x7e170000: builtin trace:loaddll:free_modref Unloaded module L"C:\\windows\\system32\\vcomp110.dll" : builtin trace:loaddll:load_native_dll Loaded L"C:\\windows\\system32\\VCOMP110.DLL" at 0x340000: native trace:loaddll:load_native_dll Loaded L"C:\\Program Files\\ProteoWizard\\ProteoWizard 3.0.9870\\baf2sql_c.dll" at 0x10000000: native trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\msvcr120.dll" at 0x7dfc0000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\msvcp120.dll" at 0x7e0b0000: builtin trace:loaddll:load_native_dll Loaded L"C:\\Program Files\\ProteoWizard\\ProteoWizard 3.0.9870\\cdt.dll" at 0x360000: native trace:loaddll:load_native_dll Loaded L"C:\\Program Files\\ProteoWizard\\ProteoWizard 3.0.9870\\MassLynxRaw.dll" at 0x390000: native trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\ws2_32.dll" at 0x7df70000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\jsproxy.dll" at 0x7df10000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\winhttp.dll" at 0x7df30000: builtin trace:loaddll:load_native_dll Loaded L"C:\\Program Files\\ProteoWizard\\ProteoWizard 3.0.9870\\msparser.dll" at 0x65000000: native trace:loaddll:load_native_dll Loaded L"C:\\windows\\system32\\mscoree.dll" at 0x79000000: native trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\imm32.dll" at 0x7dfa0000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\imm32.dll" at 0x7dc10000: builtin trace:loaddll:load_native_dll Loaded L"C:\\windows\\Microsoft.NET\\Framework\\v4.0.30319\\mscoreei.dll" at 0x603b0000: native trace:loaddll:load_native_dll Loaded L"C:\\windows\\system32\\MSVCR100_CLR0400.dll" at 0x79060000: native trace:loaddll:load_native_dll Loaded L"C:\\windows\\Microsoft.NET\\Framework\\v4.0.30319\\clr.dll" at 0x79140000: native fixme:thread:SetThreadStackGuarantee (0x33fbe4): stub trace:loaddll:load_native_dll Loaded L"C:\\windows\\Microsoft.NET\\Framework\\v4.0.30319\\clrjit.dll" at 0x79810000: native trace:loaddll:load_native_dll Loaded L"C:\\windows\\Microsoft.NET\\Framework\\v4.0.30319\\culture.dll" at 0x60340000: native trace:loaddll:load_native_dll Loaded L"C:\\windows\\Microsoft.NET\\Framework\\v4.0.30319\\nlssorting.dll" at 0x60930000: native fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0x33e790 1 C) semi-stub fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0x33e2a8 1 C) semi-stub fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0x33dd64 1 C) semi-stub fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0x33ddf4 1 C) semi-stub fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0x33dc34 1 C) semi-stub fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0x33eebc 1 C) semi-stub fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0x33ee64 1 C) semi-stub fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0x33e668 1 C) semi-stub fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0x33e4a8 1 C) semi-stub format: mzML m/z: Compression-None, 64-bit intensity: Compression-None, 32-bit rt: Compression-None, 64-bit ByteOrder_LittleEndian indexed="true" outputPath: . extension: .mzML contactFilename: filters: filenames: /tmp/thermo.raw processing file: /tmp/thermo.raw fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0x33eb18 1 C) semi-stub err:ole:CoInitializeEx Attempt to change threading model of this apartment from multi-threaded to apartment threaded trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\winex11.drv" at 0x7da80000: builtin trace:loaddll:load_native_dll Loaded L"C:\\windows\\winsxs\\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.1_x-ww_6f74963e\\MSVCR90.dll" at 0x78520000: native trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\comctl32.dll" at 0x7d760000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\msimg32.dll" at 0x7d740000: builtin trace:loaddll:load_native_dll Loaded L"C:\\windows\\winsxs\\x86_Microsoft.VC90.MFC_1fc8b3b9a1e18e3b_9.0.30729.1_x-ww_405b0943\\mfc90u.dll" at 0x789e0000: native trace:loaddll:load_native_dll Loaded L"C:\\Program Files\\ProteoWizard\\ProteoWizard 3.0.9870\\fregistry.dll" at 0x44f0000: native trace:loaddll:load_native_dll Loaded L"C:\\windows\\winsxs\\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.1_x-ww_6f74963e\\MSVCP90.dll" at 0x78480000: native trace:loaddll:load_native_dll Loaded L"C:\\Program Files\\ProteoWizard\\ProteoWizard 3.0.9870\\fileio.dll" at 0x4380000: native trace:loaddll:load_native_dll Loaded L"C:\\Program Files\\ProteoWizard\\ProteoWizard 3.0.9870\\MSFileReader.XRawfile2.dll" at 0x4340000: native trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\uxtheme.dll" at 0x7d710000: builtin trace:loaddll:load_builtin_dll Loaded L"C:\\windows\\system32\\dwmapi.dll" at 0x7d6f0000: builtin fixme:appbar:handle_appbarmessage SHAppBarMessage(ABM_GETAUTOHIDEBAR, hwnd=(nil), edge=3): stub fixme:appbar:handle_appbarmessage SHAppBarMessage(ABM_GETAUTOHIDEBAR, hwnd=(nil), edge=1): stub fixme:appbar:handle_appbarmessage SHAppBarMessage(ABM_GETAUTOHIDEBAR, hwnd=(nil), edge=0): stub fixme:appbar:handle_appbarmessage SHAppBarMessage(ABM_GETAUTOHIDEBAR, hwnd=(nil), edge=2): stub err:ole:marshal_object Failed to create an IRpcStubBuffer from IPSFactory for {00000126-0000-0000-c000-000000000046} with error 0x80004002 err:ole:ClientIdentity_QueryMultipleInterfaces IRemUnknown_RemQueryInterface failed with error 0x80004002 fixme:ntdll:NtLockFile I/O completion on lock not implemented yet fixme:msvcp:_Locinfo__Locinfo_ctor_cat_cstr (0x33e674 1 C) semi-stub writing output file: .\thermo.mzML err:ole:ClientRpcChannelBuffer_SendReceive called from wrong apartment, should have been 0x80000cafe err:ole:xCall RpcChannelBuffer SendReceive failed, 8001010e [SpectrumWorkerThreads::work] error in thread: [SpectrumList_Thermo::spectrum()] Error setting controller to: 0,1 ([ThermoRawFile] [RawFileImpl::setCurrentController()] Failed call to XRawfile: Unknown error 0x8001010E) err:ole:ClientRpcChannelBuffer_SendReceive called from wrong apartment, should have been 0x80000cafe err:ole:xCall RpcChannelBuffer SendReceive failed, 8001010e [SpectrumWorkerThreads::work] error in thread: [SpectrumList_Thermo::spectrum()] Error setting controller to: 0,1 ([ThermoRawFile] [RawFileImpl::setCurrentController()] Failed call to XRawfile: Unknown error 0x8001010E) err:ole:ClientRpcChannelBuffer_SendReceive called from wrong apartment, should have been 0x80000cafe err:ole:xCall RpcChannelBuffer SendReceive failed, 8001010e [SpectrumWorkerThreads::work] error in thread: [SpectrumList_Thermo::spectrum()] Error setting controller to: 0,1 ([ThermoRawFile] [RawFileImpl::setCurrentController()] Failed call to XRawfile: Unknown error 0x8001010E) err:ole:ClientRpcChannelBuffer_SendReceive called from wrong apartment, should have been 0x80000cafe err:ole:xCall RpcChannelBuffer SendReceive failed, 8001010e [SpectrumWorkerThreads::work] error in thread: [SpectrumList_Thermo::spectrum()] Error setting controller to: 0,1 ([ThermoRawFile] [RawFileImpl::setCurrentController()] Failed call to XRawfile: Unknown error 0x8001010E) --------------------------------------------------------------------------- -- IPB Halle AG Massenspektrometrie & Bioinformatik Dr. Steffen Neumann http://www.IPB-Halle.DE Weinberg 3 Tel. +49 (0) 345 5582 - 1470 06120 Halle +49 (0) 345 5582 - 0 sneumann(at)IPB-Halle.DE Fax. +49 (0) 345 5582 - 1409