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 793568 - "Cash Flow" report crashes
"Cash Flow" report crashes
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: Reports
2.7.x
Other Linux
: Normal normal
: ---
Assigned To: gnucash-reports-maint
gnucash-reports-maint
Depends on:
Blocks:
 
 
Reported: 2018-02-18 17:49 UTC by Di Mang
Modified: 2018-06-30 00:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
GnuCash file with example data (4.78 KB, application/x-gnucash)
2018-02-18 17:49 UTC, Di Mang
Details

Description Di Mang 2018-02-18 17:49:47 UTC
Created attachment 368524 [details]
GnuCash file with example data

In current unstable GnuCash version crashes the "Cash Flow" report (Version: 2.7.4, Build ID: git 2.7.4-69-g595dbf7bf+ (2018-02-18)).
The report "Cash Flow Barchart" works fine.

You can reproduce this behavior with an example file from attachment.

GnuCash: 
"Report error
An error occurred while running the report."

Console:
"
In report.scm:
 752: 19 [gnc:report-run 2]
In c-interface.scm:
  70: 18 [gnc:backtrace-if-exception #<procedure 561aedc2e210 at report.scm:753:5 ()>]
  22: 17 [gnc:call-with-error-handling #<procedure 561aedc2e210 at report.scm:753:5 ()> ...]
In ice-9/boot-9.scm:
 160: 16 [catch #t #<procedure 561aedc2e1e0 at c-interface.scm:23:8 ()> ...]
In c-interface.scm:
  27: 15 [#<procedure 561aedc2e1e0 at c-interface.scm:23:8 ()>]
In report.scm:
 756: 14 [#<procedure 561aedc2e210 at report.scm:753:5 ()>]
 735: 13 [gnc:report-render-html # #t]
In html-document.scm:
 175: 12 [gnc:html-document-render # #t]
In srfi/srfi-1.scm:
 616: 11 [for-each #<procedure 561aedcd8d80 at html-document.scm:176:11 (child)> #]
In html-document.scm:
 178: 10 [#<procedure 561aedcd8d80 at html-document.scm:176:11 (child)> #]
In html-text.scm:
 217: 9 [gnc:html-text-render # #]
In srfi/srfi-1.scm:
 616: 8 [for-each #<procedure 561aedc4ba20 at html-text.scm:218:5 (elt)> #]
In html-text.scm:
 220: 7 [#<procedure 561aedc4ba20 at html-text.scm:218:5 (elt)> #<procedure 561aedc3c870 at html-text.scm:78:2 (doc)>]
 247: 6 [gnc:html-text-render-markup # "ul" #f ...]
In srfi/srfi-1.scm:
 616: 5 [for-each #<procedure 561aedc4b9f0 at html-text.scm:248:5 (elt)> #]
In html-text.scm:
 250: 4 [#<procedure 561aedc4b9f0 at html-text.scm:248:5 (elt)> #<procedure 561aedc3c900 at html-text.scm:78:2 (doc)>]
 247: 3 [gnc:html-text-render-markup # "li" #f ...]
In srfi/srfi-1.scm:
 616: 2 [for-each #<procedure 561aedc4b9c0 at html-text.scm:248:5 (elt)> #]
In html-text.scm:
 250: 1 [#<procedure 561aedc4b9c0 at html-text.scm:248:5 (elt)> #<procedure 561aedc3ca20 at html-text.scm:129:2 (doc)>]
In unknown file:
   ?: 0 ["~a" #f "~a" ...]

ERROR: Wrong type to apply: "~a"
"
Comment 1 John Ralls 2018-02-18 18:28:44 UTC
Thanks for catching that so quickly.

This problem has been fixed in the unstable development version. The fix will be available in the next major software release. You may need to upgrade your Linux distribution to obtain that newer version.
Comment 2 Di Mang 2018-02-18 19:20:07 UTC
Hello John,

I compiled GnuCash with new files from Github today. I have built it from "unstable" branch (Version: 2.7.4, Build ID: git 2.7.4-67-ffeafad636+ on 2018-02-18). I think it's a *new* problem that has not been resolved yet.

For checking this problem you can use the example file, which I have created for another bug, but it works here too. See attachment. 

I'm currently learning how the reports in GnuCash work (technical side). If I'm doing something wrong or if this bug report is wrong, please get me short info.

Thanks, DiMang
Comment 3 John Ralls 2018-02-18 19:27:46 UTC
It was a new problem, which I fixed in ec0656e7d52 and pushed just before closing the bug. Try again!
Comment 4 Di Mang 2018-02-18 19:30:59 UTC
Thanks for a quick fix!
Comment 5 John Ralls 2018-06-30 00:04:40 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=793568. Please update any external references or bookmarks.