Bug 334497

Summary: Krita crashed on opening or creating a file
Product: [Applications] krita Reporter: sayingthesilence
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: crash CC: halla
Priority: NOR Keywords: drkonqi
Version First Reported In: 2.9 Beta   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description sayingthesilence 2014-05-08 08:34:44 UTC
Application: krita (2.9 Pre-Alpha (git 043fcc2))
KDE Platform Version: 4.11.4 (Compiled from sources)
Qt Version: 4.8.5
Operating System: Linux 3.12.13-desktop-2.mga4 x86_64
Distribution: "Mageia 4"

-- Information about the crash:
- What I was doing when the application crashed:
I started Krita and created a new file. Crash was immediate. I reproduced this behaviour and noticed that it also happened when opening a file.

The crash can be reproduced every time.

-- Backtrace:
Application: Krita (krita), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
gobject.pyc: gdb was not built with custom backtrace support, disabling.
[Current thread is 1 (Thread 0x7fb5abef77c0 (LWP 27456))]

Thread 5 (Thread 0x7fb58467c700 (LWP 27458)):
#0  0x00007fb5a45e9d2f in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fb5a48760c6 in QWaitCondition::wait(QMutex*, unsigned long) () from /lib64/libQtCore.so.4
#2  0x00007fb5a487226b in QSemaphore::acquire(int) () from /lib64/libQtCore.so.4
#3  0x00007fb5ab14804e in KisTileDataPooler::waitForWork (this=this@entry=0x2c57880) at /home/dandy/kde4/src/calligra/krita/image/tiles3/kis_tile_data_pooler.cc:162
#4  0x00007fb5ab14841d in KisTileDataPooler::run (this=0x2c57880) at /home/dandy/kde4/src/calligra/krita/image/tiles3/kis_tile_data_pooler.cc:184
#5  0x00007fb5a4875bef in QThreadPrivate::start(void*) () from /lib64/libQtCore.so.4
#6  0x00007fb5a45e5fab in start_thread () from /lib64/libpthread.so.0
#7  0x00007fb5a3afbd9d in clone () from /lib64/libc.so.6

