Bug 266901 - KMyMoney crashes when inputing accented letter in category field
Summary: KMyMoney crashes when inputing accented letter in category field
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: 4.5.2
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
: 276895 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-02-22 17:55 UTC by Ricardo Graça
Modified: 2012-04-28 21:10 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ricardo Graça 2011-02-22 17:55:33 UTC
Application: kmymoney (4.5.2)
KDE Platform Version: 4.5.5 (KDE 4.5.5) "release 1"
Qt Version: 4.6.3
Operating System: Linux 2.6.34.7-0.7-desktop x86_64
Distribution: "openSUSE 11.3 (x86_64)"

-- Information about the crash:
- What I was doing when the application crashed:
When trying to input an accented "e" letter (é) into the category field, the program crashed. I have categories with that letter, so the autocompletion box should pop out. If there are no categories with the accented letters, the program doesn't crash. So I suspect it's related to the autocompletion box poping up. For some strange reason the crash only occurs after the completion box pops up at least once and is closed afterwards. On the next accented letter input that would trigger an autocompletion box to pop-up the crash happens. If the autocompletion box is already visible then it doesn't crash and I can type all the accented letters I want.

In order to reproduce this bug there must be a category with an accented letter already and then just follow these steps:

1. make a new transaction;
2. input an accented letter that will pop up an autocompletion box in the category field;
3. click away from the completion box to close it;
4. clear the category input field and try to input the same accented letter again;
5. crash!

Conclusion: Qt is pretty screwed up when it comes to accented letters.

The crash can be reproduced every time.

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

Thread 2 (Thread 0x7fbc12dd6710 (LWP 11461)):
#0  0x00007fbc292b4709 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fbc28112222 in wait (this=<value optimized out>, mutex=0x116aa50, time=30000) at thread/qwaitcondition_unix.cpp:85
#2  QWaitCondition::wait (this=<value optimized out>, mutex=0x116aa50, time=30000) at thread/qwaitcondition_unix.cpp:159
#3  0x00007fbc281080d0 in QThreadPoolThread::run (this=0x116ab20) at concurrent/qthreadpool.cpp:140
#4  0x00007fbc28111bf5 in QThreadPrivate::start (arg=0x116ab20) at thread/qthread_unix.cpp:248
#5  0x00007fbc292afa4f in start_thread () from /lib64/libpthread.so.0
#6  0x00007fbc267ad82d in clone () from /lib64/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fbc2bc0a760 (LWP 11460)):
[KCrash Handler]
#6  deref (this=0x2010258, other=@0x7fff5e03fa80) at ../../src/corelib/arch/qatomic_x86_64.h:133
#7  QString::operator= (this=0x2010258, other=@0x7fff5e03fa80) at tools/qstring.cpp:1281
#8  0x00007fbc2790a97e in QXIMInputContext::ICData::clear (this=0x2010240) at inputmethod/qximinputcontext_x11.cpp:288
#9  0x00007fbc2790afb5 in QXIMInputContext::x11FilterEvent (this=0x1f86dd0, keywidget=<value optimized out>, event=<value optimized out>) at inputmethod/qximinputcontext_x11.cpp:685
#10 0x00007fbc273ee91f in QApplication::x11ProcessEvent (this=0xbf8d30, event=0x7fff5e0401b0) at kernel/qapplication_x11.cpp:3210
#11 0x00007fbc27415492 in x11EventSourceDispatch (s=0xbfcbd0, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#12 0x00007fbc21a44a93 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#13 0x00007fbc21a45270 in ?? () from /usr/lib64/libglib-2.0.so.0
#14 0x00007fbc21a45510 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#15 0x00007fbc2822167f in QEventDispatcherGlib::processEvents (this=0xbd9e90, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:412
#16 0x00007fbc2741514e in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#17 0x00007fbc281f8292 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#18 0x00007fbc281f8495 in QEventLoop::exec (this=0x7fff5e0404d0, flags=...) at kernel/qeventloop.cpp:201
#19 0x00007fbc281fc88b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1003
#20 0x0000000000458bee in main (argc=1, argv=0x7fff5e0410a8) at /usr/src/debug/kmymoney-4.5.2/kmymoney/main.cpp:260

Reported using DrKonqi
Comment 1 Cristian Oneț 2011-05-13 12:23:45 UTC
There are other input context related kmymoney crashes. The sad thing is that we (as kmymoney application developers) wouldn't have wanted to know about the input context, ever, but Qt doesn't really let us. First the problem was that special characters could not be inputted (using some layouts), next input context related crashes...

Sorry, I'm not really helpful in solving the bug :)
Comment 2 Thomas Baumgart 2011-06-04 17:43:23 UTC
SVN trunk crashes in the same manner even using KDE 4.6.0
Comment 3 Cristian Oneț 2011-07-08 16:54:37 UTC
*** Bug 276895 has been marked as a duplicate of this bug. ***
Comment 4 Cristian Oneț 2011-07-08 17:05:14 UTC
I can't reproduce this here and it really seems like a duplicate of bug 241044 except that Thomas said that trunk also crashes. Thomas could you tel me a bit more about your setup? I use accented characters with AltGr regularly and it never crashed I also tried the composer to enter 'əß°' and they all seem to work alright.
Comment 5 Cristian Oneț 2012-01-06 12:21:03 UTC
Thomas, I've changed it to waiting for info :).
Comment 6 Theofilos Intzoglou 2012-02-25 13:14:29 UTC
This problem is fixed for me (I was the one that filed bug #276895). I can now use kmymoney without any problems
Comment 7 Ricardo Graça 2012-02-25 15:28:42 UTC
Still happens with KMyMoney 4.5.3 using KDE 4.7.4 on Ubuntu 11.10. I'm using a portuguese locale (actually system default, which happens to be portuguese) configured in system settings. I used an old file and the problem still persists. I also tried creating a new file and following the same steps above I can also reproduce it every time. I can provide more info if required.
Comment 8 Cristian Oneț 2012-02-29 08:35:25 UTC
(In reply to comment #7)
> Still happens with KMyMoney 4.5.3 using KDE 4.7.4 on Ubuntu 11.10. I'm using a
> portuguese locale (actually system default, which happens to be portuguese)
> configured in system settings. I used an old file and the problem still
> persists. I also tried creating a new file and following the same steps above I
> can also reproduce it every time. I can provide more info if required.

Well the best info you could provide would be if you could upgrade KMyMoney to the latest stable version (4.6.2) and try to reproduce this bug with it. As you can see other users report it as fixed and your version is pretty old (4.5.3 is a year old version). I really mean when I say that a *lot* of bugs were fixed between 4.5.3 and 4.6.2 - you can check out the release notes for that http://kmymoney2.sourceforge.net/release-notes.html

I don't know why distributions are reluctant to package the never version since as far as I can remember we only worked on improving stability and usability during the last 3 years since the port to KDE4 started.
Comment 9 Alvaro Soliverez 2012-04-28 21:10:57 UTC
4.5.x series is not maintained anymore for minor bugs. Please update.