Bug 306479 - Krita crashed when opening Preferences dialog
Summary: Krita crashed when opening Preferences dialog
Status: RESOLVED DUPLICATE of bug 307322
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: 2.5.1
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-09 07:44 UTC by Roman Šmakal
Modified: 2012-09-25 09:14 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Šmakal 2012-09-09 07:44:31 UTC
Application: krita (2.5.1)
KDE Platform Version: 4.9.00
Qt Version: 4.8.2
Operating System: Linux 3.5.0-14-generic x86_64
Distribution: Ubuntu quantal (development branch)

-- Information about the crash:
- What I was doing when the application crashed:
I was trying to fix my other issue with incorrect brushes painting by disabling some preferences options.

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 0x7f8a5dace780 (LWP 14944))]

Thread 7 (Thread 0x7f8a3a727700 (LWP 14945)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f8a5b33ceeb in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007f8a5b338ea7 in QSemaphore::acquire(int) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3  0x00007f8a4695e73e in ?? () from /usr/lib/libkritaimage.so.10
#4  0x00007f8a4695ee1b in ?? () from /usr/lib/libkritaimage.so.10
#5  0x00007f8a5b33c9eb in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007f8a56adbe9a in start_thread (arg=0x7f8a3a727700) at pthread_create.c:308
#7  0x00007f8a5d39839d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8  0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f8a39f26700 (LWP 14946)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f8a5b33ceeb in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007f8a5b339278 in QSemaphore::tryAcquire(int, int) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3  0x00007f8a4697c3da in KisTileDataSwapper::run() () from /usr/lib/libkritaimage.so.10
#4  0x00007f8a5b33c9eb in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#5  0x00007f8a56adbe9a in start_thread (arg=0x7f8a39f26700) at pthread_create.c:308
#6  0x00007f8a5d39839d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f8a27e37700 (LWP 14951)):
#0  0x00007fffe13ff827 in clock_gettime ()
#1  0x00007f8a54c2315d in __GI_clock_gettime (clock_id=<optimized out>, tp=<optimized out>) at ../sysdeps/unix/clock_gettime.c:116
#2  0x00007f8a5b3928a4 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3  0x00007f8a5b46687d in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007f8a5b467af6 in QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timeval*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#5  0x00007f8a5b4689d2 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007f8a5b43667f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#7  0x00007f8a5b436908 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#8  0x00007f8a5b339a50 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#9  0x00007f8a5b416f6f in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#10 0x00007f8a5b33c9eb in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#11 0x00007f8a56adbe9a in start_thread (arg=0x7f8a27e37700) at pthread_create.c:308
#12 0x00007f8a5d39839d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#13 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f8a38ead700 (LWP 14954)):
#0  0x00007f8a5b468065 in QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timeval*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#1  0x00007f8a5b4689d2 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007f8a5b43667f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3  0x00007f8a5b436908 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007f8a5b339a50 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#5  0x00007f8a5b416f6f in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007f8a5b33c9eb in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#7  0x00007f8a56adbe9a in start_thread (arg=0x7f8a38ead700) at pthread_create.c:308
#8  0x00007f8a5d39839d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#9  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f8a24a7c700 (LWP 14962)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f8a5b33ceeb in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007f8a5c306746 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#3  0x00007f8a5b33c9eb in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007f8a56adbe9a in start_thread (arg=0x7f8a24a7c700) at pthread_create.c:308
#5  0x00007f8a5d39839d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f8a25a7e700 (LWP 14963)):
#0  0x00007fffe13ff827 in clock_gettime ()
#1  0x00007f8a54c2315d in __GI_clock_gettime (clock_id=<optimized out>, tp=<optimized out>) at ../sysdeps/unix/clock_gettime.c:116
#2  0x00007f8a5b3928a4 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3  0x00007f8a5b46687d in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007f8a5b467af6 in QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timeval*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#5  0x00007f8a5b4689d2 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007f8a5b43667f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#7  0x00007f8a5b436908 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#8  0x00007f8a5b339a50 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#9  0x00007f8a5b416f6f in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#10 0x00007f8a5b33c9eb in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#11 0x00007f8a56adbe9a in start_thread (arg=0x7f8a25a7e700) at pthread_create.c:308
#12 0x00007f8a5d39839d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#13 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f8a5dace780 (LWP 14944)):
[KCrash Handler]
#5  0x00007f8a3d53c08e in llvm::cl::parser<llvm::FunctionPass* (*)()>::getOption(unsigned int) const () from /usr/lib/x86_64-linux-gnu/libLLVM-3.0.so.1
#6  0x00007f8a3dafb7a8 in llvm::cl::generic_parser_base::findOption(char const*) () from /usr/lib/x86_64-linux-gnu/libLLVM-3.0.so.1
#7  0x00007f8a3d53c11d in llvm::RegisterPassParser<llvm::RegisterRegAlloc>::NotifyRemove(char const*) () from /usr/lib/x86_64-linux-gnu/libLLVM-3.0.so.1
#8  0x00007f8a16d2ba1c in ?? () from /usr/lib/x86_64-linux-gnu/libLLVM-3.1.so.1
#9  0x00007f8a5d8fd306 in call_init (l=<optimized out>, argc=1, argv=0x7fffe13d76f8, env=0x1b2ea60) at dl-init.c:85
#10 0x00007f8a5d8fd3df in call_init (env=<optimized out>, argv=<optimized out>, argc=<optimized out>, l=<optimized out>) at dl-init.c:52
#11 _dl_init (main_map=0x7150b70, argc=1, argv=0x7fffe13d76f8, env=0x1b2ea60) at dl-init.c:134
#12 0x00007f8a5d901ada in dl_open_worker (a=0x7fffe13d49e0) at dl-open.c:549
#13 0x00007f8a5d8fd176 in _dl_catch_error (objname=0x7fffe13d4a28, errstring=0x7fffe13d4a30, mallocedp=0x7fffe13d4a3f, operate=0x7f8a5d901700 <dl_open_worker>, args=0x7fffe13d49e0) at dl-error.c:178
#14 0x00007f8a5d90131a in _dl_open (file=0x7fffe13d4c40 "/usr/lib/x86_64-linux-gnu/dri/r300_dri.so", mode=-2147483390, caller_dlopen=0x7f8a5088ea68 <driOpenDriver+376>, nsid=-2, argc=1, argv=<optimized out>, env=0x1b2ea60) at dl-open.c:639
#15 0x00007f8a54e27f26 in dlopen_doit (a=0x7fffe13d4c00) at dlopen.c:67
#16 0x00007f8a5d8fd176 in _dl_catch_error (objname=0x1b4da00, errstring=0x1b4da08, mallocedp=0x1b4d9f8, operate=0x7f8a54e27ec0 <dlopen_doit>, args=0x7fffe13d4c00) at dl-error.c:178
#17 0x00007f8a54e2852f in _dlerror_run (operate=0x7f8a54e27ec0 <dlopen_doit>, args=0x7fffe13d4c00) at dlerror.c:164
#18 0x00007f8a54e27fc1 in __dlopen (file=<optimized out>, file@entry=0x7fffe13d4c40 "/usr/lib/x86_64-linux-gnu/dri/r300_dri.so", mode=<optimized out>, mode@entry=258) at dlopen.c:88
#19 0x00007f8a5088ea68 in driOpenDriver (driverName=0x4b431e0 "r300") at dri_common.c:172
#20 0x00007f8a5089227c in dri2CreateScreen (screen=0, priv=0x6ad05f0) at dri2_glx.c:1043
#21 0x00007f8a5086c5e9 in AllocAndFetchScreenConfigs (priv=0x6ad05f0, dpy=0x1b87000) at glxext.c:783
#22 __glXInitialize (dpy=0x1b87000) at glxext.c:888
#23 __glXInitialize (dpy=dpy@entry=0x1b87000) at glxext.c:806
#24 0x00007f8a50868cf9 in GetGLXPrivScreenConfig (dpy=dpy@entry=0x1b87000, scrn=scrn@entry=0, ppriv=ppriv@entry=0x7fffe13d4e40, ppsc=ppsc@entry=0x7fffe13d4e48) at glxcmds.c:176
#25 0x00007f8a5086949b in GetGLXPrivScreenConfig (ppsc=0x7fffe13d4e48, ppriv=0x7fffe13d4e40, scrn=<optimized out>, dpy=0x1b87000) at glxcmds.c:172
#26 glXChooseVisual (dpy=0x1b87000, screen=0, attribList=0x7fffe13d4ff0) at glxcmds.c:1234
#27 0x00007f8a5338aa12 in QGLContext::tryVisual(QGLFormat const&, int) () from /usr/lib/x86_64-linux-gnu/libQtOpenGL.so.4
#28 0x00007f8a5338a703 in QGLContext::chooseVisual() () from /usr/lib/x86_64-linux-gnu/libQtOpenGL.so.4
#29 0x00007f8a5338d59a in QGLContext::chooseContext(QGLContext const*) () from /usr/lib/x86_64-linux-gnu/libQtOpenGL.so.4
#30 0x00007f8a533146bd in QGLContext::create(QGLContext const*) () from /usr/lib/x86_64-linux-gnu/libQtOpenGL.so.4
#31 0x00007f8a5338cf07 in QGLWidget::setContext(QGLContext*, QGLContext const*, bool) () from /usr/lib/x86_64-linux-gnu/libQtOpenGL.so.4
#32 0x00007f8a5331372a in ?? () from /usr/lib/x86_64-linux-gnu/libQtOpenGL.so.4
#33 0x00007f8a5338b99a in ?? () from /usr/lib/x86_64-linux-gnu/libQtOpenGL.so.4
#34 0x00007f8a53314555 in QGLWidget::QGLWidget(QWidget*, QGLWidget const*, QFlags<Qt::WindowType>) () from /usr/lib/x86_64-linux-gnu/libQtOpenGL.so.4
#35 0x00007f8a46f3af14 in KisOpenGL::createContext() () from /usr/lib/libkritaui.so.10
#36 0x00007f8a46f3b151 in KisOpenGL::hasShadingLanguage() () from /usr/lib/libkritaui.so.10
#37 0x00007f8a46e260c2 in ?? () from /usr/lib/libkritaui.so.10
#38 0x00007f8a46e283e2 in ?? () from /usr/lib/libkritaui.so.10
#39 0x00007f8a46e294f6 in ?? () from /usr/lib/libkritaui.so.10
#40 0x00007f8a46ef25be in KisView2::slotPreferences() () from /usr/lib/libkritaui.so.10
#41 0x00007f8a5b44d31f in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#42 0x00007f8a5be10932 in QAction::triggered(bool) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#43 0x00007f8a5be10b20 in QAction::activate(QAction::ActionEvent) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#44 0x00007f8a5c24ec33 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#45 0x00007f8a5c254f19 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#46 0x00007f8a5cbd8820 in KMenu::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libkdeui.so.5
#47 0x00007f8a5be66630 in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#48 0x00007f8a5c2561cb in QMenu::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#49 0x00007f8a5be16d9c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#50 0x00007f8a5be1ba6b in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#51 0x00007f8a5cb1faf6 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#52 0x00007f8a5b43792e in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#53 0x00007f8a5be17bd3 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#54 0x00007f8a5be9516c in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#55 0x00007f8a5be9419f in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#56 0x00007f8a5bebc739 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#57 0x00007f8a5b43667f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#58 0x00007f8a5b436908 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#59 0x00007f8a5b43bac8 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#60 0x00007f8a5d66c712 in kdemain () from /usr/lib/kde4/libkdeinit/libkdeinit4_krita.so
#61 0x00007f8a5d2c776d in __libc_start_main (main=0x400690, argc=1, ubp_av=0x7fffe13d76f8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffe13d76e8) at libc-start.c:226
#62 0x00000000004006c1 in _start ()

Reported using DrKonqi
Comment 1 Halla Rempt 2012-09-09 08:19:10 UTC
It looks like the graphics driver on your system is incompatible with openctl. Please open the ~/.kde/share/config/kritarc file and set the

useOpenGL=true

key to false.
Comment 2 Roman Šmakal 2012-09-09 12:36:41 UTC
There was no such key in the file. I added him though and .. nothing happened. 
Still same issue
Comment 3 Sven Langkamp 2012-09-19 15:03:52 UTC
Might be that opengtl conflicts with the graphics driver even without Krita using OpenGL.

Maybe we need a configuration option turn enabled/disable OpenGTL just like we do for OpenGL. Current experiences with llvm on some distros show that distros have some big problems with it.
Comment 4 Halla Rempt 2012-09-25 09:14:27 UTC

*** This bug has been marked as a duplicate of bug 307322 ***