Bug 523069 - Krita crashes when using the "cut" tool in the SVG editor
Summary: Krita crashes when using the "cut" tool in the SVG editor
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Tool/Text (other bugs)
Version First Reported In: git master (please specify the git hash!)
Platform: Other Microsoft Windows
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2026-07-15 00:09 UTC by Elena Sagalaeva
Modified: 2026-07-27 12:01 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Elena Sagalaeva 2026-07-15 00:09:44 UTC
DESCRIPTION


STEPS TO REPRODUCE
1. Create a new document
2. Create a vector layer
3. Create a text box
4. Open the SVG editor. The "Edit SVG source" button.
5. Select text in the SVG editor. Press the "cut" button, the scissors.
6. crash

OBSERVED RESULT
Krita crashes

EXPECTED RESULT
Krita shouldn't crash

SOFTWARE/OS VERSIONS
Operating System (available in the Info Center app, or by running `kinfo` in a terminal window):
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION

commit 2b927d92183e4722ac1561b25bc83b65438dffd7


        Qt5Widgets.dll!00007fffb8c19ae0()	Unknown
 	krita_tool_svgtext.dll!SvgTextEditor::cut() Line 193	C++
 	krita_tool_svgtext.dll!SvgTextEditor::qt_static_metacall(QObject * _o, QMetaObject::Call _c, int _id, void * * _a) Line 153	C++
 	Qt5Core.dll!00007fffb352f11d()	Unknown
Comment 1 dra.w.p.il.e+bugskde 2026-07-15 00:26:08 UTC
Can confirm, crashes on Linux and Android as well.
Comment 2 Bug Janitor Service 2026-07-23 09:18:49 UTC
A possibly relevant merge request was started @ https://invent.kde.org/graphics/krita/-/merge_requests/2876
Comment 3 Dmitry Kazakov 2026-07-27 12:01:00 UTC
Git commit 6bde961ba2b651a77f21e9b81483dc019c299de1 by Dmitry Kazakov, on behalf of Luna Lovecraft.
Committed on 27/07/2026 at 12:00.
Pushed by dkazakov into branch 'master'.

Fix buttons not working in the svg text editor

Before this commit buttons in the svg text editor would crash the app,
due to m_currentEditor not being initialized properly, and not handling
tab switching.

M  +12   -0    plugins/tools/svgtexttool/SvgTextEditor.cpp
M  +1    -0    plugins/tools/svgtexttool/SvgTextEditor.h

https://invent.kde.org/graphics/krita/-/commit/6bde961ba2b651a77f21e9b81483dc019c299de1
Comment 4 Dmitry Kazakov 2026-07-27 12:01:12 UTC
Git commit 0267f2742a4c0fe4c6705e891bcdf6f0633ac253 by Dmitry Kazakov, on behalf of Luna Lovecraft.
Committed on 27/07/2026 at 12:01.
Pushed by dkazakov into branch 'krita/6.0'.

Fix buttons not working in the svg text editor

Before this commit buttons in the svg text editor would crash the app,
due to m_currentEditor not being initialized properly, and not handling
tab switching.

M  +12   -0    plugins/tools/svgtexttool/SvgTextEditor.cpp
M  +1    -0    plugins/tools/svgtexttool/SvgTextEditor.h

https://invent.kde.org/graphics/krita/-/commit/0267f2742a4c0fe4c6705e891bcdf6f0633ac253