Bug 382997 - Crash in text tool when typing certain characters with modifier keys
Summary: Crash in text tool when typing certain characters with modifier keys
Status: RESOLVED UNMAINTAINED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: 3.1.1
Platform: Debian unstable Linux
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2017-08-01 12:45 UTC by Daniel Clemente
Modified: 2017-11-21 09:24 UTC (History)
1 user (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 Daniel Clemente 2017-08-01 12:45:57 UTC
Application: krita (3.1.1)

Qt Version: 5.7.1
Frameworks Version: 5.28.0
Operating System: Linux 4.9.0-3-amd64 x86_64
Distribution: Devuan GNU/Linux 2.0 (ascii)

-- Information about the crash:
- What I was doing when the application crashed:

Editing text (multiline). I was typing and it crashed at the character %, which I obtain by pressing AltGr + another key (I use a custom key binding from a XKB map file).
Another time, the crash was when typing another letter with modifiers, ยก (Shift+something).
I could later type these same letters and it didn't crash.

- Custom settings of the application:

The crash can be reproduced every time.

-- Backtrace:
Application: Krita (krita), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7ffb7988c740 (LWP 16938))]

Thread 5 (Thread 0x7ffb5b91f700 (LWP 16955)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007ffb878b1c6b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007ffb88589301 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#3  0x00007ffb878b0da8 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007ffb81c9a494 in start_thread (arg=0x7ffb5b91f700) at pthread_create.c:333
#5  0x00007ffb86fb3a8f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 4 (Thread 0x7ffb5c1cd700 (LWP 16953)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007ffb878b1c6b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007ffb878aae26 in QSemaphore::tryAcquire(int, int) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007ffb851675ea in KisTileDataSwapper::run() () from /usr/lib/x86_64-linux-gnu/libkritaimage.so.16
#4  0x00007ffb878b0da8 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007ffb81c9a494 in start_thread (arg=0x7ffb5c1cd700) at pthread_create.c:333
#6  0x00007ffb86fb3a8f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 3 (Thread 0x7ffb5c9ce700 (LWP 16952)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007ffb878b1c6b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007ffb878aab33 in QSemaphore::acquire(int) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007ffb8514cd2e in ?? () from /usr/lib/x86_64-linux-gnu/libkritaimage.so.16
#4  0x00007ffb8514d53a in ?? () from /usr/lib/x86_64-linux-gnu/libkritaimage.so.16
#5  0x00007ffb878b0da8 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007ffb81c9a494 in start_thread (arg=0x7ffb5c9ce700) at pthread_create.c:333
#7  0x00007ffb86fb3a8f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 2 (Thread 0x7ffb6e7da700 (LWP 16940)):
#0  0x00007ffb86fa66ad in read () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007ffb8044cd40 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffb804084be in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffb80408994 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ffb80408b0c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffb87ad506b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007ffb87a7e9ca in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007ffb878ac0f3 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007ffb89b1a6d5 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#9  0x00007ffb878b0da8 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007ffb81c9a494 in start_thread (arg=0x7ffb6e7da700) at pthread_create.c:333
#11 0x00007ffb86fb3a8f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 1 (Thread 0x7ffb7988c740 (LWP 16938)):
[KCrash Handler]
#4  0x00007ffb83865494 in KUndo2Command::childCount() const () from /usr/lib/x86_64-linux-gnu/libkritaundo2.so.16
#5  0x00007ffb62e60882 in ?? () from /usr/lib/x86_64-linux-gnu/libkritatext.so.16
#6  0x00007ffb62e59497 in ?? () from /usr/lib/x86_64-linux-gnu/libkritatext.so.16
#7  0x00007ffb87aac5e9 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007ffb87ed8ee4 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#9  0x00007ffb87edf6c0 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#10 0x00007ffb87f0587a in QTextCursor::insertText(QString const&, QTextCharFormat const&) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#11 0x00007ffb62e55abf in KoTextEditor::insertText(QString const&, QString const&) () from /usr/lib/x86_64-linux-gnu/libkritatext.so.16
#12 0x00007ffb6348e581 in ?? () from /usr/lib/x86_64-linux-gnu/kritaplugins/krita_shape_text.so
#13 0x00007ffb89250bd4 in ?? () from /usr/lib/x86_64-linux-gnu/libkritaui.so.16
#14 0x00007ffb894ee3d9 in ?? () from /usr/lib/x86_64-linux-gnu/libkritaui.so.16
#15 0x00007ffb894e9e75 in KisInputManager::Private::processUnhandledEvent(QEvent*) () from /usr/lib/x86_64-linux-gnu/libkritaui.so.16
#16 0x00007ffb894e7371 in KisInputManager::eventFilterImpl(QEvent*) () from /usr/lib/x86_64-linux-gnu/libkritaui.so.16
#17 0x00007ffb87a80741 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#18 0x00007ffb88363b65 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#19 0x00007ffb8836cd16 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#20 0x00007ffb8954fec7 in KisApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libkritaui.so.16
#21 0x00007ffb87a809e0 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#22 0x00007ffb883c832b in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#23 0x00007ffb88363b8c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#24 0x00007ffb8836b341 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#25 0x00007ffb8954fec7 in KisApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libkritaui.so.16
#26 0x00007ffb87a809e0 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#27 0x00007ffb87dc50f8 in QGuiApplicationPrivate::processKeyEvent(QWindowSystemInterfacePrivate::KeyEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#28 0x00007ffb87dca665 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#29 0x00007ffb87da861b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#30 0x00007ffb795de4c0 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#31 0x00007ffb804087f7 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#32 0x00007ffb80408a60 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#33 0x00007ffb80408b0c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#34 0x00007ffb87ad504f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#35 0x00007ffb87a7e9ca in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#36 0x00007ffb87a8713c in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#37 0x00005625dfedd23e in main ()

Reported using DrKonqi
Comment 1 Halla Rempt 2017-11-21 09:24:49 UTC
Hi Daniel, 

I'm afraid that the old text tool is unmaintained by now; we're replacing it with a new text tool.