https://bugs.winehq.org/show_bug.cgi?id=50846
Bug ID: 50846 Summary: Enterprise Architect EA.Interop.DLL generate OLE/RPC error when accessing SQL databas (MySQL ODBC driver) Product: Wine Version: 6.4 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: comsvcs Assignee: wine-bugs@winehq.org Reporter: johannes.beisswenger@cetitec.com CC: bunglehead@gmail.com Regression SHA1: c9cc098ccd7f0cdb82b8e52d00c415042c5ff717 Distribution: ArchLinux
Created attachment 69656 --> https://bugs.winehq.org/attachment.cgi?id=69656 Log of failure
I have a C# program which uses the EA.Interop.dll(shipped with Enterprise Architect 14) for automating Enterprise Architect which generates the following error
0140:err:ole:get_stub_manager_from_ipid not found for ipid {00000006-0124-0120-b03d-2405ea237388} 0140:err:ole:dispatch_rpc no apartment found for ipid {00000006-0124-0120-b03d-2405ea237388} 013c:err:rpc:I_RpcReceive we got fault packet with status 0x80010108 0024:fixme:ole:NdrClearOutParameters (0032F0B4,001DF0FC,0032F800): stub
followed by a System.Runtime.InteropServices.COMException (0x80010108) which is (HRESULT RPC_E_DISCONNECTED).
The error only appears while using a SQL database and the Exception is thrown as soon as you access any object in the SQL backed project through Enterprise Architects COM interface.
Accessing the database through the Enterprise Architect GUI works as expected.
I bisected the issue to
#first bad commit: [c9cc098ccd7f0cdb82b8e52d00c415042c5ff717] comsvcs: Create MTA without initialization thread.
commit c9cc098ccd7f0cdb82b8e52d00c415042c5ff717 Author: Nikolay Sivov nsivov@codeweavers.com Date: Mon Oct 19 12:43:04 2020 +0300
comsvcs: Create MTA without initialization thread.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49679 Signed-off-by: Nikolay Sivov nsivov@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
Reverting the commit on master (wine-6.4) fixes the issue.
The prefix is a 32bit prefix with "winetricks msxml3 msxml4 msxml6 mdac28", mysql-connector-odbc-5.3.6, and Enterprise Architect 14.
https://bugs.winehq.org/show_bug.cgi?id=50846
Johannes Beisswenger johannes.beisswenger@cetitec.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |johannes.beisswenger@cetite | |c.com
--- Comment #1 from Johannes Beisswenger johannes.beisswenger@cetitec.com --- Created attachment 69657 --> https://bugs.winehq.org/attachment.cgi?id=69657 Log of succesfull program run with c9cc098 reverted.
https://bugs.winehq.org/show_bug.cgi?id=50846
Johannes Beisswenger johannes.beisswenger@cetitec.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression
https://bugs.winehq.org/show_bug.cgi?id=50846
Johannes Beisswenger johannes.beisswenger@cetitec.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Enterprise Architect |Enterprise Architect |EA.Interop.DLL generate |EA.Interop.DLL generates |OLE/RPC error when |OLE/RPC error when |accessing SQL databas |accessing SQL database |(MySQL ODBC driver) |(MySQL ODBC driver)
https://bugs.winehq.org/show_bug.cgi?id=50846
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|bunglehead@gmail.com |
https://bugs.winehq.org/show_bug.cgi?id=50846
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEEDINFO Ever confirmed|0 |1
--- Comment #2 from Nikolay Sivov bunglehead@gmail.com --- How can I test this? Could you provide a test program you mentioned in this report?
https://bugs.winehq.org/show_bug.cgi?id=50846
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Enterprise Architect |Enterprise Architect 14 |EA.Interop.DLL generates |EA.Interop.DLL generates |OLE/RPC error when |OLE/RPC error when |accessing SQL database |accessing SQL database |(MySQL ODBC driver) |(MySQL ODBC driver) URL| |https://web.archive.org/web | |/20181111164131/https://spa | |rxsystems.com/bin/easetup.m | |si Keywords| |download CC| |focht@gmx.net
--- Comment #3 from Anastasius Focht focht@gmx.net --- Hello folks,
adding stable download links for prerequisites via Internet Archive.
The C# test app (exe) has to be provided by OP (attachment).
===
Enterprise Architect 14.1 (trial)
https://web.archive.org/web/20181111164131/https://sparxsystems.com/bin/ease...
$ sha1sum easetup.msi fc0db7bcf154d4dc7ccf041ac3962d3edacaa8dc easetup.msi
$ du -sh easetup.msi 140M easetup.msi
--- snip --- $ find .wine/drive_c/ -iname "*interop*" -exec file {} ;
.wine/drive_c/Program Files (x86)/Sparx Systems/EA Trial/Interop.EA.dll: PE32 executable (DLL) (console) Intel 80386 Mono/.Net assembly, for MS Windows --- snip ---
===
https://dev.mysql.com/downloads/connector/odbc/5.3.html
32-bit:
https://web.archive.org/web/20210822111655/https://cdn.mysql.com//Downloads/...
$ sha1sum mysql-connector-odbc-5.3.14-win32.msi e070bfeccc5eac309d5a32417c910629224feb78 mysql-connector-odbc-5.3.14-win32.msi
$ du -sh mysql-connector-odbc-5.3.14-win32.msi 13M mysql-connector-odbc-5.3.14-win32.msi
Regards
https://bugs.winehq.org/show_bug.cgi?id=50846
--- Comment #4 from Johannes Beisswenger johannes.beisswenger@cetitec.com --- (In reply to Nikolay Sivov from comment #2)
How can I test this? Could you provide a test program you mentioned in this report?
Sorry I just returned from vacation. I'll get back to you about the test program on Monday.
https://bugs.winehq.org/show_bug.cgi?id=50846
--- Comment #5 from Johannes Beisswenger johannes.beisswenger@cetitec.com --- Created attachment 70561 --> https://bugs.winehq.org/attachment.cgi?id=70561 Demo program for reproducing the bug
The archive contains a script & instructions for installing Enterprise Architect and a demo program that dumps the package structure of a EA Database.
This demo program triggers the bug, (line 45 accessing the Models attribute of the EA database).
Note the Instructions were adapted from the original program and as such are a bit verbose...
https://bugs.winehq.org/show_bug.cgi?id=50846
--- Comment #6 from Nikolay Sivov bunglehead@gmail.com --- I don't know if it's a regression, but mysql-connector-odbc-5.3.14-win32.msi fails for me complaining about Visual Studio 2013 x86 redist missing.
https://bugs.winehq.org/show_bug.cgi?id=50846
--- Comment #7 from Nikolay Sivov bunglehead@gmail.com --- Looking at installer some more it has this:
LaunchCondition -> Installed OR VS12REDISTX86 AppSearch -> VS12REDISTX86 = FindRedistVS12 RegLocator -> FindRedistVS12, which is:
FindRedistVS12:2:SOFTWARE\Microsoft\VisualStudio\12.0\VC\Runtimes\x86:Version:2
However, with msvcr120/msvcp120 installed on Windows 10, I don't have this registry key, but installer does not complain. Maybe something to look at msi side.
https://bugs.winehq.org/show_bug.cgi?id=50846
--- Comment #8 from Nikolay Sivov bunglehead@gmail.com --- Ah, missed it, this key does exist on Windows, at wow6432node, we'll probably want to have it too.
https://bugs.winehq.org/show_bug.cgi?id=50846
--- Comment #9 from Nikolay Sivov bunglehead@gmail.com --- Johanness, please attach prebuilt binary of this demo too.
https://bugs.winehq.org/show_bug.cgi?id=50846
--- Comment #10 from Johannes Beisswenger johannes.beisswenger@cetitec.com --- Created attachment 70580 --> https://bugs.winehq.org/attachment.cgi?id=70580 Prebuilt Demo executable
Note: "Interop.EA.dll" not included. Copy "Interop.EA.dll" next to the .exe if it isn't found automatically.