Summary: | crash on reports | ||
---|---|---|---|
Product: | [Applications] kmymoney | Reporter: | marcelo <ouvir> |
Component: | general | Assignee: | KMyMoney Devel Mailing List <kmymoney-devel> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | cdtree03, marcelo.leitner, null, onet.cristian |
Priority: | NOR | Keywords: | drkonqi |
Version: | 4.6.3 | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/kmymoney/58944b69daeb8ae49c3ccf5916852b8efc9ce3d4 | Version Fixed In: | |
Sentry Crash Report: |
Description
marcelo
2013-11-15 18:10:03 UTC
It seems that this is caused by the auto save feature, util we can fix it you can disable it and stick with the manual backups just to be safe. Thanks for the help Marcelo Em 15-11-2013 16:15, Cristian Oneț escreveu: > https://bugs.kde.org/show_bug.cgi?id=327663 > > Cristian Oneț <onet.cristian@gmail.com> changed: > > What |Removed |Added > ---------------------------------------------------------------------------- > CC| |onet.cristian@gmail.com > > --- Comment #1 from Cristian Oneț <onet.cristian@gmail.com> --- > It seems that this is caused by the auto save feature, util we can fix it you > can disable it and stick with the manual backups just to be safe. > There are a lot of auto save related bugs, this would really need to be fixed. *** Bug 301817 has been marked as a duplicate of this bug. *** Application: kmymoney (4.6.6) KDE Platform Version: 4.13.3 Qt Version: 4.8.6 Operating System: Linux 3.15.8-200.fc20.x86_64 x86_64 Distribution: "Fedora release 20 (Heisenbug)" -- Information about the crash: - What I was doing when the application crashed: Just manually (clicked on Save button) saving a file. Auto-backup was on, keeping 5 files in history. Auto-save is off. The crash can be reproduced every time. -- Backtrace: Application: KMyMoney (kmymoney), signal: Segmentation fault Using host libthread_db library "/lib64/libthread_db.so.1". 81 T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS) [KCrash Handler] #6 QString::operator= (this=this@entry=0x73d7860, other=...) at tools/qstring.cpp:1410 #7 0x0000003d2a0157e3 in QDomAttrPrivate::setNodeValue (this=0x73d7820, v=...) at dom/qdom.cpp:4137 #8 0x0000003d2a01b965 in QDomElementPrivate::setAttribute (this=0x73d45a0, aname=..., newValue=...) at dom/qdom.cpp:4479 #9 0x0000003d2a01b9dd in QDomElement::setAttribute (this=<optimized out>, name=..., value=...) at dom/qdom.cpp:4829 #10 0x00000037bdc64b7f in MyMoneyReport::write (this=this@entry=0x73d2f80, e=..., doc=doc@entry=0x52fde20, anonymous=anonymous@entry=false) at /usr/src/debug/kmymoney-4.6.6/kmymoney/mymoney/mymoneyreport.cpp:370 #11 0x00000037bdc65820 in MyMoneyReport::writeXML (this=0x73d2f80, document=..., parent=...) at /usr/src/debug/kmymoney-4.6.6/kmymoney/mymoney/mymoneyreport.cpp:749 #12 0x000000000078f2b1 in MyMoneyStorageXML::writeReports (this=0x5023a90, parent=...) at /usr/src/debug/kmymoney-4.6.6/kmymoney/mymoney/storage/mymoneystoragexml.cpp:776 #13 0x0000000000790cf3 in MyMoneyStorageXML::writeFile (this=0x5023a90, qf=0x5132100) at /usr/src/debug/kmymoney-4.6.6/kmymoney/mymoney/storage/mymoneystoragexml.cpp:515 #14 0x00000000004b0d11 in KMyMoneyView::saveToLocalFile (this=this@entry=0x295f740, localFile=..., pWriter=pWriter@entry=0x5023a90, plaintext=plaintext@entry=false, keyList=...) at /usr/src/debug/kmymoney-4.6.6/kmymoney/views/kmymoneyview.cpp:1190 #15 0x00000000004b1ead in KMyMoneyView::saveFile (this=0x295f740, url=..., keyList=...) at /usr/src/debug/kmymoney-4.6.6/kmymoney/views/kmymoneyview.cpp:1265 #16 0x000000000048b27c in KMyMoneyApp::slotFileSave (this=0x27291c0) at /usr/src/debug/kmymoney-4.6.6/kmymoney/kmymoney.cpp:1579 #17 0x0000000000497a28 in KMyMoneyApp::qt_static_metacall (_o=0x27291c0, _c=<optimized out>, _id=<optimized out>, _a=0x7fffcada2b60) at /usr/src/debug/kmymoney-4.6.6/x86_64-redhat-linux-gnu/kmymoney/kmymoney.moc:490 #18 0x0000003d2979b37a in QMetaObject::activate (sender=sender@entry=0x2881fa0, m=m@entry=0x3d2baa1840 <QAction::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7fffcada2b60) at kernel/qobject.cpp:3567 #19 0x0000003d2afc4862 in QAction::triggered (this=this@entry=0x2881fa0, _t1=false) at .moc/release-shared/moc_qaction.cpp:276 #20 0x0000003d2afc63f7 in QAction::activate (this=0x2881fa0, event=<optimized out>) at kernel/qaction.cpp:1257 #21 0x0000003d2b3920e6 in QAbstractButtonPrivate::click (this=this@entry=0x28e8180) at widgets/qabstractbutton.cpp:530 #22 0x0000003d2b39222c in QAbstractButton::mouseReleaseEvent (this=0x27c2280, e=0x7fffcada30d0) at widgets/qabstractbutton.cpp:1123 #23 0x0000003d2b453aea in QToolButton::mouseReleaseEvent (this=<optimized out>, e=<optimized out>) at widgets/qtoolbutton.cpp:723 #24 0x0000003d2b01dcc8 in QWidget::event (this=0x27c2280, event=0x7fffcada30d0) at kernel/qwidget.cpp:8389 #25 0x0000003d2afcae5c in QApplicationPrivate::notify_helper (this=0x25b7d20, receiver=0x27c2280, e=0x7fffcada30d0) at kernel/qapplication.cpp:4565 #26 0x0000003d2afd18f1 in QApplication::notify (this=this@entry=0x25ad390, receiver=receiver@entry=0x27c2280, e=e@entry=0x7fffcada30d0) at kernel/qapplication.cpp:4108 #27 0x00000037bb04a59a in KApplication::notify (this=0x25ad390, receiver=0x27c2280, event=0x7fffcada30d0) at /usr/src/debug/kdelibs-4.13.3/kdeui/kernel/kapplication.cpp:311 #28 0x0000003d297868fd in QCoreApplication::notifyInternal (this=0x25ad390, receiver=0x27c2280, event=0x7fffcada30d0) at kernel/qcoreapplication.cpp:953 #29 0x0000003d2afd1067 in QApplicationPrivate::sendMouseEvent (receiver=0x27c2280, event=0x7fffcada30d0, alienWidget=0x27c2280, nativeWidget=0x27e68f0, buttonDown=<optimized out>, lastMouseReceiver=..., spontaneous=true) at ../../src/corelib/kernel/qcoreapplication.h:231 #30 0x0000003d2b04663b in QETWidget::translateMouseEvent (this=0x27e68f0, event=<optimized out>) at kernel/qapplication_x11.cpp:4540 #31 0x0000003d2b0450ac in QApplication::x11ProcessEvent (this=0x25ad390, event=event@entry=0x7fffcada3440) at kernel/qapplication_x11.cpp:3663 #32 0x0000003d2b06cac4 in x11EventSourceDispatch (s=s@entry=0x25be9b0, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:148 #33 0x000000394b0492a6 in g_main_dispatch (context=0x25be8f0) at gmain.c:3066 #34 g_main_context_dispatch (context=context@entry=0x25be8f0) at gmain.c:3642 #35 0x000000394b049628 in g_main_context_iterate (context=context@entry=0x25be8f0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3713 #36 0x000000394b0496dc in g_main_context_iteration (context=0x25be8f0, may_block=1) at gmain.c:3774 #37 0x0000003d297b541e in QEventDispatcherGlib::processEvents (this=0x258aca0, flags=...) at kernel/qeventdispatcher_glib.cpp:450 #38 0x0000003d2b06cc46 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:207 #39 0x0000003d2978538f in QEventLoop::processEvents (this=this@entry=0x7fffcada3830, flags=...) at kernel/qeventloop.cpp:149 #40 0x0000003d297856dd in QEventLoop::exec (this=this@entry=0x7fffcada3830, flags=...) at kernel/qeventloop.cpp:204 #41 0x0000003d2978ada9 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1225 #42 0x0000003d2afc94dc in QApplication::exec () at kernel/qapplication.cpp:3823 #43 0x0000000000457981 in runKMyMoney (splash=splash@entry=0x27469d0, a=0x25ad390) at /usr/src/debug/kmymoney-4.6.6/kmymoney/main.cpp:282 #44 0x00000000004562b6 in main (argc=1, argv=0x7fffcada42d8) at /usr/src/debug/kmymoney-4.6.6/kmymoney/main.cpp:181 Possible duplicates by query: bug 327663. Report to https://bugs.kde.org/ My crash is due to this report: <REPORT includesprice="0" includesactuals="0" columnsaredays="0" includestransfers="0" loans="0" id="R000001" comment="Relatório personalizado" columntype="months" rowtype="expenseincome" name="Receitas e despesas deste ano (Personalizado)" chartgridlines="1" includesaverageprice="0" includesmovingaverage="0" chartbydefault="0" skipZero="0" datelock="yeartodate" investments="0" charttype="line" favorite="1" showrowtotals="1" chartdatalabels="1" convertcurrency="1" chartlinewidth="2" detail="pie" includeschedules="0" tax="0" group="Income and Expenses" includesforecast="0" includeunused="0" mixedtime="0" type="pivottable 1.15"> <ACCOUNTGROUP group="expense"/> <ACCOUNTGROUP group="income"/> </REPORT> If I remove this one from my .kmy file, it works again just fine. Interesting that I also have: <REPORT includesprice="0" includesactuals="0" columnsaredays="0" includestransfers="0" loans="0" id="R000003" comment="Relatório personalizado" columntype="months" rowtype="expenseincome" name="Receitas e despesas deste mês (Personalizado)" chartgridlines="1" includesaverageprice="0" includesmovingaverage="0" chartbydefault="0" skipZero="0" datelock="currentmonth" investments="0" charttype="line" favorite="0" showrowtotals="1" chartdatalabels="1" convertcurrency="1" chartlinewidth="2" detail="all" includeschedules="0" tax="0" group="Income and Expenses" includesforecast="0" includeunused="0" mixedtime="0" type="pivottable 1.15"> <ACCOUNTGROUP group="expense"/> <ACCOUNTGROUP group="income"/> </REPORT> and this one works just fine. Thanks for the provided information, I managed to reproduce the crash using it. OK, the fix is coming up, it's caused by a value that is not properly initialized in combination with the report that has an invalid 'detail' attribute. If you can't update from master after the fix is pushed a workaround is to make sure that the detail attribute has a value in [none,all,top,group,total,invalid] in your file. Git commit 442e44a1bf70e07fd4cd85460d22a90d1accf398 by Cristian Oneț. Committed on 19/08/2014 at 15:35. Pushed by conet into branch 'master'. Properly initialize a report object before reading it. This way we make sure that it's valid even if the xml data is not. M +2 -0 kmymoney/mymoney/mymoneyreport.cpp http://commits.kde.org/kmymoney/442e44a1bf70e07fd4cd85460d22a90d1accf398 Git commit e7b64d1488cfdfce7813dbbd7388f3f5ffcbd068 by Cristian Oneț. Committed on 19/08/2014 at 15:35. Pushed by conet into branch 'frameworks'. Properly initialize a report object before reading it. This way we make sure that it's valid even if the xml data is not. (cherry picked from commit 442e44a1bf70e07fd4cd85460d22a90d1accf398) M +2 -0 kmymoney/mymoney/mymoneyreport.cpp http://commits.kde.org/kmymoney/e7b64d1488cfdfce7813dbbd7388f3f5ffcbd068 Hah, I missed the difference on the detail attribute in there. Many thanks Cristian! I also only spotted it with the help of the debugger. You're welcome. Git commit 58944b69daeb8ae49c3ccf5916852b8efc9ce3d4 by Christian Dávid, on behalf of Cristian Oneț. Committed on 19/08/2014 at 15:35. Pushed by christiand into branch 'add-onlinebanking'. Properly initialize a report object before reading it. This way we make sure that it's valid even if the xml data is not. M +2 -0 kmymoney/mymoney/mymoneyreport.cpp http://commits.kde.org/kmymoney/58944b69daeb8ae49c3ccf5916852b8efc9ce3d4 |