Bug 309236 - Crash while importing CSV
Summary: Crash while importing CSV
Status: RESOLVED FIXED
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-10-30 07:19 UTC by debug
Modified: 2012-10-30 20:17 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
last view before action that causes crash (72.21 KB, image/png)
2012-10-30 07:27 UTC, debug
Details

Note You need to log in before you can comment on or make changes to this bug.
Description debug 2012-10-30 07:19:59 UTC
Application: kmymoney (4.6.1)
KDE Platform Version: 4.8.5 (4.8.5)
Qt Version: 4.8.1
Operating System: Linux 3.2.0-23-generic x86_64
Distribution: Linux Mint 13 Maya

-- Information about the crash:
- What I was doing when the application crashed:
Opened .csv file, assigned column numbers, clicked "Import". Assigned column in "Number" disappears, window is showing only first line of file, new window asks me to "Enter column number of debit/credit - Enter debit flag column number".

Hit enter --> crash
Cancel, click "Import" again --> crash
Change number to any other value and hit enter --> crash

The crash can be reproduced every time.

-- Backtrace:
Application: KMyMoney (kmymoney), signal: Aborted
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f815a481780 (LWP 12846))]

Thread 2 (Thread 0x7f8136ce3700 (LWP 12860)):
#0  0x00007fff8fbff98f in clock_gettime ()
#1  0x00007f815047b15d in clock_gettime () from /lib/x86_64-linux-gnu/librt.so.1
#2  0x00007f815665fbb4 in do_gettime (frac=0x7f8136ce2b98, sec=0x7f8136ce2b90) at tools/qelapsedtimer_unix.cpp:123
#3  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#4  0x00007f8156737b8d in QTimerInfoList::updateCurrentTime (this=0x7f8130002860) at kernel/qeventdispatcher_unix.cpp:343
#5  0x00007f8156737ec3 in QTimerInfoList::timerWait (this=0x7f8130002860, tm=...) at kernel/qeventdispatcher_unix.cpp:450
#6  0x00007f815673697c in timerSourcePrepareHelper (src=<optimized out>, timeout=0x7f8136ce2c6c) at kernel/qeventdispatcher_glib.cpp:136
#7  0x00007f8156736a25 in timerSourcePrepare (source=<optimized out>, timeout=<optimized out>) at kernel/qeventdispatcher_glib.cpp:169
#8  0x00007f81501c9846 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#9  0x00007f81501c9f5b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#10 0x00007f81501ca164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#11 0x00007f8156737426 in QEventDispatcherGlib::processEvents (this=0x7f81300008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#12 0x00007f8156706c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#13 0x00007f8156706ed7 in QEventLoop::exec (this=0x7f8136ce2dd0, flags=...) at kernel/qeventloop.cpp:204
#14 0x00007f8156605fa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#15 0x00007f81566e69ff in QInotifyFileSystemWatcherEngine::run (this=0x40dc6b0) at io/qfilesystemwatcher_inotify.cpp:248
#16 0x00007f8156608fcb in QThreadPrivate::start (arg=0x40dc6b0) at thread/qthread_unix.cpp:298
#17 0x00007f8157878e9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#18 0x00007f8154b64cbd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#19 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f815a481780 (LWP 12846)):
[KCrash Handler]
#6  0x00007f8154aa7425 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#7  0x00007f8154aaab8b in abort () from /lib/x86_64-linux-gnu/libc.so.6
#8  0x00007f81553f969d in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#9  0x00007f81553f7846 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#10 0x00007f81553f7873 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#11 0x00007f81553f79b6 in __cxa_rethrow () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#12 0x00007f815670716c in QEventLoop::exec (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:218
#13 0x00007f815670bf67 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#14 0x0000000000457dcd in runKMyMoney (splash=<optimized out>, a=<optimized out>) at /build/buildd/kmymoney-4.6.1/kmymoney/main.cpp:282
#15 0x00000000004564f3 in main (argc=1, argv=0x7fff8fbe37c8) at /build/buildd/kmymoney-4.6.1/kmymoney/main.cpp:181

Possible duplicates by query: bug 309105, bug 308615, bug 308247, bug 307688, bug 306434.

Reported using DrKonqi
Comment 1 debug 2012-10-30 07:27:53 UTC
Created attachment 74877 [details]
last view before action that causes crash

That's what KMyMoney asks me before it crashes. It always crashes, whether I hit enter, change the number to any other value or cancel and click "Import" again.
Comment 2 allan 2012-10-30 13:27:31 UTC
(In reply to comment #1)
> Created attachment 74877 [details]
> last view before action that causes crash
> 
> That's what KMyMoney asks me before it crashes. It always crashes, whether I
> hit enter, change the number to any other value or cancel and click "Import"
> again.

A problem in this area was fixed in 4.6.2, along with several other changes, so I think it would be wortwhile to try to upgrade.  The current release is 4.6.3.  The Claydoh PPA should help.

In the meantime, can you edit the csvimportrc file,which is usually in ~/.kde/share/config.  There should be a line 'DebitFlag=-1'.  The '-1' may not be present, but should be.

The BT wasn't too helpful.
Comment 3 debug 2012-10-30 20:17:37 UTC
Added the PPA to my sources and update worked fine!
Thank you! Import is working as well.

Anyway, the "Debit flag" said -1 before updating...