[GNC] GnuCash crashes when generating Equity Statement

Jakub Sygnowski sygnowski at gmail.com
Sun Jun 27 05:16:10 EDT 2021


Hi all,
I have a problem with GnuCash where it's crashing when generating Equity
Statement.

I verified the report works on an empty book, so likely the problem is with
my data. I traced it back to gnc:sum-collector-commodity
<https://github.com/Gnucash/gnucash/blob/maint/gnucash/report/commodity-utilities.scm#L900>,
where one of the commodities gets exchanged to #f which causes the error. I
looked at the price database for its entries, but they look fine to me.

Any idea what could have gone wrong here?
Thank you!

Version: 4.4
Stacktrace:
An error occurred while running the report.

          19 (apply-smob/0 #<thunk 7f1c6c731ea0>)
In c-interface.scm:
     35:4 18 (gnc:call-with-error-handling _ _)
In ice-9/boot-9.scm:
  1731:15 17 (with-exception-handler #<procedure 7f1c5d4d0b10 at
ice-9/boot-9.scm:1815:7 (exn)> _ #:unwind? _ #:unwind-for-type _)
  1736:10 16 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _)
In c-interface.scm:
    40:37 15 (_)
In unknown file:
          14 (eval-string "(gnc:report-run 0)" #<undefined>)
In ice-9/boot-9.scm:
   2806:4 13 (save-module-excursion _)
In ice-9/eval-string.scm:
     38:6 12 (read-and-eval #<input: string 7f1c5d4ca230> #:lang _)
In report-core.scm:
    772:4 11 (gnc:report-run _)
In c-interface.scm:
     74:2 10 (gnc:backtrace-if-exception _ . _)
     35:4  9 (gnc:call-with-error-handling _ _)
In ice-9/boot-9.scm:
  1731:15  8 (with-exception-handler #<procedure 7f1c5d4d09f0 at
ice-9/boot-9.scm:1815:7 (exn)> _ #:unwind? _ #:unwind-for-type _)
  1736:10  7 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _)
In c-interface.scm:
    39:40  6 (_)
In report-core.scm:
   774:29  5 (_)
   756:25  4 (gnc:report-render-html #<<report> type:
"bce0c0d9eb31431c9b61a933becb9aea" id: 0 options: #<procedure dispatch (k…>
…)
In gnucash/reports/example/equity.scm:
    295:8  3 (equity-statement-renderer _)
In gnucash/report/commodity-utilities.scm:
    890:2  2 (gnc:my-collector-comm #<procedure 7f1c5d512060 at
report-utilities.scm:374:4 (action commodity amount)> #<swig-po…> …)
In unknown file:
           1 (+ -12380177/50 0 0 0 5833/100 -1409929/10 33448/25
10270387/100 156399/20 101067/10 1392361/100 67913/4 542029/50 0 …)   <-
there is "#f" further down the line here
In ice-9/boot-9.scm:
  1669:16  0 (raise-exception _ #:continuable? _)

In procedure +: Wrong type: #f


More information about the gnucash-user mailing list