[Bug 48499] New: eSowa 3.x (.NET 4.x app) fails to run with Wine-Mono ('System.InvalidProgramException: Invalid IL code')

WineHQ Bugzilla wine-bugs at winehq.org
Wed Jan 22 18:23:09 CST 2020


https://bugs.winehq.org/show_bug.cgi?id=48499

            Bug ID: 48499
           Summary: eSowa 3.x (.NET 4.x app) fails to run with Wine-Mono
                    ('System.InvalidProgramException: Invalid IL code')
           Product: Wine
           Version: 5.0
          Hardware: x86-64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mscoree
          Assignee: wine-bugs at winehq.org
          Reporter: focht at gmx.net
      Distribution: ---

Hello folks,

reported by a user in IRC #winehq

Vendor site (Polish):

https://e-sowa.com/pl/o-programie

Google translate:

--- quote ---
The eSOWA program is a comprehensive solution for servicing a workshop, car
shop, warehouse or tire store. On a daily basis, it is used in hundreds of
garages and automotive stores throughout Poland (and not only!)
--- quote ---

Snapshot via Internet Archive:

https://web.archive.org/web/20200122215502/https://cdn.intercars.eu/files/esowa/eSowaSetup.exe

--- snip ---
$ pwd
/home/focht/.wine/drive_c/Program Files (x86)/eSOWA

