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

KMyMoney hangs in price chart

Tags: None
(comma "," separated)
zebulon
Registered Member
Posts
417
Karma
2
OS

KMyMoney hangs in price chart

Thu Oct 21, 2010 11:23 pm
In Reports, I selected the price chart graph. The dates displayed were from 10/21/2009 to 10/21/2010 (last 12 months). I changed the start date to 09/30/2010. This causes KMM to hang, sometimes for several minutes, sometimes indefinitely. The system monitor showed KMM using 2.4 GB (machine has 4 GB) and ~140% CPU activity. I attached to the process with gdb; the call stack is always the same:
(gdb) bt
#0 0x0827a12d in reports::PivotTable::fillBasePriceUnit(reports::ERowType) ()code]
#1 0x082851c5 in reports::PivotTable::init() ()
#2 0x082861a5 in reports::PivotTable::PivotTable(MyMoneyReport const&) ()
#3 0x0821a638 in KReportsView::KReportTab::updateReport() ()
#4 0x0821a7b2 in KReportsView::KReportTab::show() ()
#5 0x07cd2bfe in QWidgetStack::raiseWidget(QWidget*) () from /usr/lib/libqt-mt.so.3
#6 0x07cbebfb in QTabWidget::showPage(QWidget*) () from /usr/lib/libqt-mt.so.3
#7 0x08218123 in KReportsView::slotConfigure() ()
#8 0x08224598 in KReportsView::qt_invoke(int, QUObject*) ()
#9 0x07b8b19a in QObject::activate_signal(QConnectionList*, QUObject*) () from /usr/lib/libqt-mt.so.3
#10 0x07b8d168 in QObject::activate_signal(int) () from /usr/lib/libqt-mt.so.3
#11 0x07ef160c in QButton::clicked() () from /usr/lib/libqt-mt.so.3
#12 0x07c263e0 in QButton::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libqt-mt.so.3
#13 0x07bc4d81 in QWidget::event(QEvent*) () from /usr/lib/libqt-mt.so.3
#14 0x07b263d7 in QApplication::internalNotify(QObject*, QEvent*) () from /usr/lib/libqt-mt.so.3
#15 0x07b274f5 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libqt-mt.so.3
#16 0x0744d67c in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdecore.so.4
#17 0x07ac06ce in QApplication::sendSpontaneousEvent(QObject*, QEvent*) () from /usr/lib/libqt-mt.so.3
#18 0x07abd439 in QETWidget::translateMouseEvent(_XEvent const*) () from /usr/lib/libqt-mt.so.3
#19 0x07abc237 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libqt-mt.so.3
#20 0x07ad0884 in QEventLoop::processEvents(unsigned int) () from /usr/lib/libqt-mt.so.3
#21 0x07b3f3b0 in QEventLoop::enterLoop() () from /usr/lib/libqt-mt.so.3
#22 0x07b3f256 in QEventLoop::exec() () from /usr/lib/libqt-mt.so.3
#23 0x07b26a2f in QApplication::exec() () from /usr/lib/libqt-mt.so.3
#24 0x08197575 in main ()
I use KMM 1.0.5 under KDE 3.5.10. Is this a known issue?
User avatar
Hei Ku
Registered Member
Posts
784
Karma
3
OS

Re: KMyMoney hangs in price chart

Fri Oct 22, 2010 12:12 am
depending on the amount of investments you have, it can take a long time (5-10 minutes). It is slow, but it doesn't hang.


Hei Ku, proud to be a member of the KMyMoney Development Team since January-2008
zebulon
Registered Member
Posts
417
Karma
2
OS

Re: KMyMoney hangs in price chart

Fri Oct 22, 2010 1:14 am
I think I found the problem. Maybe you can confirm this:

1. Create the price graph.
2. Click "Configure", then "Date"
3. Change the "From" date to 10/30/10.

The year, "10", should remain highlighted. Normally, KMM will convert it to 2010 at the first mouse click in a sensitive area. However, if you click "OK" while the highlighted "10" is showing, KMM will hang. It looks like the year is not converted.
User avatar
Hei Ku
Registered Member
Posts
784
Karma
3
OS

Re: KMyMoney hangs in price chart

Fri Oct 22, 2010 1:35 am
Does it work ok if you enter 2010?
If that's the case, then yes, it's probably looking for data since year 10. :P


Hei Ku, proud to be a member of the KMyMoney Development Team since January-2008
zebulon
Registered Member
Posts
417
Karma
2
OS

Re: KMyMoney hangs in price chart

Fri Oct 22, 2010 11:11 pm
Yes, it does work with 2010. But then, it should not take forever to find out there is no data that old, no? :z
User avatar
NickElliott
Registered Member
Posts
258
Karma
3
OS

Re: KMyMoney hangs in price chart

Wed Sep 07, 2011 10:17 am
I seem to have run head-long into this 'issue'!

About an hour ago I went to open a custom chart I created way-back-when and I'm still waiting for it to appear. It looks like KMM is using 100% of one of the cores (it's a dual-core machine) but my PC is a decent spec so I'd have thought something would have happened by now.

BTW I'm using 4.5.3.

At some point I'll have to give up, so my question is this - I've got some un-saved changes, if I kill the application will it do a graceful shutdown and prompt me to save changes or will it just shutdown?


NickElliott, proud to be a member of KDE forums since 2008-Oct.
User avatar
Hei Ku
Registered Member
Posts
784
Karma
3
OS

Re: KMyMoney hangs in price chart

Wed Sep 07, 2011 10:36 am
If you kill it, it will just shutdown without saving your changes.

This long issue was due to a wrong date. ie. 1/1/05 instead of 1/1/2005


Hei Ku, proud to be a member of the KMyMoney Development Team since January-2008
User avatar
NickElliott
Registered Member
Posts
258
Karma
3
OS

Re: KMyMoney hangs in price chart

Wed Sep 07, 2011 10:39 am
Ok - I hear you! Thanks for getting back to me, fortunately I've set KMM to save on a regular basis so at the worst I'll only lose some changes I've made to customised reports.


NickElliott, proud to be a member of KDE forums since 2008-Oct.
User avatar
NickElliott
Registered Member
Posts
258
Karma
3
OS

Re: KMyMoney hangs in price chart

Wed Sep 07, 2011 3:30 pm
Is there any way of editing the report or will I have to delete it and start again?

When I start KMM I right-click the report and select configure, at that point I think it opens the report so I can't get to the configuration dialogue to correct the date.

Last time I gave up waiting after 4 and a half hours and killed the application.


NickElliott, proud to be a member of KDE forums since 2008-Oct.
User avatar
Hei Ku
Registered Member
Posts
784
Karma
3
OS

Re: KMyMoney hangs in price chart

Wed Sep 07, 2011 3:31 pm
I think the best way is to delete it and start over.

You could edit the plain .xml file if you feel lucky.


Hei Ku, proud to be a member of the KMyMoney Development Team since January-2008


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]