Bug 307322

Summary: Krita crashed on opening "Settings > Configure Krita"
Product: [Applications] krita Reporter: Baokai Lei <leibaokai>
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED DOWNSTREAM    
Severity: crash CC: halla, jr, leibaokai, leviatan1, rburdun, schmakerisko
Priority: NOR    
Version: 2.5.2   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description Baokai Lei 2012-09-24 13:22:38 UTC
Application: krita (2.5.2)
KDE Platform Version: 4.9.1
Qt Version: 4.8.3
Operating System: Linux 3.5.0-15-generic x86_64
Distribution: Ubuntu quantal (development branch)

-- Information about the crash:
- What I was doing when the application crashed:
Launched Krita with an image from Kshapshot. Didn't do anything with the image, but went instantly to the configuration dialog to set up Krita (my first time using it). Krita crashed instantly when I selected the menu entry without displaying the dialog.

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 0x7f3a11a06780 (LWP 3054))]

Thread 6 (Thread 0x7f39ee645700 (LWP 3055)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f3a0f27404b in wait (time=18446744073709551615, this=0x4b4d600) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x4b4d5b0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f3a0f26ff67 in QSemaphore::acquire (this=0x4b4d300, n=1) at thread/qsemaphore.cpp:144
#4  0x00007f39fa8846be in KisTileDataPooler::waitForWork (this=this@entry=0x4b4d2f0) at /build/buildd/calligra-2.5.2/krita/image/tiles3/kis_tile_data_pooler.cc:162
#5  0x00007f39fa884d9b in KisTileDataPooler::run (this=0x4b4d2f0) at /build/buildd/calligra-2.5.2/krita/image/tiles3/kis_tile_data_pooler.cc:184
#6  0x00007f3a0f273aec in QThreadPrivate::start (arg=0x4b4d2f0) at thread/qthread_unix.cpp:338
#7  0x00007f3a0a7ece9a in start_thread (arg=0x7f39ee645700) at pthread_create.c:308
#8  0x00007f3a112d139d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#9  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f39ede44700 (LWP 3056)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f3a0f27404b in wait (time=18446744073709551615, this=0x4b4d990) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x4b4d940, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f3a0f270338 in QSemaphore::tryAcquire (this=0x4b4d670, n=1, timeout=<optimized out>) at thread/qsemaphore.cpp:221
#4  0x00007f39fa8a233a in KisTileDataSwapper::run (this=0x4b4d328) at /build/buildd/calligra-2.5.2/krita/image/tiles3/swap/kis_tile_data_swapper.cpp:92
#5  0x00007f3a0f273aec in QThreadPrivate::start (arg=0x4b4d328) at thread/qthread_unix.cpp:338
#6  0x00007f3a0a7ece9a in start_thread (arg=0x7f39ede44700) at pthread_create.c:308
#7  0x00007f3a112d139d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f39debbe700 (LWP 3068)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f3a0f27404b in wait (time=18446744073709551615, this=0x62c0360) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x62bfee0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f3a10240f16 in QFileInfoGatherer::run (this=0x62bfed0) at dialogs/qfileinfogatherer.cpp:214
#4  0x00007f3a0f273aec in QThreadPrivate::start (arg=0x62bfed0) at thread/qthread_unix.cpp:338
#5  0x00007f3a0a7ece9a in start_thread (arg=0x7f39debbe700) at pthread_create.c:308
#6  0x00007f3a112d139d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f39dd1c2700 (LWP 3069)):
#0  __libc_enable_asynccancel () at ../nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S:66
#1  0x00007f3a112ca6f5 in select () at ../sysdeps/unix/syscall-template.S:82
#2  0x00007f3a0f39c023 in qt_safe_select (nfds=31, fdread=0x7f39c8000ac8, fdwrite=0x7f39c8000d60, fdexcept=0x7f39c8000ff8, orig_timeout=0x0) at kernel/qcore_unix.cpp:83
#3  0x00007f3a0f3a09e4 in QEventDispatcherUNIXPrivate::doSelect (this=this@entry=0x7f39c8000910, flags=..., timeout=0x0) at kernel/qeventdispatcher_unix.cpp:223
#4  0x00007f3a0f3a1572 in QEventDispatcherUNIX::processEvents (this=0x7f39c80008f0, flags=...) at kernel/qeventdispatcher_unix.cpp:926
#5  0x00007f3a0f36f2bf in QEventLoop::processEvents (this=this@entry=0x7f39dd1c1dd0, flags=...) at kernel/qeventloop.cpp:149
#6  0x00007f3a0f36f548 in QEventLoop::exec (this=0x7f39dd1c1dd0, flags=...) at kernel/qeventloop.cpp:204
#7  0x00007f3a0f270b10 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#8  0x00007f3a0f34f9af in QInotifyFileSystemWatcherEngine::run (this=0x62ca1e0) at io/qfilesystemwatcher_inotify.cpp:248
#9  0x00007f3a0f273aec in QThreadPrivate::start (arg=0x62ca1e0) at thread/qthread_unix.cpp:338
#10 0x00007f3a0a7ece9a in start_thread (arg=0x7f39dd1c2700) at pthread_create.c:308
#11 0x00007f3a112d139d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f39dfbc0700 (LWP 3071)):
#0  0x00007f3a112ca703 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007f3a0f39c023 in qt_safe_select (nfds=35, fdread=0x7f39d4000ac8, fdwrite=0x7f39d4000d60, fdexcept=0x7f39d4000ff8, orig_timeout=0x0) at kernel/qcore_unix.cpp:83
#2  0x00007f3a0f3a09e4 in QEventDispatcherUNIXPrivate::doSelect (this=this@entry=0x7f39d4000910, flags=..., timeout=0x0) at kernel/qeventdispatcher_unix.cpp:223
#3  0x00007f3a0f3a1572 in QEventDispatcherUNIX::processEvents (this=0x7f39d40008f0, flags=...) at kernel/qeventdispatcher_unix.cpp:926
#4  0x00007f3a0f36f2bf in QEventLoop::processEvents (this=this@entry=0x7f39dfbbfdd0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f3a0f36f548 in QEventLoop::exec (this=0x7f39dfbbfdd0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f3a0f270b10 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007f3a0f34f9af in QInotifyFileSystemWatcherEngine::run (this=0x62c0600) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f3a0f273aec in QThreadPrivate::start (arg=0x62c0600) at thread/qthread_unix.cpp:338
#9  0x00007f3a0a7ece9a in start_thread (arg=0x7f39dfbc0700) at pthread_create.c:308
#10 0x00007f3a112d139d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f3a11a06780 (LWP 3054)):
[KCrash Handler]
#6  0x00007f39f185808e in llvm::cl::parser<llvm::FunctionPass* (*)()>::getOption(unsigned int) const () from /usr/lib/x86_64-linux-gnu/libLLVM-3.0.so.1
#7  0x00007f39f1e177a8 in llvm::cl::generic_parser_base::findOption(char const*) () from /usr/lib/x86_64-linux-gnu/libLLVM-3.0.so.1
#8  0x00007f39f185811d in llvm::RegisterPassParser<llvm::RegisterRegAlloc>::NotifyRemove(char const*) () from /usr/lib/x86_64-linux-gnu/libLLVM-3.0.so.1
#9  0x00007f39c032ea1c in ?? () from /usr/lib/x86_64-linux-gnu/libLLVM-3.1.so.1
#10 0x00007f3a11836316 in call_init (l=<optimized out>, argc=2, argv=0x7fff7e3c1278, env=0x2424d90) at dl-init.c:85
#11 0x00007f3a118363ef 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=0x76e6e20, argc=2, argv=0x7fff7e3c1278, env=0x2424d90) at dl-init.c:134
#13 0x00007f3a1183aaea in dl_open_worker (a=0x7fff7e3be560) at dl-open.c:549
#14 0x00007f3a11836186 in _dl_catch_error (objname=0x7fff7e3be5a8, errstring=0x7fff7e3be5b0, mallocedp=0x7fff7e3be5bf, operate=0x7f3a1183a710 <dl_open_worker>, args=0x7fff7e3be560) at dl-error.c:178
#15 0x00007f3a1183a32a in _dl_open (file=0x7fff7e3be7c0 "/usr/lib/x86_64-linux-gnu/dri/r600_dri.so", mode=-2147483390, caller_dlopen=0x7f3a0459e808 <driOpenDriver+376>, nsid=-2, argc=2, argv=<optimized out>, env=0x2424d90) at dl-open.c:639
#16 0x00007f3a08b3bf26 in dlopen_doit (a=0x7fff7e3be780) at dlopen.c:67
#17 0x00007f3a11836186 in _dl_catch_error (objname=0x2441270, errstring=0x2441278, mallocedp=0x2441268, operate=0x7f3a08b3bec0 <dlopen_doit>, args=0x7fff7e3be780) at dl-error.c:178
#18 0x00007f3a08b3c52f in _dlerror_run (operate=0x7f3a08b3bec0 <dlopen_doit>, args=0x7fff7e3be780) at dlerror.c:164
#19 0x00007f3a08b3bfc1 in __dlopen (file=<optimized out>, file@entry=0x7fff7e3be7c0 "/usr/lib/x86_64-linux-gnu/dri/r600_dri.so", mode=<optimized out>, mode@entry=258) at dlopen.c:88
#20 0x00007f3a0459e808 in driOpenDriver (driverName=0x6efd070 "r600") at dri_common.c:172
#21 0x00007f3a045a2003 in dri2CreateScreen (screen=0, priv=0x76d5270) at dri2_glx.c:1037
#22 0x00007f3a0457c399 in AllocAndFetchScreenConfigs (priv=0x76d5270, dpy=0x24825b0) at glxext.c:780
#23 __glXInitialize (dpy=0x24825b0) at glxext.c:885
#24 __glXInitialize (dpy=dpy@entry=0x24825b0) at glxext.c:803
#25 0x00007f3a04578ab9 in GetGLXPrivScreenConfig (dpy=dpy@entry=0x24825b0, scrn=scrn@entry=0, ppriv=ppriv@entry=0x7fff7e3be9c0, ppsc=ppsc@entry=0x7fff7e3be9c8) at glxcmds.c:176
#26 0x00007f3a0457925b in GetGLXPrivScreenConfig (ppsc=0x7fff7e3be9c8, ppriv=0x7fff7e3be9c0, scrn=<optimized out>, dpy=0x24825b0) at glxcmds.c:172
#27 glXChooseVisual (dpy=0x24825b0, screen=0, attribList=0x7fff7e3beb70) at glxcmds.c:1234
#28 0x00007f3a07097a42 in QGLContext::tryVisual (this=<optimized out>, f=..., bufDepth=<optimized out>) at qgl_x11.cpp:889
#29 0x00007f3a07097733 in QGLContext::chooseVisual (this=0x581cff0) at qgl_x11.cpp:776
#30 0x00007f3a0709a5da in QGLContext::chooseContext (this=0x581cff0, shareContext=0x0) at qgl_x11.cpp:573
#31 0x00007f3a0702172d in QGLContext::create (this=0x581cff0, shareContext=0x0) at qgl.cpp:3348
#32 0x00007f3a07099f47 in QGLWidget::setContext (this=0x583b850, context=<optimized out>, shareContext=<optimized out>, deleteOldContext=<optimized out>) at qgl_x11.cpp:1512
#33 0x00007f3a0702079a in QGLWidgetPrivate::initContext (this=0x76d4420, context=0x581cff0, shareWidget=0x0) at qgl.cpp:5603
#34 0x00007f3a070989da in QGLWidgetPrivate::init (this=0x76d4420, context=0x581cff0, shareWidget=0x0) at qgl_x11.cpp:1357
#35 0x00007f3a070215c5 in QGLWidget::QGLWidget (this=0x583b850, parent=<optimized out>, shareWidget=0x0, f=...) at qgl.cpp:3834
#36 0x00007f39fae5ff14 in KisOpenGL::createContext () at /build/buildd/calligra-2.5.2/krita/ui/opengl/kis_opengl.cpp:39
#37 0x00007f39fae60151 in KisOpenGL::hasShadingLanguage () at /build/buildd/calligra-2.5.2/krita/ui/opengl/kis_opengl.cpp:82
#38 0x00007f39fad4b0c2 in DisplaySettingsTab::DisplaySettingsTab (this=0x76c74c0, parent=<optimized out>, name=0x0) at /build/buildd/calligra-2.5.2/krita/ui/dialogs/kis_dlg_preferences.cc:374
#39 0x00007f39fad4d3e2 in KisDlgPreferences::KisDlgPreferences (this=0x61373a0, parent=<optimized out>, name=<optimized out>) at /build/buildd/calligra-2.5.2/krita/ui/dialogs/kis_dlg_preferences.cc:585
#40 0x00007f39fad4e4f6 in KisDlgPreferences::editPreferences () at /build/buildd/calligra-2.5.2/krita/ui/dialogs/kis_dlg_preferences.cc:681
#41 0x00007f39fae175be in KisView2::slotPreferences (this=0x4e5f360) at /build/buildd/calligra-2.5.2/krita/ui/kis_view2.cpp:877
#42 0x00007f3a0f385f5f in QMetaObject::activate (sender=0x652c6a0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff7e3bfaf0) at kernel/qobject.cpp:3547
#43 0x00007f3a0fd4aa32 in QAction::triggered (this=this@entry=0x652c6a0, _t1=false) at .moc/release-shared/moc_qaction.cpp:277
#44 0x00007f3a0fd4ac20 in QAction::activate (this=0x652c6a0, event=<optimized out>) at kernel/qaction.cpp:1257
#45 0x00007f3a101893d3 in QMenuPrivate::activateCausedStack (this=this@entry=0x4e23980, causedStack=..., action=action@entry=0x652c6a0, action_e=action_e@entry=QAction::Trigger, self=self@entry=true) at widgets/qmenu.cpp:1028
#46 0x00007f3a1018f6b9 in QMenuPrivate::activateAction (this=0x4e23980, action=0x652c6a0, action_e=QAction::Trigger, self=<optimized out>) at widgets/qmenu.cpp:1120
#47 0x00007f3a10b11b40 in KMenu::mouseReleaseEvent (this=0x4dfbc00, e=0x7fff7e3c0690) at ../../kdeui/widgets/kmenu.cpp:464
#48 0x00007f3a0fda0850 in QWidget::event (this=0x4dfbc00, event=0x7fff7e3c0690) at kernel/qwidget.cpp:8371
#49 0x00007f3a1019096b in QMenu::event (this=0x4dfbc00, e=0x7fff7e3c0690) at widgets/qmenu.cpp:2469
#50 0x00007f3a0fd50e9c in QApplicationPrivate::notify_helper (this=this@entry=0x245b5b0, receiver=receiver@entry=0x4dfbc00, e=e@entry=0x7fff7e3c0690) at kernel/qapplication.cpp:4562
#51 0x00007f3a0fd55b6b in QApplication::notify (this=<optimized out>, receiver=0x4dfbc00, e=0x7fff7e3c0690) at kernel/qapplication.cpp:4105
#52 0x00007f3a10a58cb6 in KApplication::notify (this=0x7fff7e3c1160, receiver=0x4dfbc00, event=0x7fff7e3c0690) at ../../kdeui/kernel/kapplication.cpp:311
#53 0x00007f3a0f37056e in QCoreApplication::notifyInternal (this=0x7fff7e3c1160, receiver=0x4dfbc00, event=0x7fff7e3c0690) at kernel/qcoreapplication.cpp:915
#54 0x00007f3a0fd51cd3 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#55 QApplicationPrivate::sendMouseEvent (receiver=0x4dfbc00, event=0x7fff7e3c0690, alienWidget=0x0, nativeWidget=0x4dfbc00, buttonDown=0x7f3a1082d308 <qt_button_down>, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3173
#56 0x00007f3a0fdcf41c in QETWidget::translateMouseEvent (this=this@entry=0x4dfbc00, event=event@entry=0x7fff7e3c0e20) at kernel/qapplication_x11.cpp:4556
#57 0x00007f3a0fdce44f in QApplication::x11ProcessEvent (this=0x7fff7e3c1160, event=0x7fff7e3c0e20) at kernel/qapplication_x11.cpp:3737
#58 0x00007f3a0fdf69d9 in QEventDispatcherX11::processEvents (this=0x23cdb30, flags=...) at kernel/qeventdispatcher_x11.cpp:132
#59 0x00007f3a0f36f2bf in QEventLoop::processEvents (this=this@entry=0x7fff7e3c1090, flags=...) at kernel/qeventloop.cpp:149
#60 0x00007f3a0f36f548 in QEventLoop::exec (this=0x7fff7e3c1090, flags=...) at kernel/qeventloop.cpp:204
#61 0x00007f3a0f374708 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#62 0x00007f3a115a5712 in kdemain (argc=<optimized out>, argv=<optimized out>) at /build/buildd/calligra-2.5.2/krita/main.cc:79
#63 0x00007f3a1120076d in __libc_start_main (main=0x400690 <main(int, char**)>, argc=2, ubp_av=0x7fff7e3c1278, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff7e3c1268) at libc-start.c:226
#64 0x00000000004006c1 in _start ()

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

Possible duplicates by query: bug 306479.

Reported using DrKonqi
Comment 1 Halla Rempt 2012-09-25 09:14:28 UTC
*** Bug 306479 has been marked as a duplicate of this bug. ***
Comment 2 Halla Rempt 2012-09-25 09:14:43 UTC
This is something Ubuntu needs to fix. They shouldn't build opengtl with one version of llvm and mesa with the other version. From the Kimageshop mailing list:

"In their newest version, they mix up several version of the llvm library, opengtl is compiled with 3.0 and mesa with 3.1. That is never going to work..."

Could you report the bug upstream?
Comment 3 Jonathan Riddell 2012-09-26 16:17:09 UTC
we're downstream not upstream :)
https://bugs.launchpad.net/ubuntu/+source/calligra/+bug/1056946
Comment 4 Halla Rempt 2012-09-26 16:42:47 UTC
Aw right... Would it surprise you to hear that left/right are also problematical for me? :-)
Comment 5 Baokai Lei 2012-09-26 18:13:34 UTC
Reported bug on Launchpad:
https://bugs.launchpad.net/calligra/+bug/1056946
Comment 6 Halla Rempt 2012-09-26 18:20:16 UTC
Thanks  Baokai!
Comment 7 Roman 2013-04-05 16:36:32 UTC
Created attachment 78660 [details]
New crash information added by DrKonqi

krita (2.5.3) on KDE Platform 4.9.5 using Qt 4.8.3

- What I was doing when the application crashed: Settings -> Configure Krita -> Krita Crash

No custom settings except high resoulution canvas setup

-- Backtrace (Reduced):
#7  0xaed2e031 in llvm::cl::parser<llvm::FunctionPass* (*)()>::getOption(unsigned int) const () from /usr/lib/i386-linux-gnu/libLLVM-3.0.so.1
#8  0xaf363aa4 in llvm::cl::generic_parser_base::findOption(char const*) () from /usr/lib/i386-linux-gnu/libLLVM-3.0.so.1
#9  0xaed2e139 in llvm::RegisterPassParser<llvm::RegisterRegAlloc>::NotifyRemove(char const*) () from /usr/lib/i386-linux-gnu/libLLVM-3.0.so.1
#10 0x9937b0b6 in llvm::MachinePassRegistry::Add(llvm::MachinePassRegistryNode*) () from /usr/lib/i386-linux-gnu/libLLVM-3.1.so.1
[...]
#12 0xb77a3e9b in call_init (env=0x82370c8, argv=0xbff38934, argc=1, l=<optimized out>) at dl-init.c:85