Bug 363143 - Crash while editing pattern fill of a vector object
Summary: Crash while editing pattern fill of a vector object
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (other bugs)
Version First Reported In: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2016-05-16 16:38 UTC by Raghavendra kamath
Modified: 2016-05-24 16:46 UTC (History)
0 users

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 Raghavendra kamath 2016-05-16 16:38:59 UTC
Application: krita ()
 (Compiled from sources)
Qt Version: 5.6.0
Frameworks Version: 5.21.0
Operating System: Linux 4.5.4-1-ARCH x86_64
Distribution (Platform): Archlinux Packages

-- Information about the crash:
- What I was doing when the application crashed:
I was trying to edit the pattern fill of a vector object .
I selected the pattern editing tool and clicked on one of the red nodes to edit the pattern ofset etc. krita crashed immediately

The crash can be reproduced every time.

-- Backtrace:
Application: krita (krita), signal: Segmentation fault
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fead9478840 (LWP 28489))]

Thread 5 (Thread 0x7feab7a7c700 (LWP 28491)):
#0  0x00007fead0dca68d in poll () from /usr/lib/libc.so.6
#1  0x00007feacc1f8fd6 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007feacc1f90ec in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007fead1c056eb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#4  0x00007fead1bad46a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#5  0x00007fead19d42f3 in QThread::exec() () from /usr/lib/libQt5Core.so.5
#6  0x00007feacd014a65 in ?? () from /usr/lib/libQt5DBus.so.5
#7  0x00007fead19d91d8 in ?? () from /usr/lib/libQt5Core.so.5
#8  0x00007feacd6c6474 in start_thread () from /usr/lib/libpthread.so.0
#9  0x00007fead0dd369d in clone () from /usr/lib/libc.so.6

Thread 4 (Thread 0x7feaa4e2a700 (LWP 28492)):
#0  0x00007feacd6cc09f in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007fead19da08b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQt5Core.so.5
#2  0x00007fead19d2d53 in QSemaphore::acquire(int) () from /usr/lib/libQt5Core.so.5
#3  0x00007fead7ffdd8d in KisTileDataPooler::waitForWork (this=0x7fead84dac60 <(anonymous namespace)::Q_QGS_s_instance::innerFunction()::holder>) at /home/raghu/kf5/src/krita/libs/image/tiles3/kis_tile_data_pooler.cc:165
#4  KisTileDataPooler::run (this=0x7fead84dac60 <(anonymous namespace)::Q_QGS_s_instance::innerFunction()::holder>) at /home/raghu/kf5/src/krita/libs/image/tiles3/kis_tile_data_pooler.cc:187
#5  0x00007fead19d91d8 in ?? () from /usr/lib/libQt5Core.so.5
#6  0x00007feacd6c6474 in start_thread () from /usr/lib/libpthread.so.0
#7  0x00007fead0dd369d in clone () from /usr/lib/libc.so.6

Thread 3 (Thread 0x7feaa4629700 (LWP 28493)):
#0  0x00007feacd6cc09f in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007fead19da08b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQt5Core.so.5
#2  0x00007fead19d3046 in QSemaphore::tryAcquire(int, int) () from /usr/lib/libQt5Core.so.5
#3  0x00007fead80193b3 in KisTileDataSwapper::waitForWork (this=<optimized out>) at /home/raghu/kf5/src/krita/libs/image/tiles3/swap/kis_tile_data_swapper.cpp:86
#4  0x00007fead80195ba in KisTileDataSwapper::run (this=0x7fead84daca0 <(anonymous namespace)::Q_QGS_s_instance::innerFunction()::holder+64>) at /home/raghu/kf5/src/krita/libs/image/tiles3/swap/kis_tile_data_swapper.cpp:92
#5  0x00007fead19d91d8 in ?? () from /usr/lib/libQt5Core.so.5
#6  0x00007feacd6c6474 in start_thread () from /usr/lib/libpthread.so.0
#7  0x00007fead0dd369d in clone () from /usr/lib/libc.so.6

