Cloning Accounts

Geert Janssens geert.gnucash at kobaltwit.be
Mon Jun 22 15:27:43 EDT 2015


On Sunday 21 June 2015 17:12:26 John Ralls wrote:
> > On Jun 20, 2015, at 1:09 PM, Dave H <hellvee at gmail.com> wrote:
> > 
> > Hi John,
> > 
> > Running the same report in GnuCash 2.6.6 built from git rev 5a3ea33+
> > on 2015-03-30 on a Windows 8 pc also gives me a Report Error - an
> > error occurred while running the report - trace isn't large so here
> > it is if it helps ....
> > 
> > Cheers Dave H.
> > 
> > * 05:46:33  WARN <qof.engine> [guid_init()] only got 713 bytes.
> > The identifiers might not be very random.
> > 
> > * 06:01:43  WARN <gnc.scm> In C:\Program Files 
(x86)\gnucash\share\gnucash/scm/report.scm:
> >  357:  4* (let* ((options (if # # ...))) (gnc:report-set-options! r
> >  options) ...) 358:  5* (if (not (null? rest)) (car rest) ...)
> >  360:  6  [gnc:report-template-new-options #]
> >  
> >     ...
> >  
> >  258:  7  (let* (#) (or # #) (or # #) ...)
> >  259:  8* (if (procedure? generator) (or # #) (gnc:new-options))
> >  260:  9  (or (gnc:backtrace-if-exception generator) (begin # #))
> >  260: 10* [gnc:backtrace-if-exception #<procedure
> >  general-ledger-options-generator ()>]> 
> > In unknown file:
> >    ?: 11  (letrec ((dumper #)) (catch (quote ignore) (lambda () #)
> >    (lambda # #f)))> 
> > In C:\Program Files 
(x86)\gnucash\share\gnucash/scm/gnucash/main.scm:
> >  114: 12  [catch ignore #<procedure #f ()> #<procedure #f (key .
> >  args)>]> 
> > In unknown file:
> >    ?: 13* [#<procedure #f ()>]
> > 
> > In C:\Program Files 
(x86)\gnucash\share\gnucash/scm/gnucash/main.scm:
> >  117: 14* [lazy-catch #t #<procedure #f ()> #<procedure dumper (key
> >  . args)>]> 
> > In unknown file:
> >    ?: 15* [#<procedure #f ()>]
> > 
> > In C:\Program Files 
(x86)\gnucash\share\gnucash/scm/gnucash/main.scm:
> >  118: 16* [apply #<procedure general-ledger-options-generator ()>
> >  ()]
> > 
> > In unknown file:
> >    ?: 17  [general-ledger-options-generator]
> >    
> >     ...
> >    
> >    ?: 18  (letrec (# #) (set-option! gnc:pagename-accounts # ...)
> >    ...)
> > 
> > In C:\Program Files 
(x86)\gnucash\share\gnucash/scm/gnucash/report/standard-reports/general-
ledger.scm:
> >   64: 19* [set-option! "Accounts" "Filter Type" none]
> >   60: 20  [gnc:option-set-value #f none]
> > 
> > In C:\Program Files (x86)\gnucash\share\gnucash/scm/options.scm:
> >  148: 21  (let* ((setter (gnc:option-setter option))) (setter
> >  value))
> >  148: 22* [gnc:option-setter #f]
> >  115: 23  [vector-ref #f 6]
> > 
> > C:\Program Files (x86)\gnucash\share\gnucash/scm/options.scm:115:3:
> > In procedure vector-ref in expression (vector-ref option 6):
> > C:\Program Files (x86)\gnucash\share\gnucash/scm/options.scm:115:3:
> > Wrong type argument in position 2: 6 * 06:01:43  WARN <gnc.scm> BUG
> > DETECTED: Scheme exception raised in report options generator
> > procedure named general-ledger-options-generator> 
> > * 06:01:48  WARN <gnc.scm> In current input:
> >    1:  3* [gnc:report-run 0]
> > 
> > In C:\Program Files (x86)\gnucash\share\gnucash/scm/report.scm:
> >  750:  4  (let ((report #) (html #f)) (gnc-set-busy-cursor (quote
> >  ()) #t) ...) 753:  5* [gnc:backtrace-if-exception #<procedure #f
> >  ()>]
> > 
> > In unknown file:
> >    ?:  6  (letrec ((dumper #)) (catch (quote ignore) (lambda () #)
> >    (lambda # #f)))> 
> > In C:\Program Files 
(x86)\gnucash\share\gnucash/scm/gnucash/main.scm:
> >  114:  7  [catch ignore #<procedure #f ()> #<procedure #f (key .
> >  args)>]> 
> > In unknown file:
> >    ?:  8* [#<procedure #f ()>]
> > 
> > In C:\Program Files 
(x86)\gnucash\share\gnucash/scm/gnucash/main.scm:
> >  117:  9* [lazy-catch #t #<procedure #f ()> #<procedure dumper (key
> >  . args)>]> 
> > In unknown file:
> >    ?: 10* [#<procedure #f ()>]
> > 
> > In C:\Program Files 
(x86)\gnucash\share\gnucash/scm/gnucash/main.scm:
> >  118: 11* [apply #<procedure #f ()> ()]
> > 
> > In unknown file:
> >    ?: 12  [#<procedure #f ()>]
> > 
> > In C:\Program Files (x86)\gnucash\share\gnucash/scm/report.scm:
> >     ...
> >  
> >  756: 13  (begin (set! html #) (set! html #) (set! html #))
> >  757: 14* (set! html (gnc:report-render-html report #t))
> >  757: 15* [gnc:report-render-html # #t]
> >  716: 16  (if (and (not #) (gnc:report-ctext report))
> >  (gnc:report-ctext report) ...) 724: 17  (let ((template #) (doc
> >  #f)) (set! doc (if template # #f)) doc) 727: 18* (set! doc (if
> >  template (let* (# # # ...) (if # # ...) ...) ...)) 727: 19* (if
> >  template (let* (# # # ...) (if # # ...) ...) ...) 728: 20  (let*
> >  (# # # #) (if # # #) (gnc:report-set-ctext! report html) ...) 730:
> >  21* [general-ledger-renderer #]
> > 
> > In C:\Program Files 
(x86)\gnucash\share\gnucash/scm/gnucash/report/standard-reports/general-
ledger.scm:
> >  129: 22  [#f #]
> > 
> > C:\Program Files
> > (x86)\gnucash\share\gnucash/scm/gnucash/report/standard-reports/gen
> > eral-ledger.scm:129:3: In expression
> > ((gnc:report-template-renderer/report-guid xactrptguid xactrptname)
> > report-obj): C:\Program Files
> > (x86)\gnucash\share\gnucash/scm/gnucash/report/standard-reports/gen
> > eral-ledger.scm:129:3: Wrong type to apply: #f
> Interesting. Somewhat different from Pedro’s, which since it’s also 
short I’ll just paste in here:
> > * 16:30:11  WARN <gnc.backend.dbi> [gnc_module_init_backend_dbi()]
> > No DBD drivers found * 16:30:24  WARN <gnc.python> Unable to
> > initialize Python module (unable to open
> > /usr/share/gnucash/python/init.py)> 
> > * 16:30:40  WARN <gnc.scm> In ice-9/boot-9.scm:
> >  157: 14 [catch #t #<catch-closure 857ac20> ...]
> > 
> > In unknown file:
> >    ?: 13 [apply-smob/1 #<catch-closure 857ac20>]
> > 
> > In gnucash/report/report-gnome.scm:
> >   79: 12 [#<procedure 8fc9a70 at
> >   gnucash/report/report-gnome.scm:78:17 (window)> #]> 
> > In report.scm:
> >  351: 11 [gnc:make-report "2e22929e5c5b4b769f615a815ef0c20f"]
> >  251: 10 [gnc:report-template-new-options #]
> > 
> > In ice-9/boot-9.scm:
> >  157: 9 [catch ignore #<procedure 8f693c0 at gnucash/main.scm:112:4
> >  ()> ...]> 
> > In unknown file:
> >    ?: 8 [lazy-catch #t #<procedure 8f69390 at
> >    gnucash/main.scm:114:18 ()> ...]> 
> > In ice-9/boot-9.scm:
> >  171: 7 [with-throw-handler #t #<catch-closure 89cad20>
> >  #<catch-closure 89cad10>]> 
> > In unknown file:
> >    ?: 6 [apply-smob/1 #<catch-closure 89cad20>]
> > 
> > In gnucash/report/standard-reports/general-ledger.scm:
> >   69: 5 [general-ledger-options-generator]
> > 
> > In ice-9/boot-9.scm:
> >  700: 4 [for-each #<procedure 89edb80 at
> >  gnucash/report/standard-reports/general-ledger.scm:70:5 (l)> ...]> 
> > In options.scm:
> >  147: 3 [gnc:option-set-value #f #f]
> >  114: 2 [gnc:option-setter #f]
> > 
> > In ice-9/boot-9.scm:
> >  102: 1 [#<procedure 8fe4e40 at ice-9/boot-9.scm:97:6 (thrown-k .
> >  args)> wrong-type-arg ...]> 
> > In unknown file:
> >    ?: 0 [apply-smob/1 #<catch-closure 89cad10> wrong-type-arg ...]
> > 
> > ERROR: In procedure apply-smob/1:
> > ERROR: Wrong type argument in position 2: 6
> > * 16:30:40  WARN <gnc.scm> BUG DETECTED: Scheme exception raised in
> > report options generator procedure named
> > general-ledger-options-generator> 
> > * 16:30:42  WARN <gnc.scm> In unknown file:
> >    ?: 19 [apply-smob/1 #<catch-closure 8a7af00>]
> > 
> > In ice-9/boot-9.scm:
> >  171: 18 [with-throw-handler #t #<catch-closure 8a7ae90>
> >  #<catch-closure 8a7ae80>]> 
> > In unknown file:
> >    ?: 17 [apply-smob/1 #<catch-closure 8a7ae90>]
> >    ?: 16 [call-with-input-string "(gnc:report-run 0)" ...]
> > 
> > In ice-9/boot-9.scm:
> > 2320: 15 [save-module-excursion #<procedure 8973768 at
> > ice-9/eval-string.scm:65:9 ()>]> 
> > In ice-9/eval-string.scm:
> >   44: 14 [read-and-eval #<input: string 89b70f0> #:lang ...]
> >   37: 13 [lp (gnc:report-run 0)]
> > 
> > In report.scm:
> >  766: 12 [gnc:report-run 0]
> > 
> > In ice-9/boot-9.scm:
> >  157: 11 [catch ignore #<procedure 8973648 at gnucash/main.scm:112:4
> >  ()> ...]> 
> > In unknown file:
> >    ?: 10 [lazy-catch #t #<procedure 8973618 at
> >    gnucash/main.scm:114:18 ()> ...]> 
> > In ice-9/boot-9.scm:
> >  171: 9 [with-throw-handler #t #<catch-closure 8a7ac50>
> >  #<catch-closure 8a7ac40>]> 
> > In unknown file:
> >    ?: 8 [apply-smob/1 #<catch-closure 8a7ac50>]
> > 
> > In report.scm:
> >  770: 7 [#<procedure 8973660 at report.scm:767:5 ()>]
> >  741: 6 [gnc:report-render-html # #t]
> > 
> > In gnucash/report/standard-reports/transaction.scm:
> > 1261: 5 [trep-renderer #]
> > 
> >  362: 4 [build-column-used #<procedure dispatch (key)>]
> > 
> > In options.scm:
> >  143: 3 [gnc:option-value #f]
> >  112: 2 [gnc:option-getter #f]
> > 
> > In ice-9/boot-9.scm:
> >  102: 1 [#<procedure 8990940 at ice-9/boot-9.scm:97:6 (thrown-k .
> >  args)> wrong-type-arg ...]> 
> > In unknown file:
> >    ?: 0 [apply-smob/1 #<catch-closure 8a7ac40> wrong-type-arg ...]
> > 
> > ERROR: In procedure apply-smob/1:
> > ERROR: Wrong type argument in position 2: 5
> 
> So a type error in both, but different places in each. Meanwhile the
> report works fine in 2.6.6 on my Mac.
> 
> Regards,
> John Ralls

See also https://bugzilla.gnome.org/show_bug.cgi?id=748644
which seems to report the same issue. I haven't found the cause yet, let 
alone a solution.

My gut feeling is the report is failing to initialize early on. Which 
causes a backscatter of other errors.

No idea why though...

Geert



More information about the gnucash-user mailing list