Thread 4 (Thread 0x7fb583e7b700 (LWP 27459)):
#0  0x00007fb5a45e9d2f in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fb5a48760c6 in QWaitCondition::wait(QMutex*, unsigned long) () from /lib64/libQtCore.so.4
#2  0x00007fb5a4872673 in QSemaphore::tryAcquire(int, int) () from /lib64/libQtCore.so.4
#3  0x00007fb5ab163fc3 in KisTileDataSwapper::waitForWork (this=<optimized out>) at /home/dandy/kde4/src/calligra/krita/image/tiles3/swap/kis_tile_data_swapper.cpp:86
#4  0x00007fb5ab16424a in KisTileDataSwapper::run (this=0x2c578b8) at /home/dandy/kde4/src/calligra/krita/image/tiles3/swap/kis_tile_data_swapper.cpp:92
#5  0x00007fb5a4875bef in QThreadPrivate::start(void*) () from /lib64/libQtCore.so.4
#6  0x00007fb5a45e5fab in start_thread () from /lib64/libpthread.so.0
#7  0x00007fb5a3afbd9d in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7fb58281e700 (LWP 27473)):
#0  0x00007fb5a45e9d2f in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fb5a48760c6 in QWaitCondition::wait(QMutex*, unsigned long) () from /lib64/libQtCore.so.4
#2  0x00007fb5a5d20556 in QFileInfoGatherer::run() () from /lib64/libQtGui.so.4
#3  0x00007fb5a4875bef in QThreadPrivate::start(void*) () from /lib64/libQtCore.so.4
#4  0x00007fb5a45e5fab in start_thread () from /lib64/libpthread.so.0
#5  0x00007fb5a3afbd9d in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7fb566b87700 (LWP 27474)):
#0  0x00007fb5a3af160d in poll () from /lib64/libc.so.6
#1  0x00007fb59c4f7434 in g_main_context_iterate.isra.24 () from /lib64/libglib-2.0.so.0
#2  0x00007fb59c4f753c in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#3  0x00007fb5a49a2686 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQtCore.so.4
#4  0x00007fb5a49747ff in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQtCore.so.4
#5  0x00007fb5a4974af5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQtCore.so.4
#6  0x00007fb5a487354f in QThread::exec() () from /lib64/libQtCore.so.4
#7  0x00007fb5a4956063 in QInotifyFileSystemWatcherEngine::run() () from /lib64/libQtCore.so.4
#8  0x00007fb5a4875bef in QThreadPrivate::start(void*) () from /lib64/libQtCore.so.4
#9  0x00007fb5a45e5fab in start_thread () from /lib64/libpthread.so.0
#10 0x00007fb5a3afbd9d in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7fb5abef77c0 (LWP 27456)):
[KCrash Handler]
#5  0x00007fb5a58450a6 in QActionPrivate::sendDataChanged() () from /lib64/libQtGui.so.4
#6  0x00007fb5a8c37aab in KoToolManager::Private::switchInputDevice (this=0xa25f690, device=...) at /home/dandy/kde4/src/calligra/libs/flake/KoToolManager.cpp:661
#7  0x00007fb5a8c37dc8 in KoToolManager::eventFilter (this=0x353fb80, object=0xc4e2aa0, event=0x7fff9bf2ab00) at /home/dandy/kde4/src/calligra/libs/flake/KoToolManager.cpp:927
#8  0x00007fb5a4975c72 in QCoreApplicationPrivate::sendThroughApplicationEventFilters(QObject*, QEvent*) () from /lib64/libQtCore.so.4
#9  0x00007fb5a584a3c8 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQtGui.so.4
#10 0x00007fb5a58515df in QApplication::notify(QObject*, QEvent*) () from /lib64/libQtGui.so.4
#11 0x00007fb5aadb4c57 in KoApplication::notify (this=<optimized out>, receiver=0xc4e2aa0, event=0x7fff9bf2ab00) at /home/dandy/kde4/src/calligra/libs/main/KoApplication.cpp:622
#12 0x00007fb5a4975b9d in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /lib64/libQtCore.so.4
#13 0x00007fb5a58be807 in QETWidget::translateXinputEvent(_XEvent const*, QTabletDeviceData*) () from /lib64/libQtGui.so.4
#14 0x00007fb5a58c0566 in QApplication::x11ProcessEvent(_XEvent*) () from /lib64/libQtGui.so.4
#15 0x00007fb5a58e6de2 in x11EventSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQtGui.so.4
#16 0x00007fb59c4f7146 in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#17 0x00007fb59c4f7498 in g_main_context_iterate.isra.24 () from /lib64/libglib-2.0.so.0
#18 0x00007fb59c4f753c in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#19 0x00007fb5a49a2665 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQtCore.so.4
#20 0x00007fb5a58e6e96 in QGuiEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQtGui.so.4
#21 0x00007fb5a49747ff in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQtCore.so.4
#22 0x00007fb5a4974af5 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQtCore.so.4
#23 0x00007fb5a4979bdb in QCoreApplication::exec() () from /lib64/libQtCore.so.4
#24 0x00007fb5abae4524 in kdemain (argc=<optimized out>, argv=<optimized out>) at /home/dandy/kde4/src/calligra/krita/main.cc:107
#25 0x00007fb5a3a2dc85 in __libc_start_main () from /lib64/libc.so.6
#26 0x000000000040097e in _start () at ../sysdeps/x86_64/start.S:122

Reported using DrKonqi
Comment 1 Halla Rempt 2014-05-08 08:53:10 UTC
Hi,

This looks like it must be a local installation issue. Can you check two things: 

* do you have a system-provided calligra/krita installed next to your self-compiled krita?
* does the crash occur if you move .kde/share/config/kritarc and .kde/share/apps/krita out of the way?
Comment 2 Halla Rempt 2014-06-20 13:05:21 UTC
Also, please check if you have qt-atspi installed. This looks like that issue...
Comment 3 Halla Rempt 2015-02-08 13:57:35 UTC
Setting the status to resolved -- I'm pretty sure it's not a bug in Krita.