Thread 2 (Thread 0x7feaa3e28700 (LWP 28494)):
#0  0x00007feacd6cc09f in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007fead19da08b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQt5Core.so.5
#2  0x00007fead2b09139 in ?? () from /usr/lib/libQt5Widgets.so.5
#3  0x00007fead19d91d8 in ?? () from /usr/lib/libQt5Core.so.5
#4  0x00007feacd6c6474 in start_thread () from /usr/lib/libpthread.so.0
#5  0x00007fead0dd369d in clone () from /usr/lib/libc.so.6

Thread 1 (Thread 0x7fead9478840 (LWP 28489)):
[KCrash Handler]
#5  0x0000000300000020 in ?? ()
#6  0x00007fead7240448 in KoPatternBackground::~KoPatternBackground (this=0x1eee6930, __in_chrg=<optimized out>) at /home/raghu/kf5/src/krita/libs/flake/KoPatternBackground.cpp:145
#7  0x00007fead7240469 in KoPatternBackground::~KoPatternBackground (this=0x1eee6930, __in_chrg=<optimized out>) at /home/raghu/kf5/src/krita/libs/flake/KoPatternBackground.cpp:146
#8  0x00007feaaa5266ae in QtSharedPointer::ExternalRefCountData::destroy (this=<optimized out>) at /usr/include/qt/QtCore/qsharedpointer_impl.h:154
#9  QSharedPointer<KoShapeBackground>::deref (d=<optimized out>) at /usr/include/qt/QtCore/qsharedpointer_impl.h:493
#10 QSharedPointer<KoPatternBackground>::deref (this=<synthetic pointer>) at /usr/include/qt/QtCore/qsharedpointer_impl.h:488
#11 QSharedPointer<KoPatternBackground>::~QSharedPointer (this=<synthetic pointer>, __in_chrg=<optimized out>) at /usr/include/qt/QtCore/qsharedpointer_impl.h:309
#12 QSharedPointer<KoPatternBackground>::operator= (other=..., this=0x7ffd08363f30) at /usr/include/qt/QtCore/qsharedpointer_impl.h:322
#13 KarbonOdfPatternEditStrategy::updatedBackground (this=<optimized out>) at /home/raghu/kf5/src/krita/plugins/tools/karbonplugins/tools/KarbonPatternEditStrategy.cpp:370
#14 0x00007feaaa527294 in KarbonOdfPatternEditStrategy::handleMouseMove (this=0xb406890, mouseLocation=..., modifiers=...) at /home/raghu/kf5/src/krita/plugins/tools/karbonplugins/tools/KarbonPatternEditStrategy.cpp:351
#15 0x00007feaaa51e4d0 in KarbonPatternTool::mouseMoveEvent (this=0xb707150, event=0x7ffd08364040) at /home/raghu/kf5/src/krita/plugins/tools/karbonplugins/tools/KarbonPatternTool.cpp:110
#16 0x00007fead721ab8c in KoToolProxy::mouseMoveEvent (this=this@entry=0xb585f10, event=event@entry=0x21879230, point=...) at /home/raghu/kf5/src/krita/libs/flake/KoToolProxy.cpp:342
#17 0x00007fead8b81f04 in KisToolProxy::forwardEvent (this=0xb585f10, state=KisToolProxy::CONTINUE, action=KisTool::Primary, event=<optimized out>, originalEvent=0x21879230) at /home/raghu/kf5/src/krita/libs/ui/canvas/kis_tool_proxy.cpp:139
#18 0x00007fead8de9349 in KisShortcutMatcher::pointerMoved (this=this@entry=0x4d9a650, event=event@entry=0x21879230) at /home/raghu/kf5/src/krita/libs/ui/input/kis_shortcut_matcher.cpp:246
#19 0x00007fead8dd86c5 in KisInputManager::Private::handleCompressedTabletEvent (this=0x4d9a630, event=0x21879230) at /home/raghu/kf5/src/krita/libs/ui/input/kis_input_manager_p.cpp:468
#20 0x00007fead8dd3e01 in KisInputManager::slotCompressedMoveEvent (this=0xa626820) at /home/raghu/kf5/src/krita/libs/ui/input/kis_input_manager.cpp:497
#21 0x00007fead1bdc679 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQt5Core.so.5
#22 0x00007fead80df931 in KisSignalCompressor::start (this=0x4d9a670) at /home/raghu/kf5/src/krita/libs/image/kis_signal_compressor.cpp:63
#23 0x00007fead8dd724a in KisInputManager::compressMoveEventCommon<QMouseEvent> (this=this@entry=0xa626820, event=event@entry=0x7ffd083648e0) at /home/raghu/kf5/src/krita/libs/ui/input/kis_input_manager.cpp:241
#24 0x00007fead8dd5b55 in KisInputManager::eventFilterImpl (this=0xa626820, event=0x7ffd083648e0) at /home/raghu/kf5/src/krita/libs/ui/input/kis_input_manager.cpp:334
#25 0x00007fead1baefe1 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#26 0x00007fead28d7795 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#27 0x00007fead28dd727 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#28 0x00007fead8e3f947 in KisApplication::notify (this=<optimized out>, receiver=0xb72a190, event=0x7ffd083648e0) at /home/raghu/kf5/src/krita/libs/ui/KisApplication.cpp:502
#29 0x00007fead1baf280 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#30 0x00007fead28dbee5 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/libQt5Widgets.so.5
#31 0x00007fead29362c3 in ?? () from /usr/lib/libQt5Widgets.so.5
#32 0x00007fead2938793 in ?? () from /usr/lib/libQt5Widgets.so.5
#33 0x00007fead28d77bc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#34 0x00007fead28dc95f in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#35 0x00007fead8e3f947 in KisApplication::notify (this=<optimized out>, receiver=0xb2fe370, event=0x7ffd08364d70) at /home/raghu/kf5/src/krita/libs/ui/KisApplication.cpp:502
#36 0x00007fead1baf280 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#37 0x00007fead20fb693 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /usr/lib/libQt5Gui.so.5
#38 0x00007fead20fcea5 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /usr/lib/libQt5Gui.so.5
#39 0x00007fead20da18b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Gui.so.5
#40 0x00007feac62ff080 in ?? () from /usr/lib/libQt5XcbQpa.so.5
#41 0x00007feacc1f8dd7 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#42 0x00007feacc1f9040 in ?? () from /usr/lib/libglib-2.0.so.0
#43 0x00007feacc1f90ec in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#44 0x00007fead1c056cf in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#45 0x00007fead1bad46a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#46 0x00007fead1bb5a0c in QCoreApplication::exec() () from /usr/lib/libQt5Core.so.5
#47 0x0000000000404a46 in main (argc=<optimized out>, argv=<optimized out>) at /home/raghu/kf5/src/krita/krita/main.cc:231

Reported using DrKonqi
Comment 1 Halla Rempt 2016-05-17 07:27:32 UTC
Git commit d8af54319129a0e505f1831e1f460c340af17b52 by Boudewijn Rempt.
Committed on 17/05/2016 at 07:07.
Pushed by rempt into branch 'master'.

The ImageCollection is shared among all shapes, so on deleting a
shape, it shouldn't be deleted.

M  +0    -1    libs/flake/KoPatternBackground.cpp

http://commits.kde.org/krita/d8af54319129a0e505f1831e1f460c340af17b52
Comment 2 Friedrich W. H. Kossebau 2016-05-24 16:46:34 UTC
Git commit 7070fa835cb079d4118ed3f8cb4bd559ce328905 by Friedrich W. H. Kossebau, on behalf of Boudewijn Rempt.
Committed on 24/05/2016 at 16:38.
Pushed by kossebau into branch 'master'.

The ImageCollection is shared among all shapes, so on deleting a
shape, it shouldn't be deleted.

M  +0    -1    libs/flake/KoPatternBackground.cpp

http://commits.kde.org/calligra/7070fa835cb079d4118ed3f8cb4bd559ce328905