Bug 311743 - Krita crashes on Preference opening
Summary: Krita crashes on Preference opening
Status: RESOLVED UPSTREAM
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: 2.5.3
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-15 19:28 UTC by Maximilian Kürth
Modified: 2013-01-17 10:21 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (14.20 KB, text/plain)
2013-01-17 01:08 UTC, freespaz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maximilian Kürth 2012-12-15 19:28:49 UTC
Application: krita (2.5.3)
KDE Platform Version: 4.9.3
Qt Version: 4.8.3
Operating System: Linux 3.5.0-21-generic x86_64
Distribution: Ubuntu 12.10

-- Information about the crash:
- What I was doing when the application crashed:

first start of application, settings -> preferences -> crash!

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 0x7fccc28f6780 (LWP 8664))]

Thread 7 (Thread 0x7fcca3028700 (LWP 8665)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fccc012604b in wait (time=18446744073709551615, this=0x406f650) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x406f600, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007fccc0121f67 in QSemaphore::acquire (this=0x406f350, n=1) at thread/qsemaphore.cpp:144
#4  0x00007fccab53e6be in ?? () from /usr/lib/libkritaimage.so.10
#5  0x00007fccab53ed9b in ?? () from /usr/lib/libkritaimage.so.10
#6  0x00007fccc0125aec in QThreadPrivate::start (arg=0x406f340) at thread/qthread_unix.cpp:338
#7  0x00007fccbb860e9a in start_thread (arg=0x7fcca3028700) at pthread_create.c:308
#8  0x00007fccc21c5cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#9  0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7fcca2827700 (LWP 8666)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fccc012604b in wait (time=18446744073709551615, this=0x406f9e0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x406f990, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007fccc0122338 in QSemaphore::tryAcquire (this=0x406f6c0, n=1, timeout=<optimized out>) at thread/qsemaphore.cpp:221
#4  0x00007fccab55c33a in KisTileDataSwapper::run() () from /usr/lib/libkritaimage.so.10
#5  0x00007fccc0125aec in QThreadPrivate::start (arg=0x406f378) at thread/qthread_unix.cpp:338
#6  0x00007fccbb860e9a in start_thread (arg=0x7fcca2827700) at pthread_create.c:308
#7  0x00007fccc21c5cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7fcc8ffff700 (LWP 8671)):
#0  0x00007fccc0226066 in testAndSetOrdered (newValue=1, expectedValue=0, this=0x447da00) at ../../include/QtCore/../../src/corelib/arch/qatomic_x86_64.h:145
#1  testAndSetAcquire (newValue=1, this=0x447da00, expectedValue=0) at ../../include/QtCore/../../src/corelib/arch/qatomic_x86_64.h:267
#2  tryLockInline (this=0x447d9d8) at ../../include/QtCore/../../src/corelib/thread/qmutex.h:181
#3  lockInline (this=0x447d9d8) at ../../include/QtCore/../../src/corelib/thread/qmutex.h:189
#4  lockInline (this=0x447d9d8) at kernel/qcoreapplication.cpp:1435
#5  QMutexLocker (m=0x447d9d8, this=0x7fcc8fffec60) at ../../include/QtCore/../../src/corelib/thread/qmutex.h:109
#6  QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x447d990) at kernel/qcoreapplication.cpp:1465
#7  0x00007fccc0253500 in QEventDispatcherUNIX::processEvents (this=0x7fcc880008f0, flags=...) at kernel/qeventdispatcher_unix.cpp:898
#8  0x00007fccc02212bf in QEventLoop::processEvents (this=this@entry=0x7fcc8fffedd0, flags=...) at kernel/qeventloop.cpp:149
#9  0x00007fccc0221548 in QEventLoop::exec (this=0x7fcc8fffedd0, flags=...) at kernel/qeventloop.cpp:204
#10 0x00007fccc0122b10 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#11 0x00007fccc02019af in QInotifyFileSystemWatcherEngine::run (this=0x447c750) at io/qfilesystemwatcher_inotify.cpp:248
#12 0x00007fccc0125aec in QThreadPrivate::start (arg=0x447c750) at thread/qthread_unix.cpp:338
#13 0x00007fccbb860e9a in start_thread (arg=0x7fcc8ffff700) at pthread_create.c:308
#14 0x00007fccc21c5cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#15 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7fcc86ffd700 (LWP 8675)):
#0  0x00007fccc21bf023 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007fccc024e023 in qt_safe_select (nfds=31, fdread=0x7fcc78000ac8, fdwrite=0x7fcc78000d60, fdexcept=0x7fcc78000ff8, orig_timeout=0x0) at kernel/qcore_unix.cpp:83
#2  0x00007fccc02529e4 in QEventDispatcherUNIXPrivate::doSelect (this=this@entry=0x7fcc78000910, flags=..., timeout=0x0) at kernel/qeventdispatcher_unix.cpp:223
#3  0x00007fccc0253572 in QEventDispatcherUNIX::processEvents (this=0x7fcc780008f0, flags=...) at kernel/qeventdispatcher_unix.cpp:926
#4  0x00007fccc02212bf in QEventLoop::processEvents (this=this@entry=0x7fcc86ffcdd0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007fccc0221548 in QEventLoop::exec (this=0x7fcc86ffcdd0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007fccc0122b10 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007fccc02019af in QInotifyFileSystemWatcherEngine::run (this=0x464de20) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007fccc0125aec in QThreadPrivate::start (arg=0x464de20) at thread/qthread_unix.cpp:338
#9  0x00007fccbb860e9a in start_thread (arg=0x7fcc86ffd700) at pthread_create.c:308
#10 0x00007fccc21c5cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7fcc8e968700 (LWP 8685)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fccc012604b in wait (time=18446744073709551615, this=0x589dc80) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x589d800, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007fccc110df16 in QFileInfoGatherer::run (this=0x589d7f0) at dialogs/qfileinfogatherer.cpp:214
#4  0x00007fccc0125aec in QThreadPrivate::start (arg=0x589d7f0) at thread/qthread_unix.cpp:338
#5  0x00007fccbb860e9a in start_thread (arg=0x7fcc8e968700) at pthread_create.c:308
#6  0x00007fccc21c5cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fcc8e167700 (LWP 8686)):
#0  0x00007fccc21bf023 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007fccc024e023 in qt_safe_select (nfds=38, fdread=0x7fcc74000ac8, fdwrite=0x7fcc74000d60, fdexcept=0x7fcc74000ff8, orig_timeout=0x0) at kernel/qcore_unix.cpp:83
#2  0x00007fccc02529e4 in QEventDispatcherUNIXPrivate::doSelect (this=this@entry=0x7fcc74000910, flags=..., timeout=0x0) at kernel/qeventdispatcher_unix.cpp:223
#3  0x00007fccc0253572 in QEventDispatcherUNIX::processEvents (this=0x7fcc740008f0, flags=...) at kernel/qeventdispatcher_unix.cpp:926
#4  0x00007fccc02212bf in QEventLoop::processEvents (this=this@entry=0x7fcc8e166dd0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007fccc0221548 in QEventLoop::exec (this=0x7fcc8e166dd0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007fccc0122b10 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007fccc02019af in QInotifyFileSystemWatcherEngine::run (this=0x589df20) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007fccc0125aec in QThreadPrivate::start (arg=0x589df20) at thread/qthread_unix.cpp:338
#9  0x00007fccbb860e9a in start_thread (arg=0x7fcc8e167700) at pthread_create.c:308
#10 0x00007fccc21c5cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fccc28f6780 (LWP 8664)):
[KCrash Handler]
#6  0x00007fcca624708e in llvm::cl::parser<llvm::FunctionPass* (*)()>::getOption(unsigned int) const () from /usr/lib/x86_64-linux-gnu/libLLVM-3.0.so.1
#7  0x00007fcca68067a8 in llvm::cl::generic_parser_base::findOption(char const*) () from /usr/lib/x86_64-linux-gnu/libLLVM-3.0.so.1
#8  0x00007fcca624711d in llvm::RegisterPassParser<llvm::RegisterRegAlloc>::NotifyRemove(char const*) () from /usr/lib/x86_64-linux-gnu/libLLVM-3.0.so.1
#9  0x00007fcc84ae9a1c in ?? () from /usr/lib/x86_64-linux-gnu/libLLVM-3.1.so.1
#10 0x00007fccc272b316 in call_init (l=<optimized out>, argc=1, argv=0x7fff6c9f6fc8, env=0x1650d90) at dl-init.c:85
#11 0x00007fccc272b3ef in call_init (env=<optimized out>, argv=<optimized out>, argc=<optimized out>, l=<optimized out>) at dl-init.c:52
#12 _dl_init (main_map=0x7217580, argc=1, argv=0x7fff6c9f6fc8, env=0x1650d90) at dl-init.c:134
#13 0x00007fccc272faea in dl_open_worker (a=0x7fff6c9f42a0) at dl-open.c:549
#14 0x00007fccc272b186 in _dl_catch_error (objname=0x7fff6c9f42e8, errstring=0x7fff6c9f42f0, mallocedp=0x7fff6c9f42ff, operate=0x7fccc272f710 <dl_open_worker>, args=0x7fff6c9f42a0) at dl-error.c:178
#15 0x00007fccc272f32a in _dl_open (file=0x7fff6c9f4500 "/usr/lib/x86_64-linux-gnu/dri/r600_dri.so", mode=-2147483390, caller_dlopen=0x7fccb55ef928, nsid=-2, argc=1, argv=<optimized out>, env=0x1650d90) at dl-open.c:639
#16 0x00007fccb9baef26 in dlopen_doit (a=0x7fff6c9f44c0) at dlopen.c:67
#17 0x00007fccc272b186 in _dl_catch_error (objname=0x166fef0, errstring=0x166fef8, mallocedp=0x166fee8, operate=0x7fccb9baeec0 <dlopen_doit>, args=0x7fff6c9f44c0) at dl-error.c:178
#18 0x00007fccb9baf52f in _dlerror_run (operate=0x7fccb9baeec0 <dlopen_doit>, args=0x7fff6c9f44c0) at dlerror.c:164
#19 0x00007fccb9baefc1 in __dlopen (file=<optimized out>, mode=<optimized out>) at dlopen.c:88
#20 0x00007fccb55ef928 in ?? () from /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1
#21 0x00007fccb55f313c in ?? () from /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1
#22 0x00007fccb55cd409 in ?? () from /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1
#23 0x00007fccb55c9b19 in ?? () from /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1
#24 0x00007fccb55ca2bb in glXChooseVisual () from /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1
#25 0x00007fccb80eca42 in QGLContext::tryVisual (this=<optimized out>, f=..., bufDepth=<optimized out>) at qgl_x11.cpp:889
#26 0x00007fccb80ec733 in QGLContext::chooseVisual (this=0x4d7fc20) at qgl_x11.cpp:776
#27 0x00007fccb80ef5da in QGLContext::chooseContext (this=0x4d7fc20, shareContext=0x0) at qgl_x11.cpp:573
#28 0x00007fccb807672d in QGLContext::create (this=0x4d7fc20, shareContext=0x0) at qgl.cpp:3348
#29 0x00007fccb80eef47 in QGLWidget::setContext (this=0x68021e0, context=<optimized out>, shareContext=<optimized out>, deleteOldContext=<optimized out>) at qgl_x11.cpp:1512
#30 0x00007fccb807579a in QGLWidgetPrivate::initContext (this=0x7202ae0, context=0x4d7fc20, shareWidget=0x0) at qgl.cpp:5603
#31 0x00007fccb80ed9da in QGLWidgetPrivate::init (this=0x7202ae0, context=0x4d7fc20, shareWidget=0x0) at qgl_x11.cpp:1357
#32 0x00007fccb80765c5 in QGLWidget::QGLWidget (this=0x68021e0, parent=<optimized out>, shareWidget=0x0, f=...) at qgl.cpp:3834
#33 0x00007fccabb1a754 in KisOpenGL::createContext() () from /usr/lib/libkritaui.so.10
#34 0x00007fccabb1a991 in KisOpenGL::hasShadingLanguage() () from /usr/lib/libkritaui.so.10
#35 0x00007fccaba05742 in ?? () from /usr/lib/libkritaui.so.10
#36 0x00007fccaba07a62 in ?? () from /usr/lib/libkritaui.so.10
#37 0x00007fccaba08b76 in ?? () from /usr/lib/libkritaui.so.10
#38 0x00007fccabad1c5e in KisView2::slotPreferences() () from /usr/lib/libkritaui.so.10
#39 0x00007fccc0237f5f in QMetaObject::activate (sender=0x5bdc290, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff6c9f5830) at kernel/qobject.cpp:3547
#40 0x00007fccc0c17a32 in QAction::triggered (this=this@entry=0x5bdc290, _t1=false) at .moc/release-shared/moc_qaction.cpp:277
#41 0x00007fccc0c17c20 in QAction::activate (this=0x5bdc290, event=<optimized out>) at kernel/qaction.cpp:1257
#42 0x00007fccc10563d3 in QMenuPrivate::activateCausedStack (this=this@entry=0x439e3e0, causedStack=..., action=action@entry=0x5bdc290, action_e=action_e@entry=QAction::Trigger, self=self@entry=true) at widgets/qmenu.cpp:1028
#43 0x00007fccc105c6b9 in QMenuPrivate::activateAction (this=0x439e3e0, action=0x5bdc290, action_e=QAction::Trigger, self=<optimized out>) at widgets/qmenu.cpp:1120
#44 0x00007fccc19f6590 in KMenu::mouseReleaseEvent (this=0x438e850, e=0x7fff6c9f63e0) at ../../kdeui/widgets/kmenu.cpp:464
#45 0x00007fccc0c6d850 in QWidget::event (this=0x438e850, event=0x7fff6c9f63e0) at kernel/qwidget.cpp:8371
#46 0x00007fccc105d96b in QMenu::event (this=0x438e850, e=0x7fff6c9f63e0) at widgets/qmenu.cpp:2469
#47 0x00007fccc0c1de9c in QApplicationPrivate::notify_helper (this=this@entry=0x1686f90, receiver=receiver@entry=0x438e850, e=e@entry=0x7fff6c9f63e0) at kernel/qapplication.cpp:4562
#48 0x00007fccc0c22b6b in QApplication::notify (this=<optimized out>, receiver=0x438e850, e=0x7fff6c9f63e0) at kernel/qapplication.cpp:4105
#49 0x00007fccc1935786 in KApplication::notify (this=0x7fff6c9f6eb0, receiver=0x438e850, event=0x7fff6c9f63e0) at ../../kdeui/kernel/kapplication.cpp:311
#50 0x00007fccc022256e in QCoreApplication::notifyInternal (this=0x7fff6c9f6eb0, receiver=0x438e850, event=0x7fff6c9f63e0) at kernel/qcoreapplication.cpp:915
#51 0x00007fccc0c1ecd3 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#52 QApplicationPrivate::sendMouseEvent (receiver=0x438e850, event=0x7fff6c9f63e0, alienWidget=0x0, nativeWidget=0x438e850, buttonDown=0x7fccc16fa308 <qt_button_down>, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3173
#53 0x00007fccc0c9c41c in QETWidget::translateMouseEvent (this=this@entry=0x438e850, event=event@entry=0x7fff6c9f6b70) at kernel/qapplication_x11.cpp:4556
#54 0x00007fccc0c9b44f in QApplication::x11ProcessEvent (this=0x7fff6c9f6eb0, event=0x7fff6c9f6b70) at kernel/qapplication_x11.cpp:3737
#55 0x00007fccc0cc39d9 in QEventDispatcherX11::processEvents (this=0x15f9b30, flags=...) at kernel/qeventdispatcher_x11.cpp:132
#56 0x00007fccc02212bf in QEventLoop::processEvents (this=this@entry=0x7fff6c9f6de0, flags=...) at kernel/qeventloop.cpp:149
#57 0x00007fccc0221548 in QEventLoop::exec (this=0x7fff6c9f6de0, flags=...) at kernel/qeventloop.cpp:204
#58 0x00007fccc0226708 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#59 0x00007fccc249a712 in kdemain () from /usr/lib/kde4/libkdeinit/libkdeinit4_krita.so
#60 0x00007fccc20f376d in __libc_start_main (main=0x400690, argc=1, ubp_av=0x7fff6c9f6fc8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff6c9f6fb8) at libc-start.c:226
#61 0x00000000004006c1 in _start ()

Possible duplicates by query: bug 307322, bug 306479.

Reported using DrKonqi
Comment 1 Halla Rempt 2012-12-15 20:14:35 UTC
Hi! 

Thanks for your report. As far as I know, this is a known issue with Ubuntu and some graphics cards. Please remove your ~/.kde/share/config/kritarc file. Do not enable opengl for now; it will lead to this problem. The issue is that your system uses an llvm-based opengl graphics card driver that conflicts with the way ubuntu built Krita.
Comment 2 freespaz 2013-01-17 01:08:42 UTC
Created attachment 76520 [details]
New crash information added by DrKonqi

krita (2.5.3) on KDE Platform 4.9.4 using Qt 4.8.3

- What I was doing when the application crashed:
I was opening the settings to try and fix my tablet issue where the mouse pointer is about three inches (on the screen) away from where the line is actually being drawn on the canvas.

-- Backtrace (Reduced):
#6  0x00007f5aad09a08e in llvm::cl::parser<llvm::FunctionPass* (*)()>::getOption(unsigned int) const () from /usr/lib/x86_64-linux-gnu/libLLVM-3.0.so.1
#7  0x00007f5aad6597a8 in llvm::cl::generic_parser_base::findOption(char const*) () from /usr/lib/x86_64-linux-gnu/libLLVM-3.0.so.1
#8  0x00007f5aad09a11d in llvm::RegisterPassParser<llvm::RegisterRegAlloc>::NotifyRemove(char const*) () from /usr/lib/x86_64-linux-gnu/libLLVM-3.0.so.1
[...]
#10 0x00007f5ad8e3e316 in call_init (l=<optimized out>, argc=1, argv=0x7fff477f58a8, env=0x1b5ca50) at dl-init.c:85
#11 0x00007f5ad8e3e3ef in call_init (env=<optimized out>, argv=<optimized out>, argc=<optimized out>, l=<optimized out>) at dl-init.c:52
Comment 3 Halla Rempt 2013-01-17 10:21:11 UTC
You can try to update to a newer version of Krita. The Kubuntu beta ppa contains a release candidate version of 2.6 which seems to work better. I cannot test, since I don't have the llvm problems in my kubuntu vm. The kubuntu beta ppa is perfectly safe to use, even if you're using plain ubuntu.