Bug 292133 - KMM crashes when opening the file while loading the reports
Summary: KMM crashes when opening the file while loading the reports
Status: RESOLVED DUPLICATE of bug 290487
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: 4.6.1
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-21 19:24 UTC by Jean-Marie Beck
Modified: 2012-01-22 14:05 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
KMM user file that causes kmymoney to crash (515.39 KB, application/xml)
2012-01-22 13:01 UTC, Jean-Marie Beck
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Marie Beck 2012-01-21 19:24:10 UTC
Application: kmymoney (4.6.1)
KDE Platform Version: 4.7.4 (4.7.4)
Qt Version: 4.7.4
Operating System: Linux 3.0.0-15-generic i686
Distribution: Ubuntu 11.10

-- Information about the crash:
- What I was doing when the application crashed:
When I want to open my file from 29 Dec 2011, KMM starts.
Status line at the left side indicates 100% after a short time, but on the right side the text "opennig reports" is displayed (I'm translating from French)
Nothing is displayed in the main window and after c.a. 15 sec, KDE reports the crash of KMM.
I used this file on the mentioned date and it worked fine.
I tried also to open back-up files from different dates before and on all I have crashes.
On Januray there was an update of several KUbuntu components, but not of KMM as far as I can remember.
Let me know if you'll need my KMM file for further investigations.
Thank you for helping me.
Jean-Marie

The crash can be reproduced every time.

-- Backtrace:
Application: KMyMoney (kmymoney), signal: Aborted
[Current thread is 1 (Thread 0xb77dc710 (LWP 5787))]

Thread 2 (Thread 0xb4b39b70 (LWP 5788)):
#0  0x07f48a17 in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#1  0x8b182474 in ?? ()
#2  0x89282474 in ?? ()
#3  0x8914245c in ?? ()
#4  0x891c247c in ?? ()
#5  0x8b20246c in ?? ()
#6  0xd9e80c7e in ?? ()
#7  0x81ffffc6 in ?? ()
#8  0x00f265c3 in ~QString (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/qt4/QtCore/qstring.h:883
#9  operator[] (akey=<optimized out>, this=<optimized out>) at /usr/include/qt4/QtCore/qmap.h:531
#10 buildLabels (start=<optimized out>) at ../../khtml/khtmlview.cpp:2750
#11 KHTMLView::buildFallbackAccessKeys (this=0x850f086e) at ../../khtml/khtmlview.cpp:2770
#12 0xf98396eb in ?? ()
#13 0x3b137502 in ?? ()
#14 0x850f086e in ?? ()
#15 0xfffffe6c in ?? ()
#16 0x000023b8 in ?? ()
#17 0xfe89e900 in ?? ()
#18 0x838dffff in ?? ()
#19 0xffff944a in ?? ()
#20 0x0c244489 in ?? ()
#21 0x99de838d in ?? ()
#22 0x4489ffff in ?? ()
#23 0x838d0424 in ?? ()
#24 0xffff9500 in ?? ()
#25 0x082444c7 in KNewInvestmentWizard::createObjects (this=0x10244489, parentId=...) at /build/buildd/kmymoney-4.6.1/kmymoney/wizards/newinvestmentwizard/knewinvestmentwizard.cpp:195
#26 0x0070a365 in KShortcut::contains (this=0x89000000, needle=...) at ../../kdeui/shortcuts/kshortcut.cpp:151
#27 0x70a1657f in ?? ()
#28 0x89000000 in ?? ()
#29 0x548b1447 in ?? ()
#30 0x89651424 in ?? ()
#31 0x00007015 in ?? ()
#32 0x05c76500 in ?? ()
#33 0x00000078 in ?? ()
#34 0x00000000 in ?? ()

Thread 1 (Thread 0xb77dc710 (LWP 5787)):
[KCrash Handler]
#7  0x00e34416 in __kernel_vsyscall ()
#8  0x00cbfc8f in raise () from /lib/i386-linux-gnu/libc.so.6
#9  0x00cc32b5 in abort () from /lib/i386-linux-gnu/libc.so.6
#10 0x00a3f4ed in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/i386-linux-gnu/libstdc++.so.6
#11 0x00a3d283 in ?? () from /usr/lib/i386-linux-gnu/libstdc++.so.6
#12 0x00a3d2bf in std::terminate() () from /usr/lib/i386-linux-gnu/libstdc++.so.6
#13 0x00a3d464 in __cxa_rethrow () from /usr/lib/i386-linux-gnu/libstdc++.so.6
#14 0x01e0de93 in QMetaObject::activate (sender=0x232620, m=0x231bf8, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3288
#15 0x001c1035 in MyMoneyFile::dataChanged (this=0x232620) at /build/buildd/kmymoney-4.6.1/obj-i686-linux-gnu/kmymoney/mymoney/mymoneyfile.moc:99
#16 0x001d4b11 in MyMoneyFile::attachStorage (this=0x232620, storage=0x8ccdc30) at /build/buildd/kmymoney-4.6.1/kmymoney/mymoney/mymoneyfile.cpp:329
#17 0x080fc673 in KMyMoneyView::readFile (this=0x8c06048, url=...) at /build/buildd/kmymoney-4.6.1/kmymoney/views/kmymoneyview.cpp:828
#18 0x080cba0f in KMyMoneyApp::slotFileOpenRecent (this=0x8a71ca8, url=...) at /build/buildd/kmymoney-4.6.1/kmymoney/kmymoney.cpp:1520
#19 0x0808a506 in runKMyMoney (splash=0xbfd93780, a=<optimized out>) at /build/buildd/kmymoney-4.6.1/kmymoney/main.cpp:269
#20 0x08088982 in main (argc=) at /build/buildd/kmymoney-4.6.1/kmymoney/main.cpp:181

Possible duplicates by query: bug 290872.

Reported using DrKonqi
Comment 1 Cristian Oneț 2012-01-21 21:10:35 UTC
You could:
1. run 'kmymoney -n'
2. Go to Settings->Configure KMyMoney->Home page and uncheck everything
3. Re open KMyMoney with your file

If that worked save an anonymous copy of your file and attach it to this report if the crash can be reproduced.
Comment 2 Jean-Marie Beck 2012-01-21 22:50:33 UTC
Hi Cristian,

I started KMM in a terminal with the -n switch.
I turned of all features for the home screen.
I could then load my job file and stored an anonymous copy of it.

I then reopened the original .kmy by double clicking the file, that worked.
I went to the settings and checked all options again except the 1st and 
the 4th which is "favorite reports"
I clicked the OK button to apply and close the dialog.
Not reaction, but I could move the window.
After a while, I got the KMM crash report again.

So I attached the anonymous job file on this e-mail to help you find out 
the problem.
Just one hint that may help you:
I had created a loan account for 1200 EURO with 0% interest rate, in 
September I think, and did some reimbursements on it.
But on the home page the displayed due value for that account was always 
something over minus one million !
whereas in the account tree view the value was correctly displayed and 
in the ledger also.

By the way, I use to work with another kmy file for an association with 
which I have no trouble.

I hope you can find the problem.
Thanks for your help.
Jean-Marie


Le 21/01/2012 22:10, Cristian Onet a écrit :
> https://bugs.kde.org/show_bug.cgi?id=292133
>
>
>
>
>
> --- Comment #1 from Cristian Onet<onet cristian gmail com>   2012-01-21 21:10:35 ---
> You could:
> 1. run 'kmymoney -n'
> 2. Go to Settings->Configure KMyMoney->Home page and uncheck everything
> 3. Re open KMyMoney with your file
>
> If that worked save an anonymous copy of your file and attach it to this report
> if the crash can be reproduced.
>
Comment 3 Jean-Marie Beck 2012-01-21 23:12:24 UTC
Hi again,

I just noticed that the job file was not anonymous.
In fact, when I chose the file type for anonymous, the dialog_*jumps 
automatically to XML*_ file.
If one does not know, like I did, he save an .xml file thinking this is 
the anonymous one.
The cause is if the option "_*set automatically file name and 
extension*_" (translation from French) _*is active*_ on that interface 
dialog you cannot save the anonymous file!
Here is also a bug to correct.
So I unchecked that option and created the anonymous file.
Please be so kind to delete the one I just sent you before.

Jean-Marie



Le 21/01/2012 23:50, Jean-Marie a écrit :
> Hi Cristian,
>
> I started KMM in a terminal with the -n switch.
> I turned of all features for the home screen.
> I could then load my job file and stored an anonymous copy of it.
>
> I then reopened the original .kmy by double clicking the file, that 
> worked.
> I went to the settings and checked all options again except the 1st 
> and the 4th which is "favorite reports"
> I clicked the OK button to apply and close the dialog.
> Not reaction, but I could move the window.
> After a while, I got the KMM crash report again.
>
> So I attached the anonymous job file on this e-mail to help you find 
> out the problem.
> Just one hint that may help you:
> I had created a loan account for 1200 EURO with 0% interest rate, in 
> September I think, and did some reimbursements on it.
> But on the home page the displayed due value for that account was 
> always something over minus one million !
> whereas in the account tree view the value was correctly displayed and 
> in the ledger also.
>
> By the way, I use to work with another kmy file for an association 
> with which I have no trouble.
>
> I hope you can find the problem.
> Thanks for your help.
> Jean-Marie
>
>
> Le 21/01/2012 22:10, Cristian Onet a écrit :
>> https://bugs.kde.org/show_bug.cgi?id=292133
>>
>>
>>
>>
>>
>> --- Comment #1 from Cristian Onet<onet cristian gmail com>   
>> 2012-01-21 21:10:35 ---
>> You could:
>> 1. run 'kmymoney -n'
>> 2. Go to Settings->Configure KMyMoney->Home page and uncheck everything
>> 3. Re open KMyMoney with your file
>>
>> If that worked save an anonymous copy of your file and attach it to 
>> this report
>> if the crash can be reproduced.
>>
Comment 4 Cristian Oneț 2012-01-22 07:07:26 UTC
(In reply to comment #3)
> Hi again,
> 
> I just noticed that the job file was not anonymous.
> In fact, when I chose the file type for anonymous, the dialog_*jumps 
> automatically to XML*_ file.
> If one does not know, like I did, he save an .xml file thinking this is 
> the anonymous one.
> The cause is if the option "_*set automatically file name and 
> extension*_" (translation from French) _*is active*_ on that interface 
> dialog you cannot save the anonymous file!
> Here is also a bug to correct.
> So I unchecked that option and created the anonymous file.
> Please be so kind to delete the one I just sent you before.

1. Your file did not make is anywhere since bugs.kde.org drops all email attachments sent as comments to a bug report
2. When you want to attach a file to a bug report you need to do that from the web interface
3. I'm not sure what do you understand of a file as being anonymous or not, you've stated that the xml file is not anonymous - well actually the anonymous file is an xml file usually kmymoney saves it as name.anon.xml (is you selected anonymous in the file filter)
4. Before attaching any file you need to open it with a text editor to convince yourself that you're not disclosing any sensitive data
5. If you open the anonymous file in kmymoney you'll see that all user specific data like names/amounts where made anonymous.

I hope you'll attach the anonymous file with which you can reproduce the problem you've reported after going through the above steps.

> 
> 
> Le 21/01/2012 23:50, Jean-Marie a écrit :
> > Hi Cristian,
> >
> > I started KMM in a terminal with the -n switch.
> > I turned of all features for the home screen.
> > I could then load my job file and stored an anonymous copy of it.
> >
> > I then reopened the original .kmy by double clicking the file, that 
> > worked.
> > I went to the settings and checked all options again except the 1st 
> > and the 4th which is "favorite reports"
> > I clicked the OK button to apply and close the dialog.
> > Not reaction, but I could move the window.
> > After a while, I got the KMM crash report again.
> >
> > So I attached the anonymous job file on this e-mail to help you find 
> > out the problem.
> > Just one hint that may help you:
> > I had created a loan account for 1200 EURO with 0% interest rate, in 
> > September I think, and did some reimbursements on it.
> > But on the home page the displayed due value for that account was 
> > always something over minus one million !
> > whereas in the account tree view the value was correctly displayed and 
> > in the ledger also.
> >
> > By the way, I use to work with another kmy file for an association 
> > with which I have no trouble.
> >
> > I hope you can find the problem.
> > Thanks for your help.
> > Jean-Marie
> >
> >
> > Le 21/01/2012 22:10, Cristian Onet a écrit :
> >> https://bugs.kde.org/show_bug.cgi?id=292133
> >>
> >>
> >>
> >>
> >>
> >> --- Comment #1 from Cristian Onet<onet cristian gmail com>   
> >> 2012-01-21 21:10:35 ---
> >> You could:
> >> 1. run 'kmymoney -n'
> >> 2. Go to Settings->Configure KMyMoney->Home page and uncheck everything
> >> 3. Re open KMyMoney with your file
> >>
> >> If that worked save an anonymous copy of your file and attach it to 
> >> this report
> >> if the crash can be reproduced.
> >>
Comment 5 Jean-Marie Beck 2012-01-22 13:01:17 UTC
Created attachment 68088 [details]
KMM user file that causes kmymoney to crash
Comment 6 Jean-Marie Beck 2012-01-22 13:16:52 UTC
Comment on attachment 68088 [details]
KMM user file that causes kmymoney to crash

Thanks for the advices. It the first time I use this Bug tracking system.
To the issue anonymous file: it's true, I should have checked it before to make sure it was an anonymous file.
Nevertheless, there is a problem selecting this file type when the automatic file extension feature is active. See the description in my last post.
But lets solve the crash problem first.
Again thank you for all your help.
Jean-Marie
Comment 7 Cristian Oneț 2012-01-22 14:00:56 UTC
This was already fixed as BUG 290487 and will be available in 4.6.2 which will be release in two weeks.

*** This bug has been marked as a duplicate of bug 290487 ***
Comment 8 Cristian Oneț 2012-01-22 14:05:37 UTC
About the save as anonymous problem can you reproduce it while running 'kmymoney --lang=C'? If yes please open another bug report. I wasn't able to reproduce your description that you've selected anonymous but the resulting file was not an anonymous file.