https://bugs.winehq.org/show_bug.cgi?id=49801
Bug ID: 49801 Summary: Freight Yard Manager: Crashes on start Product: Wine Version: 5.15 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: blue@blu3wolf.com Distribution: ---
Created attachment 68114 --> https://bugs.winehq.org/attachment.cgi?id=68114 exception text
On running, Freight Yard Manager V5.9.17 (and all previous versions tested) throws an unhandled System.InvalidProgramException: Invalid IL code. This does not happen on any tested Windows system.
https://bugs.winehq.org/show_bug.cgi?id=49801
--- Comment #1 from blue@blu3wolf.com --- Created attachment 68115 --> https://bugs.winehq.org/attachment.cgi?id=68115 console output
https://bugs.winehq.org/show_bug.cgi?id=49801
blue@blu3wolf.com changed:
What |Removed |Added ---------------------------------------------------------------------------- URL| |https://www.fymanager.com/f | |iles/FYMInstaller_V5.9.17.m | |si
https://bugs.winehq.org/show_bug.cgi?id=49801
--- Comment #2 from blue@blu3wolf.com --- Installer can be downloaded from https://www.fymanager.com/files/FYMInstaller_V5.9.17.msi and has sha1sum of 6623dddb0742e9ace75f751d045851493be35002
https://bugs.winehq.org/show_bug.cgi?id=49801
blue@blu3wolf.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download
https://bugs.winehq.org/show_bug.cgi?id=49801
joaopa jeremielapuree@yahoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jeremielapuree@yahoo.fr
--- Comment #3 from joaopa jeremielapuree@yahoo.fr --- Did you install dotnet45?
https://bugs.winehq.org/show_bug.cgi?id=49801
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |z.figura12@gmail.com Component|-unknown |mscoree Summary|Freight Yard Manager: |Freight Yard Manager |Crashes on start |crashes on start with | |wine-mono
--- Comment #4 from Zebediah Figura z.figura12@gmail.com --- (In reply to joaopa from comment #3)
Did you install dotnet45?
The bug is against wine-mono.
https://bugs.winehq.org/show_bug.cgi?id=49801
--- Comment #5 from blue@blu3wolf.com --- installing dotnet472 solves this issue (likely dotnet45 would work). It has a few other issues in that case. The advice I got on irc was to log a bug and it was suggested that I might log a separate bug for the issues experienced without dotnet.
To clarify, the above behavior is experienced when not using dotnet.
https://bugs.winehq.org/show_bug.cgi?id=49801
--- Comment #6 from Esme Povirk madewokherd@gmail.com --- The IL code in question adds a constant integer to the stack with ldc.i4.0, then attempts to use that as an "out" parameter.
https://bugs.winehq.org/show_bug.cgi?id=49801
--- Comment #7 from Esme Povirk madewokherd@gmail.com --- If I comment out the calls to check_call_signature, it gets further, now failing to convert "&H0" to in integer in Microsoft.VisualBasic.CompilerServices.IntegerType.FromString.
The &H format denotes a hex literal in Visual Basic, so it's entirely reasonable to expect this to work.
https://bugs.winehq.org/show_bug.cgi?id=49801
--- Comment #8 from Esme Povirk madewokherd@gmail.com --- With FromString hacked to accept this, it starts. Attaching work-around patches.
https://bugs.winehq.org/show_bug.cgi?id=49801
--- Comment #9 from Esme Povirk madewokherd@gmail.com --- Created attachment 68136 --> https://bugs.winehq.org/attachment.cgi?id=68136 work-around patch for mono/ tree
https://bugs.winehq.org/show_bug.cgi?id=49801
--- Comment #10 from Esme Povirk madewokherd@gmail.com --- Created attachment 68137 --> https://bugs.winehq.org/attachment.cgi?id=68137 work-around patch for mono-basic/ tree
https://bugs.winehq.org/show_bug.cgi?id=49801
--- Comment #11 from Esme Povirk madewokherd@gmail.com --- This is now working using a Wine Mono build from the master branch, and the fixes will be included in the next release.
https://bugs.winehq.org/show_bug.cgi?id=49801
blue@blu3wolf.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|UNCONFIRMED |RESOLVED
--- Comment #12 from blue@blu3wolf.com --- Program no longer crashes at this point on Wine 5.22.
Has another crash after this point, but unrelated to this one.
https://bugs.winehq.org/show_bug.cgi?id=49801
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |focht@gmx.net URL|https://www.fymanager.com/f |https://web.archive.org/web |iles/FYMInstaller_V5.9.17.m |/20210116105955/https://www |si |.fymanager.com/files/FYMIns | |taller_V5.10.7.msi Summary|Freight Yard Manager |Freight Yard Manager 5.x |crashes on start with |crashes on start with |wine-mono |wine-mono Status|RESOLVED |REOPENED Resolution|FIXED |--- Ever confirmed|0 |1
--- Comment #13 from Anastasius Focht focht@gmx.net --- Hello folks,
--- quote --- Program no longer crashes at this point on Wine 5.22.
Has another crash after this point, but unrelated to this one. --- quote ---
I doubt that. It sill crashes in same way:
--- snip --- $ pwd /home/focht/.wine/drive_c/FYM
$ wine ./FYManager.exe ... System.InvalidProgramException: Invalid IL code in Microsoft.DirectX.Direct3D.Manager:CheckDeviceType (int,Microsoft.DirectX.Direct3D.DeviceType,Microsoft.DirectX.Direct3D.Format,Microsoft.DirectX.Direct3D.Format,bool): IL_0007: call 0x060005a6
at FYManager.F.FindGraphicsFormat () [0x001a4] in <20d87a5163c244ddaa726b5c9e76f1fc>:0 at FYManager.F.SetupFYM () [0x00261] in <20d87a5163c244ddaa726b5c9e76f1fc>:0 at FYManager.F.F_Load (System.Object sender, System.EventArgs e) [0x0016e] in <20d87a5163c244ddaa726b5c9e76f1fc>:0 at System.Windows.Forms.Form.OnLoad (System.EventArgs e) [0x000d1] in <4b7d326f792d4378bd436300c6961411>:0 at System.Windows.Forms.Form.OnCreateControl () [0x00031] in <4b7d326f792d4378bd436300c6961411>:0 at System.Windows.Forms.Control.CreateControl (System.Boolean fIgnoreVisible) [0x000ed] in <4b7d326f792d4378bd436300c6961411>:0 at System.Windows.Forms.Control.CreateControl () [0x00008] in <4b7d326f792d4378bd436300c6961411>:0 at System.Windows.Forms.Control.WmShowWindow (System.Windows.Forms.Message& m) [0x00051] in <4b7d326f792d4378bd436300c6961411>:0 at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x0071b] in <4b7d326f792d4378bd436300c6961411>:0 at System.Windows.Forms.ScrollableControl.WndProc (System.Windows.Forms.Message& m) [0x00043] in <4b7d326f792d4378bd436300c6961411>:0 at System.Windows.Forms.ContainerControl.WndProc (System.Windows.Forms.Message& m) [0x0001a] in <4b7d326f792d4378bd436300c6961411>:0 at System.Windows.Forms.Form.WmShowWindow (System.Windows.Forms.Message& m) [0x00013] in <4b7d326f792d4378bd436300c6961411>:0 at System.Windows.Forms.Form.WndProc (System.Windows.Forms.Message& m) [0x00290] in <4b7d326f792d4378bd436300c6961411>:0 at System.Windows.Forms.Control+ControlNativeWindow.OnMessage (System.Windows.Forms.Message& m) [0x00001] in <4b7d326f792d4378bd436300c6961411>:0 at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x000b3] in <4b7d326f792d4378bd436300c6961411>:0 at System.Windows.Forms.NativeWindow.Callback (System.Windows.Forms.Message& m) [0x00025] in <4b7d326f792d4378bd436300c6961411>:0 ... --- snip ----
Although the problems are fixed in Wine-Mono, it's not fixed in Wine. The changes were applied *after* Wine-Mono 5.1.1 release which is part of Wine 5.19 release. Wine didn't receive a new Wine-Mono update yet.
I couldn't find the first part of the "Invalid IL code" fixes in Wine-Mono (didn't search hard enough).
Esme's Mono-Basic fixes mentioned in comment #7 and comment #10
Mono-Basic fork:
* https://github.com/madewokherd/mono-basic/commit/609437d5b4550ba6a24388d7663... ("Support hex syntax in IntegerType.FromString.")
* https://github.com/madewokherd/mono-basic/commit/36284c53c6d7bb6256c36f4e56c... ("Extend hex FromString support to other numeric types.")
Superproject:
https://github.com/madewokherd/wine-mono/commit/454d9a850ac7b49498e0035a0eea... ("Add support for hex string conversions in mono-basic. ") -> mono-basic submodule update.
$ sha1sum FYMInstaller_V5.10.7.msi b8192a251721222071512b0f1f93782decbdf38b FYMInstaller_V5.10.7.msi
$ du -sh FYMInstaller_V5.10.7.msi 8.9M FYMInstaller_V5.10.7.msi
$ wine --version wine-6.0
Regards
https://bugs.winehq.org/show_bug.cgi?id=49801
Giacomo Orlandi gia_@inwind.it changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |gia_@inwind.it
--- Comment #14 from Giacomo Orlandi gia_@inwind.it --- (In reply to Esme Povirk from comment #11)
This is now working using a Wine Mono build from the master branch, and the fixes will be included in the next release.
Wine-mono was updated to version 6.0.0 in Wine 6.2 and then to 6.1.1, in Wine 6.6. Is this bug fixed now?
https://bugs.winehq.org/show_bug.cgi?id=49801
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |cae84e2b06fca691e3572d68a93 | |3a98b94962e16 Status|REOPENED |RESOLVED Resolution|--- |FIXED
--- Comment #15 from Anastasius Focht focht@gmx.net --- Hello folks,
this was fixed by commit https://source.winehq.org/git/wine.git/commitdiff/cae84e2b06fca691e3572d68a9... ("mscoree: Update Wine Mono to 6.0.0.").
Part of Wine 6.2 release.
Thanks Esme.
Still crashed with Wine 6.1 (= Wine-Mono 5.1.1) just to prove the point.
$ wine --version wine-6.2
Regards
https://bugs.winehq.org/show_bug.cgi?id=49801
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #16 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 6.10.