Trying to get EDIS local to run under Wine

Questions about Wine on Linux
Locked
fuzzweed
Level 1
Level 1
Posts: 6
Joined: Thu Jan 24, 2013 2:23 am

Trying to get EDIS local to run under Wine

Post by fuzzweed »

Hi, I'm new to Linux and even newer to WIne so please be kind!
I have a small program caled EDIS that I use for work that I'm trying to run under Linux. I think it's basically a front end for a mdb database running with dotnet.
So far I have got it running by following the various web guides to get dotnet etc. installed, but there is one feature where it produces a 'report' from the database that crashes every time.
I has a dll called FastReport.dll that is mentioned in the first line of the windows JIT dubugging report, but I can't read any further down as the WIne crash handler appears over the top pretty much straight after.
Using this as a clue I have tried:
WINEDLLOVERRIDES="FastReport=n;FastReport.Editor=n" wine "c:\Program Files\EDIS Local\EDIS.exe"
To try and get Wine to use it's own dll, but no improvement, and I don'tknow where to look next.

Attached is a backtrace file and the terminal output. Hope someone can shed some light on the next step.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Trying to get EDIS local to run under Wine

Post by dimesio »

You forgot to attach the backtrace and terminal output.

You didn't mention what Wine version you're using; if it's not the latest development release, upgrade.
Using this as a clue I have tried:
WINEDLLOVERRIDES="FastReport=n;FastReport.Editor=n" wine "c:\Program Files\EDIS Local\EDIS.exe"
To try and get Wine to use it's own dll, but no improvement, and I don'tknow where to look next.
You are confused about how overrides work. Setting a dll to native tells Wine to use the Windows version, not the builtin version. If you want Wine to use its builtin dlls, you would set it to "b" not "n" in the command line. However, FastReport.dll is something installed by your app, and Wine does not have a builtin version of it, so setting it to builtin would just disable it.
fuzzweed
Level 1
Level 1
Posts: 6
Joined: Thu Jan 24, 2013 2:23 am

Re: Trying to get EDIS local to run under Wine

Post by fuzzweed »

Sorry, didn't notice it refused the txt extension on the uploads. Not entirely sure how zipping works on Linux either so I hope the attached contains everything it's supposed to.
I downloaded and installed wine from the Ubuntu software manger last night, so presume it's the latest????

Understand your comment regarding dlls. I'd thought built in meant Wine attempted to use it's own, and native meant use the one supplied by the app, but see that this is wrong.

Let me know if the files help identify the problem, or if there's any other logs or info I can provide.
Attachments
backtrace.tar.gz
(7.63 KiB) Downloaded 330 times
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Trying to get EDIS local to run under Wine

Post by dimesio »

fuzzweed wrote: I downloaded and installed wine from the Ubuntu software manger last night, so presume it's the latest????
Not necessarily. Open a terminal and type

Code: Select all

wine --version
The current development release is 1.5.22.
I'd thought built in meant Wine attempted to use it's own, and native meant use the one supplied by the app, but see that this is wrong.
That is what it means. Your original post said you were trying to get Wine to use its own dll, but the command you said you used would have set it to native. Perhaps that was just a typo.

Code: Select all

Unhandled Exception: System.TypeInitializationException: The type initializer for 'FastReport.Report' threw an exception. ---> System.OutOfMemoryException: Out of memory.
That's the error message about FastReport. The obvious question is, are you sure your system has enough memory to run this app? (I suspect yes, but I have to ask.)

Does setting gdiplus to native make any difference?
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Trying to get EDIS local to run under Wine

Post by dimesio »

One more thing: you said you installed dotnet. How exactly did you install it (should be with winetricks), and did you test the app at all with wine-mono before installing dotnet?
fuzzweed
Level 1
Level 1
Posts: 6
Joined: Thu Jan 24, 2013 2:23 am

Re: Trying to get EDIS local to run under Wine

Post by fuzzweed »

1) Have updated to wine 1.5 following these instrucitons http://www.winehq.org/download/ubuntu. Version reports correctly.
2) I think its fair to say I'm not really sure what I'm talking about when it comes to native dlls. Lets leave that to one side for now. Had a go, didn't work. Decided to ask for help.
3) The exe runs fine under win7 on the same machine so presume (?) memory limits aren't the problem. 2gig installed, although it's not a new or powerful laptop. Maybe Linux uses up more then windows????
4) Dotnet etc installed as follows.
sh winetricks mdac28
winetricks jet40
winetricks dotnet20
winetricks mono28
5) not sure how to test with wine mono rather than .net. As you can see I did install it following some web trawling, but couldn't really say if/how it's being used by wine.
6) Have entered this WINEDLLOVERRIDES="gdiplus=b" wine "c:\Program Files\EDIS Local\EDIS.exe"
7) Now EDIS isn't running at all. I previously had the main app running, but just crashed on the reporting page. Now:

