Bug 238010 - Trying to load kmymoney file results in deadlock
Summary: Trying to load kmymoney file results in deadlock
Status: RESOLVED FIXED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Unspecified
: NOR crash
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-18 10:33 UTC by Andreas Cord-Landwehr
Modified: 2010-05-18 12:09 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
The problematic input file. (6.04 KB, application/octet-stream)
2010-05-18 11:04 UTC, Andreas Cord-Landwehr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Cord-Landwehr 2010-05-18 10:33:46 UTC
Version:           3.98.0 (using KDE 4.4.3)
Installed from:    Debian testing/unstable Packages

The behavior is like in #231029: I try to open an kmymoney2 file and this ends in KMM eating all CPU and memory. Also tried to delete all my configs, but did not help

Starting with "KMM -n", I get:

$ kmymoney -n
kmymoney(7391)/kdecore (KPluginInfo) KPluginInfo::kcmServices: found  0  offers for  "KBanking"
kmymoney(7391)/kdecore (KPluginInfo) KPluginInfo::kcmServices: found  1  offers for  "Print check"
kmymoney(7391)/kdecore (KPluginInfo) KPluginInfo::kcmServices: found  1  offers for  "iCalendar"
kmymoney(7391)/kdecore (KPluginInfo) KPluginInfo::kcmServices: found  0  offers for  "Reconciliation report"
kmymoney(7391)/kdecore (KPluginInfo) KPluginInfo::kcmServices: found  0  offers for  "KMyMoney OFX"
kmymoney(7391)/kdecore (KLibrary) kde4Factory: The library "/usr/lib/kde4/kmm_kbanking.so" does not offer a qt_plugin_instance function.
7:2010/05/18 10-29-27:aqbanking(7391):started
3:2010/05/18 10-29-27:aqbanking(7391):qbanking.cpp:  422: No Qt translation found for your language en
KMyMoney kbanking plugin loaded
kmymoney(7391)/kdecore (KLibrary) kde4Factory: The library "/usr/lib/kde4/kmm_printcheck.so" does not offer a qt_plugin_instance function.
KMyMoney printcheck plugin loaded
kmymoney(7391)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
QFSFileEngine::open: No file name specified
kmymoney(7391)/kdecore (KLibrary) kde4Factory: The library "/usr/lib/kde4/kmm_icalendarexport.so" does not offer a qt_plugin_instance function.
KMyMoney iCalendar plugin loaded
kmymoney(7391)/kdecore (KLibrary) kde4Factory: The library "/usr/lib/kde4/kmm_reconciliationreport.so" does not offer a qt_plugin_instance function.
KMyMoney reconciliation report plugin loaded
Calling appendChild() on a null node does nothing.
kmymoney(7391)/kdecore (KLibrary) kde4Factory: The library "/usr/lib/kde4/kmm_ofximport.so" does not offer a qt_plugin_instance function.
KMyMoney ofximport plugin loaded
reading file
start parsing file
startDocument
reading accounts
reading transactions
reading securities
reading currencies
reading prices
reading reports
endDocument

Please ask and I can give you the input file for testing.
Comment 1 Cristian Oneț 2010-05-18 10:41:11 UTC
Please attach the anonymous version of the file to this report. It will make fixing this bug a lot easier.
Comment 2 Andreas Cord-Landwehr 2010-05-18 11:04:32 UTC
Created attachment 43686 [details]
The problematic input file.
Comment 3 Thomas Baumgart 2010-05-18 11:48:14 UTC
OK, here's how to get out of this:

a) start KMyMoney with the option '-n' from a console
b) Goto the settings dialog, select the 'Home' page and disable the 'Networth forecast'
c) Then open your file
d) Run 'Tools/Consistency check' which will fix your problems.
e) Turn the 'networth forecast' back on.

Voilà.
Comment 4 Andreas Cord-Landwehr 2010-05-18 12:09:56 UTC
Thx, so here my memories how this problem probably did occur: On my last edit (before the file couldn't be load again) I managed it somehow to add a checkings account as a subaccount to another checkings account (in hierarchy settings for the account). I noticed that that account completely vanished, but since the vanished account was completely empty I did not care about. (When I did this, I had KMM 3.97.0.)
The consistency check now noticed exactly this account as a consistency problem.