Bug 316559 - Crash on Desktop Effect startup
Summary: Crash on Desktop Effect startup
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: colorcorrection (show other bugs)
Version: 4.10.1
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Casian Andrei
URL:
Keywords:
: 318243 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-03-11 19:22 UTC by David Pyke
Modified: 2013-04-12 15:51 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:
mgraesslin: Mesa+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Pyke 2013-03-11 19:22:36 UTC
Application: kwin (4.10.1)
KDE Platform Version: 4.10.1
Qt Version: 4.8.3
Operating System: Linux 3.8.2 x86_64
Distribution: Ubuntu 12.10

-- Information about the crash:
- What I was doing when the application crashed:
Re-enabling desktop effects Using OpenGL and Native Qt.  

- Unusual behavior I noticed:
Crash within seconds of re-enabling.

The crash can be reproduced sometimes.

-- Backtrace:
Application: KWin (kwin), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fa09cf167c0 (LWP 30541))]

Thread 3 (Thread 0x7fa080c42700 (LWP 30546)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fa09902ccd7 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#2  0x00007fa09902cd09 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#3  0x00007fa090b14e9a in start_thread (arg=0x7fa080c42700) at pthread_create.c:308
#4  0x00007fa09c734ccd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fa07b105700 (LWP 30549)):
#0  0x00007fa09c72e033 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007fa097b7c053 in qt_safe_select (nfds=16, fdread=0x7fa074000ac8, fdwrite=0x7fa074000d60, fdexcept=0x7fa074000ff8, orig_timeout=0x0) at kernel/qcore_unix.cpp:83
#2  0x00007fa097b80a14 in QEventDispatcherUNIXPrivate::doSelect (this=this@entry=0x7fa074000910, flags=..., timeout=0x0) at kernel/qeventdispatcher_unix.cpp:223
#3  0x00007fa097b815a2 in QEventDispatcherUNIX::processEvents (this=0x7fa0740008f0, flags=...) at kernel/qeventdispatcher_unix.cpp:926
#4  0x00007fa097b4f2ef in QEventLoop::processEvents (this=this@entry=0x7fa07b104d90, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007fa097b4f578 in QEventLoop::exec (this=0x7fa07b104d90, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007fa097a50b40 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007fa097b2f9df in QInotifyFileSystemWatcherEngine::run (this=0x2189130) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007fa097a53b1c in QThreadPrivate::start (arg=0x2189130) at thread/qthread_unix.cpp:338
#9  0x00007fa090b14e9a in start_thread (arg=0x7fa07b105700) at pthread_create.c:308
#10 0x00007fa09c734ccd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fa09cf167c0 (LWP 30541)):
[KCrash Handler]
#6  nvc0_validate_derived_1 (nvc0=0x24d40a0) at nvc0_state_validate.c:441
#7  0x00007fa078d6c7f7 in nvc0_state_validate (nvc0=nvc0@entry=0x24d40a0, mask=mask@entry=4294967295, words=words@entry=48) at nvc0_state_validate.c:538
#8  0x00007fa078d6e4a4 in nvc0_blit_3d (info=0x7fff1cd601a0, nvc0=0x24d40a0) at nvc0_surface.c:829
#9  nvc0_blit (pipe=0x24d40a0, info=0x7fff1cd601a0) at nvc0_surface.c:1133
#10 0x00007fa0781f45a7 in st_TexSubImage (ctx=ctx@entry=0x24b2b80, dims=dims@entry=3, texImage=texImage@entry=0x29be0d0, xoffset=xoffset@entry=0, yoffset=yoffset@entry=0, zoffset=zoffset@entry=0, width=1, height=1, depth=1, format=format@entry=6408, type=type@entry=5121, pixels=pixels@entry=0x7fff1cd60310, unpack=unpack@entry=0x24b9548) at ../../../../../src/mesa/state_tracker/st_cb_texture.c:776
#11 0x00007fa0781f49f3 in st_TexImage (unpack=0x24b9548, pixels=0x7fff1cd60310, type=5121, format=6408, texImage=0x29be0d0, dims=3, ctx=0x24b2b80) at ../../../../../src/mesa/state_tracker/st_cb_texture.c:806
#12 st_TexImage (ctx=0x24b2b80, dims=3, texImage=0x29be0d0, format=6408, type=5121, pixels=0x7fff1cd60310, unpack=0x24b9548) at ../../../../../src/mesa/state_tracker/st_cb_texture.c:788
#13 0x00007fa0787c33d8 in _mesa_get_fallback_texture (ctx=0x24b2b80, tex=tex@entry=TEXTURE_3D_INDEX) at ../../../../../src/mesa/main/texobj.c:811
#14 0x00007fa0787c83f7 in update_texture_state (ctx=<optimized out>) at ../../../../../src/mesa/main/texstate.c:631
#15 _mesa_update_texture (ctx=ctx@entry=0x24b2b80, new_state=new_state@entry=4294967295) at ../../../../../src/mesa/main/texstate.c:685
#16 0x00007fa0787abbfb in _mesa_update_state_locked (ctx=ctx@entry=0x24b2b80) at ../../../../../src/mesa/main/state.c:493
#17 0x00007fa0787abf21 in _mesa_update_state (ctx=ctx@entry=0x24b2b80) at ../../../../../src/mesa/main/state.c:588
#18 0x00007fa0787c0d70 in teximage (ctx=0x24b2b80, compressed=compressed@entry=0 '\000', dims=dims@entry=3, target=32879, level=<optimized out>, internalFormat=32852, width=64, height=64, depth=64, border=border@entry=0, format=format@entry=6407, type=type@entry=5123, imageSize=imageSize@entry=0, pixels=pixels@entry=0x7fa05fd2a020) at ../../../../../src/mesa/main/teximage.c:3068
#19 0x00007fa0787c1c82 in _mesa_TexImage3D (target=<optimized out>, level=<optimized out>, internalFormat=<optimized out>, width=<optimized out>, height=<optimized out>, depth=<optimized out>, border=0, format=6407, type=5123, pixels=0x7fa05fd2a020) at ../../../../../src/mesa/main/teximage.c:3146
#20 0x00007fa09885c502 in setupCCTexture (clut=..., texture=2) at ../../../kwin/libkwineffects/kwinglcolorcorrection.cpp:602
#21 KWin::ColorCorrectionPrivate::setupCCTexture (texture=2, clut=...) at ../../../kwin/libkwineffects/kwinglcolorcorrection.cpp:583
#22 0x00007fa09885f402 in KWin::ColorCorrectionPrivate::setupCCTextures (this=this@entry=0x1d72d20) at ../../../kwin/libkwineffects/kwinglcolorcorrection.cpp:547
#23 0x00007fa09885f5d8 in KWin::ColorCorrection::setupForOutput (this=<optimized out>, screen=0) at ../../../kwin/libkwineffects/kwinglcolorcorrection.cpp:334
#24 0x00007fa09cac360a in KWin::SceneOpenGL2Window::beginRenderWindow (this=0x29b9b70, mask=9, data=...) at ../../kwin/scene_opengl.cpp:1287
#25 0x00007fa09cac9742 in KWin::SceneOpenGL::Window::performPaint (this=this@entry=0x29b9b70, mask=mask@entry=9, region=..., data=...) at ../../kwin/scene_opengl.cpp:948
#26 0x00007fa09cac24ef in KWin::SceneOpenGL2::performPaintWindow (this=this@entry=0x2552020, w=w@entry=0x29b9aa0, mask=mask@entry=9, region=..., data=...) at ../../kwin/scene_opengl.cpp:566
#27 0x00007fa09cac2637 in KWin::SceneOpenGL2::finalDrawWindow (this=0x2552020, w=w@entry=0x29b9aa0, mask=mask@entry=9, region=..., data=...) at ../../kwin/scene_opengl.cpp:548
#28 0x00007fa09cad6855 in KWin::EffectsHandlerImpl::drawWindow (this=0x267b3f0, w=w@entry=0x29b9aa0, mask=mask@entry=9, region=..., data=...) at ../../kwin/effects.cpp:318
#29 0x00007fa09cab58ea in KWin::Scene::finalPaintWindow (this=<optimized out>, w=0x29b9aa0, mask=9, region=..., data=...) at ../../kwin/scene.cpp:449
#30 0x00007fa09cad6507 in KWin::EffectsHandlerImpl::paintWindow (this=0x267b3f0, w=0x29b9aa0, mask=mask@entry=9, region=..., data=...) at ../../kwin/effects.cpp:281
#31 0x00007fa09cab84ad in KWin::Scene::paintWindow (this=<optimized out>, w=0x29b9b70, mask=9, region=..., quads=...) at ../../kwin/scene.cpp:356
#32 0x00007fa09cab77df in KWin::Scene::paintSimpleScreen (this=this@entry=0x2552020, orig_mask=orig_mask@entry=8, region=...) at ../../kwin/scene.cpp:342
#33 0x00007fa09cab582e in KWin::Scene::finalPaintScreen (this=0x2552020, mask=8, region=..., data=...) at ../../kwin/scene.cpp:186
#34 0x00007fa09cad66d0 in KWin::EffectsHandlerImpl::paintScreen (this=0x267b3f0, mask=8, region=..., data=...) at ../../kwin/effects.cpp:254
#35 0x00007fa09cab6bc8 in KWin::Scene::paintScreen (this=0x2552020, mask=0x7fff1cd611c4, region=0x7fff1cd61270) at ../../kwin/scene.cpp:140
#36 0x00007fa09cac5ffe in KWin::SceneOpenGL::paint (this=0x2552020, damage=..., toplevels=...) at ../../kwin/scene_opengl.cpp:308
#37 0x00007fa09cab0fcc in KWin::Compositor::performCompositing (this=this@entry=0x1eb2ed0) at ../../kwin/composite.cpp:610
#38 0x00007fa09cab1aa0 in KWin::Compositor::slotCompositingOptionsInitialized (this=0x1eb2ed0) at ../../kwin/composite.cpp:275
#39 0x00007fa097b65f8f in QMetaObject::activate (sender=0x1ddbd00, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3547
#40 0x00007fa097a444a7 in QFutureWatcherBase::event (this=<optimized out>, event=0x7fa06c001410) at concurrent/qfuturewatcher.cpp:344
#41 0x00007fa096ef7e9c in QApplicationPrivate::notify_helper (this=this@entry=0x1c395b0, receiver=receiver@entry=0x1ddbd00, e=e@entry=0x7fa06c001410) at kernel/qapplication.cpp:4562
#42 0x00007fa096efc30a in QApplication::notify (this=0x7fff1cd62170, receiver=0x1ddbd00, e=0x7fa06c001410) at kernel/qapplication.cpp:4423
#43 0x00007fa09c222ad6 in KApplication::notify (this=0x7fff1cd62170, receiver=0x1ddbd00, event=0x7fa06c001410) at ../../kdeui/kernel/kapplication.cpp:311
#44 0x00007fa097b5059e in QCoreApplication::notifyInternal (this=0x7fff1cd62170, receiver=receiver@entry=0x1ddbd00, event=event@entry=0x7fa06c001410) at kernel/qcoreapplication.cpp:915
#45 0x00007fa097b54421 in sendEvent (event=0x7fa06c001410, receiver=0x1ddbd00) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#46 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x1bd11f0) at kernel/qcoreapplication.cpp:1539
#47 0x00007fa096f9d89c in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#48 QEventDispatcherX11::processEvents (this=0x1bd2ad0, flags=...) at kernel/qeventdispatcher_x11.cpp:75
#49 0x00007fa097b4f2ef in QEventLoop::processEvents (this=this@entry=0x7fff1cd61e80, flags=...) at kernel/qeventloop.cpp:149
#50 0x00007fa097b4f578 in QEventLoop::exec (this=0x7fff1cd61e80, flags=...) at kernel/qeventloop.cpp:204
#51 0x00007fa097b54738 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#52 0x00007fa09ca67d6a in kdemain (argc=3, argv=0x7fff1cd622b8) at ../../kwin/main.cpp:537
#53 0x00007fa09c66276d in __libc_start_main (main=0x4006a0 <main(int, char**)>, argc=3, ubp_av=0x7fff1cd622b8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff1cd622a8) at libc-start.c:226
#54 0x00000000004006d1 in _start ()

Reported using DrKonqi
Comment 1 Martin Flöser 2013-03-11 19:42:10 UTC
disable color correction as a work around of this driver bug.

You might want to switch to raster, it's better for OpenGL.
Comment 2 David Pyke 2013-03-11 19:55:49 UTC
Great!  Thank you!
Comment 3 Martin Flöser 2013-04-12 15:51:07 UTC
*** Bug 318243 has been marked as a duplicate of this bug. ***