wine "c:/Program Files/EDIS Local/EDIS.exe"fixme:thread:SetThreadStackGuarantee (0x32fc68): stub
fixme:shell:URL_ParseUrl failed to parse L"System.Windows.Forms"
fixme:shell:URL_ParseUrl failed to parse L"System"
fixme:shell:URL_ParseUrl failed to parse L"System.Drawing"
fixme:gdiplus:GdipGetFamilyName No support for handling of multiple languages!
fixme:shell:URL_ParseUrl failed to parse L"EDIS.resources"
fixme:shell:URL_ParseUrl failed to parse L"EDIS.resources"
fixme:shell:URL_ParseUrl failed to parse L"DBUpdater"
fixme:shell:URL_ParseUrl failed to parse L"System.Data"
fixme:shell:URL_ParseUrl failed to parse L"Updater"
fixme:shell:URL_ParseUrl failed to parse L"System.Transactions"
WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-1AQiNy/pkcs11: No such file or directory
fixme:oledb:set_dbpropset unsupported property L"ole db services"
fixme:shell:URL_ParseUrl failed to parse L"System.Data.resources"
fixme:shell:URL_ParseUrl failed to parse L"System.Data.resources"
fixme:gdiplus:GdipCreateHalftonePalette stub
fixme:shell:URL_ParseUrl failed to parse L"mscorlib.resources"
fixme:shell:URL_ParseUrl failed to parse L"mscorlib.resources"
fixme:ole:Context_CC_ContextCallback (0x18af08/0x18af0c)->(0x79f277a5, 0x2b5cec4, {d7174f82-36b8-4aa8-800a-e963ab2dfab9}, 2, (nil))
fixme:ole:Context_CC_ContextCallback (0x18af08/0x18af0c)->(0x79f277a5, 0x2b5ce58, {d7174f82-36b8-4aa8-800a-e963ab2dfab9}, 2, (nil))

No error message available result code E_FAIL(0x80004005)

Thanks for the help so far. I appreciate its a pretty obscure program , so if it you run out of ideas that's fine, but happy to keep pluggin away if you think there's a fix.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Trying to get EDIS local to run under Wine

Post by dimesio »

fuzzweed wrote: 4) Dotnet etc installed as follows.
sh winetricks mdac28
winetricks jet40
winetricks dotnet20
winetricks mono28
You should not install both mono and dotnet, and when testing mono, should use the wine-mono package from Ubuntu, not Windows mono installed with winetricks.
6) Have entered this WINEDLLOVERRIDES="gdiplus=b" wine "c:\Program Files\EDIS Local\EDIS.exe"
That should be

Code: Select all

WINEDLLOVERRIDES="gdiplus=n" wine "c:\Program Files\EDIS Local\EDIS.exe"
Try with the command above, and if that doesn't work, delete the wineprefix and start over with a clean one. Test first with wine-mono installed from the Ubuntu package; do not install dotnet.
fuzzweed
Level 1
Level 1
Posts: 6
Joined: Thu Jan 24, 2013 2:23 am

Re: Trying to get EDIS local to run under Wine

Post by fuzzweed »

Thanks. I've got this far in trying again from scratch.
uninstall dotnet through wine gui
uninstall EDIS through wine gui
sudo apt-get remove wine1.5
sudo apt-get purge wine1.5
sudo apt-get remove winetricks
sudo apt-get purge winetricks
sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine1.5
winetricks mono210
wine /home/jim/.wine/dosdevices/c:/EDISLocalV1.1_Setup.exe

However when the windows installer runs I get a pop up saying dotnet is not installed and would I like to download it now. How do I tell wine to use mono instead, as suggested?
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Trying to get EDIS local to run under Wine

Post by dimesio »

fuzzweed wrote:Thanks. I've got this far in trying again from scratch.
uninstall dotnet through wine gui
uninstall EDIS through wine gui
sudo apt-get remove wine1.5
sudo apt-get purge wine1.5
sudo apt-get remove winetricks
sudo apt-get purge winetricks
sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine1.5
winetricks mono210
wine /home/jim/.wine/dosdevices/c:/EDISLocalV1.1_Setup.exe

However when the windows installer runs I get a pop up saying dotnet is not installed and would I like to download it now. How do I tell wine to use mono instead, as suggested?
That is NOT what I asked you to do. What you need to do is:
1. Delete the wineprefix.
2. Install Ubuntu's wine-mono package. Do NOT install anything with winetricks.
3. Install your app.
4. Test it.
fuzzweed
Level 1
Level 1
Posts: 6
Joined: Thu Jan 24, 2013 2:23 am

Re: Trying to get EDIS local to run under Wine

Post by fuzzweed »

1)
cd $HOME
rm -rf .wine
2) It says it's already installed. (v.0.0.8)
3) Looks like it nearly installed but gives a gda-2 error this application will close from EDIS
wine "c:/Program Files/EDIS Local/EDIS.exe" gives the same error.
Not getting any thing from the terminal or wine to show you.
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Trying to get EDIS local to run under Wine

Post by dimesio »

fuzzweed wrote: 3) Looks like it nearly installed but gives a gda-2 error this application will close from EDIS

Googling "gda-2 error" turned up this: http://www.mono-project.com/OLE_DB.

You mentioned before that you had installed mdac28 and jet40; did you install them for this test? If not, do that, and see if there is any change. If that doesn't help, go ahead and install winetricks dotnet20. You don't need to uninstall wine-mono; winetricks dotnet20 should remove the registry entries for you.
fuzzweed
Level 1
Level 1
Posts: 6
Joined: Thu Jan 24, 2013 2:23 am

Re: Trying to get EDIS local to run under Wine

Post by fuzzweed »

I think I'm now exactly back where I started :) EDIS runs, but the reporting section crashes.
Attachments
backtrace.txt.tar.gz
(4.15 KiB) Downloaded 327 times
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Re: Trying to get EDIS local to run under Wine

Post by dimesio »

Yes, it's the same. File bugs for the two problems--one for the gda-2 error with wine-mono, and one for the crash with dotnet20.
Locked