Summary: | KMoney4 crashes trying to open file saved in KMYMoney1 | ||
---|---|---|---|
Product: | [Applications] kmymoney | Reporter: | Wayne Harris <wayne> |
Component: | general | Assignee: | KMyMoney Devel Mailing List <kmymoney-devel> |
Status: | RESOLVED DUPLICATE | ||
Severity: | crash | CC: | onet.cristian |
Priority: | NOR | ||
Version: | 4.5.3 | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Wayne Harris
2011-06-01 04:50:27 UTC
The crash you have reported is caused by inconsistent data in your file namely a price with value zero. There are several ways to fix this. 1. If you still have version 1.x open the file and run a consistency check 2. If you don't have version 1.x anymore you'll have to manually remove the zero price from your file, please make a backup first, then: 2a. in a terminal type 'zcat your_file.kmy > editable_file.xml' 2b. open editable_file.xml with your favorite text editor 2c. Locate the PRICE element which have an attribute price="0" or 0/something 2d. Remove all prices fitting the above condition (make sure to preserve the xml file structure) 2e. Open the resulting file with the new version of kmymoney and save it after that Thank you, Cristian!
On Wed, 2011-06-01 at 06:39 +0200, Cristian Onet wrote:
> https://bugs.kde.org/show_bug.cgi?id=274656
>
>
>
>
>
> --- Comment #1 from Cristian Onet <onet cristian gmail com> 2011-06-01 06:39:20 ---
> The crash you have reported is caused by inconsistent data in your file namely
> a price with value zero. There are several ways to fix this.
> 1. If you still have version 1.x open the file and run a consistency check
> 2. If you don't have version 1.x anymore you'll have to manually remove the
> zero price from your file, please make a backup first, then:
> 2a. in a terminal type 'zcat your_file.kmy > editable_file.xml'
> 2b. open editable_file.xml with your favorite text editor
> 2c. Locate the PRICE element which have an attribute price="0" or 0/something
> 2d. Remove all prices fitting the above condition (make sure to preserve the
> xml file structure)
> 2e. Open the resulting file with the new version of kmymoney and save it
> after that
>
Does that mean that the problems was solved? Did you, by any chance, imported data from GnuCash in the past? Have not solved the problem but am confident I will be able to with the
info you gave me. This file was in fact ported over from GnuCash circa
2006.
On Wed, 2011-06-01 at 14:20 +0200, Cristian Onet wrote:
> https://bugs.kde.org/show_bug.cgi?id=274656
>
>
>
>
>
> --- Comment #3 from Cristian Onet <onet cristian gmail com> 2011-06-01 14:20:03 ---
> Does that mean that the problems was solved? Did you, by any chance, imported
> data from GnuCash in the past?
>
*** This bug has been marked as a duplicate of bug 256282 *** Cristian, converting the kmy file to xml and then finding and removing
the line beginning "PRICE price="0" solved my problem. Thank you.
On Wed, 2011-06-01 at 14:20 +0200, Cristian Onet wrote:
> https://bugs.kde.org/show_bug.cgi?id=274656
>
>
>
>
>
> --- Comment #3 from Cristian Onet <onet cristian gmail com> 2011-06-01 14:20:03 ---
> Does that mean that the problems was solved? Did you, by any chance, imported
> data from GnuCash in the past?
>
|