http://bugs.winehq.org/show_bug.cgi?id=37050
Bug ID: 37050 Summary: Wine and FreeSCAN.exe fails to load Product: Wine Version: 1.6.2 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: critical Priority: P2 Component: loader Assignee: wine-bugs@winehq.org Reporter: hd625b@gmail.com
Used Lunix Mint17 Terminal and Wine to run FreeSCAN.exe which threw the errors below. FreeSCAN.exe is from SixSpot Software.
hd625b@MyLunixMint17 ~ $ wine "/home/hd625b/.wine/drive_c/Program Files/FreeSCAN/FreeSCAN.exe"
Unhandled Exception: System.TypeLoadException: Could not load type 'FreeSCAN.lblSiteNote' from assembly 'FreeSCAN, Version=0.8.3.0, Culture=neutral, PublicKeyToken=null'. at FreeSCAN.My.MyProject+MyForms.get_lblSiteNote () [0x00000] in <filename unknown>:0 at FreeSCAN.My.MyApplication.OnCreateMainForm () [0x00000] in <filename unknown>:0 at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun () [0x00000] in <filename unknown>:0 at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run (System.String[] commandLine) [0x00000] in <filename unknown>:0 at FreeSCAN.My.MyApplication.Main (System.String[] Args) [0x00000] in <filename unknown>:0 [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: Could not load type 'FreeSCAN.lblSiteNote' from assembly 'FreeSCAN, Version=0.8.3.0, Culture=neutral, PublicKeyToken=null'. at FreeSCAN.My.MyProject+MyForms.get_lblSiteNote () [0x00000] in <filename unknown>:0 at FreeSCAN.My.MyApplication.OnCreateMainForm () [0x00000] in <filename unknown>:0 at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun () [0x00000] in <filename unknown>:0 at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run (System.String[] commandLine) [0x00000] in <filename unknown>:0 at FreeSCAN.My.MyApplication.Main (System.String[] Args) [0x00000] in <filename unknown>:0 hd625b@MyLunixMint17 ~ $
http://bugs.winehq.org/show_bug.cgi?id=37050
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW URL| |https://sites.google.com/si | |te/sixspotsoftware//downloa | |ds Keywords| |download Component|loader |mscoree CC| |focht@gmx.net Ever confirmed|0 |1 Summary|Wine and FreeSCAN.exe fails |FreeSCAN 2.17 (.NET 4.0 |to load |app) crashes on startup | |with Wine-Mono Severity|critical |normal
--- Comment #1 from Anastasius Focht focht@gmx.net --- Hello folks,
works fine here with 'winetricks -q dotnet40' in clean 32-bit WINEPREFIX.
Obviously a Wine-Mono bug.
$ sha1sum fssetup-217.zip 69da14a96fdba992edab431e2b19ee490e22ebdc fssetup-217.zip
$ du -sh fssetup-217.zip 1.6M fssetup-217.zip
$ wine --version wine-1.7.23-78-g4a6ce97
Regards
http://bugs.winehq.org/show_bug.cgi?id=37050
--- Comment #2 from Michael Long hd625b@gmail.com --- I duplicated the same problem on a Dell Inspiron 9300 32 bit laptop. I got the freescan installer to work with wine but the FreeSCAN.exe would not run.
https://bugs.winehq.org/show_bug.cgi?id=37050
--- Comment #3 from Vincent Povirk madewokherd@gmail.com --- trace:mscoree:mono_assembly_preload_hook_fn "Microsoft.VisualBasic.Compatibility, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
Seems we need a replacement for this assembly.
https://bugs.winehq.org/show_bug.cgi?id=37050
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |leslie_alistair@hotmail.com
https://bugs.winehq.org/show_bug.cgi?id=37050
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winetest@luukku.com
--- Comment #4 from winetest@luukku.com --- The application has been upgraded, but it still fails with wine-mono.
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualBasic.Compatibility, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
wine 1.9.21.
https://bugs.winehq.org/show_bug.cgi?id=37050
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4@web.de
--- Comment #5 from Fabian Maurer dark.shadow4@web.de --- FWIW, there is an old pullrequest to adress this issue: https://github.com/mono/mono/pull/1377 Maybe this could help, although I didn't manage to build the dll yet.
https://bugs.winehq.org/show_bug.cgi?id=37050
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|FreeSCAN 2.17 (.NET 4.0 |FreeSCAN 2.17 (.NET 4.0 |app) crashes on startup |app) crashes on startup |with Wine-Mono |with Wine-Mono (needs | |Microsoft.VisualBasic.Compa | |tibility) URL|https://sites.google.com/si |https://fd2b7c5e-a-62cb3a1a |te/sixspotsoftware//downloa |-s-sites.googlegroups.com/s |ds |ite/sixspotsoftware/fssetup | |-217.zip?attachauth=ANoY7cr | |Ak8V_r4BRD1RtGrJxqyo-W1mmWb | |Z-dxSd8iZKYHXtMhdfD8zhAKzrZ | |h_DOouKlaO7cssCQrUgl4bI1ELR | |7RBGTjJI7svIAG0c_v-fqFPxZuJ | |r2EdV-v3wy0gKIVI2aNMnIDvoFF | |VsUwLYS4N-B6cFlmugmQu4SrLkG | |L1VsKHCjDJ9knNCQfHlp6wwJlLx | |GobB8R4JjEzzlvhVpYPVExAw6oN | |HLg%3D%3D&attredirects=1
--- Comment #6 from Gijs Vermeulen gijsvrm@gmail.com --- Still present in wine-5.18-94-gd45b3d4fdd7 with wine-mono 5.1.1.
https://bugs.winehq.org/show_bug.cgi?id=37050
--- Comment #7 from Esme Povirk madewokherd@gmail.com --- We should check to see whether .NET Core has source code for this.
https://bugs.winehq.org/show_bug.cgi?id=37050
--- Comment #8 from Esme Povirk madewokherd@gmail.com --- This does not appear to exist in .NET Core. MSDN says it's obsolete.
I guess Alistair's library would be our best option.
https://bugs.winehq.org/show_bug.cgi?id=37050
--- Comment #9 from Esme Povirk madewokherd@gmail.com --- First thing it fails with is missing Microsoft.VisualBasic.Compatibility.VB6.LabelArray.
Apparently this implements some weird VB6 feature called a "control array": https://www.freetutes.com/learn-vb6/lesson11.html
There are a bunch of these: https://docs.microsoft.com/en-us/dotnet/api/microsoft.visualbasic.compatibil...
It's probably not too difficult to implement, but this is as far as I'm willing to go with this for now.
https://bugs.winehq.org/show_bug.cgi?id=37050
--- Comment #10 from Esme Povirk madewokherd@gmail.com --- Created attachment 68311 --> https://bugs.winehq.org/attachment.cgi?id=68311 Microsoft.VisualBasic.Compatibility patches
Here's Alistair's patches from the pull request, rebased onto mono master, in case anyone wants to pick this up.
I'm not convinced that Mono is the right place for this library, as that would prevent it from depending on any other VB libraries.
https://bugs.winehq.org/show_bug.cgi?id=37050
Esme Povirk madewokherd@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #68311|0 |1 is obsolete| |
--- Comment #11 from Esme Povirk madewokherd@gmail.com --- Created attachment 68312 --> https://bugs.winehq.org/attachment.cgi?id=68312 Microsoft.VisualBasic.Compatibility patches
Uh, it seems like that got mangled by Bugzilla somehow. Let's try that again.
https://bugs.winehq.org/show_bug.cgi?id=37050
Gijs Vermeulen gijsvrm@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch URL|https://fd2b7c5e-a-62cb3a1a |http://web.archive.org/web/ |-s-sites.googlegroups.com/s |20160722223218if_/https://f |ite/sixspotsoftware/fssetup |d2b7c5e-a-62cb3a1a-s-sites. |-217.zip?attachauth=ANoY7cr |googlegroups.com/site/sixsp |Ak8V_r4BRD1RtGrJxqyo-W1mmWb |otsoftware/fssetup-217.zip? |Z-dxSd8iZKYHXtMhdfD8zhAKzrZ |attachauth=ANoY7crAk8V_r4BR |h_DOouKlaO7cssCQrUgl4bI1ELR |D1RtGrJxqyo-W1mmWbZ-dxSd8iZ |7RBGTjJI7svIAG0c_v-fqFPxZuJ |KYHXtMhdfD8zhAKzrZh_DOouKla |r2EdV-v3wy0gKIVI2aNMnIDvoFF |O7cssCQrUgl4bI1ELR7RBGTjJI7 |VsUwLYS4N-B6cFlmugmQu4SrLkG |svIAG0c_v-fqFPxZuJr2EdV-v3w |L1VsKHCjDJ9knNCQfHlp6wwJlLx |y0gKIVI2aNMnIDvoFFVsUwLYS4N |GobB8R4JjEzzlvhVpYPVExAw6oN |-B6cFlmugmQu4SrLkGL1VsKHCjD |HLg%3D%3D&attredirects=1 |J9knNCQfHlp6wwJlLxGobB8R4Jj | |EzzlvhVpYPVExAw6oNHLg%3D%3D | |&attredirects=1
--- Comment #12 from Gijs Vermeulen gijsvrm@gmail.com --- Still present with wine-9.0rc2 & wine-mono-8.1.0.
Adding stable download that matches Comment #1.
https://bugs.winehq.org/show_bug.cgi?id=37050
--- Comment #13 from Esme Povirk madewokherd@gmail.com --- Taking another look.
It's going to have to be written in VB.NET, not C#, because of API's like this: https://learn.microsoft.com/en-us/dotnet/api/microsoft.visualbasic.compatibi... Yes, this library has properties that take arguments.
Also confirmed that this must reference Microsoft.VisualBasic.dll: https://learn.microsoft.com/en-us/dotnet/api/microsoft.visualbasic.compatibi...
https://bugs.winehq.org/show_bug.cgi?id=37050
--- Comment #14 from Esme Povirk madewokherd@gmail.com --- Started on the implementation. This program needs a lot of "control array" classes. I think we'll need to generate the code for those.
https://bugs.winehq.org/show_bug.cgi?id=37050
--- Comment #15 from Esme Povirk madewokherd@gmail.com --- Yep, there's actually not much in this library to implement. This is enough to get it running: https://github.com/madewokherd/wine-mono/commit/7c14e3b85f5580dc8d358cc5ef2c...
https://bugs.winehq.org/show_bug.cgi?id=37050
--- Comment #16 from Esme Povirk madewokherd@gmail.com --- A few methods referenced by the application in Microsoft.VisualBasic.Compatibility.VB6.Support are still missing: FontChangeBold, FontChangeName, FontChangeItalic, FontChangeUnderline, FontChangeSize GetItemString PixelsToTwipsX, PixelsToTwipsY, TwipsToPixelsX, TwipsToPixelsY
I haven't found the part of the application that tries to use these (and would thus crash on the missing methods). I can't test very well because I don't understand what the application does.
There's also an exception that comes up when hovering over toolbar items, with a System.Drawing error, possibly an issue with tooltips?
Anyway, is there someone who still cares about this application and can test further fixes? If not, I think I've reached the end of my motivation to work on it.
https://bugs.winehq.org/show_bug.cgi?id=37050
--- Comment #17 from Esme Povirk madewokherd@gmail.com --- My initial work on Microsoft.VisualBasic.Compatibility.dll is in Wine Mono 9.0.0 which was merged into Winehq as e891073c9eacc391cfa1bdb65e734922742c2c17. I'm not confident the bug is fixed, though, because the application references some unimplemented methods. So I'd appreciate if someone who knows how to use this program could retest with Wine Mono 9.0.0 (which will be in Wine 9.2).
https://bugs.winehq.org/show_bug.cgi?id=37050
Esme Povirk madewokherd@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |madewokherd@gmail.com