http://bugs.winehq.org/show_bug.cgi?id=35374
Bug ID: 35374 Summary: unimplemented function mscoree.dll.CLRCreateInstance Product: Wine Version: 1.7.10 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: mscoree Assignee: wine-bugs@winehq.org Reporter: denis.bonnenfant@diderot.org Classification: Unclassified
Created attachment 47177 --> http://bugs.winehq.org/attachment.cgi?id=47177 backtrace
SolidWorks 2013 32bits crashes with :
Unimplemented function mscoree.dll.CLRCreateInstance called at address 0x7bc54010
vcrun2008, vcrun2010, dotnet35 and dotnet40 are installed with winetricks, as they are normal prerequisites even in windows.
mscoree is configured as native
http://bugs.winehq.org/show_bug.cgi?id=35374
Vincent Povirk madewokherd@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |dotnet Component|mscoree |-unknown
--- Comment #1 from Vincent Povirk madewokherd@gmail.com --- Backtrace shows native mscoree is used, so component can't be mscoree.
http://bugs.winehq.org/show_bug.cgi?id=35374
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW CC| |focht@gmx.net Component|-unknown |msi Summary|unimplemented function |SolidWorks 2013 fails to |mscoree.dll.CLRCreateInstan |setup CLR 4.0 hosting, |ce |complains about | |unimplemented function | |mscoree.dll.CLRCreateInstan | |ce (.NET 3.x mscoree.dll | |not updated/replaced by | |.NET 4.0 installer) Ever confirmed|0 |1
--- Comment #2 from Anastasius Focht focht@gmx.net --- Hello denis,
this is the result of having both .NET Frameworks, 3.5 and 4.0 installed into same WINEPREFIX.
CLRCreateInstance() is only available from CLR 4.0 or higher so this error is kind of expected if the native 'mscoree.dll' is from .NET 3.x installation.
The proper way for application code to determine/request the correct CLR would be:
1) load 'mscoree' dynamically 2) GetProcAddress() of 'CLRCreateInstance' -> if NULL, fall back to legacy path (CorBindToRuntimeEx) -> if non-NULL, call CLRCreateInstance() to get ICLRMetaHost -> if E_NOTIMPL, fall back to legacy path (CorBindToRuntimeEx)
Apparently the app wants CLR 4.x hosting and hard-binds to CLRCreateInstance() (unsafe).
You could try to reverse the .NET Framework installation order to have CLR 4.0 mscoree: -> .NET 4.0 first and then .NET 3.x
There might be some dialog boxes during install, stating 'failed to load requested runtime'. You can dismiss them.
Regards
http://bugs.winehq.org/show_bug.cgi?id=35374
--- Comment #3 from denis bonnenfant denis.bonnenfant@diderot.org --- OK, thanks for the explanation.
I ran the installer on a fresh wineprefix, with winetricks vcrun2008 vcrun2010 dotnet40 dotnet35.
Now I have a crash in regasm.exe at the end of installation :
err:eventlog:ReportEventW L"Application: RegAsm.exe\nFramework Version: v4.0.30319\nDescription: The process was terminated due to an unhandled exception.\nException Info: System.ArgumentException\nStack:\n at System.Threading.Thread.nativeSetThreadUILocale(System.String)\n at System.Threading.Thread.set_CurrentUICulture(Sy"... fixme:advapi:DeregisterEventSource (0xcafe4242) stub
Unhandled Exception: System.ArgumentException: Exception from HRESULT: 0x80070057 (E_INVALIDARG) at System.Threading.Thread.nativeSetThreadUILocale(String locale) at System.Threading.Thread.set_CurrentUICulture(CultureInfo value) at Microsoft.Tools.RegAsm.RegAsm.SetConsoleUI() at Microsoft.Tools.RegAsm.RegAsm.Main(String[] aArgs) wine: Unhandled exception 0xe0434352 in thread c6 at address 0x7b83a8fe (thread 00c6), starting debugger...
When starting Solidworks, it doesn't crash anymore, but loops infinitely on splash screen with message "loading registry..." I guess that it is related that installation doesn't complete.
http://bugs.winehq.org/show_bug.cgi?id=35374
--- Comment #4 from denis bonnenfant denis.bonnenfant@diderot.org --- Created attachment 47187 --> http://bugs.winehq.org/attachment.cgi?id=47187 regasm backtrace during installation
http://bugs.winehq.org/show_bug.cgi?id=35374
--- Comment #5 from denis bonnenfant denis.bonnenfant@diderot.org --- After few secons the application crash, with this error :
err:eventlog:ReportEventW L".NET Runtime version 4.0.30319.1 - There was a failure initializing profiling API attach infrastructure. This process will not allow a profiler to attach. HRESULT: 0x800706a9. Process ID (decimal): 92. Message ID: [0x2509]."
The application generates its own backtrace :
http://bugs.winehq.org/show_bug.cgi?id=35374
--- Comment #6 from denis bonnenfant denis.bonnenfant@diderot.org --- Created attachment 47188 --> http://bugs.winehq.org/attachment.cgi?id=47188 solidworks crash log
https://bugs.winehq.org/show_bug.cgi?id=35374
--- Comment #7 from denis bonnenfant denis.bonnenfant@diderot.org --- This bug is still present in 1.7.29 with SW2014 with winetrick dotnet40, but hopefully there is a simple workaround : just set winver=winxp
https://bugs.winehq.org/show_bug.cgi?id=35374
Sylvain Petreolle spetreolle@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |spetreolle@yahoo.fr
https://bugs.winehq.org/show_bug.cgi?id=35374
Ben Shefte shefben@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |shefben@gmail.com