GnuCash
Contact   Instructions
Bug 797656 - Immediate crash when retrieving quotes
Summary: Immediate crash when retrieving quotes
Status: RESOLVED FIXED
Alias: None
Product: GnuCash
Classification: Unclassified
Component: Currency and Commodity (show other bugs)
Version: 3.8
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: core
QA Contact: core
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-27 05:01 EDT by Ivo Grondman
Modified: 2020-03-28 05:41 EDT (History)
5 users (show)

See Also:


Attachments

Description Ivo Grondman 2020-03-27 05:01:57 EDT
When retrieving quotes (Tools → Price Database → Get Quotes) GnuCash crashes with the following error:

Backtrace:
           2 (apply-smob/1 #<catch-closure 11a244740>)
In price-quotes.scm:
   452:18  1 (gnc:book-add-quotes #<swig-pointer GtkWindow * 7f928e…> …)
In unknown file:
           0 (_ "There was a system error while retrieving the price…")

ERROR: Wrong type to apply: #<syntax-transformer N_>

I'm on macOS 10.15.4 (Catalina), Perl 5.18.4, Finance::Quote 1.49
Comment 1 John Ralls 2020-03-27 12:02:05 EDT
Chris Lam, this seems to be related to using syntax-rules in libgnucash/app-utils/gettext.scm and a documented Guile "incompatibility" detailed in the 6th bullet at https://www.gnu.org/software/guile/manual/html_node/R6RS-Incompatibilities.html.
Comment 2 Christopher Lam 2020-03-27 12:05:56 EDT
Maybe, but why would it affect price-quotes.scm now? What guile version is in use?
Comment 3 John Ralls 2020-03-27 12:23:42 EDT
Assuming the reporter is using the GnuCash Mac bundle it's Guile-2.2.

Why now? Maybe because it's the first time someone's gotten an error and bothered to report it? You shuffled price-quotes.scm a bit last August.
Comment 4 Ivo Grondman 2020-03-27 13:07:10 EDT
(In reply to John Ralls from comment #3)
> Assuming the reporter is using the GnuCash Mac bundle it's Guile-2.2.

Yep, using the GnuCash Mac app-bundle.
> Why now? Maybe because it's the first time someone's gotten an error and
> bothered to report it? You shuffled price-quotes.scm a bit last August.

I did note that someone also reported this exact same backtrace in a comment to issue (https://bugs.gnucash.org/show_bug.cgi?id=797583). So the error is happening in more cases. Reason why I created a new issue for this is that although 797583 seems related, I didn't think it was a duplicate since the reporter of that issue saw a different backtrace.
Comment 5 Christopher Lam 2020-03-27 21:38:08 EDT
The issue was simply a missing (gettext) module import. Fixed for 3.9.
Comment 6 Ivo Grondman 2020-03-28 05:17:16 EDT
(In reply to Christopher Lam from comment #5)
> The issue was simply a missing (gettext) module import. Fixed for 3.9.

Thanks for the quick response! When is 3.9 to be released?
Comment 7 Geert Janssens 2020-03-28 05:41:55 EDT
It's planned for this weekend.

Note You need to log in before you can comment on or make changes to this bug.