Bug 335041 - Krita crashes on importing of bundle.
Summary: Krita crashes on importing of bundle.
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: 2.9 Beta
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2014-05-19 17:42 UTC by wolthera
Modified: 2014-06-20 12:53 UTC (History)
0 users

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


Attachments
Bundle that crashed Krita. (3.06 MB, application/octet-stream)
2014-05-19 17:44 UTC, wolthera
Details

Note You need to log in before you can comment on or make changes to this bug.
Description wolthera 2014-05-19 17:42:33 UTC
Application: krita (2.9 Pre-Alpha (git 276a95e))
KDE Platform Version: 4.11.5
Qt Version: 4.8.4
Operating System: Linux 3.11.0-19-generic x86_64
Distribution: Ubuntu 13.10

-- Information about the crash:
- What I was doing when the application crashed:
I made a bundle succesfully with Krita. I then imported it via Resources->Import Resources or Bundles. (Not the resource manager), then Krita crashed.

The crash can be reproduced every time.

-- Backtrace:
Application: Krita (krita), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f4aae6717c0 (LWP 2167))]

Thread 9 (Thread 0x7f4a87432700 (LWP 2199)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f4aabf6d406 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007f4aabf695eb in QSemaphore::acquire(int) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3  0x00007f4aaabba2de in KisTileDataPooler::waitForWork (this=this@entry=0x192be00) at /home/wolthera/kde4/src/calligra/krita/image/tiles3/kis_tile_data_pooler.cc:162
#4  0x00007f4aaabba6ad in KisTileDataPooler::run (this=0x192be00) at /home/wolthera/kde4/src/calligra/krita/image/tiles3/kis_tile_data_pooler.cc:184
#5  0x00007f4aabf6cf2f in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007f4aa674df6e in start_thread (arg=0x7f4a87432700) at pthread_create.c:311
#7  0x00007f4aadf769cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 8 (Thread 0x7f4a86c31700 (LWP 2200)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f4aabf6d406 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007f4aabf699f3 in QSemaphore::tryAcquire(int, int) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3  0x00007f4aaabd63d3 in KisTileDataSwapper::waitForWork (this=<optimized out>) at /home/wolthera/kde4/src/calligra/krita/image/tiles3/swap/kis_tile_data_swapper.cpp:86
#4  0x00007f4aaabd665a in KisTileDataSwapper::run (this=0x192be38) at /home/wolthera/kde4/src/calligra/krita/image/tiles3/swap/kis_tile_data_swapper.cpp:92
#5  0x00007f4aabf6cf2f in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007f4aa674df6e in start_thread (arg=0x7f4a86c31700) at pthread_create.c:311
#7  0x00007f4aadf769cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 7 (Thread 0x7f4a84dd3700 (LWP 2243)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f4aabf6d406 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007f4aacf3a086 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#3  0x00007f4aabf6cf2f in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007f4aa674df6e in start_thread (arg=0x7f4a84dd3700) at pthread_create.c:311
#5  0x00007f4aadf769cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 6 (Thread 0x7f4a85dd5700 (LWP 2244)):
#0  0x00007f4aa6272bf2 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f4aa6274ceb in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f4aa62755c3 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f4aa62757ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f4aac099a76 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#5  0x00007f4aac06b5ef in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007f4aac06b8e5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#7  0x00007f4aabf6a88f in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#8  0x00007f4aac04cd13 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#9  0x00007f4aabf6cf2f in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#10 0x00007f4aa674df6e in start_thread (arg=0x7f4a85dd5700) at pthread_create.c:311
#11 0x00007f4aadf769cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 5 (Thread 0x7f4a6a657700 (LWP 2555)):
#0  0x00007f4aadf69f7d in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f4aa62756a4 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f4aa6275b0a in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f4a9cbdcb66 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007f4aa629a0f5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f4aa674df6e in start_thread (arg=0x7f4a6a657700) at pthread_create.c:311
#6  0x00007f4aadf769cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 4 (Thread 0x7f4a50b1d700 (LWP 2556)):
#0  0x00007f4aadf84c47 in pthread_mutex_lock (mutex=0x1447a60) at forward.c:192
#1  0x00007f4aa62b53a1 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f4aa62747f0 in g_main_context_acquire () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f4aa6275565 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f4aa62757ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f4aa62757f9 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007f4aa629a0f5 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007f4aa674df6e in start_thread (arg=0x7f4a50b1d700) at pthread_create.c:311
#8  0x00007f4aadf769cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 3 (Thread 0x7f4a45e98700 (LWP 2653)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f4aabf6d406 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007f4aacf3a086 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#3  0x00007f4aabf6cf2f in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007f4aa674df6e in start_thread (arg=0x7f4a45e98700) at pthread_create.c:311
#5  0x00007f4aadf769cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 2 (Thread 0x7f4a46e9a700 (LWP 2654)):
#0  0x00007f4aa62b53e8 in g_mutex_unlock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f4aa62757b6 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f4aac099a76 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3  0x00007f4aac06b5ef in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007f4aac06b8e5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#5  0x00007f4aabf6a88f in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007f4aac04cd13 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#7  0x00007f4aabf6cf2f in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#8  0x00007f4aa674df6e in start_thread (arg=0x7f4a46e9a700) at pthread_create.c:311
#9  0x00007f4aadf769cd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:113

Thread 1 (Thread 0x7f4aae6717c0 (LWP 2167)):
[KCrash Handler]
#5  QString (other=<error reading variable: Cannot access memory at address 0x8>, this=this@entry=0x7fff6590f8d0) at /usr/include/qt4/QtCore/qstring.h:725
#6  KoResource::filename (this=this@entry=0x0) at /home/wolthera/kde4/src/calligra/libs/pigment/resources/KoResource.cpp:75
#7  0x00007f4a52d3ffe8 in KoResourceBundle::install (this=this@entry=0x0) at /home/wolthera/kde4/src/calligra/krita/plugins/paintops/resourcemanager/KoResourceBundle.cpp:357
#8  0x00007f4a52d2d223 in ResourceManager::slotImport (this=0x5b46ea0) at /home/wolthera/kde4/src/calligra/krita/plugins/paintops/resourcemanager/resourcemanager.cpp:190
#9  0x00007f4aac080a58 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#10 0x00007f4aaca57a32 in QAction::triggered(bool) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#11 0x00007f4aaca59403 in QAction::activate(QAction::ActionEvent) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#12 0x00007f4aace867f9 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#13 0x00007f4aace8ad19 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#14 0x00007f4aa7bc5155 in KMenu::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libkdeui.so.5
#15 0x00007f4aacaad31e in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#16 0x00007f4aace8eaeb in QMenu::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#17 0x00007f4aaca5ddfc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#18 0x00007f4aaca645ad in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#19 0x00007f4aad5a6f27 in KoApplication::notify (this=<optimized out>, receiver=0x5f99a70, event=0x7fff65910320) at /home/wolthera/kde4/src/calligra/libs/main/KoApplication.cpp:622
#20 0x00007f4aac06c8bd in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#21 0x00007f4aaca63d63 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#22 0x00007f4aacad8b0c in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#23 0x00007f4aacad8079 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#24 0x00007f4aacaff922 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#25 0x00007f4aa62753b6 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007f4aa6275708 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007f4aa62757ac in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#28 0x00007f4aac099a55 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#29 0x00007f4aacaff9d6 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#30 0x00007f4aac06b5ef in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#31 0x00007f4aac06b8e5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#32 0x00007f4aac070e5b in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#33 0x00007f4aae250334 in kdemain (argc=<optimized out>, argv=<optimized out>) at /home/wolthera/kde4/src/calligra/krita/main.cc:107
#34 0x00007f4aade9dde5 in __libc_start_main (main=0x4006b0 <main(int, char**)>, argc=1, ubp_av=0x7fff65910cb8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff65910ca8) at libc-start.c:260
#35 0x00000000004006de in _start ()

Reported using DrKonqi
Comment 1 wolthera 2014-05-19 17:44:06 UTC
Created attachment 86711 [details]
Bundle that crashed Krita.

Adding the bundle I created with Krita.
Comment 2 Halla Rempt 2014-06-20 12:53:29 UTC
Git commit d9fe5eecb34cfb9f473c3453ba530745712a0da6 by Boudewijn Rempt.
Committed on 20/06/2014 at 12:53.
Pushed by rempt into branch 'master'.

Fix crash when installing a bundle

(Not that the bundle stuff is done yet!)

M  +3    -1    krita/plugins/paintops/resourcemanager/resourcemanager.cpp

http://commits.kde.org/calligra/d9fe5eecb34cfb9f473c3453ba530745712a0da6