$ tree --charset=ANSI
.
|-- AForge.dll
|-- AForge.Video.DirectShow.dll
|-- AForge.Video.dll
|-- AxInterop.THERMALLIBLib.dll
|-- BarcodeLib.dll
|-- BarcodeScanner.dll
|-- brother
|   |-- adres_magazynowy.lbx
|   |-- karta_przechowalni.lbx
|   |-- kod_na_towar.lbx
|   |-- kontrahent_adres.lbx
|   |-- pracownik.lbx
|   |-- towar_duza.lbx
|   |-- towar_mala.lbx
|   `-- zlecenie_mala.lbx
|-- Dapper.dll
|-- DevExpress.BonusSkins.v15.2.dll
|-- DevExpress.Charts.v15.2.Core.dll
|-- DevExpress.DataAccess.v15.2.dll
|-- DevExpress.Data.v15.2.dll
|-- DevExpress.Office.v15.2.Core.dll
|-- DevExpress.PivotGrid.v15.2.Core.dll
|-- DevExpress.Printing.v15.2.Core.dll
|-- DevExpress.RichEdit.v15.2.Core.dll
|-- DevExpress.Sparkline.v15.2.Core.dll
|-- DevExpress.Utils.v15.2.dll
|-- DevExpress.Utils.v15.2.UI.dll
|-- DevExpress.Xpo.v15.2.dll
|-- DevExpress.XtraBars.v15.2.dll
|-- DevExpress.XtraCharts.v15.2.dll
|-- DevExpress.XtraEditors.v15.2.dll
|-- DevExpress.XtraGauges.v15.2.Core.dll
|-- DevExpress.XtraGrid.v15.2.dll
|-- DevExpress.XtraLayout.v15.2.dll
|-- DevExpress.XtraPrinting.v15.2.dll
|-- DevExpress.XtraReports.v15.2.dll
|-- DevExpress.XtraReports.v15.2.Extensions.dll
|-- DevExpress.XtraRichEdit.v15.2.dll
|-- DevExpress.XtraScheduler.v15.2.Core.dll
|-- DevExpress.XtraScheduler.v15.2.dll
|-- DevExpress.XtraTreeList.v15.2.dll
|-- elzabdr.dll
|-- ElzabDrv.dll
|-- eSOWA.ico
|-- Fiskarka.dll
|-- ICSklepDBUpdater.exe
|-- ICSklep.exe
|-- ICSklep.exe.config
|-- ICSklep.Reports.dll
|-- ICSklep.Shared.dll
|-- ICSklep.Wydruki.dll
|-- IC.Tools.dll
|-- IC.Visual.dll
|-- Interop.OICFiscalPrinterLib.dll
|-- Interop.THERMALLIBLib.dll
|-- Ionic.Zip.dll
|-- JPKFa.dll
|-- JPKMag.dll
|-- Labeler.dll
|-- LiczbyNaSlowaNET.dll
|-- Microsoft.ApplicationBlocks.Data.dll
|-- Microsoft.Threading.Tasks.dll
|-- Microsoft.Threading.Tasks.Extensions.Desktop.dll
|-- Microsoft.Threading.Tasks.Extensions.dll
|-- Microsoft.Win32.TaskScheduler.dll
|-- msvcr71.dll
|-- Newtonsoft.Json.dll
|-- OICFiscalPrinterLib.ocx
|-- pl
|   |-- DevExpress.XtraScheduler.v15.2.Core.resources.dll
|   `-- DevExpress.XtraScheduler.v15.2.resources.dll
|-- plugin_ksiegowosc.dll
|-- PomocZdalna.exe
|-- ReceiptPrinter.dll
|-- ReceiptPrinter_nat.dll
|-- RemoteBillPrinter.exe
|-- System.IO.dll
|-- System.Runtime.dll
|-- System.Threading.Tasks.dll
|-- System.Windows.Forms.Themes.dll
|-- ThermalLib.ocx
|-- Thermal.NET.dll
|-- ThermalPrinter.dll
|-- unins000.dat
|-- unins000.exe
`-- zxing.dll

2 directories, 84 files
--- snip ---

--- snip ---
$ WINE_MONO_TRACE=program,assembly,wrapper wine ./ICSklep.exe

0009:fixme:mscoree:parse_startup useLegacyV2RuntimeActivationPolicy=L"true" not
implemented
0009:fixme:mscoree:parse_startup useLegacyV2RuntimeActivationPolicy=L"true" not
implemented
Unknown heap type: #GUlD

Unknown heap type: #Blop

[00000009: 0.00000 0] ENTER: <Module>:.cctor ()()
[00000009: 0.00035 1] ENTER: <Module>:mmYVUWQF9TSgerjM7L ()()
[00000009: 0.00095 2] ENTER: pmKtkE6jq0ABkxP2ns.pEjfuOfpXERI4rArWm:.cctor ()()
[00000009: 0.00233 2] LEAVE: pmKtkE6jq0ABkxP2ns.pEjfuOfpXERI4rArWm:.cctor ()
[00000009: 0.00242 2] ENTER:
pmKtkE6jq0ABkxP2ns.pEjfuOfpXERI4rArWm:lLHifFIsCLsZtjvFfN0i ()()
[00000009: 0.00257 3] ENTER:
pmKtkE6jq0ABkxP2ns.pEjfuOfpXERI4rArWm:tCPuP1wMNqNfmgdXgOUS ()()
[00000009: 0.00302 4] ENTER: (wrapper managed-to-native)
System.AppDomain:getCurDomain ()()
[00000009: 0.00311 4] LEAVE: (wrapper managed-to-native)
System.AppDomain:getCurDomain ()[System.AppDomain:042B4120]
[00000009: 0.00317 3] LEAVE:
pmKtkE6jq0ABkxP2ns.pEjfuOfpXERI4rArWm:tCPuP1wMNqNfmgdXgOUS
()[System.AppDomain:042B4120]
[00000009: 0.00343 3] ENTER:
pmKtkE6jq0ABkxP2ns.pEjfuOfpXERI4rArWm:or1NDPwMtRrJOADN8Yda
(object,object)([System.AppDomain:042B4120],
[System.ResolveEventHandler:03000428], )
[00000009: 0.00394 3] LEAVE:
pmKtkE6jq0ABkxP2ns.pEjfuOfpXERI4rArWm:or1NDPwMtRrJOADN8Yda (object,object)
[00000009: 0.00399 2] LEAVE:
pmKtkE6jq0ABkxP2ns.pEjfuOfpXERI4rArWm:lLHifFIsCLsZtjvFfN0i ()
[00000009: 0.00404 1] LEAVE: <Module>:mmYVUWQF9TSgerjM7L ()
[00000009: 0.00410 0] LEAVE: <Module>:.cctor ()
[00000009: 0.00498 0] ENTER:
<PrivateImplementationDetails>{B071721A-CBFB-46A7-A51C-C20A4F77E1D5}:.cctor
()()
[00000009: 0.00505 1] ENTER:
pmKtkE6jq0ABkxP2ns.pEjfuOfpXERI4rArWm:lLHifFIsCLsZtjvFfN0i ()()
[00000009: 0.00514 1] LEAVE:
pmKtkE6jq0ABkxP2ns.pEjfuOfpXERI4rArWm:lLHifFIsCLsZtjvFfN0i ()
[00000009:] EXCEPTION handling: System.InvalidProgramException: Invalid IL code
in btFy13pd5uf4WC4h18.kgbOBx7BanbFa22Hp9:CcHZl53jD (): IL_005b: call     
0x0600ff32
...
Unhandled Exception:
System.TypeInitializationException: The type initializer for
'<PrivateImplementationDetails>{B071721A-CBFB-46A7-A51C-C20A4F77E1D5}' threw an
exception. ---> System.InvalidProgramException: Invalid IL code in
btFy13pd5uf4WC4h18.kgbOBx7BanbFa22Hp9:CcHZl53jD (): IL_005b: call     
0x0600ff32

  at
<PrivateImplementationDetails>{B071721A-CBFB-46A7-A51C-C20A4F77E1D5}..cctor ()
[0x00005] in <792269a2804b491987265fa5a39b6813>:0 
   --- End of inner exception stack trace ---
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type
initializer for
'<PrivateImplementationDetails>{B071721A-CBFB-46A7-A51C-C20A4F77E1D5}' threw an
exception. ---> System.InvalidProgramException: Invalid IL code in
btFy13pd5uf4WC4h18.kgbOBx7BanbFa22Hp9:CcHZl53jD (): IL_005b: call     
0x0600ff32

  at
<PrivateImplementationDetails>{B071721A-CBFB-46A7-A51C-C20A4F77E1D5}..cctor ()
[0x00005] in <792269a2804b491987265fa5a39b6813>:0 
   --- End of inner exception stack trace ---

--- snip ---

Likely a dupe of existing obfuscation/invalid IL code bugs
(https://bugs.winehq.org/buglist.cgi?quicksearch=System.InvalidProgramException)
but since no one bothers to classify them more closely, creating another one.

Can be worked around by using native .NET Frameworks.

$ sha1sum eSowaSetup.exe 
29317e30ae1b9b044e5c667f6feb2af028816123  eSowaSetup.exe

$ du -sh eSowaSetup.exe 
72M    eSowaSetup.exe

$ wine --version
wine-5.0

Regards

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