#743895 transaction report crashes

Package:
gnucash
Source:
gnucash
Description:
personal and small-business financial-accounting software
Submitter:
Marvin Renich
Date:
2014-06-24 01:27:05 UTC
Severity:
normal
#743895#5
Date:
2014-04-08 01:10:48 UTC
From:
To:
When configuring a transaction report, gnucash crashes with the python
traceback below.  When starting gnucash, the lines in the traceback up
to and including "Found Finance::Quote version 1.18" occur immediately,
but gnucash seems to start normally, with my previously open register
windows opened.

I select Transaction Report which brings up an empty report (No accounts
selected).  I select Options. On the General tab I change start and end
dates to start and end of previous year.  On the Sorting tab I change
secondary subtotal for date key to none.  I click Apply and there is no
change in the report (expected, because I haven't selected any
accounts), and there is no additional console output.  Now, on the
Accounts tab I select Expenses and then Select Children.  When I select
Apply, the remainder of the traceback is printed and the gnucash window
disappears.

Prior to upgrading from 1:2.6.1-2 to 1:2.6.2-1, the lines beginning
"Traceback..." through "ImportError..." did not occur; on startup, the
first line of console output was "Found Finance::Quote version 1.18".
However, the crash did occur in version 1:2.6.1-2 (current testing).
The only reason I upgraded gnucash from testing to unstable was to
determine if this bug existed in the newest version.

...Marvin

$ gnucash
Traceback (most recent call last):
  File "/usr/share/gnucash/python/init.py", line 3, in <module>
    from gnucash import *
ImportError: No module named gnucash
Found Finance::Quote version 1.18
In report.scm:
 770: 19 [gnc:report-run 0]
In unknown file:
   ?: 18 [gnc-set-busy-cursor () #t]
In ice-9/boot-9.scm:
 157: 17 [catch #t #<catch-closure 36beb20> #<catch-closure 36beb00> #f]
In unknown file:
   ?: 16 [apply-smob/1 #<catch-closure 36beb20>]
In ice-9/boot-9.scm:
 171: 15 [with-throw-handler #t #<catch-closure 36be8c0> #<catch-closure 36be7e0>]
In unknown file:
   ?: 14 [apply-smob/1 #<catch-closure 36be8c0>]
   ?: 13 [call-with-input-string "(gnc:report-run 0)" ...]
In ice-9/boot-9.scm:
2320: 12 [save-module-excursion #<procedure 3667e40 at ice-9/eval-string.scm:65:9 ()>]
In ice-9/eval-string.scm:
  44: 11 [read-and-eval #<input: string 312a410> #:lang ...]
  37: 10 [lp (gnc:report-run 0)]
In report.scm:
 771: 9 [gnc:report-run 0]
In ice-9/boot-9.scm:
 157: 8 [catch ignore #<procedure 3667c30 at gnucash/main.scm:112:4 ()> ...]
In unknown file:
   ?: 7 [lazy-catch #t #<procedure 3667bd0 at gnucash/main.scm:114:18 ()> ...]
In ice-9/boot-9.scm:
 171: 6 [with-throw-handler #t #<catch-closure 36be2c0> #<catch-closure 36be2a0>]
In unknown file:
   ?: 5 [apply-smob/1 #<catch-closure 36be2c0>]
In report.scm:
 775: 4 [#<procedure 3667c60 at report.scm:772:5 ()>]
 754: 3 [gnc:report-render-html # #t]
In html-document.scm:
 196: 2 [gnc:html-document-render # #t]
In ice-9/boot-9.scm:
 102: 1 [#<procedure 347cc00 at ice-9/boot-9.scm:97:6 (thrown-k . args)> vm-error ...]
In unknown file:
   ?: 0 [apply-smob/1 #<catch-closure 36be2a0> vm-error ...]
Aborted

#743895#10
Date:
2014-06-06 21:13:58 UTC
From:
To:
Le lundi 07 avril 2014 à 21:10 -0400, Marvin Renich a écrit :

I followed your instructions carefully both on an empty gnucash file and
on my own personal file, and I could not replicate the crash. I guess
that it is specific to your file.

Would it be possible for you to give me a way to replicate the problem,
either by starting from an empty file, or by sending me a file that
triggers the crash?

Best,

#743895#17
Date:
2014-06-23 05:09:13 UTC
From:
To:
I am receiving the same error, "no module named gnucash" from init.py,
line 3.

I have been using version 2.6.3 probably since the "GetDeb" archive
released it, with no issues on Ubuntu Lucid Lynx 10.04 LTS.

I *just* upgraded to Ubuntu 12.04 LTS (hoped it would be stable by now)
and am getting the error.

This makes me suspect that the error may be related to using GnuCash
against some of the 12.04 libs (or maybe python?!), instead of the 10.04
libs.

You know what?  I just UNinstalled python 3.x (it was there because of
blender, which I don't need), and reinstalled libpython2.7, gnucash and
gnucash-common, and the error has stopped.

Give it a try?  YMMV.

- Mike

#743895#22
Date:
2014-06-24 01:23:28 UTC
From:
To:
I believe this bug report may be related to the upstream bug
https://bugzilla.gnome.org/show_bug.cgi?id=728717

In the bugzilla report the crash occurs in the same place in the code as
this bug HOWEVER the crash is seen when closing the application instead of
when running a report. At least one Debian user and some Ubuntu users (via
the GetDeb repository) report seeing the crash occur when closing GnuCash
versions 2.6.1, 2.6.2, and 2.6.3.

The crash exhibits itself in conjunction with the Debian package
python-gnucash and for various reasons is not visible when running the
upstream code. A workaround for the bug in Debian / Ubuntu etc. is to
remove the file /usr/share/gnucash/python/init.py

As shown in bugzilla, GnuCash developers committed a fix to the code but it
won't be visible until the release after version 2.6.3.