This forum has been archived. All content is frozen. Please use KDE Discuss instead.

KMM froze and then truncated my file!

Tags: None
(comma "," separated)
JantarMantar
Registered Member
Posts
36
Karma
0
KMM 4.5.3, Kubuntu 11.04

Two issues:
1) KMM hangs when selecting Transaction->Go To 'Payee' menu. Always repeatable.
2) When I terminated the frozen KMM application, I found my .kmm file was truncated (file size is now 0). Luckily I had an old backup (lots of work ahead for me :(). I had auto-save enabled -- if that makes any difference. I couldn't get KMM to repeat the file truncation, but in any case this is a serious bug!

So a question comes to mind, does KMM save/rename the old file before writing a new version?


JantarMantar, proud to be a member of KDE forums since 2008-Dec.
User avatar
Hei Ku
Registered Member
Posts
784
Karma
3
OS
The freezing (not actually a freeze, but very slow) may appear if you have a lot of payees (<1000)

The file is renamed and then saved again. If you have auto-save enabled, you may have had bad enough luck to kill the app while it was saving.


Hei Ku, proud to be a member of the KMyMoney Development Team since January-2008
JantarMantar
Registered Member
Posts
36
Karma
0
Hei Ku wrote:If you have auto-save enabled, you may have had bad enough luck to kill the app while it was saving.


Hopefully a fix is in the works? I wish KMM would display at least a warning when enabling features with known issues.

Anyways, thanks for the quick reply.


JantarMantar, proud to be a member of KDE forums since 2008-Dec.
User avatar
Hei Ku
Registered Member
Posts
784
Karma
3
OS
Yes, don't kill an application when your disk is being written to. Fair enough?


Hei Ku, proud to be a member of the KMyMoney Development Team since January-2008
JantarMantar
Registered Member
Posts
36
Karma
0
Hei Ku wrote:Yes, don't kill an application when your disk is being written to. Fair enough?


Well, now I'll do that -- or better yet, will just disable the autosave.

Regarding it being "fair", isn't write-new/delete-old/rename a common technique -- especially when not using transaction-safe storage such as a database? "don't kill the app" doesn't work, say if I were to lose power while KMM is in middle of saving the file.


JantarMantar, proud to be a member of KDE forums since 2008-Dec.
User avatar
ipwizard
KDE Developer
Posts
1359
Karma
6
OS
Just to add a bit more to the discussion: I doubt that the zero length file is caused by killing the app. If it hangs in that loop HeiKu mentioned it does not do the autosave in parallel, so you could not interrupt it during a write operation.

The trunk version of KMyMoney has a feature to keep the last n versions of the file on disk before removing it. n is a configurable parameter. This works for local files, not for files you access via protocols like http, ftp, ssh or alike (mounted filesystems via e.g. smb or nfs count as local in this context)


ipwizard, proud to be a member of the KMyMoney forum since its beginning. :-D
openSuSE Leap 15.4 64bit, KF5


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]