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 741418 - Freeze uposting bill, 100% cpu usage
Freeze uposting bill, 100% cpu usage
Status: RESOLVED INCOMPLETE
Product: GnuCash
Classification: Other
Component: Business
git-master
Other Linux
: Normal normal
: ---
Assigned To: Geert Janssens
gnucash-core-maint
Depends on:
Blocks:
 
 
Reported: 2014-12-12 04:34 UTC by Bob Brush
Modified: 2018-06-29 23:36 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix quasi infinite split fragmentation (2.56 KB, patch)
2014-12-17 20:41 UTC, Geert Janssens
none Details | Review
output of file before testing (117.85 KB, text/plain)
2014-12-18 05:15 UTC, Bob Brush
  Details
output of file after testing with patch (83.52 KB, text/plain)
2014-12-18 05:17 UTC, Bob Brush
  Details
output of file after testing without patch (97.02 KB, text/plain)
2014-12-18 05:18 UTC, Bob Brush
  Details
Lot links in file before (136.04 KB, text/plain)
2014-12-19 05:24 UTC, Bob Brush
  Details
Lot links in file after deletion of mega link (64.42 KB, text/plain)
2014-12-19 05:25 UTC, Bob Brush
  Details
Lot links in file after recreating new links (67.96 KB, text/plain)
2014-12-19 05:26 UTC, Bob Brush
  Details
Potential fix for the crash with patch B (815 bytes, patch)
2015-01-18 19:51 UTC, Geert Janssens
rejected Details | Review

Description Bob Brush 2014-12-12 04:34:24 UTC
Open program, open vendor overview, go to vendor, open report, open last bill, unpost (bang)

Very specifc to this vendor and this bill.

gdb gnucash
GNU gdb (Gentoo 7.8.1 vanilla) 7.8.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from gnucash...done.
(gdb) run
Starting program: /usr/local/bin/gnucash 
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
warning: File "/lib64/libthread_db-1.0.so" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
To enable execution of this file add
	add-auto-load-safe-path /lib64/libthread_db-1.0.so
line to your configuration file "/root/.gdbinit".
To completely disable this security protection add
	set auto-load safe-path /
line to your configuration file "/root/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual.  E.g., run from the shell:
	info "(gdb)Auto-loading safe path"
warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.


This is a development version. It may or may not work.
Report bugs and other problems to gnucash-devel@gnucash.org
You can also lookup and file bug reports at http://bugzilla.gnome.org
To find the last stable version, please refer to http://www.gnucash.org
[New LWP 3477]
Found Finance::Quote version 1.35
java version "1.7.0_71"
OpenJDK Runtime Environment (IcedTea 2.5.3) (Gentoo package icedtea-7.2.5.3)
OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)
^C
Program received signal SIGINT, Interrupt.
0x00007fffee88a5fb in g_str_hash () from /usr/lib64/libglib-2.0.so.0
(gdb) backtrace
  • #0 g_str_hash
    from /usr/lib64/libglib-2.0.so.0
  • #1 g_hash_table_lookup_extended
    from /usr/lib64/libglib-2.0.so.0
  • #2 qof_string_cache_insert
    at qof-string-cache.cpp line 123
  • #3 xaccDupeSplit
    at Split.c line 620
  • #4 dupe_trans
    at Transaction.c line 614
  • #5 xaccTransBeginEdit
    at Transaction.c line 1395
  • #6 xaccSplitSetMemo
    at Split.c line 1772
  • #7 gncOwnerSetLotLinkMemo
    at gncOwner.c line 1002
  • #8 gncOwnerCreateLotLink
    at gncOwner.c line 1160
  • #9 gncOwnerAutoApplyPaymentsWithLots
    at gncOwner.c line 1295
  • #10 gncInvoiceUnpost
    at gncInvoice.c line 1699
  • #11 gnc_invoice_window_unpostCB
  • #12 gnc_plugin_page_invoice_cmd_unpost
    at gnc-plugin-page-invoice.c line 773
  • #13 g_closure_invoke
    from /usr/lib64/libgobject-2.0.so.0
  • #14 ??
    from /usr/lib64/libgobject-2.0.so.0
  • #15 g_signal_emit_valist
    from /usr/lib64/libgobject-2.0.so.0
  • #16 g_signal_emit
    from /usr/lib64/libgobject-2.0.so.0
  • #17 ??
    from /usr/lib64/libgtk-x11-2.0.so.0
  • #18 ??
    from /usr/lib64/libgtk-x11-2.0.so.0
  • #19 ??
    from /usr/lib64/libgobject-2.0.so.0
  • #20 g_signal_emit_valist
    from /usr/lib64/libgobject-2.0.so.0
  • #21 g_signal_emit
    from /usr/lib64/libgobject-2.0.so.0
  • #22 ??
    from /usr/lib64/libgtk-x11-2.0.so.0
  • #23 g_closure_invoke
    from /usr/lib64/libgobject-2.0.so.0
  • #24 ??
    from /usr/lib64/libgobject-2.0.so.0
  • #25 g_signal_emit_valist
    from /usr/lib64/libgobject-2.0.so.0
  • #26 g_signal_emit
    from /usr/lib64/libgobject-2.0.so.0
  • #27 ??
    from /usr/lib64/libgtk-x11-2.0.so.0
  • #28 ??
    from /usr/lib64/libgtk-x11-2.0.so.0
  • #29 g_closure_invoke
    from /usr/lib64/libgobject-2.0.so.0
  • #30 ??
    from /usr/lib64/libgobject-2.0.so.0
  • #31 g_signal_emit_valist
    from /usr/lib64/libgobject-2.0.so.0
  • #32 g_signal_emit
    from /usr/lib64/libgobject-2.0.so.0
  • #33 ??
    from /usr/lib64/libgtk-x11-2.0.so.0
  • #34 gtk_propagate_event
    from /usr/lib64/libgtk-x11-2.0.so.0
  • #35 gtk_main_do_event
    from /usr/lib64/libgtk-x11-2.0.so.0
  • #36 ??
    from /usr/lib64/libgdk-x11-2.0.so.0
  • #37 g_main_context_dispatch
    from /usr/lib64/libglib-2.0.so.0
  • #38 ??
    from /usr/lib64/libglib-2.0.so.0
  • #39 g_main_loop_run
    from /usr/lib64/libglib-2.0.so.0
  • #40 gtk_main
    from /usr/lib64/libgtk-x11-2.0.so.0
  • #41 gnc_ui_start_event_loop
    at gnc-gnome-utils.c line 608
  • #42 inner_main
    at gnucash-bin.c line 621
  • #43 ??
    from /usr/lib64/libguile.so.17
  • #44 ??
    from /usr/lib64/libguile.so.17
  • #45 scm_c_catch
    from /usr/lib64/libguile.so.17
  • #46 scm_i_with_continuation_barrier
    from /usr/lib64/libguile.so.17
  • #47 scm_c_with_continuation_barrier
    from /usr/lib64/libguile.so.17
  • #48 scm_i_with_guile_and_parent
    from /usr/lib64/libguile.so.17
  • #49 scm_boot_guile
    from /usr/lib64/libguile.so.17
  • #50 main
    at gnucash-bin.c line 776

