Bug 326067 - Crash when closing Krita
Summary: Crash when closing Krita
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: 2.8 Pre-Alpha
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2013-10-15 19:39 UTC by Juan
Modified: 2013-10-31 10:07 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Juan 2013-10-15 19:39:54 UTC
Application: krita (2.8 Pre-Alpha)
KDE Platform Version: 4.10.5 (Compiled from sources)
Qt Version: 4.8.4
Operating System: Linux 3.8.0-26-generic x86_64
Distribution: Linux Mint 15 Olivia

-- Information about the crash:
- What I was doing when the application crashed: After saving my file, I closed the program and it gave me a crash warning screen. Work files safe. This has happened consistently for about a week.

The crash can be reproduced every time.

-- Backtrace:
Application: Krita (kdeinit4), signal: Aborted
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fd56edc07c0 (LWP 2736))]

Thread 5 (Thread 0x7fd548487700 (LWP 2933)):
#0  0x00007fd569e03ca4 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007fd56d92414b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007fd56d920067 in QSemaphore::acquire(int) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3  0x00007fd5511c01b4 in waitForWork (this=0x2ae7e80) at /build/buildd/krita-testing-2+git20130918+r74434-40/krita/image/tiles3/kis_tile_data_pooler.cc:162
#4  KisTileDataPooler::run (this=0x2ae7e80) at /build/buildd/krita-testing-2+git20130918+r74434-40/krita/image/tiles3/kis_tile_data_pooler.cc:184
#5  0x00007fd56d923bec in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007fd569dfff8e in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#7  0x00007fd56c621e1d in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 4 (Thread 0x7fd547c86700 (LWP 2934)):
#0  0x00007fd569e0405e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007fd56d9227f6 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007fd56d92302d in QThread::msleep(unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3  0x00007fd5511edeaa in KisTileDataSwapper::run (this=0x2ae7eb8) at /build/buildd/krita-testing-2+git20130918+r74434-40/krita/image/tiles3/swap/kis_tile_data_swapper.cpp:97
#4  0x00007fd56d923bec in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#5  0x00007fd569dfff8e in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#6  0x00007fd56c621e1d in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 3 (Thread 0x7fd546616700 (LWP 2957)):
#0  0x00007fd56c61a233 in select () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007fd56da4c4f3 in qt_safe_select(int, fd_set*, fd_set*, fd_set*, timeval const*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007fd56da51499 in QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timeval*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3  0x00007fd56da51c82 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007fd56da1f38f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#5  0x00007fd56da1f618 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007fd56d921410 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#7  0x00007fd56da00edf in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#8  0x00007fd56d923bec in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#9  0x00007fd569dfff8e in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#10 0x00007fd56c621e1d in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 2 (Thread 0x7fd546e17700 (LWP 2972)):
#0  0x00007fd56c61a233 in select () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007fd56da4c4f3 in qt_safe_select(int, fd_set*, fd_set*, fd_set*, timeval const*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007fd56da51499 in QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timeval*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3  0x00007fd56da51c82 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007fd56da1f38f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#5  0x00007fd56da1f618 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007fd56d921410 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#7  0x00007fd56da00edf in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#8  0x00007fd56d923bec in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#9  0x00007fd569dfff8e in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#10 0x00007fd56c621e1d in clone () from /lib/x86_64-linux-gnu/libc.so.6

Thread 1 (Thread 0x7fd56edc07c0 (LWP 2736)):
[KCrash Handler]
#5  0x00007fd56c55f037 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#6  0x00007fd56c562698 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#7  0x00007fd56d9195c2 in qt_message_output(QtMsgType, char const*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#8  0x00007fd56d919938 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#9  0x00007fd56d919ac4 in qFatal(char const*, ...) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#10 0x00007fd55137d5a0 in KisShared::~KisShared (this=0x5b7a5d0, __in_chrg=<optimized out>) at /build/buildd/krita-testing-2+git20130918+r74434-40/krita/image/kis_shared.cc:54
#11 0x00007fd5494925c8 in KisBrush::~KisBrush (this=0x5b7a5c0, __in_chrg=<optimized out>) at /build/buildd/krita-testing-2+git20130918+r74434-40/krita/plugins/paintops/libbrush/kis_brush.cpp:158
#12 0x00007fd54949e8f9 in KisGbrBrush::~KisGbrBrush (this=0x5b7a5c0, __in_chrg=<optimized out>) at /build/buildd/krita-testing-2+git20130918+r74434-40/krita/plugins/paintops/libbrush/kis_gbr_brush.cpp:152
#13 0x00007fd5494985be in qDeleteAll<QList<KisBrush*>::const_iterator> (end=..., begin=...) at /usr/include/qt4/QtCore/qalgorithms.h:322
#14 qDeleteAll<QList<KisBrush*> > (c=...) at /usr/include/qt4/QtCore/qalgorithms.h:330
#15 ~KoResourceServer (this=0x2b67320, __in_chrg=<optimized out>) at /build/buildd/krita-testing-2+git20130918+r74434-40/libs/widgets/KoResourceServer.h:127
#16 BrushResourceServer::~BrushResourceServer (this=0x2b67320, __in_chrg=<optimized out>) at /build/buildd/krita-testing-2+git20130918+r74434-40/krita/plugins/paintops/libbrush/kis_brush_server.cpp:50
#17 0x00007fd549498b29 in BrushResourceServer::~BrushResourceServer (this=0x2b67320, __in_chrg=<optimized out>) at /build/buildd/krita-testing-2+git20130918+r74434-40/krita/plugins/paintops/libbrush/kis_brush_server.cpp:55
#18 0x00007fd54949688e in KisBrushServer::~KisBrushServer (this=0x2b668e0, __in_chrg=<optimized out>) at /build/buildd/krita-testing-2+git20130918+r74434-40/krita/plugins/paintops/libbrush/kis_brush_server.cpp:168
#19 0x00007fd5494968f9 in KisBrushServer::~KisBrushServer (this=0x2b668e0, __in_chrg=<optimized out>) at /build/buildd/krita-testing-2+git20130918+r74434-40/krita/plugins/paintops/libbrush/kis_brush_server.cpp:169
#20 0x00007fd56c564121 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#21 0x00007fd56c5641a5 in exit () from /lib/x86_64-linux-gnu/libc.so.6
#22 0x00000000004084f1 in _start ()

This bug may be a duplicate of or related to bug 322707.

Possible duplicates by query: bug 322707.

Reported using DrKonqi
Comment 1 Halla Rempt 2013-10-30 14:44:14 UTC

*** This bug has been marked as a duplicate of bug 322707 ***
Comment 2 Halla Rempt 2013-10-30 14:45:37 UTC
Hi Juan, 

Do you have any custom brushes installed? .gbr files specifically?
Comment 3 Halla Rempt 2013-10-31 10:07:33 UTC
Git commit 0080fc15a49a683b348c4dd80dce045a49b810cf by Boudewijn Rempt.
Committed on 30/10/2013 at 15:08.
Pushed by rempt into branch 'master'.

Do not delete shared pointer-based resources
Related: bug 322707

M  +0    -7    krita/plugins/paintops/libbrush/kis_brush_server.cpp
M  +60   -51   libs/widgets/KoResourceServer.h

http://commits.kde.org/calligra/0080fc15a49a683b348c4dd80dce045a49b810cf