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 543780 - Transfer Dialog: CRIT messages in gnucash.trace from exchange rate dialog
Transfer Dialog: CRIT messages in gnucash.trace from exchange rate dialog
Status: VERIFIED FIXED
Product: GnuCash
Classification: Other
Component: Register
2.2.x
Other Linux
: Normal minor
: ---
Assigned To: Charles Day
Chris Shoemaker
Depends on:
Blocks: backport
 
 
Reported: 2008-07-19 21:41 UTC by Phil Longstaff
Modified: 2018-06-29 22:07 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Phil Longstaff 2008-07-19 21:41:26 UTC
When a transaction is entered which requires the exchange rate dialog to be shown, CRIT messages are put into gnucash.trace.

* 17:38:11  CRIT <gnc.engine> xaccAccountGetCommoditySCU: assertion `GNC_IS_ACCOUNT(acc)' failed

The relevent part of the stack is:

  • #0 xaccAccountGetCommoditySCU
    at Account.c line 2154
  • #1 gnc_xfer_update_to_amount
    at dialog-transfer.c line 860
  • #2 gnc_xfer_dialog_update_price
    at dialog-transfer.c line 207
  • #3 gnc_xfer_dialog_set_price_auto
    at dialog-transfer.c line 260
  • #4 gnc_xfer_dialog_curr_acct_activate
    at dialog-transfer.c line 303
  • #5 gnc_xfer_dialog_select_from_currency
    at dialog-transfer.c line 967
  • #6 gnc_xfer_dialog_run_exchange_dialog
    at dialog-transfer.c line 2117
  • #7 gnc_split_register_handle_exchange
    at split-register-control.c line 1146
  • #8 gnc_split_register_save
    at split-register.c line 1367

The problem is that acc == NULL.

I've listed the problem as minor because it doesn't seem to affect operation.
Comment 1 Charles Day 2008-08-02 21:58:15 UTC
Fix committed as r17451. Requesting backport for 2.2.
Comment 2 Charles Day 2008-08-11 21:59:07 UTC
Please backport r17462 at the same time, or you will experience bug 457335. Thanks.
Comment 3 Andreas Köhler 2008-08-31 04:51:26 UTC
(In reply to comment #2)
> Please backport r17462 at the same time, or you will experience bug 457335.
Bug 547335 is meant.
Comment 4 Andreas Köhler 2008-09-16 13:31:40 UTC
(In reply to comment #2)
> Please backport r17462 at the same time, or you will experience bug 457335.

Both applied to branches/2.2 as r17519 for inclusion in GnuCash 2.2.7.
Thanks a lot!
Comment 5 John Ralls 2018-06-29 22:07:48 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=543780. Please update any external references or bookmarks.