Bug 388938 - Segmentation fault by moving text on a duplicated layer (Krita_4.0.0-beta1.1)
Summary: Segmentation fault by moving text on a duplicated layer (Krita_4.0.0-beta1.1)
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: 4.0.0-beta.1
Platform: Appimage Linux
: NOR crash
Target Milestone: ---
Assignee: Halla Rempt
URL:
Keywords: regression, release_blocker, triaged
Depends on:
Blocks:
 
Reported: 2018-01-14 02:08 UTC by mvowada
Modified: 2018-02-02 10:28 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
(Video example) (663.21 KB, video/mp4)
2018-01-14 02:08 UTC, mvowada
Details
(GDB report) (4.70 KB, text/plain)
2018-01-14 02:17 UTC, mvowada
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mvowada 2018-01-14 02:08:37 UTC
Created attachment 109849 [details]
(Video example)

(Ubuntu 14.04 - Krita 4.0.0-beta1.1.appimage)

I'm getting a Segmentation fault by moving text on a duplicated layer (see video). Steps:

    1) create text
    2) duplicate the layer
    3) using the "Select Shapes Tool" try to move the text on the duplicated layer

Actual Results: crash
Expected Results: just move the layer
Comment 1 mvowada 2018-01-14 02:17:56 UTC
Created attachment 109850 [details]
(GDB report)
Comment 2 Halla Rempt 2018-01-17 11:29:37 UTC
Hi,

I can reproduce the crash:

Thread 1 (Thread 0x7fc06f339940 (LWP 30056)):
[KCrash Handler]
#6  0x00007fc058e2cd5e in ?? () from /usr/lib64/libQt5XcbQpa.so.5
#7  0x00007fc058e2dd33 in ?? () from /usr/lib64/libQt5XcbQpa.so.5
#8  0x00007fc058e2f97b in ?? () from /usr/lib64/libQt5XcbQpa.so.5
#9  0x00007fc06516f38c in QRasterPaintEngine::drawCachedGlyphs(int, unsigned int const*, QFixedPoint const*, QFontEngine*) () from /usr/lib64/libQt5Gui.so.5
#10 0x00007fc065171ab6 in QRasterPaintEngine::drawTextItem(QPointF const&, QTextItem const&) () from /usr/lib64/libQt5Gui.so.5
#11 0x00007fc06518d37b in ?? () from /usr/lib64/libQt5Gui.so.5
#12 0x00007fc06502b390 in QTextLine::draw(QPainter*, QPointF const&, QTextLayout::FormatRange const*) const () from /usr/lib64/libQt5Gui.so.5
#13 0x00007fc06502d756 in QTextLayout::draw(QPainter*, QPointF const&, QVector<QTextLayout::FormatRange> const&, QRectF const&) const () from /usr/lib64/libQt5Gui.so.5
#14 0x00007fc06c99dba9 in KoSvgTextShape::paintComponent (this=<optimized out>, painter=..., converter=..., paintContext=...) at /home/boud/dev/krita/libs/flake/text/KoSvgTextShape.cpp:117
#15 0x00007fc06c88dd84 in KoShapeContainer::paint (this=0x7fbff800f8c0, painter=..., converter=..., paintcontext=...) at /home/boud/dev/krita/libs/flake/KoShapeContainer.cpp:144
#16 0x00007fc06c893956 in KoShapeManager::paintShape (shape=shape@entry=0x7fbff800f8c0, painter=..., converter=..., paintContext=...) at /home/boud/dev/krita/libs/flake/KoShapeManager.cpp:361
#17 0x00007fc06c894f00 in KoShapeManager::renderSingleShape (shape=0x7fbff800f8c0, painter=..., converter=..., paintContext=...) at /home/boud/dev/krita/libs/flake/KoShapeManager.cpp:328
#18 0x00007fc06c8955fe in KoShapeManager::paint (this=0x7fbff800ed60, painter=..., converter=..., forPrint=forPrint@entry=false) at /home/boud/dev/krita/libs/flake/KoShapeManager.cpp:297
#19 0x00007fc06e9c4af4 in KisShapeLayerCanvas::repaint (this=0x7fbff8011a10) at /home/boud/dev/krita/libs/ui/flake/kis_shape_layer_canvas.cpp:152
#20 0x00007fc0649bfb26 in QObject::event(QEvent*) () from /usr/lib64/libQt5Core.so.5
#21 0x00007fc0658d0cbc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#22 0x00007fc0658d7a10 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#23 0x00007fc06ec22e47 in KisApplication::notify (this=<optimized out>, receiver=0x7fbff8011a10, event=0x158fc480) at /home/boud/dev/krita/libs/ui/KisApplication.cpp:600
#24 0x00007fc064994d25 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#25 0x00007fc064997303 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib64/libQt5Core.so.5
#26 0x00007fc0649e6593 in ?? () from /usr/lib64/libQt5Core.so.5
#27 0x00007fc05fd9a134 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#28 0x00007fc05fd9a388 in ?? () from /usr/lib64/libglib-2.0.so.0
#29 0x00007fc05fd9a42c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#30 0x00007fc0649e5dbc in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#31 0x00007fc06499301b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#32 0x00007fc06499b5e4 in QCoreApplication::exec() () from /usr/lib64/libQt5Core.so.5
#33 0x00000000004059e1 in main (argc=1, argv=<optimized out>) at /home/boud/dev/krita/krita/main.cc:306
Comment 3 Dmitry Kazakov 2018-02-02 10:28:22 UTC
Should be fixed in https://phabricator.kde.org/R37:69e2e9e1e607e20988602c9a71df98ee0ca51723