Am 29.04.23 um 22:11 schrieb John Ralls:


On Apr 29, 2023, at 12:56 PM, Herbert Thoma <herbert.th...@iis.fraunhofer.de> 
wrote:

Hi!

when I press the "get online quotes" button
finance-quote-wrapper gets called, but it runs forever (at least
a few hours, then I killed it).

I patched libgnucash/app-utils/gnc-quotes.cpp to write the json
string to a file before it is passed to finance-quote-wrapper.
This string looks good to me.

When I pass the string to finance-quote-wrapper on the command line,
it spawns a few error messages of the form
"Use of uninitialized value in sprintf at 
/usr/lib/perl5/site_perl/5.26.1/Finance/Quote/YahooJSON.pm line 168"
but it produces an output that looks good to me as well.

There are about 60 different stocks/funds/currencies in the
request, the return string is about 20 kByte.

Any idea how I could debug this further?

Herbert.

PS: Getting online quotes used to work with GnuCash 4.x for me.

First, if you're not using a current git stable, do.

I am using current git stable.

Then attach a debugger to see what it's doing.

It's been a while since I last used gdb ...

OK, will try. What do I need to pass to cmake to get a debug build?

 Herbert.

Regards,
John Ralls

_______________________________________________
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel

_______________________________________________
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel

Reply via email to