Re: [GNC-dev] Problem retrieving online quotes
> On Apr 30, 2023, at 4:52 AM, Frank H. Ellenberger > wrote: > > Hi Herbert, > > Am 29.04.23 um 22:33 schrieb Herbert Thoma: >> OK, will try. What do I need to pass to cmake to get a debug build? >> Herbert. > > cmake -D ENABLE_DEBUG … > > There are more useful variables in > https://wiki.gnucash.org/wiki/CMake#GnuCash_Program_Configuration_Variables That doesn't work, it's not used in our CMakeLists.txt. The correct way is to pass -D CMAKE_BUILD_TYPE=Debug to cmake. Regards, John Ralls ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Re: [GNC-dev] Problem retrieving online quotes
Hi Herbert, Am 29.04.23 um 22:33 schrieb Herbert Thoma: OK, will try. What do I need to pass to cmake to get a debug build? Herbert. cmake -D ENABLE_DEBUG … There are more useful variables in https://wiki.gnucash.org/wiki/CMake#GnuCash_Program_Configuration_Variables HTH Frank ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Re: [GNC-dev] Problem retrieving online quotes
Am 29.04.23 um 22:11 schrieb John Ralls: On Apr 29, 2023, at 12:56 PM, Herbert Thoma 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
Re: [GNC-dev] Problem retrieving online quotes
> On Apr 29, 2023, at 12:56 PM, Herbert Thoma > 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. Then attach a debugger to see what it's doing. Regards, John Ralls ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel
[GNC-dev] Problem retrieving online quotes
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. ___ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel