GNOME Bugzilla – Bug 325100
crash when trying to edit an account using postgres data
Last modified: 2018-06-29 20:54:45 UTC
Steps to reproduce: 1. open gnucash 2. create a new set of accounts using "Business Accounts" 3. save as postgres://localhost.localdomain/gntestdb 4. "yes" to create the database 5. click "assets" 6. click "current assets" 7. doubleclick "checking account" Stack trace:
+ Trace 64840
Other information: information on the command line : Warning: pgend_session_begin: mode=multi-user is beta -- we've fixed all known bugs but that doesn't mean there aren't any! If something seems weird, let us know. Error: pgendGetResults: failed to get result to query: ERROR: missing FROM-clause entry for table "gnctransaction" Error: pgendGetResults: failed to get result to query: ERROR: missing FROM-clause entry for table "gnctransaction" Error: pgend_trans_commit_edit: send query failed: another command is already in progress Error: pgendTransactionGetDeleted...(): send query failed: another command is already in progress Error: pgendCopyTransactionToEngi...(): no such transaction in the database. This is unexpected ... Error: xaccTransRollbackEdit: Rollback Failed. Ouch! Error: pgendGetResults: failed to get result to query: ERROR: missing FROM-clause entry for table "gnctransaction" Error: pgend_trans_commit_edit: send query failed: another command is already in progress Error: pgendTransactionGetDeleted...(): send query failed: another command is already in progress Error: pgendCopyTransactionToEngi...(): no such transaction in the database. This is unexpected ... Error: xaccTransRollbackEdit: Rollback Failed. Ouch!
forgot to mention : specific version is 1.8.12 Also : a cursory examination of the code (src/backend/postgres/gncquery.c in the sqlQuery_build function) seems to indicate that if !need_account_commodity and !need_trans_commodity , then no FROM clause is generated, thus resulting in invalid SQL. But I don't understand enough of the system to know if both conditions can ever be false.
The stack trace is a dup of #153183. The sql errors are probably just the consequence of passing bogus pointers to the backend. *** This bug has been marked as a duplicate of 153183 ***
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=325100. Please update any external references or bookmarks.