Comment 1 Bob Brush 2014-12-12 23:25:46 UTC
So while this freeze is in effect it is actually trying to do something and as a result is writing a log file, here is an excerpt, the log file generated was 10G in size, suprising for the breif amount of time I left it running.  I had the file in my dropbox, which stopped syncing as a result, thank goodness, at the horrible upload speeds we have it would have taken a year anyway!  Also glad I didn't leave it running all night to "finish" poor laptop would have crashed itself.. 

---------------------------------------------------------------------------

head PG\ Model\ cant\ unpost\ invoice\ for\ 60.gnucash.20141211231824.log 


mod	trans_guid	split_guid	time_now	date_entered	date_posted	acc_guid	acc_name	num	description	notes	memo	action	reconciled	amount	value	date_reconciled
-----------------
===== START
B	b3cf1033f4a74c208a0fdfe1f6a06c20	b262679f91ff44ee85cd99e2cce97996	2014-12-11 23:18:24.000000 -0500	2014-12-08 21:26:44.000000 -0500	2014-12-08 00:00:00.000000 -0500	48d17c755bc3c515cb921498338f648c	Cost of Goods Sold	004582	PG Hardwood Flooring, Inc.			Bill	n	6000/100	6000/100	1969-12-31 19:00:00.000000 -0500
B	b3cf1033f4a74c208a0fdfe1f6a06c20	7d5a5de315e34910b61d7f5826b7d743	2014-12-11 23:18:24.000000 -0500	2014-12-08 21:26:44.000000 -0500	2014-12-08 00:00:00.000000 -0500	a23571126889e720e9222557a7739e13	Penny Bucket	004582	PG Hardwood Flooring, Inc.	Bill	n	0/100	0/100	1969-12-31 19:00:00.000000 -0500
B	b3cf1033f4a74c208a0fdfe1f6a06c20	f3e399bfbdd0477493051c713b86c457	2014-12-11 23:18:24.000000 -0500	2014-12-08 21:26:44.000000 -0500	2014-12-08 00:00:00.000000 -0500	7632d182abb68892040e0c148021aaea	Accounts Payable	004582	PG Hardwood Flooring, Inc.			Bill	n	-6000/100	-6000/100	1969-12-31 19:00:00.000000 -0500
===== END
===== START
C	b3cf1033f4a74c208a0fdfe1f6a06c20	b262679f91ff44ee85cd99e2cce97996	2014-12-11 23:18:24.000000 -0500	2014-12-08 21:26:44.000000 -0500	2014-12-08 00:00:00.000000 -0500	48d17c755bc3c515cb921498338f648c	Cost of Goods Sold	004582	PG Hardwood Flooring, Inc.			Bill	n	6000/100	6000/100	1969-12-31 19:00:00.000000 -0500
C	b3cf1033f4a74c208a0fdfe1f6a06c20	7d5a5de315e34910b61d7f5826b7d743	2014-12-11 23:18:24.000000 -0500	2014-12-08 21:26:44.000000 -0500	2014-12-08 00:00:00.000000 -0500	a23571126889e720e9222557a7739e13	Penny Bucket	004582	PG Hardwood Flooring, Inc.	Bill	n	0/100	0/100	1969-12-31 19:00:00.000000 -0500

------------------------------------------------------------------------------

tail PG\ Model\ cant\ unpost\ invoice\ for\ 60.gnucash.20141211231824.log 

