https://bugs.kde.org/show_bug.cgi?id=430220

            Bug ID: 430220
           Summary: [text-tool] Crash when editing a text with a specific
                    font (IMFellEnglish)
           Product: krita
           Version: 4.4.2-beta1
          Platform: Compiled Sources
                OS: Linux
            Status: REPORTED
          Severity: crash
          Priority: NOR
         Component: Tool/Text
          Assignee: krita-bugs-n...@kde.org
          Reporter: i...@davidrevoy.com
  Target Milestone: ---

Created attachment 133967
  --> https://bugs.kde.org/attachment.cgi?id=133967&action=edit
^ Krita file sample that reproduce the crash: just a small 577x225px file with
centered a text-box to edit.

Hi,

To reproduce:
=============
1. Get and install the font IMFellEnglish on your O.S. (SIL Licensed, FLOSS),
for GNU/Linux:
```
mkdir ~/.fonts
cd ~/.fonts
wget
https://framagit.org/peppercarrot/fonts/-/raw/master/Latin/IM-Fell-English.italic.ttf
wget
https://framagit.org/peppercarrot/fonts/-/blob/master/Latin/IM-Fell-english.roman.ttf
wget
https://framagit.org/peppercarrot/fonts/-/raw/master/Latin/IM-Fell-english.sc.ttf
```
2. Open the Krita file in attachement
3. with the vector selection tool click on the text box, the boundaries
rectangle decoration appear
4. Press [Enter] to edit the text box

Result:
=======
Krita crashes. Not new or specific to 4.4.2, I could also reproduce since 4.4.0
(it was on my to-do report for long, sorry about that).

Backtrace:
==========
Thread 1 "krita" received signal SIGSEGV, Segmentation fault.
0x00007ffff4f0d2eb in ?? () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
(gdb) thread apply all bt
[...]
Thread 1 (Thread 0x7fffef979800 (LWP 108061)):
#0  0x00007ffff4f0d2eb in ?? () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#1  0x00007ffff4f156ce in QFontDatabase::font(QString const&, QString const&,
int) const () from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#2  0x00007ffff5b1727b in KisFontComboBoxes::currentFont
(this=this@entry=0x55557049b7a0, pointSize=14) at
/home/deevad/sources/krita/src/libs/widgetutils/kis_font_family_combo_box.cpp:267
#3  0x00007fff6e895576 in SvgTextEditor::Private::saveFromWidgets
(this=this@entry=0x5555700f32e0, actions=0x55556ff57870) at
/home/deevad/sources/krita/src/plugins/tools/svgtexttool/SvgTextEditor.cpp:114
#4  0x00007fff6e89102e in SvgTextEditor::setInitialShape (this=0x55555780edd0,
shape=shape@entry=0x55555bbed2b0) at
/home/deevad/sources/krita/src/plugins/tools/svgtexttool/SvgTextEditor.cpp:385
#5  0x00007fff6e89852b in SvgTextTool::showEditor (this=0x55556d861b90) at
/usr/include/c++/9/bits/atomic_base.h:413
#6  0x00007fff6e898805 in SvgTextTool::keyPressEvent (this=<optimized out>,
event=0x7fffffffde60) at
/home/deevad/sources/krita/src/plugins/tools/svgtexttool/SvgTextTool.cpp:428
#7  0x00007ffff6d080a6 in KisToolProxy::forwardEvent (this=0x55556d847c80,
state=KisToolProxy::CONTINUE, action=KisTool::Primary, event=0x7fffffffde60,
originalEvent=0x7fffffffde60) at
/home/deevad/sources/krita/src/libs/ui/canvas/kis_tool_proxy.cpp:160
#8  0x00007ffff70390ec in KisToolInvocationAction::processUnhandledEvent
(this=0x555569874bf0, event=0x7fffffffde60) at
/home/deevad/sources/krita/src/libs/ui/input/kis_tool_invocation_action.cpp:190
#9  0x00007ffff702e7e5 in KisInputManager::Private::processUnhandledEvent
(this=0x55556a6863b0, event=event@entry=0x7fffffffde60) at
/home/deevad/sources/krita/src/libs/ui/input/kis_input_manager_p.cpp:599
#10 0x00007ffff702889e in KisInputManager::eventFilterImpl
(this=0x55556a01a748, event=<optimized out>) at
/home/deevad/sources/krita/src/libs/ui/input/kis_input_manager.cpp:394
#11 0x00007ffff4a4b64b in
QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) ()
from /lib/x86_64-linux-gnu/libQt5Core.so.5
#12 0x00007ffff5463a55 in QApplicationPrivate::notify_helper(QObject*, QEvent*)
() from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#13 0x00007ffff546d81e in QApplication::notify(QObject*, QEvent*) () from
/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#14 0x00007ffff70ca42d in KisApplication::notify (this=<optimized out>,
receiver=0x55555bc2e730, event=0x7fffffffde60) at
/home/deevad/sources/krita/src/libs/ui/KisApplication.cpp:689
#15 0x00007ffff4a4b93a in QCoreApplication::notifyInternal2(QObject*, QEvent*)
() from /lib/x86_64-linux-gnu/libQt5Core.so.5
#16 0x00007ffff54c5216 in ?? () from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#17 0x00007ffff5463a66 in QApplicationPrivate::notify_helper(QObject*, QEvent*)
() from /lib/x86_64-linux-gnu/libQt5Widgets.so.5
#18 0x00007ffff546d0f0 in QApplication::notify(QObject*, QEvent*) () from
/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#19 0x00007ffff70ca42d in KisApplication::notify (this=<optimized out>,
receiver=0x55556a679590, event=0x7fffffffde60) at
/home/deevad/sources/krita/src/libs/ui/KisApplication.cpp:689
--Type <RET> for more, q to quit, c to continue without paging--
#20 0x00007ffff4a4b93a in QCoreApplication::notifyInternal2(QObject*, QEvent*)
() from /lib/x86_64-linux-gnu/libQt5Core.so.5
#21 0x00007ffff4e30b2b in
QGuiApplicationPrivate::processKeyEvent(QWindowSystemInterfacePrivate::KeyEvent*)
() from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#22 0x00007ffff4e360f1 in
QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*)
() from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#23 0x00007ffff4e1035b in
QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>)
() from /lib/x86_64-linux-gnu/libQt5Gui.so.5
#24 0x00007fffef7f732e in ?? () from /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#25 0x00007ffff1fe2fbd in g_main_context_dispatch () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007ffff1fe3240 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007ffff1fe32e3 in g_main_context_iteration () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#28 0x00007ffff4aa3565 in
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
from /lib/x86_64-linux-gnu/libQt5Core.so.5
#29 0x00007ffff4a4a4db in
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from
/lib/x86_64-linux-gnu/libQt5Core.so.5
#30 0x00007ffff4a52246 in QCoreApplication::exec() () from
/lib/x86_64-linux-gnu/libQt5Core.so.5
#31 0x0000555555e28d58 in main (argc=<optimized out>, argv=0x7fffffffe488) at
/home/deevad/sources/krita/src/krita/main.cc:656

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to