Summary: | Crash creating a new account | ||
---|---|---|---|
Product: | [Applications] kmymoney | Reporter: | Burkhard Lück <lueck> |
Component: | general | Assignee: | KMyMoney Devel Mailing List <kmymoney-devel> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | asoliverez, onet.cristian |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Burkhard Lück
2009-09-14 15:47:08 UTC
which type of account were you trying to create? That would help us pinpoint the problem. I don't get so far to select a type of account. I start a fresh build kmymoney, choose Account -> New account from the menu and kmymoney crashes immediately. I can't reproduce it. I created a new file, and didn't create any account during the new user wizard. I then clicked on new account and I was able to create a checking account without problems. Is this different from what you did? (In reply to comment #3) > I can't reproduce it. I created a new file, and didn't create any account > during the new user wizard. I then clicked on new account and I was able to > create a checking account without problems. > Is this different from what you did? Yes, see my comment #2. I did not use the wizard, just start kmymoney, then Account -> New account and get an immediate crash. Fix would be to disable this (and may be other) actions until kmymoney is configured properly in the wizard. Did you create a new file or not? That detail is important, because it gives me a clue on what happened. The actions are disabled depending on whether they can be done or not, but this could be happening when a user is fully fresh. (In reply to comment #5) > Did you create a new file or not? ".kmy"-File? No, as I wrote in my previous comments, that I did not use the wizard to setup kmymoney. But even without that the action "New account" was enabled. I have to admit that this is not the normal usecase. > That detail is important, because it gives me > a clue on what happened. > > The actions are disabled depending on whether they can be done or not, but this > could be happening when a user is fully fresh. Yes, that it was a fresh user. I have now created a ".kmy"-File and kmymoney does not crash anymore. Now I know how to reproduce this crash at will: 1) start kmymoney without a file .kde/share/config/kmymoney2rc 2) Cancel the dialog "KMyMoney New File Setup" 3) Quit kmymoney, a kmymoney2rc with firstTimeRun=false is created -> this is the bug. 4) Start kmymoney again, now the action "New account" is enabled 5) Select this action -> kmymoney crashes immediately Conclusion: Missing check, if the dialog "KMyMoney New File Setup" was cancelled. Fixed in SVN. It seems that the commit message didn't close the bug because I wasn't the asignee of the bug. could you point me to the commit fixing this bug please? Thanks! SVN commit 1028093 by conet: BUG: 207354 The crash when creating a new account was caused by the fact that a new file was created in the constructor of MyMoneyView without loading the securities and the currencies. This resulted in and incomplete initialisation of the MyMoneyFile. The automatic new file creation was removed since for the complete initialisation the user would have to select the base currency. This means that the base currency selection dialog would have to be shown before the application window thus making it confusing. Now the user must create the file manually by completing the new file wizzard. (In reply to comment #9) > could you point me to the commit fixing this bug please? > > Thanks! http://websvn.kde.org/?revision=1028093&view=revision |