B	77abd8ccbfad418d8a32c3a94dca2dc1	bd006652d6dc4e57b78d9abab5f10ba92014-12-11 23:35:37.000000 -0500	2014-12-11 23:18:46.000000 -0500	2014-12-08 00:00:00.000000 -0500	7632d182abb68892040e0c148021aaea	Accounts Payable		PG Hardwood Flooring, Inc.		Offset between documents: Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Credit Note 004377 - Credit Note 004377 - Credit Note 004377 - Credit Note 004377 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004425 - Credit Note 004425 - Credit Note 004425 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004537 - Credit Note 004537 - Credit Note 004537 - Credit Note 004537 - Credit Note 004537 - Credit Note 004537 - Credit Note 004537 - Credit Note 004537 - Credit Note 004547 - Credit Note 004547 - Credit Note 004547 - Credit Note 004547 - Credit Note 004547 - Credit Note 004547 - Credit Note 004547 - Credit Note 004547 - Credit Note 004579 - Credit Note 004579 - Credit Note 004579 - Credit Note 004579 - Credit Note 004579 - Credit Note 004579 - Credit Note 004579 - Credit Note 004579 - Credit Note 004580 - Credit Note 004580 - Credit Note 004580 - Credit Note 004580 - Credit Note 004580 - Credit Note 004580 - Credit Note 004580 - Credit Note 004580	Lot Link	n	-256620/100	-256620/100	1969-12-31 19:00:00.000000 -0500
===== END
===== START
C	77abd8ccbfad418d8a32c3a94dca2dc1	d660da7f8d6840279db3c09e7d18e7982014-12-11 23:35:37.000000 -0500	2014-12-11 23:18:46.000000 -0500	2014-12-08 00:00:00.000000 -0500	7632d182abb68892040e0c148021aaea	Accounts Payable		PG Hardwood Flooring, Inc.		Offset between documents: Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Credit Note 004377 - Credit Note 004377 - Credit Note 004377 - Credit Note 004377 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004425 - Credit Note 004425 - Credit Note 004425 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004537 - Credit Note 004537 - Credit Note 004537 - Credit Note 004537 - Credit Note 004537 - Credit Note 004537 - Credit Note 004537 - Credit Note 004537 - Credit Note 004547 - Credit Note 004547 - Credit Note 004547 - Credit Note 004547 - Credit Note 004547 - Credit Note 004547 - Credit Note 004547 - Credit Note 004547 - Credit Note 004579 - Credit Note 004579 - Credit Note 004579 - Credit Note 004579 - Credit Note 004579 - Credit Note 004579 - Credit Note 004579 - Credit Note 004579 - Credit Note 004580 - Credit Note 004580 - Credit Note 004580 - Credit Note 004580 - Credit Note 004580 - Credit Note 004580 - Credit Note 004580 - Credit Note 004580	Lot Link	n	60814/100	60814/100	1969-12-31 19:00:00.000000 -0500
C	77abd8ccbfad418d8a32c3a94dca2dc1	6374d8b696e54cb6af899ed0c26b7f472014-12-11 23:35:37.000000 -0500	2014-12-11 23:18:46.000000 -0500	2014-12-08 00:00:00.000000 -0500	7632d182abb68892040e0c148021aaea	Accounts Payable		PG Hardwood Flooring, Inc.		Offset between documents: Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Credit Note 004377 - Credit Note 004377 - Credit Note 004377 - Credit Note 004377 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004425 - Credit Note 004425 - Credit Note 004425 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004537 - Credit Note 004537 - Credit Note 004537 - Credit Note 004537 - Credit Note 004537 - Credit Note 004537 - Credit Note 004537 - Credit Note 004537 - Credit Note 004547 - Credit Note 004547 - Credit Note 004547 - Credit Note 004547 - Credit Note 004547 - Credit Note 004547 - Credit Note 004547 - Credit Note 004547 - Credit Note 004579 - Credit Note 004579 - Credit Note 004579 - Credit Note 004579 - Credit Note 004579 - Credit Note 004579 - Credit Note 004579 - Credit Note 004579 - Credit Note 004580 - Credit Note 004580 - Credit Note 004580 - Credit Note 004580 - Credit Note 004580 - Credit Note 004580 - Credit Note 004580 - Credit Note 004580	Lot Link	n	0/100	0/100	1969-12-31 19:00:00.000000 -0500
C	77abd8ccbfad418d8a32c3a94dca2dc1	d82bd2b128e4494aa9a900cebd8ed7ca2014-12-11 23:35:37.000000 -0500	2014-12-11 23:18:46.000000 -0500	2014-12-08 00:00:00.000000 -0500	7632d182abb68892040e0c148021aaea	Accounts Payable		PG Hardwood Flooring, Inc.		Offset between documents: Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Credit Note 004377 - Credit Note 004377 - Credit Note 004377 - Credit Note 004377 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004425 - Credit Note 004425 - Credit Note 004425 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004537 - Credit Note 004537 - Credit Note 004537 - Credit Note 004537 - Credit Note 004537 - Credit Note 004537 - Credit Note 004537 - Credit Note 004537 - Credit Note 004547 - Credit Note 004547 - Credit Note 004547 - Credit Note 004547 - Credit Note 004547 - Credit Note 004547 - Credit Note 004547 - Credit Note 004547 - Credit Note 004579 - Credit Note 004579 - Credit Note 004579 - Credit Note 004579 - Credit Note 004579 - Credit Note 004579 - Credit Note 004579 - Credit Note 004579 - Credit Note 004580 - Credit Note 004580 - Credit Note 004580 - Credit Note 004580 - Credit Note 004580 - Credit Note 004580 - Credit Note 004580 - Credit Note 004580	Lot Link	n	0/100	0/100	1969-12-31 19:00:00.000000 -0500
C	77abd8ccbfad418d8a32c3a94dca2dc1	d62d5674ecbe4433ba9e6a20278850932014-12-11 23:35:37.000000 -0500	2014-12-11 23:18:46.000000 -0500	2014-12-08 00:00:00.000000 -0500	7632d182abb68892040e0c148021aaea	Accounts Payable		PG Hardwood Flooring, Inc.		Offset between documents: Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Credit Note 004377 - Credit Note 004377 - Credit Note 004377 - Credit Note 004377 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004425 - Credit Note 004425 - Credit Note 004425 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004537 - Credit Note 004537 - Credit Note 004537 - Credit Note 004537 - Credit Note 004537 - Credit Note 004537 - Credit Note 004537 - Credit Note 004537 - Credit Note 004547 - Credit Note 004547 - Credit Note 004547 - Credit Note 004547 - Credit Note 004547 - Credit Note 004547 - Credit Note 004547 - Credit Note 004547 - Credit Note 004579 - Credit Note 004579 - Credit Note 004579 - Credit Note 004579 - Credit Note 004579 - Credit Note 004579 - Credit Note 004579 - Credit Note 004579 - Credit Note 004580 - Credit Note 004580 - Credit Note 004580 - Credit Note 004580 - Credit Note 004580 - Credit Note 004580 - Credit Note 004580 - Credit Note 004580	Lot Link	n	0/100	0/100	1969-12-31 19:00:00.000000 -0500
C	77abd8ccbfad418d8a32c3a94dca2dc1	a7b6282aafb24b5bab213f69661167a22014-12-11 23:35:37.000000 -0500	2014-12-11 23:18:46.000000 -0500	2014-12-08 00:00:00.000000 -0500	7632d182abb68892040e0c148021aaea	Accounts Payable		PG Hardwood Flooring, Inc.		Offset between documents: Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Credit Note 004377 - Credit Note 004377 - Credit Note 004377 - Credit Note 004377 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004425 - Credit Note 004425 - Credit Note 004425 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004537 - Credit Note 004537 - Credit Note 004537 - Credit Note 004537 - Credit Note 004537 - Credit Note 004537 - Credit Note 004537 - Credit Note 004537 - Credit Note 004547 - Credit Note 004547 - Credit Note 004547 - Credit Note 004547 - Credit Note 004547 - Credit Note 004547 - Credit Note 004547 - Credit Note 004547 - Credit Note 004579 - Credit Note 004579 - Credit Note 004579 - Credit Note 004579 - Credit Note 004579 - Credit Note 004579 - Credit Note 004579 - Credit Note 004579 - Credit Note 004580 - Credit Note 004580 - Credit Note 004580 - Credit Note 004580 - Credit Note 004580 - Credit Note 004580 - Credit Note 004580 - Credit Note 004580	Lot Link	n	0/100	0/100	1969-12-31 19:00:00.000000 -0500
C	77abd8ccbfad418d8a32c3a94dca2dc1	b19d81a2941a4f898cae3c9663190b202014-12-11 23:35:37.000000 -0500	2014-12-11 23:18:46.000000 -0500	2014-12-08 00:00:00.000000 -0500	7632d182abb68892040e0c148021aaea	Accounts Payable		PG Hardwood Flooring, Inc.		Offset between documents: Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004176 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004193 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004222 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Bill 004320 - Credit Note 004377 - Credit Note 004377 - Credit Note 004377 - Credit Note 004377 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004425 - Credit Note 004425 - Credit Note 004425 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004537 - Credit Note 004537 - Credit Note 004537 - Credit Note 004537 - Credit Note 004537 - Credit Note 004537 - Credit Note 004537 - Credit Note 004537 - Credit Note 004547 - Credit Note 004547 - Credit Note 004547 - Credit Note 004547 - Credit Note 004547 - Credit Note 004547 - Credit Note 004547 - Credit Note 004547 - Credit Note 004579 - Credit Note 004579 - Credit Note 004579 - Credit Note 004579 - Credit Note 004579 - Credit Note 004579 - Credit Note 004579 - Credit Note 004579 - Credit Note 004580 - Credit Note 004580 - Credit Note 004580 - Credit Note 004580 - Credit Note 004580 - Credit Note 004580 - Credit Note 004580 - Credit Note 004580	Lot Link	n	0/100	0/100	1969-12-31 19:00:00.000000 -0500
C	77abd8ccbfad418d8a32c3a94dca2dc1	12ffd0f3074f4fdf9f67df99c61272732014-12-11 23:35:37.000000 -0500	2014-12-11 23:18:46.000000 -0500	2014-12-08 00:00:00.000000 -0500	7632d182abb68892040e0c148021aaea	Accounts Payable		PG Hardwood Flooring, Inc.
Comment 2 John Ralls 2014-12-12 23:34:10 UTC
Looks like you've somehow managed to make a circular reference in your data. Take a look at the file in a text editor and see if you can find it.
Comment 3 Bob Brush 2014-12-14 01:27:46 UTC
OK, this problem has struck again, so I think it is more than a glitch, it has something to do with posting and unposting invoices, something in the logic is breaking, I think with assigning lot links to the A/P or A/R, The ones giving me trouble are ones with lots of bills or invoices, I am also not accumulating the invoices, so multiple lines per invoice.  It seems to grow with use, if I post and unpost 1 it takes a little while, but seconds.. with the second it take a minute or so, the third cant complete..  It also writes out super large log files, the first was normal size, the second a couple gig, the third 15g+ had to kill it couldn't wait to see what would happen.. My concern is for the data file now, I don't want to do damage that can't be undone..
Comment 4 Geert Janssens 2014-12-17 20:41:13 UTC
Created attachment 292936 [details] [review]
Fix quasi infinite split fragmentation

