<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>263606</bug_id>
          
          <creation_ts>2011-01-19 03:04:02 +0000</creation_ts>
          <short_desc>Kmymoney crash and trash its data when try to save changes on a report</short_desc>
          <delta_ts>2011-05-27 22:17:32 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>kmymoney</product>
          <component>general</component>
          <version>4.5</version>
          <rep_platform>Ubuntu</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>258974</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>crash</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Carlos Novaes">carlosnov</reporter>
          <assigned_to name="KMyMoney Devel Mailing List">kmymoney-devel</assigned_to>
          <cc>achiele</cc>
    
    <cc>carlosnov</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1075369</commentid>
    <comment_count>0</comment_count>
    <who name="Carlos Novaes">carlosnov</who>
    <bug_when>2011-01-19 03:04:02 +0000</bug_when>
    <thetext>Application: kmymoney (4.5.0)
KDE Platform Version: 4.5.95 (4.6 RC2)
Qt Version: 4.7.0
Operating System: Linux 2.6.36-020636-generic x86_64
Distribution: Ubuntu 10.10

-- Information about the crash:
Everytime I tried to save a given report the app crash and I lost the entire kmy file. The I restored from my disk backups and try again with the same results. This is specially important now that I had completed a budget for 2011 and can not set it to use on my prefered report.

The crash can be reproduced every time.

-- Backtrace:
Application: KMyMoney (kmymoney), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f5027538760 (LWP 8465))]

Thread 2 (Thread 0x7f500cdf1700 (LWP 8466)):
#0  0xffffffffff60017b in ?? ()
#1  0x00007f500cdf0a90 in ?? ()
#2  0x00007fffbb3ff6ef in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 1 (Thread 0x7f5027538760 (LWP 8465)):
[KCrash Handler]
#6  ref (this=0x45ca1a0, other=...) at ../../include/QtCore/../../src/corelib/arch/qatomic_x86_64.h:121
#7  QString::operator= (this=0x45ca1a0, other=...) at tools/qstring.cpp:1323
#8  0x00007f5024191b02 in QDomAttrPrivate::setNodeValue (this=0x45ca160, v=...) at dom/qdom.cpp:4137
#9  0x00007f5024190506 in QDomElementPrivate::setAttribute (this=0x45c6fb0, aname=..., newValue=...) at dom/qdom.cpp:4479
#10 0x00007f5027129829 in MyMoneyReport::write (this=&lt;value optimized out&gt;, e=..., doc=0x2575c10, anonymous=&lt;value optimized out&gt;) at /build/buildd/kmymoney-4.5/kmymoney/mymoney/mymoneyreport.cpp:359
#11 0x00007f502712a3b3 in MyMoneyReport::writeXML (this=0x4679620, document=..., parent=...) at /build/buildd/kmymoney-4.5/kmymoney/mymoney/mymoneyreport.cpp:737
#12 0x000000000082f1e7 in MyMoneyStorageXML::writeReports (this=0x27bb4a0, parent=...) at /build/buildd/kmymoney-4.5/kmymoney/mymoney/storage/mymoneystoragexml.cpp:760
#13 0x00000000008300d3 in MyMoneyStorageXML::writeFile (this=0x27bb4a0, qf=&lt;value optimized out&gt;, storage=&lt;value optimized out&gt;) at /build/buildd/kmymoney-4.5/kmymoney/mymoney/storage/mymoneystoragexml.cpp:503
#14 0x00000000004b3594 in KMyMoneyView::saveToLocalFile (this=&lt;value optimized out&gt;, localFile=&lt;value optimized out&gt;, pWriter=&lt;value optimized out&gt;, plaintext=&lt;value optimized out&gt;, keyList=&lt;value optimized out&gt;) at /build/buildd/kmymoney-4.5/kmymoney/views/kmymoneyview.cpp:1093
#15 0x00000000004b4adc in KMyMoneyView::saveFile (this=0xfd5b60, url=..., keyList=&lt;value optimized out&gt;) at /build/buildd/kmymoney-4.5/kmymoney/views/kmymoneyview.cpp:1163
#16 0x0000000000491233 in KMyMoneyApp::slotFileSave (this=0xd55600) at /build/buildd/kmymoney-4.5/kmymoney/kmymoney.cpp:1552
#17 0x000000000049e74d in KMyMoneyApp::qt_metacall (this=0xd55600, _c=QMetaObject::InvokeMetaMethod, _id=&lt;value optimized out&gt;, _a=0x7fffbb2db780) at /build/buildd/kmymoney-4.5/obj-x86_64-linux-gnu/kmymoney/kmymoney.moc:516
#18 0x00007f5022c7eb27 in QMetaObject::activate (sender=0xe1e2c0, m=&lt;value optimized out&gt;, local_signal_index=&lt;value optimized out&gt;, argv=0x7fffbb2da301) at kernel/qobject.cpp:3280
#19 0x00007f5023641852 in QAction::triggered (this=0x45ca1a0, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#20 0x00007f5023642f5b in QAction::activate (this=0xe1e2c0, event=&lt;value optimized out&gt;) at kernel/qaction.cpp:1256
#21 0x00007f5023a2257a in QAbstractButtonPrivate::click (this=0xfd0510) at widgets/qabstractbutton.cpp:528
#22 0x00007f5023a2282c in QAbstractButton::mouseReleaseEvent (this=0xfa1920, e=0x7fffbb2dc0e0) at widgets/qabstractbutton.cpp:1121
#23 0x00007f5023af252a in QToolButton::mouseReleaseEvent (this=0x45ca1a0, e=0xd086c0) at widgets/qtoolbutton.cpp:721
#24 0x00007f502369f04e in QWidget::event (this=0xfa1920, event=0x7fffbb2dc0e0) at kernel/qwidget.cpp:8187
#25 0x00007f5023648fdc in QApplicationPrivate::notify_helper (this=0xce2410, receiver=0xfa1920, e=0x7fffbb2dc0e0) at kernel/qapplication.cpp:4396
#26 0x00007f502364f30e in QApplication::notify (this=0xce2300, receiver=0xfa1920, e=0x7fffbb2dc0e0) at kernel/qapplication.cpp:3959
#27 0x00007f5025b38a36 in KApplication::notify (this=0xce2300, receiver=0xfa1920, event=0x7fffbb2dc0e0) at ../../kdeui/kernel/kapplication.cpp:311
#28 0x00007f5022c66cdc in QCoreApplication::notifyInternal (this=0xce2300, receiver=0xfa1920, event=0x7fffbb2dc0e0) at kernel/qcoreapplication.cpp:732
#29 0x00007f502364ddbe in sendEvent (receiver=0xfa1920, event=0x7fffbb2dc0e0, alienWidget=0xfa1920, nativeWidget=0xfc8b20, buttonDown=&lt;value optimized out&gt;, lastMouseReceiver=&lt;value optimized out&gt;, spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#30 QApplicationPrivate::sendMouseEvent (receiver=0xfa1920, event=0x7fffbb2dc0e0, alienWidget=0xfa1920, nativeWidget=0xfc8b20, buttonDown=&lt;value optimized out&gt;, lastMouseReceiver=&lt;value optimized out&gt;, spontaneous=true) at kernel/qapplication.cpp:3058
#31 0x00007f50236d1345 in QETWidget::translateMouseEvent (this=0xfc8b20, event=&lt;value optimized out&gt;) at kernel/qapplication_x11.cpp:4403
#32 0x00007f50236cfc5c in QApplication::x11ProcessEvent (this=&lt;value optimized out&gt;, event=0x7fffbb2dca00) at kernel/qapplication_x11.cpp:3536
#33 0x00007f50236fc0e2 in x11EventSourceDispatch (s=0xce6330, callback=&lt;value optimized out&gt;, user_data=&lt;value optimized out&gt;) at kernel/qguieventdispatcher_glib.cpp:146
#34 0x00007f501db9f342 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#35 0x00007f501dba32a8 in ?? () from /lib/libglib-2.0.so.0
#36 0x00007f501dba345c in g_main_context_iteration () from /lib/libglib-2.0.so.0
#37 0x00007f5022c93193 in QEventDispatcherGlib::processEvents (this=0xcbdfd0, flags=&lt;value optimized out&gt;) at kernel/qeventdispatcher_glib.cpp:415
#38 0x00007f50236fba4e in QGuiEventDispatcherGlib::processEvents (this=0x45ca1a0, flags=&lt;value optimized out&gt;) at kernel/qguieventdispatcher_glib.cpp:204
#39 0x00007f5022c65a02 in QEventLoop::processEvents (this=&lt;value optimized out&gt;, flags=) at kernel/qeventloop.cpp:149
#40 0x00007f5022c65dec in QEventLoop::exec (this=0x7fffbb2dcd30, flags=) at kernel/qeventloop.cpp:201
#41 0x00007f5022c69ebb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#42 0x0000000000452d58 in main (argc=&lt;value optimized out&gt;, argv=&lt;value optimized out&gt;) at /build/buildd/kmymoney-4.5/kmymoney/main.cpp:260

