After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 712278 - Program crashes when doing a currency transfer
Program crashes when doing a currency transfer
Status: RESOLVED NOTABUG
Product: GnuCash
Classification: Other
Component: Currency and Commodity
2.5.x
Other Windows
: Normal major
: ---
Assigned To: gnucash-core-maint
gnucash-core-maint
Depends on:
Blocks:
 
 
Reported: 2013-11-14 09:15 UTC by garry
Modified: 2018-06-29 23:21 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description garry 2013-11-14 09:15:25 UTC
In all version of 2.5 I have tried, when converting currencies, use of the "Fetch Rate" button causes the program to crash. There does not appear to be a trace file associated with the crash.
Comment 1 Geert Janssens 2013-11-14 16:23:20 UTC
Thank you for the report.

You didn't mention this: did you also try this in any 2.4.x version and did it work properly in that version ?
Comment 2 garry 2013-11-14 23:52:10 UTC
Sorry. Yes I use it all the time in 2.4 and it works just fine. It can be replicated every time in all releases of 2.5 including the latest 2.5.7.
Comment 3 Geert Janssens 2013-11-15 06:53:38 UTC
Thank you. So this is a regression and needs to be fixed before 2.6.
Comment 4 Geert Janssens 2013-11-27 10:27:51 UTC
Hmm, unfortunately I can't reproduce this on my test system...

I have installed yesterday's nightly build (2.5.8+) on a Windows XP system. That system didn't have Finance::Quote installed yet, so I used the start-menu item to install it. (2.5.x has a new feature that it can install strawberry perl for you and then configure all the required perl modules for Finance::Quote).

This did fail initially, because the version of Strawberry was too old to install today's Finance::Quote. So I updated the install script (which should be in today's nightly build) and installation went fine.

Now with Finance::Quote set up, I have tried to move money from an HKD account to a EUR account. In the exchange rate dialog, I hit the Fetch Rate button and this worked fine.

Can you give some more details on your system ? Which version of Windows, how was finance quote set up ? Which version of perl is used ?

And what happens if you try to fetch the quotes manually ? I'm afraid I don't know the exact way to do this as I don't use Finance::Quote myself. You can ask on the mailing list (gnucash-user@gnucash.org) for some help regarding this.
Comment 5 garry 2013-11-27 14:20:53 UTC
The start menu item doesn't come up in Windows 8.1 so I went into Gnucash\Bin and installed perl manually. "C:\Program Files (x86)\gnucash\bin\install-fq-mods.cmd"
Saw it was an older version so updated it (Perl 5.18.1001). Restarted and I still get the crash when I make an entry in any register and debit or credit a FX account and use fetch quote manually.
Interestingly the Fetch Quote works in 2.4 without perl installed.
Running Windows 8.1 Pro 64 bit. It seems to work if I make the transaction and let the system set the rate. If I want to modify and use the Fetch Quote button , it crashes. All crashes are tied to the Fetch Quote button in 2.5.
Comment 6 Geert Janssens 2013-11-27 14:26:54 UTC
Ok, what happens if you use the same functionality in the Price Editor window (found under the Tools menu).

This window has a "Get Quotes" button, which essentially uses the same perl code.
Comment 7 Geert Janssens 2013-11-27 14:54:26 UTC
You can also use the tool gnc-fq-dump (found in the gnucash application directory -> bin) to test the f::q code from the command line and check if that gives any errors.
Comment 8 garry 2013-12-05 09:36:29 UTC
Hi Geert

Apologies as I haven't had time to follow this up. I haven't forgotten about it.

Right now just sticking with 2.4 to get work done.
Comment 9 Frank H. Ellenberger 2013-12-06 17:04:11 UTC
(In reply to comment #5)
> Interestingly the Fetch Quote works in 2.4 without perl installed.

That could mean another flavour of perl is installed somewhere else on that system.

BTW: 
Do you have 2.4 and 2.5 on the same or different machines?
Comment 10 Geert Janssens 2013-12-06 17:46:38 UTC
That's a good hint Frank, and probably the reason of the failure.

Can you check what versions/flavours of perl you have installed ? The ones I know of are ActiveState Perl (or ActivePerl in short) and Strawberry perl. Perhaps you could also have cygwin installed with its own perl.
Comment 11 garry 2013-12-06 22:18:48 UTC
I have Strawberry Perl 5.18.1001 Installed. I only installed Perl as a standalone program last week when I realised it was required to make this module work. It has always worked out of the box for me with 2.4 (windows 7 and 8)without installing Perl.

A cursory look shows no other versions of perl on my machine.

I have tried running 2.5 on the same machine as 2.4 only after removing 2.4. 

The main reason I haven't tested 2.5 again, is when I go back to 2.4, I have to delete all the GNU System files left from the 2.5 install otherwise 2.4 starts up with a number of errors. I have to do this manually which takes a bit of work.
Comment 12 garry 2013-12-06 23:17:53 UTC
Follow up note. If I install 2.4 on a brand new Windows 8 install, the fetch quote button works (I had to do this recently installing 8.1). If I uninstall 2.4 and install 2.5, it doesn't. Given your feedback this makes no sense.
Comment 13 Geert Janssens 2013-12-07 09:40:33 UTC
You have me puzzled as well.

I'm very sure Finance::Quote requires perl and until your bug report I have always assumed Windows doesn't ship with perl by default, so you need to install it. Your story suggests otherwise.

Unfortunately I don't have access to a Windows 7/8 machine, so I can't run my own tests.

Without Strawberry perl installed, what output do you get from "perl -v" in a console window (cmd.exe) ?
Comment 14 Geert Janssens 2013-12-07 09:42:27 UTC
(In reply to comment #11)
> The main reason I haven't tested 2.5 again, is when I go back to 2.4, I have to
> delete all the GNU System files left from the 2.5 install otherwise 2.4 starts
> up with a number of errors. I have to do this manually which takes a bit of
> work.

This shouldn't happen by the way. You should be able to go back to 2.4 without any issues. Can you please report a separate bug in which you describe what goes wrong if you install 2.4 over 2.5 and start again ?
Comment 15 John Ralls 2013-12-20 18:40:28 UTC
Removing the target as this appears to be an installation issue.
Comment 16 garry 2014-01-07 00:45:58 UTC
I have just had a chance to do a fresh install of 2.6 onto two machines and whatever the bug was, it now appears to be gone.

I completely uninstalled, 2.4, cleaned up all the old config files, installed 2.6, installed perl using the menu link (before I opened 2.6 for the 1st time) and away it all went. Faultless. 

A couple of things to note re windows 8 installs.

The menu items may not turn up grouped depending on how you have your menu arranged. When going to the apps menu, you need to have them arranged by Category for the install online price retrieval menu to show up under GNUcash.

And along the same lines, perhaps it would be handy to rename the link, "GNUcash Online price retrieval install" so when you do search GNUcash it will show up in your search list. The same would apply for the other links.(using Windows key, then search function which is how a lot of folk launch apps and programs)

Small things but as a new Windows 8 user, are sometimes not immediately obvious.:-)
Comment 17 Geert Janssens 2014-01-21 10:23:15 UTC
Garry, I have moved your additional suggestions into another bug report (bug 722678) because that's really an independent issue.

Since you fixed your original problem using a clean install, I'll close this report now. Thank you for following up !
Comment 18 John Ralls 2018-06-29 23:21:23 UTC
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=712278. Please update any external references or bookmarks.