crash on QFX import

David Reiser dbreiser at earthlink.net
Sat Dec 9 20:47:04 EST 2006


This is a libofx bug

http://bugzilla.gnome.org/show_bug.cgi?id=353986

The fix is to patch libofx (lib/ofx_preproc.cpp)

http://libofx.cvs.sourceforge.net/libofx/libofx/lib/ofx_preproc.cpp? 
r1=1.15&r2=1.16&view=patch

I ran into this last night, but then I couldn't reproduce it this  
afternoon using the same ofx file, but a test gnucash file. So I'm  
not positive what's up, but the failure mode is the same as the bug  
description.

Dave
On Dec 9, 2006, at 8:18 PM, J. David Beutel wrote:

> I compiled GnuCash 2.0.1 and libofx-0.8.2 on Fedora Core 3 and started
> using it a few months ago.  I was able to import about 12 QFX files  
> that
> I downloaded from my bank at that time, and one each month since.   
> But,
> whenever I try to import this month's QFX, GnuCash quits unexpectedly
> after popping up the Generic import transaction matcher window (before
> drawing anything inside it).
>
> That window can still draw when I start importing last month's  
> (altho I
> cancel that to avoid importing twice).  It may be coincidental, but my
> bank just upgraded its web site.  However, I've looked at both QFX  
> files
> and can't find any significant difference.
>
> How can I fix or debug this?  The 2.0.2 major changes listed on
> gnucash.org don't sound relevant.  Are there more detailed release  
> notes
> somewhere?  I don't want to update unnecessarily and mess up  
> something,
> because it was difficult for me to compile on FC3.  (That could be
> related to my problem, of course.)  I found the following fix from the
> mail archive, but the QIF source (Scheme) doesn't look related to  
> QFX (C).
>
> http://bugzilla.gnome.org/show_bug.cgi?id=377519
>
> Cheers,
> 11011011
>
> Output with crash:
> [jdb at samue ~]$ gnucash
> looking for type: got text/plain
> LibOFX INFO: libofx_proc_file(): File format not specified,  
> autodecting...
> (Above message occured on Line 4294967295, Column 4294967295)
> LibOFX INFO: libofx_proc_file(): Detected file format: OFX (Open
> Financial eXchange (OFX or QFX))
> (Above message occured on Line 4294967295, Column 4294967295)
> LibOFX INFO: sanitize_proprietary_tags() (end of line) removed:
> <INTU.BID>2450
>
> (Above message occured on Line 4294967295, Column 4294967295)
> LibOFX INFO: sanitize_proprietary_tags() (end of line) removed:
> <INTU.USERID>xxxx
>
> (Above message occured on Line 4294967295, Column 4294967295)
> LibOFX INFO: sanitize_proprietary_tags() (end tag or new tag) removed:
> <MVNT.PAYEE>STATE OF HAWAII
> (Above message occured on Line 4294967295, Column 4294967295)
> LibOFX INFO: sanitize_proprietary_tags() (end tag or new tag) removed:
> <MVNT.PAYEE>CAPITAL ONE
> (Above message occured on Line 4294967295, Column 4294967295)
> LibOFX INFO: sanitize_proprietary_tags() (end tag or new tag) removed:
> <MVNT.PAYEE>STATE OF HAWAII
> (Above message occured on Line 4294967295, Column 4294967295)
> LibOFX INFO: sanitize_proprietary_tags() (end tag or new tag) removed:
> <MVNT.PAYEE>GEICO       AII
> (Above message occured on Line 4294967295, Column 4294967295)
> terminate called after throwing an instance of 'std::out_of_range'
>   what():  basic_string::copy
> [jdb at samue ~]$
>
>
> Output without crash:
> [jdb at samue ~]$ gnucash
> looking for type: got text/plain
> LibOFX INFO: libofx_proc_file(): File format not specified,  
> autodecting...
> (Above message occured on Line 4294967295, Column 4294967295)
> LibOFX INFO: libofx_proc_file(): Detected file format: OFX (Open
> Financial eXchange (OFX or QFX))
> (Above message occured on Line 4294967295, Column 4294967295)
> LibOFX INFO: sanitize_proprietary_tags() (end of line) removed:
> <INTU.BID>2450
>
> (Above message occured on Line 4294967295, Column 4294967295)
> LibOFX INFO: sanitize_proprietary_tags() (end of line) removed:
> <INTU.USERID>xxxx
>
> (Above message occured on Line 4294967295, Column 4294967295)
> LibOFX INFO: sanitize_proprietary_tags() (end tag or new tag) removed:
> <MVNT.PAYEE>STATE OF HAWAII
> (Above message occured on Line 4294967295, Column 4294967295)
> LibOFX INFO: sanitize_proprietary_tags() (end tag or new tag) removed:
> <MVNT.PAYEE>CAPITAL1 FUNDING
> (Above message occured on Line 4294967295, Column 4294967295)
> LibOFX INFO: sanitize_proprietary_tags() (end tag or new tag) removed:
> <MVNT.PAYEE>STATE OF HAWAII
> (Above message occured on Line 4294967295, Column 4294967295)
> LibOFX INFO: sanitize_proprietary_tags() (end tag or new tag) removed:
> <MVNT.PAYEE>CAPITAL ONE
> (Above message occured on Line 4294967295, Column 4294967295)
> LibOFX INFO: sanitize_proprietary_tags() (end tag or new tag) removed:
> <MVNT.PAYEE>CAPITAL1 VERIFY
> (Above message occured on Line 4294967295, Column 4294967295)
> LibOFX INFO: sanitize_proprietary_tags() (end tag or new tag) removed:
> <MVNT.PAYEE>CAPITAL1 VERIFY
> (Above message occured on Line 4294967295, Column 4294967295)
> LibOFX INFO: Created OfxDummyContainer to hold unsupported aggregate
> SIGNONMSGSRSV1
> (Above message occured on Line 1, Column 11)
> LibOFX INFO: Created OfxDummyContainer to hold unsupported  
> aggregate SONRS
> (Above message occured on Line 1, Column 34)
> LibOFX INFO: Created OfxDummyContainer to hold unsupported  
> aggregate FI
> (Above message occured on Line 2, Column 1)
> LibOFX INFO: Created OfxDummyContainer to hold unsupported aggregate
> BANKMSGSRSV1
> (Above message occured on Line 6, Column 36)
> LibOFX INFO: Created OfxDummyContainer to hold unsupported aggregate
> STMTTRNRS
> (Above message occured on Line 6, Column 57)
> LibOFX INFO: Created OfxDummyContainer to hold unsupported aggregate
> STMTTRNRS
> (Above message occured on Line 6, Column 6368)
> LibOFX INFO: Created OfxDummyContainer to hold unsupported aggregate
> STMTTRNRS
> (Above message occured on Line 6, Column 7284)
> LibOFX INFO: Created OfxDummyContainer to hold unsupported aggregate
> CREDITCARDMSGSRSV1
> (Above message occured on Line 6, Column 8806)
> LibOFX INFO: Created OfxDummyContainer to hold unsupported aggregate
> CCSTMTTRNRS(Above message occured on Line 6, Column 8833)
> WRITEME:  ofx_proc_account() Fill in the account type, default name,
> currency, etc.
> WRITEME:  ofx_proc_account() Fill in the account type, default name,
> currency, etc.
> WRITEME:  ofx_proc_account() Fill in the account type, default name,
> currency, etc.
> [jdb at samue ~]$
>
>
>
> _______________________________________________
> gnucash-user mailing list
> gnucash-user at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.

--
David Reiser
dbreiser at earthlink.net



More information about the gnucash-user mailing list