GNOME Bugzilla – Bug 168250
Crash due to duplicate report names in saved custom report
Last modified: 2018-06-29 20:50:21 UTC
Steps to reproduce:
1. save report
2. restart gnucash
3. load custom report
5: 83269 (let ((options #)) (let (#) (# option)) (let (#) (# option)) ...)
5: 83270* [gnc:report-template-new-options/name "Expense Accounts"]
127: 83271 (let ((templ #)) (if templ (gnc:report-template-new-options
In unknown file:
?: 83272 [gnc:report-template-new-options #]
146: 83273 (let (# # #) (if # # #))
153: 83274* [gnc:make-multichoice-option "General" "Stylesheet" ... ...
157: 83275* [map #<procedure #f (ss)> (# #)]
In unknown file:
?: 83276 (if (null? rest) (map1 f list1) ...)
?: 83277 (begin (set-cdr! p (list (f #))) (lp (cdr ls) (cdr p)))
?: 83278* [set-cdr! (#(Default "Default" "Default Stylesheet")) ...
?: 83279* [list ...
?: 83280* [#<procedure #f #> #]
159: 83281 [vector Technicolor "Technicolor" ...
162: 83282* [string-append ...
162: 83283* [gnc:html-style-sheet-name #]
In unknown file:
?: 83284 (and (eq? (quote #) (record-type-descriptor obj)) (struct-ref obj
?: 83285* [eq? #<record-type <html-style-sheet>> ...
?: 83286* [record-type-descriptor #]
?: 83287 (if (struct? obj) (struct-vtable obj) (error (quote not-a-record)
?: 83288* (struct? obj)
<unnamed port>: In expression (struct? obj):
<unnamed port>: Stack overflow
Do I understand this correctly: Since you saved your custom report, gnucash
crashes now everytime you try to start it? That's bad.
Your quick workaround would be to open the file ~/.gnucash/saved-reports-1.8
with a text editor, find the section that deals with the "Expense Accounts"
report, and delete the whole section (from the leading ";;;;;;;;" line to the
If we, the developers, should help you with this, then you would have to attach
your errornous ~/.gnucash/saved-reports-1.8 file here to this bugreport so that
we can reproduce this behaviour. The file does not contain any of your financial
information. Please do not copy&paste it to here but click "Create a New
Attachment" below. Thanks.
Created attachment 37884 [details]
gnucash only crashes when i try to load the custom report(menubar: Reports-->
Custom-->Expense Over Time), not when i try to start it.
Ok, thanks for this information. Can you also supply the exact version number of
gnucash (1.8.10 I suppose) and also the program "guile" (e.g. try "guile
Another question: What OS/Distro do you run?
Just to mention i get the same crash in similar circumstances.
I am using MacOSX 10.3.8
I built GnuCash on that mac using the fink system, using the source distro 1.8.11-1 (the -1 is just an
internal versioning system within fink).
Guile 1.6.4 is being used, built as well within fink.
Now, some extra details.
Starting with a clean .gnucash folder with no saved-report-1.8 file
1. launching gnucash
2. create a report from the Income&Expenses report menu
3. quit gnucash
4. relaunch gnucash
Result: the gnucash report reloads automatically and is perfectly fine. NO BUG here.
we are at the end of case 1, and then
5a. "save report" on the currently working P&L report
6a. quit gnucash
7a. relaunch gnucash
Result : the second tab, the one that is supposed to show the P&L account, prints "Report not found",
and is mostly a "dead tab"
We are at the end of case 1 again (means, i flushed all saved report, and started over again at step 1,
5b. "save report" on the currently working P&L report
6b. close the report
7b. quit gnucash
8b. relaunch gnucash
9b. choose Report/custom/P&L report
Result: the app crashes in scheme code, almost identical to what the original bug report is, with stack
overflow at the end.
I tried with a different report than P&L (cash flow i tried), and as expected, same crash, exact same
logic. Moreover, if two saved reports coexist in the file, it's the same source code lines in the saved-
report-1.8 file that are pointed to in the backtrace, so it,s the common part that crashes, not apparently
in each report-specific section.
Aside that, dunno what else i can add yet.
GnuCash 1.8.10 (from debian package Version: 1.8.10-7)
>Another question: What OS/Distro do you run?
Debian unstable i386
I'm getting similar problems running 1.8.10 on Gentoo, guile 1.6.4.
Created attachment 38379 [details]
similar saved report
same saved report problem on SUSE 9.2 postgres 7.4 guile 1.6.4
(saving ot postgres)
Created attachment 39171 [details]
saved-reports-1.8 crash when opening report called "Income/Expense Chart"
I've got the exact same Backtrace as the original reporter.
Gnucash 1.8.10 on Gentoo.
I'm having the same problem on gentoo amd64
The only custom reports I can load are Profit/Loss reports
*** Bug 305611 has been marked as a duplicate of this bug. ***
FYI, the problem is when you save a report without changing the report name.
*** Bug 319173 has been marked as a duplicate of this bug. ***
Wow. That's a great thing to know. I just tried it, creating custom reports
and renaming them to something other than the default. It works like a charm.
finally i can have my huge list of custom reports back.
i can confirm that changing the name of the report solves the problem
my ~/.gnucash/saved-reports-1.8 with name changed report has a few extra
>(let ((option (gnc:lookup-option options
> "Report name")))
> ((lambda (option) (if option ((gnc:option-setter option) "test"))) option))
adding these lines to a version with the default report name doesn't solve the
problem for me
(btw could/should someone change the status of this bug to confirmed?)
bug still present in 1.8.12.
i'm running gnucash-1.8.12-0.fc4 from the FC4 repositories.
Problem solved by giving "name" property from the section below (in file ~/.gnucash/saved-reports-1.8) a name other that the default template name.
'name "Transaction Report LB"
'menu-path (list gnc:menuname-custom)
'renderer (gnc:report-template-renderer/name "Transaction Report")))
*** Bug 312625 has been marked as a duplicate of this bug. ***
*** Bug 327393 has been marked as a duplicate of this bug. ***
Raising severity because of multiple additional bug reports.
*** Bug 328510 has been marked as a duplicate of this bug. ***
Development on 1.8.x has stopped, and in 1.8.x we won't fix anything anymore (sorry). Can someone reproduce this bug with 1.9.1 or SVN?
(In reply to comment #23)
> Development on 1.8.x has stopped, and in 1.8.x we won't fix anything anymore
> (sorry). Can someone reproduce this bug with 1.9.1 or SVN?
yes, just had the same.
see attachment for details
Created attachment 62269 [details]
backtrace of crash in svn 13702
*** Bug 336374 has been marked as a duplicate of this bug. ***
Fixed in r13877 for gnucash 1.9.6.
*** Bug 347060 has been marked as a duplicate of this bug. ***
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=168250. Please update any external references or bookmarks.