Reported using DrKonqi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1075374</commentid>
    <comment_count>1</comment_count>
    <who name="Alvaro Soliverez">asoliverez</who>
    <bug_when>2011-01-19 04:11:40 +0000</bug_when>
    <thetext>Have you ran a consistency check?
Are you sure the hard drive is ok and you have enough disk space? At least twice as much space as the uncompressed kmymoney xml file.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1076366</commentid>
    <comment_count>2</comment_count>
    <who name="Carlos Novaes">carlosnov</who>
    <bug_when>2011-01-20 22:47:15 +0000</bug_when>
    <thetext>Yes I did a consistency check, my uncompressed data file is about 1.2MB and I have a lot of free space on disk. Also, there are no complains about disk failures on dmesg. I did even copied it to another partition and the error persists.

Somehow I managed to change the report to reflect my budget for 2011, I got to change the report settings, close the report view and press save. This was saving changes and no crashs, but today I tried again and can not obtain this result anymore, only the crash and data corruption after trying to save. Dont remember at the time if I did something more to save.

Also even a empty data file causes this error, checked it today.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1093424</commentid>
    <comment_count>3</comment_count>
    <who name="Thomas Baumgart">tbaumgart</who>
    <bug_when>2011-03-04 21:17:38 +0000</bug_when>
    <thetext>*** Bug 267635 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1123880</commentid>
    <comment_count>4</comment_count>
    <who name="Thomas Baumgart">tbaumgart</who>
    <bug_when>2011-05-27 17:12:48 +0000</bug_when>
    <thetext>Does this still happen using a newer version (e.g. 4.5.3)?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1124205</commentid>
    <comment_count>5</comment_count>
    <who name="Cristian Oneț">onet.cristian</who>
    <bug_when>2011-05-27 22:17:32 +0000</bug_when>
    <thetext>While I was investigating BUG 258974 I managed to obtain the same crash so I&apos;ll mark this as it&apos;s duplicate. I&apos;m sure this also happened on a localized version of KMyMoney.

*** This bug has been marked as a duplicate of bug 258974 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>