Bob,

I am looking into this issue. I can see how the log entries with many duplicate bill and credit note names are generated. This is accompanied by the creation of transactions in your AP account with many splits. The transaction you show in the transaction log is a transaction with more than 150 splits already!

This was not supposed to happen and I have applied a patch to the maint branch to fix this. I have attached the same patch here so you can try it as well.

In itself this patch will only prevent such monster transactions from being generated in the future. Those that are already there will have to be cleaned up using Check & Repair (which also only works correctly after the patch).

This is how to use it:
1. apply the patch to your master checkout and rebuild gnucash
2. open (a copy of) your data file
3. select your AR account in the Account Hierarchy (don't open its register though)
4. Choose Actions->Check & Repair->Check & Repair Account
5. optionally repeat for all your other AR and AP accounts

It would be great if you could compare some of the lot link transactions in that account before and after running check & repair.

They should be easily recognizable: they all start with "Offset between documents:" followed by all the bills and credit notes involved in the current transaction.

Before the check & repair you will find loads of splits with this description and the list of documents following "Offset between documents:" will have your bills and cns repeated multiple times.

After check & repair the amount of splits should have been significantly reduced and on each line the bills and cns involved should only appear once in the list.

Can you report your results back here ? Thanks.
Comment 5 Bob Brush 2014-12-18 04:43:34 UTC
Can't compile the current version, so using a Nov 4 copy..

Patch applied ok: 
patch < 0001-Fix-lot-scrubbing-for-business-lots.patch src/engine/Scrub2.c
make distclean
./autogen.sh
./configure --prefix=/home/brushb/Testing_0001-Fix-lot-scrubbing-for-business-lots-Nov-4-14 --enable-debug --enable-doxygen --disable-error-on-warning
make all
make install

Check & Repair maxes out my laptop for 20 minutes straigh and made a 6.9gig log file, I had to kill it, but I'll try and figure it out again..

Is this what you meant about checking the reduction of splits:

zcat Offset-between-documents-7867.gnucash | grep "Offset between documents" > Before-patch-offset-between-documents.txt

zcat Offset-between-documents-7867.gnucash | grep "Offset between documents" > After-patch-offset-between-documents.txt
Comment 6 Bob Brush 2014-12-18 05:15:31 UTC
Created attachment 292949 [details]
output of file before testing

This would lockup when running a Dec version, so I saved a copy of the file and noted the problem account
Comment 7 Bob Brush 2014-12-18 05:17:12 UTC
Created attachment 292950 [details]
output of file after testing with patch
Comment 8 Bob Brush 2014-12-18 05:18:09 UTC
Created attachment 292951 [details]
output of file after testing without patch
Comment 9 Geert Janssens 2014-12-18 10:04:27 UTC
(In reply to comment #5)
> Can't compile the current version, so using a Nov 4 copy..
> 
That should be ok as well for this test.

> Patch applied ok: 
> patch < 0001-Fix-lot-scrubbing-for-business-lots.patch src/engine/Scrub2.c
> make distclean
> ./autogen.sh
> ./configure
> --prefix=/home/brushb/Testing_0001-Fix-lot-scrubbing-for-business-lots-Nov-4-14
> --enable-debug --enable-doxygen --disable-error-on-warning
> make all
> make install
> 
Ok.

> Check & Repair maxes out my laptop for 20 minutes straight and made a 6.9gig log
> file, I had to kill it, but I'll try and figure it out again..
> 
I was already afraid of this. Check and repair goes through the same split creation process as the payments do. The reduction happens at the end. Since you already have some link transactions with lots of splits, this seems to make the job explode.

> Is this what you meant about checking the reduction of splits:
> 
> zcat Offset-between-documents-7867.gnucash | grep "Offset between documents" >
> Before-patch-offset-between-documents.txt
> 
> zcat Offset-between-documents-7867.gnucash | grep "Offset between documents" >
> After-patch-offset-between-documents.txt

That's a good way to verify this yes. The documents you have attached are showing what I wanted to see.
Comment 10 Geert Janssens 2014-12-18 10:36:09 UTC
(In reply to comment #6)
> Created an attachment (id=292949) [details]
> output of file before testing
> 
> This would lockup when running a Dec version, so I saved a copy of the file and
> noted the problem account

The output file before testing shows several link transactions with multiple splits. In the ideal situation there should be one split per bill or credit note that was being offset. As both the split memo and the amount of splits illustrate this is not the case. For example you will find this split 48 times:
<split:memo>Offset between documents: Credit Note 007686 - Credit Note 007686 - Credit Note 007686 - Credit Note 007686 - Credit Note 007686 - Credit Note 007686 - Credit Note 007686 - Credit Note 007699 - Credit Note 007699 - Credit Note 007699 - Invoice 007449 - Invoice 007687 - Invoice 007687 - Invoice 007687 - Invoice 007687 - Invoice 007691 - Invoice 007691 - Invoice 007691 - Invoice 007691 - Invoice 007691 - Invoice 007691 - Invoice 007691 - Invoice 007691 - Invoice 007691 - Invoice 007691 - Invoice 007691 - Invoice 007691 - Invoice 007691 - Invoice 007692 - Invoice 007692 - Invoice 007692 - Invoice 007692 - Invoice 007707 - Invoice 007707 - Invoice 007707 - Invoice 007707 - Invoice 007707 - Invoice 007707 - Invoice 007863 - Invoice 007863 - Invoice 007863 - Invoice 007863 - Invoice 007863 - Invoice 007863</split:memo>

These together make one link transaction that offsets these documents:
Credit Note 007686 
Credit Note 007699 
Invoice 007449 
Invoice 007687 
Invoice 007691 
Invoice 007692 
Invoice 007696 
Invoice 007707 
Invoice 007863
Invoice 007863

So that should have been only 9 splits in total.

The good news is that your grep from after the run shows this particular link transaction did get fixed after the test.

There is however a second link transaction that's even worse:
<split:memo>Offset between documents: Bill 004176 - Bill 004176 - Bill 004193 - Bill 004222 - Bill 004320 - Bill 004345 - Bill 004347 - Bill 004347 - Bill 004347 - Bill 004347 - Bill 004347 - Bill 004347 - Bill 004347 - Bill 004375 - Bill 004375 - Bill 004375 - Bill 004375 - Bill 004375 - Bill 004375 - Bill 004415 - Bill 004415 - Bill 004415 - Bill 004415 - Bill 004505 - Bill 004505 - Bill 004520 - Bill 004520 - Bill 004581 - Bill 004581 - Bill 004582 - Bill 004582 - Credit Note 004377 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004424 - Credit Note 004425 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004426 - Credit Note 004537 - Credit Note 004537 - Credit Note 004537 - Credit Note 004547 - Credit Note 004547 - Credit Note 004547 - Credit Note 004579 - Credit Note 004579 - Credit Note 004579 - Credit Note 004580 - Credit Note 004580 - Credit Note 004580</split:memo>

This is a link transaction with 62 splits, offsetting the following documents:
Bill 004176
Bill 004193
Bill 004222
Bill 004320
Bill 004345
Bill 004347
Bill 004375
Bill 004415
Bill 004505
Bill 004520
Bill 004581
Bill 004582
Credit Note 004377
Credit Note 004424
Credit Note 004425
Credit Note 004426
Credit Note 004537
Credit Note 004547
Credit Note 004579
Credit Note 004580

That's 20 documents, so the transaction should only have 20 splits.

This one hasn't been fixed yet after your testing. Maybe this is the one choking your laptop ?

You can probably repair it manually if you want. Here is how:

1. First and foremost you should figure out if these bills/credit notes were part of a bigger payment - that is, did these documents balances each other out completely or was there still a payment/reimbursement involved ? If there was one, you may want to figure out at what date and which account was used for this.
2. Next open your AP account and locate any of the 62 splits with memo as I printed above.
4. Delete the transaction for this split (hit the red X in the toolbar). This will delete all 62 splits! And gnucash will have forgotten the link between these 20 documents.
5. Open Business->Vendor->Process Payment... and enter the Vendor name. This should give you a list of outstanding documents and pre-payments for this vendor. The 20 documents from the deleted link transaction should be in the list again as well.
6. Select all 20 of them. This should leave you with an amount to pay of 0. Set the date and apply the payment.

If you now save your book and run grep on the data file, that should give only 20 splits for this particular transaction. Can you check this ?
Comment 11 Bob Brush 2014-12-19 05:23:52 UTC
I think this was a good thing, if I search for "004176" in the original list of splits it shows 124, after deleting the lot link it shows 0 and then re applying the lot link it shows 13.
Comment 12 Bob Brush 2014-12-19 05:24:36 UTC
Created attachment 293018 [details]
Lot links in file before
Comment 13 Bob Brush 2014-12-19 05:25:42 UTC
Created attachment 293019 [details]
Lot links in file after deletion of mega link
Comment 14 Bob Brush 2014-12-19 05:26:34 UTC
Created attachment 293020 [details]
Lot links in file after recreating new links
Comment 15 Bob Brush 2014-12-19 05:35:22 UTC
Running repair on open registry with a filter 1/1/14 to last date crashes:

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff292b011 in xaccTransScrubOrphans (trans=0x0) at Scrub.c:129
129	    for (node = trans->splits; node; node = node->next)
(gdb) backtrace
  • #0 xaccTransScrubOrphans
    at Scrub.c line 129
  • #1 gnc_plugin_page_register_cmd_scrub_all
    at gnc-plugin-page-register.c line 3764
  • #2 g_closure_invoke
    from /usr/lib64/libgobject-2.0.so.0
  • #3 ??
    from /usr/lib64/libgobject-2.0.so.0
  • #4 g_signal_emit_valist
    from /usr/lib64/libgobject-2.0.so.0
  • #5 g_signal_emit
    from /usr/lib64/libgobject-2.0.so.0
  • #6 ??
    from /usr/lib64/libgtk-x11-2.0.so.0
  • #7 g_closure_invoke
    from /usr/lib64/libgobject-2.0.so.0
  • #8 ??
    from /usr/lib64/libgobject-2.0.so.0
  • #9 g_signal_emit_valist
    from /usr/lib64/libgobject-2.0.so.0
  • #10 g_signal_emit
    from /usr/lib64/libgobject-2.0.so.0
  • #11 gtk_widget_activate
    from /usr/lib64/libgtk-x11-2.0.so.0
  • #12 gtk_menu_shell_activate_item
    from /usr/lib64/libgtk-x11-2.0.so.0
  • #13 ??
    from /usr/lib64/libgtk-x11-2.0.so.0
  • #14 ??
    from /usr/lib64/libgtk-x11-2.0.so.0
  • #15 g_closure_invoke
    from /usr/lib64/libgobject-2.0.so.0
  • #16 ??
    from /usr/lib64/libgobject-2.0.so.0
  • #17 g_signal_emit_valist
    from /usr/lib64/libgobject-2.0.so.0
  • #18 g_signal_emit
    from /usr/lib64/libgobject-2.0.so.0
  • #19 ??
    from /usr/lib64/libgtk-x11-2.0.so.0
  • #20 gtk_propagate_event
    from /usr/lib64/libgtk-x11-2.0.so.0
  • #21 gtk_main_do_event
    from /usr/lib64/libgtk-x11-2.0.so.0
  • #22 ??
    from /usr/lib64/libgdk-x11-2.0.so.0
  • #23 g_main_context_dispatch
    from /usr/lib64/libglib-2.0.so.0
  • #24 ??
    from /usr/lib64/libglib-2.0.so.0
  • #25 g_main_loop_run
    from /usr/lib64/libglib-2.0.so.0
  • #26 gtk_main
    from /usr/lib64/libgtk-x11-2.0.so.0
  • #27 gnc_ui_start_event_loop
    at gnc-gnome-utils.c line 608
  • #28 inner_main
    at gnucash-bin.c line 621
  • #29 ??
    from /usr/lib64/libguile.so.17
  • #30 ??
    from /usr/lib64/libguile.so.17
  • #31 scm_c_catch
    from /usr/lib64/libguile.so.17
  • #32 scm_i_with_continuation_barrier
    from /usr/lib64/libguile.so.17
  • #33 scm_c_with_continuation_barrier
    from /usr/lib64/libguile.so.17
  • #34 scm_i_with_guile_and_parent
    from /usr/lib64/libguile.so.17
  • #35 scm_boot_guile
    from /usr/lib64/libguile.so.17
  • #36 main
    at gnucash-bin.c line 776

Comment 16 Geert Janssens 2014-12-20 10:35:47 UTC
(In reply to comment #11)
> I think this was a good thing, if I search for "004176" in the original list of
> splits it shows 124, after deleting the lot link it shows 0 and then re
> applying the lot link it shows 13.

Great! That's how it should be. FYI this patch is part of gnucash 2.6.5 which just got released. It's not merged into master yet (I will normally do so today).
Comment 17 Geert Janssens 2014-12-20 10:37:50 UTC
(In reply to comment #15)
> Running repair on open registry with a filter 1/1/14 to last date crashes:
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x00007ffff292b011 in xaccTransScrubOrphans (trans=0x0) at Scrub.c:129
> 129        for (node = trans->splits; node; node = node->next)
> (gdb) backtrace
> 

Yes, I have run into this crash occasionally as well. It only happens when you run Check & Repair on an open register. I never saw it happen when running Check & Repair from the account hierarchy. Which is why I suggested to used that route instead. I could have said so more explicitly.
Comment 18 Geert Janssens 2014-12-20 11:20:53 UTC
Actually this last crash was trivially easy to deal with. I have just committed the fix to both maint and master.

Can you check if this fixes it for you as  well ?
Comment 19 Bob Brush 2014-12-29 02:07:37 UTC
While I had the three different patch sets running I decided to try and unpost this bill and received the following crash for B and C, but A just froze..

gdb Testing_PatchB/bin/gnucash
GNU gdb (Gentoo 7.8.1 vanilla) 7.8.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from Testing_PatchB/bin/gnucash...done.
(gdb) run
Starting program: /home/brushb/Testing_PatchB/bin/gnucash 
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
warning: File "/lib64/libthread_db-1.0.so" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
To enable execution of this file add
	add-auto-load-safe-path /lib64/libthread_db-1.0.so
line to your configuration file "/home/brushb/.gdbinit".
To completely disable this security protection add
	set auto-load safe-path /
line to your configuration file "/home/brushb/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual.  E.g., run from the shell:
	info "(gdb)Auto-loading safe path"
warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.


This is a development version. It may or may not work.
Report bugs and other problems to gnucash-devel@gnucash.org
You can also lookup and file bug reports at http://bugzilla.gnome.org
To find the last stable version, please refer to http://www.gnucash.org
Found Finance::Quote version 1.35
java version "1.7.0_71"
OpenJDK Runtime Environment (IcedTea 2.5.3) (Gentoo package icedtea-7.2.5.3)
OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff2946a57 in xaccTransGetTxnType (trans=0x6c70532065735500)
    at Transaction.c:2306
2306	    s = kvp_frame_get_string (trans->inst.kvp_data, TRANS_TXN_TYPE_KVP);
(gdb) backtrace
  • #0 xaccTransGetTxnType
    at Transaction.c line 2306
  • #1 gncInvoiceUnpost
    at gncInvoice.c line 1673
  • #2 gnc_invoice_window_unpostCB
    at dialog-invoice.c line 981
  • #3 gnc_plugin_page_invoice_cmd_unpost
    at gnc-plugin-page-invoice.c line 773
  • #4 g_closure_invoke
    from /usr/lib64/libgobject-2.0.so.0
  • #5 ??
    from /usr/lib64/libgobject-2.0.so.0
  • #6 g_signal_emit_valist
    from /usr/lib64/libgobject-2.0.so.0
  • #7 g_signal_emit
    from /usr/lib64/libgobject-2.0.so.0
  • #8 ??
    from /usr/lib64/libgtk-x11-2.0.so.0
  • #9 ??
    from /usr/lib64/libgtk-x11-2.0.so.0
  • #10 ??
    from /usr/lib64/libgobject-2.0.so.0
  • #11 g_signal_emit_valist
    from /usr/lib64/libgobject-2.0.so.0
  • #12 g_signal_emit
    from /usr/lib64/libgobject-2.0.so.0
  • #13 ??
    from /usr/lib64/libgtk-x11-2.0.so.0
  • #14 g_closure_invoke
    from /usr/lib64/libgobject-2.0.so.0
  • #15 ??
    from /usr/lib64/libgobject-2.0.so.0
  • #16 g_signal_emit_valist
    from /usr/lib64/libgobject-2.0.so.0
  • #17 g_signal_emit
    from /usr/lib64/libgobject-2.0.so.0
  • #18 ??
    from /usr/lib64/libgtk-x11-2.0.so.0
  • #19 ??
    from /usr/lib64/libgtk-x11-2.0.so.0
  • #20 g_closure_invoke
    from /usr/lib64/libgobject-2.0.so.0
  • #21 ??
    from /usr/lib64/libgobject-2.0.so.0
  • #22 g_signal_emit_valist
    from /usr/lib64/libgobject-2.0.so.0
  • #23 g_signal_emit
    from /usr/lib64/libgobject-2.0.so.0
  • #24 ??
    from /usr/lib64/libgtk-x11-2.0.so.0
  • #25 gtk_propagate_event
    from /usr/lib64/libgtk-x11-2.0.so.0
  • #26 gtk_main_do_event
    from /usr/lib64/libgtk-x11-2.0.so.0
  • #27 ??
    from /usr/lib64/libgdk-x11-2.0.so.0
  • #28 g_main_context_dispatch
    from /usr/lib64/libglib-2.0.so.0
  • #29 ??
    from /usr/lib64/libglib-2.0.so.0
  • #30 g_main_loop_run
    from /usr/lib64/libglib-2.0.so.0
  • #31 gtk_main
    from /usr/lib64/libgtk-x11-2.0.so.0
  • #32 gnc_ui_start_event_loop
    at gnc-gnome-utils.c line 608
  • #33 inner_main
    at gnucash-bin.c line 621
  • #34 ??
    from /usr/lib64/libguile.so.17
  • #35 ??
    from /usr/lib64/libguile.so.17
  • #36 scm_c_catch
    from /usr/lib64/libguile.so.17
  • #37 scm_i_with_continuation_barrier
    from /usr/lib64/libguile.so.17
  • #38 scm_c_with_continuation_barrier
    from /usr/lib64/libguile.so.17
  • #39 scm_i_with_guile_and_parent
    from /usr/lib64/libguile.so.17
  • #40 scm_boot_guile
    from /usr/lib64/libguile.so.17
  • #41 main
    at gnucash-bin.c line 776

Comment 20 Bob Brush 2014-12-29 02:11:10 UTC
(In reply to comment #19)
> While I had the three different patch sets running I decided to try and unpost
I should have said A and B crashed, and C froze.. 


gdb Testing_PatchA/bin/gnucash
GNU gdb (Gentoo 7.8.1 vanilla) 7.8.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from Testing_PatchA/bin/gnucash...done.
(gdb) run
Starting program: /home/brushb/Testing_PatchA/bin/gnucash 
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
warning: File "/lib64/libthread_db-1.0.so" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
To enable execution of this file add
	add-auto-load-safe-path /lib64/libthread_db-1.0.so
line to your configuration file "/home/brushb/.gdbinit".
To completely disable this security protection add
	set auto-load safe-path /
line to your configuration file "/home/brushb/.gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual.  E.g., run from the shell:
	info "(gdb)Auto-loading safe path"
warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.


This is a development version. It may or may not work.
Report bugs and other problems to gnucash-devel@gnucash.org
You can also lookup and file bug reports at http://bugzilla.gnome.org
To find the last stable version, please refer to http://www.gnucash.org
Found Finance::Quote version 1.35
java version "1.7.0_71"
OpenJDK Runtime Environment (IcedTea 2.5.3) (Gentoo package icedtea-7.2.5.3)
OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff2946a57 in xaccTransGetTxnType (trans=0x630000006e)
    at Transaction.c:2306
2306	    s = kvp_frame_get_string (trans->inst.kvp_data, TRANS_TXN_TYPE_KVP);
(gdb) backtrace
  • #0 xaccTransGetTxnType
    at Transaction.c line 2306
  • #1 gncInvoiceUnpost
    at gncInvoice.c line 1673
  • #2 gnc_invoice_window_unpostCB
    at dialog-invoice.c line 981
  • #3 gnc_plugin_page_invoice_cmd_unpost
    at gnc-plugin-page-invoice.c line 773
  • #4 g_closure_invoke
    from /usr/lib64/libgobject-2.0.so.0
  • #5 ??
    from /usr/lib64/libgobject-2.0.so.0
  • #6 g_signal_emit_valist
    from /usr/lib64/libgobject-2.0.so.0
  • #7 g_signal_emit
    from /usr/lib64/libgobject-2.0.so.0
  • #8 ??
    from /usr/lib64/libgtk-x11-2.0.so.0
  • #9 ??
    from /usr/lib64/libgtk-x11-2.0.so.0
  • #10 ??
    from /usr/lib64/libgobject-2.0.so.0
  • #11 g_signal_emit_valist
    from /usr/lib64/libgobject-2.0.so.0
  • #12 g_signal_emit
    from /usr/lib64/libgobject-2.0.so.0
  • #13 ??
    from /usr/lib64/libgtk-x11-2.0.so.0
  • #14 g_closure_invoke
    from /usr/lib64/libgobject-2.0.so.0
  • #15 ??
    from /usr/lib64/libgobject-2.0.so.0
  • #16 g_signal_emit_valist
    from /usr/lib64/libgobject-2.0.so.0
  • #17 g_signal_emit
    from /usr/lib64/libgobject-2.0.so.0
  • #18 ??
    from /usr/lib64/libgtk-x11-2.0.so.0
  • #19 ??
    from /usr/lib64/libgtk-x11-2.0.so.0
  • #20 g_closure_invoke
    from /usr/lib64/libgobject-2.0.so.0
  • #21 ??
    from /usr/lib64/libgobject-2.0.so.0
  • #22 g_signal_emit_valist
    from /usr/lib64/libgobject-2.0.so.0
  • #23 g_signal_emit
    from /usr/lib64/libgobject-2.0.so.0
  • #24 ??
    from /usr/lib64/libgtk-x11-2.0.so.0
  • #25 gtk_propagate_event
    from /usr/lib64/libgtk-x11-2.0.so.0
  • #26 gtk_main_do_event
    from /usr/lib64/libgtk-x11-2.0.so.0
  • #27 ??
    from /usr/lib64/libgdk-x11-2.0.so.0
  • #28 g_main_context_dispatch
    from /usr/lib64/libglib-2.0.so.0
  • #29 ??
    from /usr/lib64/libglib-2.0.so.0
  • #30 g_main_loop_run
    from /usr/lib64/libglib-2.0.so.0
  • #31 gtk_main
    from /usr/lib64/libgtk-x11-2.0.so.0
  • #32 gnc_ui_start_event_loop
    at gnc-gnome-utils.c line 608
  • #33 inner_main
    at gnucash-bin.c line 621
  • #34 ??
    from /usr/lib64/libguile.so.17
  • #35 ??
    from /usr/lib64/libguile.so.17
  • #36 scm_c_catch
    from /usr/lib64/libguile.so.17
  • #37 scm_i_with_continuation_barrier
    from /usr/lib64/libguile.so.17
  • #38 scm_c_with_continuation_barrier
    from /usr/lib64/libguile.so.17
  • #39 scm_i_with_guile_and_parent
    from /usr/lib64/libguile.so.17
  • #40 scm_boot_guile
    from /usr/lib64/libguile.so.17
  • #41 main
    at gnucash-bin.c line 776

Comment 21 Geert Janssens 2014-12-29 16:14:47 UTC
Which bill is this ? Is it one that's part of a heavily fragmented lot link transaction ?

In any case it's weird that these patches would have any influence on the unpost behaviour. The crashes happen in a completely different area of the code.

And when you say to code freezes with patch C, do you see any activity in the log file as before when applying a payment ?
Comment 22 Geert Janssens 2015-01-18 19:51:07 UTC
Created attachment 294809 [details] [review]
Potential fix for the crash with patch B

Bob,

I have studied the backtrace some more and think I know where the crash happens. I don't know about the 100% cpu usage yet.

Can you apply this patch and report back how unposting goes afterwards ?

Thanks
Comment 23 Geert Janssens 2015-01-20 10:46:53 UTC
Comment on attachment 294809 [details] [review]
Potential fix for the crash with patch B

This patch is nonsense. Sorry for the noise.
Comment 24 Geert Janssens 2015-01-20 11:09:00 UTC
I'm afraid I don't have enough information here to understand what's happening. I can reproduce neither crash not freeze.

Can you build the most recent master branch head and test unposting the bill above and let me know if you still experience either ?
Comment 25 Geert Janssens 2016-09-08 07:39:46 UTC
Closing this bug report as no further information has been provided. Please feel free to reopen this bug report if you can provide the information that was asked for in a previous comment.
Thanks!
Comment 26 John Ralls 2018-06-29 23:36:43 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=741418. Please update any external references or bookmarks.