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 487317 - QIF import druid crash when stepping back and forth from the "loaded files page" without selection
QIF import druid crash when stepping back and forth from the "loaded files pa...
Status: VERIFIED FIXED
Product: GnuCash
Classification: Other
Component: Import - QIF
2.2.x
Other All
: Normal critical
: ---
Assigned To: Derek Atkins
Derek Atkins
: 486975 (view as bug list)
Depends on:
Blocks: backport
 
 
Reported: 2007-10-16 22:15 UTC by Andreas Köhler
Modified: 2018-06-29 21:52 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Andreas Köhler 2007-10-16 22:15:01 UTC
Reproduce:
* gnucash --nofile
* File > Import > Import QIF...
* Forward, Select file, Forward, Forward
* Deselect entry by Ctrl-clicking a few times on it
* Back, Forward
->
In unknown file:
   ?: 0* [qif-import:fix-from-acct #f "abc"]
In $prefix/share/gnucash/scm/qif-import/qif-dialog-utils.scm:
 558: 1* [for-each #<procedure #f (xtn)> ...
 562: 2*  [qif-file:xtns #f]
In unknown file:
   ?: 3*  [%record-type-check #<record-type qif-file> #f]
   ?: 4   (or (eq? rtd #) (scm-error # "%record-type-check" ...))
   ?: 5*  [eq? #<record-type qif-file> ...
   ?: 6*   [record-type-descriptor #f]
   ?: 7    (if (struct? obj) (struct-vtable obj) (error (quote not-a-record) obj))
     ...
   ?: 8    [scm-error misc-error #f "~A ~S" (not-a-record #f) #f]


This happens because the druid overwrites the wind->selected_file when an entry of the loaded files list is selected or deselected.  In the latter case selected_file is set to SCM_BOOL_F.  This does not mix well with gnc_ui_qif_import_default_acct_next_cb.

It would be cool if the "unload file" and "back" buttons would be grayed out when no file is selected anyway.
Comment 1 Andreas Köhler 2007-10-16 22:22:26 UTC
Fixed by r16567 on trunk.
Awaiting backport to branches/2.2.
Comment 2 Andreas Köhler 2007-11-17 22:06:38 UTC
r16586.
Comment 3 Derek Atkins 2008-02-04 15:44:58 UTC
*** Bug 486975 has been marked as a duplicate of this bug. ***
Comment 4 John Ralls 2018-06-29 21:52:12 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=487317. Please update any external references or bookmarks.