GNOME Bugzilla – Bug 342305
Crash on importing OFX file after creating new accounts in OFX import
Last modified: 2018-06-29 21:04:43 UTC
Distribution: Debian testing/unstable Package: GnuCash Severity: Normal Version: GNOME2.14.1 unspecified Gnome-Distributor: Debian Synopsis: GnuCash crash when importing OFX file Bugzilla-Product: GnuCash Bugzilla-Component: OFX Import Bugzilla-Version: unspecified BugBuddy-GnomeVersion: 2.0 (2.14.1) Description: Description of the crash: After setting all account in the import transaction windows, I clicked on the "Ok" button ("Valider" in french) and GnuCash crash Debugging Information: Backtrace was generated from '/usr/bin/gnucash' (no debugging symbols found) Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1". (no debugging symbols found) [Thread debugging using libthread_db enabled] [New Thread -1498720576 (LWP 8949)] [New Thread -1518445648 (LWP 9028)] 0xffffe410 in __kernel_vsyscall ()
+ Trace 68305
Thread 1 (Thread -1498720576 (LWP 8949))
------- Bug created by bug-buddy at 2006-05-19 01:42 -------
What is the exact version of gnucash? Seems to be one of the 1.9.x series, but we need to know the exact one. If this is older than 1.9.6, can you please first upgrade to 1.9.6 and see whether this problem still occurs? Also, does this crash happen every time when you import this OFX file, i. e. is it reproducible? Also, the stack trace says that there has been some messages on the command line terminal (g_log in frame#8). Can you please start gnucash from the command line, and if this crash occurs, send us the output on the terminal ("add new attachment" below)? If this crash happens every time with this particular OFX file, then ideally we would need a copy of this OFX file so that we can reproduce this ourselves. If you don't want to add this publicly here, you should at least give some information about the file: How many transactions do you have; what is the command line output; does the OFX import work with other files from the same Bank or do OFX files from this Bank crash always?
I use the gnucash version currently in Debian unstable (ie 1.9.6-3). At least, I finally succeed in importing the OFX file (no modification of the OFX file). So the bug must probably involve several things. All I can say is that when it crashed, I created a sub account in the Depense hierarchy that I needed. It also crashed when I do the same thing with another OFX file (ie with creating a new account in the import transaction windows). After restarting GnuCash, I created the two new accounts before begining to import my OFX files, and then it works. I did not test to see if this behaviour is really reproductible. But this is the only thing I can think about to explain why the import has been successful the next time. (It also can be a race condition, but then...) Best regards, Vincent PS: if you want one of my two OFX files that made GNUcash crashed, I can send you privately on request (or else, tell me how to obfuscate it).
This stacktrace is really weird.
+ Trace 68319
Maybe #28 is supposed to be gnc_tree_model_account_event_handler()? I would _really_ like to know why your stacktrace looks like this, and how we can fix it. Did you compile this from source or get a binary? Do you know what compiler version and parameters were used?
I get the binary package from Debian. It is the 1.9.6-3/i386 version. You can still find it here: http://packages.debian.org/unstable/gnome/gnucash This version should have been built by the maintainer of the package, so no build log is available. However, the previous version has been build by an autobuilder. The corresponding buildlog is here: http://buildd.debian.org/fetch.php?&pkg=gnucash&ver=1.9.6-2&arch=i386&stamp=1147734540&file=log&as=raw The change between 1.9.6-2 and 1.9.6-3 is only relative to the debian packaging system. Here is the relevant part of the changelog: gnucash (1.9.6-3) unstable; urgency=low * debian/control (gnucash-common): Conflict with any version of gnucash preceding this one, to prevent partial upgrades. (Closes: #367462) -- Thomas Bushnell, BSG <tb@debian.org> Mon, 15 May 2006 23:33:41 -0700 gnucash (1.9.6-2) unstable; urgency=low [...] Best regards, Vincent
Oh, wait, here's a hint to the problem in comment #2: > (ie with creating a new account in the import transaction windows). There's bug#333029 which has the same problem: In the "Select Account" dialog during OFX/HBCI/MT940 importing, the user clicks on "New account" and then selects that new account, and then various problems including crashes occur. In bug#333029 I was unable to reproduce any problems here, unfortunately. There seems to be some huge problem if the "import-account-matcher" of src/import-export/import-account-matcher.[hc] creates a new account. The account creation happens in import-account-matcher.c gnc_import_add_account() and it uses gnc_ui_new_accounts_from_name_with_defaults(). That code hasn't been touched for quite some time now. Again, this concerns all importing via OFX or HBCI or MT940.
Ok, a little more clarity on the stack trace:
+ Trace 68547
makes no sense to me. I'd like to be able to say there's a row_inserted in there somewhere, but it's pretty much garbage.
[Adding Thomas Bushnell, BSG to cc] Thomas, Stack traces like the one in this bug report are _really_ frustrating. Could you please build debian's binaries configured with --enable-debug?
[Adding Thomas Bushnell, BSG to cc; This time with correct email address. (sorry)] Thomas, Stack traces like the one in this bug report are _really_ frustrating. Could you please build debian's binaries configured with --enable-debug?
[Gah! Evidentally, bugzilla doesn't accept 'Add to cc' at the same time as 'remove from cc'] [Adding Thomas Bushnell, BSG to cc; This time with correct email address. (sorry)] Thomas, Stack traces like the one in this bug report are _really_ frustrating. Could you please build debian's binaries configured with --enable-debug?
Ok, bugzilla is playing with me. Twice I've added "tb@debian.org" to the cc, and twice bugzilla has instead added "btb@debian.org". What's up with that?! Let's see what happens if I try a third time!
It seems to not like the address tb@debian.org? tb@becket.net does work though.
[ Regarding cc email address: Bug #343442. ] Regarding the bug: I do believe this is a dup of 333029, which should be resolved as of r14285. It would be nice to know exactly what version of gtk+ was running here, but I can infer that it's pretty recent. *** This bug has been marked as a duplicate of 333029 ***
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=342305. Please update any external references or bookmarks.