App crash opening a file from previous version

Bug #1503682 reported by KaBooFA
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
HomeBank
Fix Released
Medium
Maxime DOYEN

Bug Description

Until those days I used HomeBank 4.6.

My saved xhb file was in version <homebank v="0.90000000000000002">.

I installed HomeBank 5.0.5 and open my file. File seems to be converted to version <homebank v="1.1000000000000001" d="050005"> on first opening.

Everything is fine until I try to go to File > Properties or open any operation's details of any account, or even add operation; then HomeBank crash. On windows 8, i've got a message saying "HomeBank has stop working", on OSX (via Homebrew) I've got a "Segmentation Fault".

The problem seems to be with my file as other files or the example file work well.

I anonymised and saved it. You will find it attached.

Do you know the root cause of the probleme ? How can I modify my file to make it works with the new version ? I can't loose years of work and more than 3K operations.

Regards

Kaboofa

Revision history for this message
Maxime DOYEN (mdoyen) wrote :

there 2 error:

category consistency: parent 109 of cat 110 missing
category consistency: parent 29 of cat 30 missing

what would be interesting to me is the anonymized v of your 4.6 file, if you still have

Revision history for this message
slodki (slodki) wrote :

Same crashes with 5.0.5 and Windows 7 64bit and attached file

Revision history for this message
KaBooFA (romain-bourguignon) wrote :

I checked the file in his 4.6.3 version. File already contains those two inconsistencies. Cat 30 and 110 are not used by any transactions. I often use "Manage Category"; editing, merging, etc.. Inconsistencies may come from there in any previous version of the file.

I corrected it, and it works fine now.

It should be great, in the file statistics for example, to print orphans on not used cats and payees. Maybe a tool to "Repair" a data file could be useful too.

I attached the anonymized file in the 4.6.3 version.

To finish, a big thanks for the file debug :)

KaBooFa

Maxime DOYEN (mdoyen)
Changed in homebank:
assignee: nobody → Maxime Doyen (mdoyen)
importance: Undecided → Medium
milestone: none → 5.0.6
status: New → In Progress
Maxime DOYEN (mdoyen)
Changed in homebank:
status: In Progress → Fix Committed
Maxime DOYEN (mdoyen)
Changed in homebank:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.