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 434735 - crash with account tree filter ShowZeroTotal=false
crash with account tree filter ShowZeroTotal=false
Status: VERIFIED FIXED
Product: GnuCash
Classification: Other
Component: General
2.0.x
Other All
: Normal critical
: ---
Assigned To: Chris Lyttle
Chris Lyttle
Depends on:
Blocks:
 
 
Reported: 2007-04-30 23:27 UTC by Josh Sled
Modified: 2018-06-29 21:34 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Josh Sled 2007-04-30 23:27:54 UTC
On my historical datafile, with both 2.0.5 and 2.1.1, I see a crash when using ShowZeroTotal=false.  I don't see this on other datafiles.  I must have been able to toggle the state and save my file, though if I manually remove the setting from ~/.gnucash/books/<relevant-statefile> and toggle it in the UI, I get an immediate crash.

I can't repro on an exported account tree.

I can't repro on other datafiles re-saved in "incompatible" 2.0 format.

I'll have to come up with a datafile sanitizer, I guess... :)
Comment 1 Josh Sled 2007-04-30 23:31:33 UTC
Oh, yeah.  There is a relevant debug output:

[In the UI, I flip the "show zero accounts" toggle to false:]

* 19:31:01  CRIT <Gtk> gtk_tree_model_filter_convert_iter_to_child_iter: assertion `filter_iter->stamp == filter->priv->stamp' failed
* 19:31:01  CRIT <gnc.gui> gnc_tree_model_account_get_account: assertion `iter->stamp == model->stamp' failed
* 19:31:01  CRIT <gnc.gui> gnc_tree_model_account_get_value: assertion `iter->stamp == model->stamp' failed
* 19:31:01  WARN <GLib-GObject> gtype.c:3339: type id `0' is invalid
* 19:31:01  WARN <GLib-GObject> can't peek value table for type `<invalid>' which is not currently referenced

Program received signal SIGSEGV, Segmentation fault.

Thread NaN (LWP 26444)

  • #0 gtk_tree_model_get_valist
    from /usr/X11R6/lib/libgtk-x11-2.0.so.0
  • #1 gtk_tree_model_get
    from /usr/X11R6/lib/libgtk-x11-2.0.so.0
  • #2 sort_by_string
    at gnc-tree-view-account.c line 280
  • #3 gtk_tree_model_sort_level_find_insert
    from /usr/X11R6/lib/libgtk-x11-2.0.so.0
  • #4 gtk_tree_model_sort_row_changed
    from /usr/X11R6/lib/libgtk-x11-2.0.so.0
  • #5 _gtk_marshal_VOID__BOXED_BOXED
    from /usr/X11R6/lib/libgtk-x11-2.0.so.0
  • #6 g_closure_invoke
    from /usr/X11R6/lib/libgobject-2.0.so.0
  • #7 ??
  • #8 ??

Comment 2 Christian Stimming 2007-05-01 12:02:27 UTC
Aaarg - the tree_mode_iter bites you... The infamous tree_mode_iter bug in gtk has been fixed in gtk-2.10.10 and any later version. Do you have an version older than that?
Comment 3 Josh Sled 2007-05-01 13:34:57 UTC
Wow, indeed it is.  Upgrading to gtk+-2.10.11 does resolve this.
Comment 4 John Ralls 2018-06-29 21:34:59 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=434735. Please update any external references or bookmarks.