Bug 349464 - krita crashes on enabling OpenGL
Summary: krita crashes on enabling OpenGL
Status: RESOLVED UPSTREAM
Alias: None
Product: krita
Classification: Applications
Component: General (other bugs)
Version First Reported In: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2015-06-21 15:37 UTC by lars_alexander
Modified: 2015-06-21 23:43 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lars_alexander 2015-06-21 15:37:09 UTC
Application: krita (2.9.5)
KDE Platform Version: 4.14.6
Qt Version: 4.8.6
Operating System: Linux 3.19.0-21-lowlatency x86_64
Distribution: Ubuntu 15.04

-- Information about the crash:
- What I was doing when the application crashed:
When enabling OpenGL krita crashes instantly and every time. This happens using the open radeon driver and a r7 250x gpu.

The crash can be reproduced every time.

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

Thread 7 (Thread 0x7f097d448700 (LWP 4359)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f09a3acec56 in wait (time=18446744073709551615, this=0x1e8e880) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=mutex@entry=0x1e8e830, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f09a3acaa7b in QSemaphore::acquire (this=0x1e8e550, n=1) at thread/qsemaphore.cpp:144
#4  0x00007f09a21293eb in ?? () from /usr/lib/libkritaimage.so.14
#5  0x00007f09a3ace6ff in QThreadPrivate::start (arg=0x1e8e540) at thread/qthread_unix.cpp:349
#6  0x00007f099da2f6aa in start_thread (arg=0x7f097d448700) at pthread_create.c:333
#7  0x00007f09a3269eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 6 (Thread 0x7f0986885700 (LWP 4360)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f09a3acec56 in wait (time=18446744073709551615, this=0x1e8ec30) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=mutex@entry=0x1e8ebe0, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f09a3acaeb3 in QSemaphore::tryAcquire (this=0x1e8e8f0, n=1, timeout=<optimized out>) at thread/qsemaphore.cpp:221
#4  0x00007f09a21544da in KisTileDataSwapper::run() () from /usr/lib/libkritaimage.so.14
#5  0x00007f09a3ace6ff in QThreadPrivate::start (arg=0x1e8e580) at thread/qthread_unix.cpp:349
#6  0x00007f099da2f6aa in start_thread (arg=0x7f0986885700) at pthread_create.c:333
#7  0x00007f09a3269eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 5 (Thread 0x7f09777fe700 (LWP 4361)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f09a3acec56 in wait (time=18446744073709551615, this=0x24aed60) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=this@entry=0x24ae8c8, mutex=mutex@entry=0x24ae8c0, time=time@entry=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f09a4af791d in QFileInfoGatherer::run (this=0x24ae8b0) at dialogs/qfileinfogatherer.cpp:214
#4  0x00007f09a3ace6ff in QThreadPrivate::start (arg=0x24ae8b0) at thread/qthread_unix.cpp:349
#5  0x00007f099da2f6aa in start_thread (arg=0x7f09777fe700) at pthread_create.c:333
#6  0x00007f09a3269eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 4 (Thread 0x7f097cb46700 (LWP 4362)):
#0  0x00007f09a325e8dd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f099d549ebc in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f099d549fcc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f09a3c0887e in QEventDispatcherGlib::processEvents (this=0x7f09700082a0, flags=...) at kernel/qeventdispatcher_glib.cpp:452
#4  0x00007f09a3bd7d21 in QEventLoop::processEvents (this=this@entry=0x7f097cb45dc0, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f09a3bd8085 in QEventLoop::exec (this=this@entry=0x7f097cb45dc0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f09a3acbe89 in QThread::exec (this=this@entry=0x24aee60) at thread/qthread.cpp:538
#7  0x00007f09a3bb8493 in QInotifyFileSystemWatcherEngine::run (this=0x24aee60) at io/qfilesystemwatcher_inotify.cpp:265
#8  0x00007f09a3ace6ff in QThreadPrivate::start (arg=0x24aee60) at thread/qthread_unix.cpp:349
#9  0x00007f099da2f6aa in start_thread (arg=0x7f097cb46700) at pthread_create.c:333
#10 0x00007f09a3269eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7f0977fff700 (LWP 4366)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f096e7b54fb in cnd_wait (mtx=0x2b52138, cond=0x2b52160) at ../../../../../../../include/c11/threads_posix.h:154
#2  pipe_semaphore_wait (sema=0x2b52138) at ../../../../../../../src/gallium/auxiliary/os/os_thread.h:248
#3  radeon_drm_cs_emit_ioctl (param=param@entry=0x2b51e20) at ../../../../../../../src/gallium/winsys/radeon/drm/radeon_drm_winsys.c:594
#4  0x00007f096e7b4c87 in impl_thrd_routine (p=<optimized out>) at ../../../../../../../include/c11/threads_posix.h:87
#5  0x00007f099da2f6aa in start_thread (arg=0x7f0977fff700) at pthread_create.c:333
#6  0x00007f09a3269eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7f096ceed700 (LWP 4368)):
#0  0x00007f09a3260743 in select () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f09a3bb4c0f in QProcessManager::run (this=0x7f09a3f425e0 <processManager()::processManager>) at io/qprocess_unix.cpp:270
#2  0x00007f09a3ace6ff in QThreadPrivate::start (arg=0x7f09a3f425e0 <processManager()::processManager>) at thread/qthread_unix.cpp:349
#3  0x00007f099da2f6aa in start_thread (arg=0x7f096ceed700) at pthread_create.c:333
#4  0x00007f09a3269eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f09a5f897c0 (LWP 4351)):
[KCrash Handler]
#6  0x00007f09a3198267 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:55
#7  0x00007f09a3199eca in __GI_abort () at abort.c:89
#8  0x00007f09a319103d in __assert_fail_base (fmt=0x7f09a5f3612e "%s%s%s:%u: %s%sZusicherung \302\273%s\302\253 nicht erf\303\274llt.\n%n", assertion=assertion@entry=0x7f096e838ae8 "drawable->msaa_textures[statt]", file=file@entry=0x7f096e838a78 "../../../../../../src/gallium/state_trackers/dri/dri2.c", line=line@entry=555, function=function@entry=0x7f096e838a60 <__PRETTY_FUNCTION__.38585> "dri2_allocate_textures") at assert.c:92
#9  0x00007f09a31910f2 in __GI___assert_fail (assertion=0x7f096e838ae8 "drawable->msaa_textures[statt]", file=0x7f096e838a78 "../../../../../../src/gallium/state_trackers/dri/dri2.c", line=555, function=0x7f096e838a60 <__PRETTY_FUNCTION__.38585> "dri2_allocate_textures") at assert.c:101
#10 0x00007f096e48b99e in dri2_allocate_textures (ctx=0x10ff, drawable=0x47f9c10, statts=0x6, statts_count=4294967295) at ../../../../../../src/gallium/state_trackers/dri/dri2.c:555
#11 0x00007f096e4883da in dri_st_framebuffer_validate (stctx=<optimized out>, stfbi=<optimized out>, statts=0x42f1c80, count=2, out=0x7ffe68031350) at ../../../../../../src/gallium/state_trackers/dri/dri_drawable.c:83
#12 0x00007f096e3ca58e in st_framebuffer_validate (stfb=0x42f1830, st=st@entry=0x30b2c50) at ../../../../src/mesa/state_tracker/st_manager.c:200
#13 0x00007f096e3cb5e0 in st_api_make_current (stapi=<optimized out>, stctxi=0x30b2c50, stdrawi=0x47f9c10, streadi=0x47f9c10) at ../../../../src/mesa/state_tracker/st_manager.c:769
#14 0x00007f096e487ea1 in dri_make_current (cPriv=<optimized out>, driDrawPriv=0x50a6630, driReadPriv=0x50a6630) at ../../../../../../src/gallium/state_trackers/dri/dri_context.c:234
#15 0x00007f096e484606 in driBindContext (pcp=<optimized out>, pdp=<optimized out>, prp=<optimized out>) at ../../../../../../../src/mesa/drivers/dri/common/dri_util.c:538
#16 0x00007f09a0cfa11a in dri3_bind_context (context=0x5299c30, old=<optimized out>, draw=<optimized out>, read=<optimized out>) at ../../../../src/glx/dri3_glx.c:145
#17 0x00007f09a0ccac67 in MakeContextCurrent (dpy=0xfd71d0, draw=23069645, read=23069645, gc_user=0x5299c30) at ../../../../src/glx/glxcurrent.c:243
#18 0x00007f09a0a517b9 in QGLContext::makeCurrent (this=0x53260a0) at qgl_x11.cpp:934
#19 0x00007f09a5674840 in KisOpenGL::createContext() () from /usr/lib/libkritaui.so.14
#20 0x00007f09a56766d9 in KisOpenGL::sharedContextWidget() () from /usr/lib/libkritaui.so.14
#21 0x00007f09a53e7785 in KisCanvas2::createCanvas(bool) () from /usr/lib/libkritaui.so.14
#22 0x00007f09a53e7e73 in KisCanvas2::resetCanvas(bool) () from /usr/lib/libkritaui.so.14
#23 0x00007f09a53e7f61 in KisCanvas2::slotConfigChanged() () from /usr/lib/libkritaui.so.14
#24 0x00007f09a53e81d8 in ?? () from /usr/lib/libkritaui.so.14
#25 0x00007f09a3bee1ec in QMetaObject::activate (sender=0x1ce4400, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3567
#26 0x00007f09a581e605 in KisMainWindow::slotPreferences() () from /usr/lib/libkritaui.so.14
#27 0x00007f09a582e4a6 in ?? () from /usr/lib/libkritaui.so.14
#28 0x00007f09a3bee1ec in QMetaObject::activate (sender=sender@entry=0x27d5ca0, m=m@entry=0x7f09a50da540 <QAction::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7ffe68031d20) at kernel/qobject.cpp:3567
#29 0x00007f09a45defd2 in QAction::triggered (this=this@entry=0x27d5ca0, _t1=false) at .moc/release-shared/moc_qaction.cpp:276
#30 0x00007f09a45e0b57 in QAction::activate (this=this@entry=0x27d5ca0, event=event@entry=QAction::Trigger) at kernel/qaction.cpp:1257
#31 0x00007f09a4a3a48d in QMenuPrivate::activateCausedStack (this=this@entry=0x28b7440, causedStack=..., action=action@entry=0x27d5ca0, action_e=action_e@entry=QAction::Trigger, self=self@entry=true) at widgets/qmenu.cpp:1037
#32 0x00007f09a4a3ee59 in QMenuPrivate::activateAction (this=0x28b7440, action=0x27d5ca0, action_e=action_e@entry=QAction::Trigger, self=self@entry=true) at widgets/qmenu.cpp:1129
#33 0x00007f09a4a42969 in QMenu::mouseReleaseEvent (this=this@entry=0x28b7310, e=e@entry=0x7ffe68032440) at widgets/qmenu.cpp:2371
#34 0x00007f099e485253 in KMenu::mouseReleaseEvent (this=0x28b7310, e=0x7ffe68032440) at ../../kdeui/widgets/kmenu.cpp:464
#35 0x00007f09a4638dc8 in QWidget::event (this=0x28b7310, event=0x7ffe68032440) at kernel/qwidget.cpp:8775
#36 0x00007f09a4a42e4b in QMenu::event (this=0x28b7310, e=0x7ffe68032440) at widgets/qmenu.cpp:2480
#37 0x00007f09a45e59bc in QApplicationPrivate::notify_helper (this=this@entry=0xfd4740, receiver=receiver@entry=0x28b7310, e=e@entry=0x7ffe68032440) at kernel/qapplication.cpp:4570
#38 0x00007f09a45ec63f in QApplication::notify (this=<optimized out>, receiver=0x28b7310, e=0x7ffe68032440) at kernel/qapplication.cpp:4113
#39 0x00007f09a57d6997 in KisApplication::notify(QObject*, QEvent*) () from /usr/lib/libkritaui.so.14
#40 0x00007f09a3bd91cd in QCoreApplication::notifyInternal (this=0x7ffe68032ee0, receiver=receiver@entry=0x28b7310, event=event@entry=0x7ffe68032440) at kernel/qcoreapplication.cpp:955
#41 0x00007f09a45ebc9f in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#42 QApplicationPrivate::sendMouseEvent (receiver=receiver@entry=0x28b7310, event=event@entry=0x7ffe68032440, alienWidget=alienWidget@entry=0x0, nativeWidget=nativeWidget@entry=0x28b7310, buttonDown=buttonDown@entry=0x7f09a5113578 <qt_button_down>, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3178
#43 0x00007f09a4665d3a in QETWidget::translateMouseEvent (this=this@entry=0x28b7310, event=event@entry=0x7ffe68032770) at kernel/qapplication_x11.cpp:4566
#44 0x00007f09a466524c in QApplication::x11ProcessEvent (this=0x7ffe68032ee0, event=event@entry=0x7ffe68032770) at kernel/qapplication_x11.cpp:3626
#45 0x00007f09a468dba2 in x11EventSourceDispatch (s=0xfd5f20, callback=0x0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#46 0x00007f099d549c3d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#47 0x00007f099d549f20 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#48 0x00007f099d549fcc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#49 0x00007f09a3c0885e in QEventDispatcherGlib::processEvents (this=0xea9260, flags=...) at kernel/qeventdispatcher_glib.cpp:450
#50 0x00007f09a468dc66 in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#51 0x00007f09a3bd7d21 in QEventLoop::processEvents (this=this@entry=0x7ffe68032b50, flags=...) at kernel/qeventloop.cpp:149
#52 0x00007f09a3bd8085 in QEventLoop::exec (this=this@entry=0x7ffe68032b50, flags=...) at kernel/qeventloop.cpp:204
#53 0x00007f09a3bddb09 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1227
#54 0x00000000004027b7 in ?? ()
#55 0x00007f09a3183a40 in __libc_start_main (main=0x401da0, argc=1, argv=0x7ffe68033058, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffe68033048) at libc-start.c:289
#56 0x0000000000402dc9 in _start ()

Possible duplicates by query: bug 335915, bug 315521, bug 311955, bug 303176, bug 301141.

Reported using DrKonqi
Comment 1 Halla Rempt 2015-06-21 16:54:06 UTC
Hi,

I'm sorry, but that crash happens right inside the radeon gallium drivers. I'm pretty sure it's a driver bug, not a Krita bug!
Comment 2 lars_alexander 2015-06-21 23:43:56 UTC
Thanks, that's good to know!