Bug 306598 - Kwin crashes without cause (nvidia related?)
Summary: Kwin crashes without cause (nvidia related?)
Status: RESOLVED DUPLICATE of bug 284332
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-11 11:50 UTC by Marlon Nerling
Modified: 2012-09-11 18:09 UTC (History)
0 users

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 Marlon Nerling 2012-09-11 11:50:49 UTC
Application: kwin (4.8.4 (4.8.4))
KDE Platform Version: 4.8.4 (4.8.4)
Qt Version: 4.8.1
Operating System: Linux 3.2.0-30-generic x86_64
Distribution: Ubuntu 12.04.1 LTS

-- Information about the crash:
One Time I was reading a PDF on Okular, going down on the document with the mousewheel, the other time was just closing Firefox tabs.

The crash can be reproduced some of the time.

-- 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 0x7f5d1971f7c0 (LWP 29611))]

Thread 2 (Thread 0x7f5cf6a1a700 (LWP 29618)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f5d159e8222 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#2  0x00007f5d159e8259 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#3  0x00007f5d15193b74 in ?? () from /usr/lib/nvidia-current/libGL.so.1
#4  0x00007f5d0d766e9a in start_thread (arg=0x7f5cf6a1a700) at pthread_create.c:308
#5  0x00007f5d18f334bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f5d1971f7c0 (LWP 29611)):
[KCrash Handler]
#6  0x00007f5d0c598e81 in ?? () from /usr/lib/nvidia-current/libnvidia-glcore.so.295.40
#7  0x00007f5d0c59a5c4 in ?? () from /usr/lib/nvidia-current/libnvidia-glcore.so.295.40
#8  0x00007f5d0c6af2f8 in ?? () from /usr/lib/nvidia-current/libnvidia-glcore.so.295.40
#9  0x00007f5d0c242af4 in ?? () from /usr/lib/nvidia-current/libnvidia-glcore.so.295.40
#10 0x00007f5d0c24302c in ?? () from /usr/lib/nvidia-current/libnvidia-glcore.so.295.40
#11 0x00007f5d1540dc54 in KWin::GLShader::setUniform (this=<optimized out>, location=5, value=<optimized out>) at ../../../kwin/libkwineffects/kwinglutils.cpp:517
#12 0x00007f5d192be545 in KWin::SceneOpenGL::Window::restoreShaderRenderStates (this=<optimized out>, type=KWin::SceneOpenGL::Window::Content, opacity=<optimized out>, brightness=<optimized out>, saturation=<optimized out>, shader=<optimized out>) at ../../kwin/scene_opengl.cpp:1044
#13 0x00007f5d192c4e10 in KWin::SceneOpenGL::Window::performPaint (this=0x2b63d40, mask=1, region=..., data=...) at ../../kwin/scene_opengl.cpp:593
#14 0x00007f5d192ad569 in KWin::Scene::finalDrawWindow (this=<optimized out>, w=<optimized out>, mask=1, region=..., data=...) at ../../kwin/scene.cpp:438
#15 0x00007f5d192cff95 in KWin::EffectsHandlerImpl::drawWindow (this=0x299c990, w=0x279b160, mask=1, region=..., data=...) at ../../kwin/effects.cpp:286
#16 0x00007f5cf7355137 in KWin::BlurEffect::drawWindow (this=<optimized out>, w=0x279b160, mask=1, region=..., data=...) at ../../../kwin/effects/blur/blur.cpp:389
#17 0x00007f5d192cff29 in KWin::EffectsHandlerImpl::drawWindow (this=0x299c990, w=0x279b160, mask=1, region=..., data=...) at ../../kwin/effects.cpp:283
#18 0x00007f5d1709839b in KWin::Effect::drawWindow (this=<optimized out>, w=0x279b160, mask=1, region=..., data=...) at ../../../kwin/libkwineffects/kwineffects.cpp:182
#19 0x00007f5d192cff29 in KWin::EffectsHandlerImpl::drawWindow (this=0x299c990, w=0x279b160, mask=1, region=..., data=...) at ../../kwin/effects.cpp:283
#20 0x00007f5d192acae5 in KWin::Scene::finalPaintWindow (this=<optimized out>, w=0x279b150, mask=1, region=..., data=...) at ../../kwin/scene.cpp:429
#21 0x00007f5d192d0225 in KWin::EffectsHandlerImpl::paintWindow (this=0x299c990, w=0x279b160, mask=1, region=..., data=...) at ../../kwin/effects.cpp:249
#22 0x00007f5d1709849b in KWin::Effect::paintWindow (this=<optimized out>, w=0x279b160, mask=1, region=..., data=...) at ../../../kwin/libkwineffects/kwineffects.cpp:157
#23 0x00007f5d192d01b9 in KWin::EffectsHandlerImpl::paintWindow (this=0x299c990, w=0x279b160, mask=1, region=..., data=...) at ../../kwin/effects.cpp:246
#24 0x00007f5cf733ec8b in KWin::TranslucencyEffect::paintWindow (this=<optimized out>, w=0x279b160, mask=1, region=..., data=...) at ../../../kwin/effects/translucency/translucency.cpp:169
#25 0x00007f5d192d01b9 in KWin::EffectsHandlerImpl::paintWindow (this=0x299c990, w=0x279b160, mask=1, region=..., data=...) at ../../kwin/effects.cpp:246
#26 0x00007f5d192ad768 in KWin::Scene::paintWindow (this=<optimized out>, w=0x2b63d40, mask=1, region=..., quads=...) at ../../kwin/scene.cpp:385
#27 0x00007f5d192ae30d in KWin::Scene::paintSimpleScreen (this=0x279bd90, orig_mask=0, region=<error reading variable: Cannot access memory at address 0xffffffffffffffff>) at ../../kwin/scene.cpp:330
#28 0x00007f5d192aca14 in KWin::Scene::finalPaintScreen (this=0x279bd90, mask=0, region=..., data=...) at ../../kwin/scene.cpp:198
#29 0x00007f5d192d03f7 in KWin::EffectsHandlerImpl::paintScreen (this=0x299c990, mask=0, region=..., data=...) at ../../kwin/effects.cpp:222
#30 0x00007f5d17098508 in KWin::Effect::paintScreen (this=<optimized out>, mask=0, region=..., data=...) at ../../../kwin/libkwineffects/kwineffects.cpp:142
#31 0x00007f5d192d039b in KWin::EffectsHandlerImpl::paintScreen (this=0x299c990, mask=0, region=..., data=...) at ../../kwin/effects.cpp:219
#32 0x00007f5d17098508 in KWin::Effect::paintScreen (this=<optimized out>, mask=0, region=..., data=...) at ../../../kwin/libkwineffects/kwineffects.cpp:142
#33 0x00007f5d192d039b in KWin::EffectsHandlerImpl::paintScreen (this=0x299c990, mask=0, region=..., data=...) at ../../kwin/effects.cpp:219
#34 0x00007f5d192afa25 in KWin::Scene::paintScreen (this=0x279bd90, mask=0x7fff64bb4c78, region=0x7fff64bb4d40) at ../../kwin/scene.cpp:156
#35 0x00007f5d192c58ed in KWin::SceneOpenGL::paint (this=0x279bd90, damage=..., toplevels=...) at ../../kwin/scene_opengl_glx.cpp:459
#36 0x00007f5d192a955c in KWin::Workspace::performCompositing (this=0x2537490) at ../../kwin/composite.cpp:412
#37 0x00007f5d14659179 in QObject::event (this=0x2537490, e=<optimized out>) at kernel/qobject.cpp:1157
#38 0x00007f5d139c2894 in notify_helper (e=0x7fff64bb5440, receiver=0x2537490, this=0x242e610) at kernel/qapplication.cpp:4559
#39 QApplicationPrivate::notify_helper (this=0x242e610, receiver=0x2537490, e=0x7fff64bb5440) at kernel/qapplication.cpp:4531
#40 0x00007f5d139c7713 in QApplication::notify (this=0x7fff64bb5860, receiver=0x2537490, e=0x7fff64bb5440) at kernel/qapplication.cpp:4420
#41 0x00007f5d18a0d9e6 in KApplication::notify (this=0x7fff64bb5860, receiver=0x2537490, event=0x7fff64bb5440) at ../../kdeui/kernel/kapplication.cpp:311
#42 0x00007f5d1463fe9c in QCoreApplication::notifyInternal (this=0x7fff64bb5860, receiver=0x2537490, event=0x7fff64bb5440) at kernel/qcoreapplication.cpp:876
#43 0x00007f5d146711f2 in sendEvent (event=0x7fff64bb5440, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#44 QTimerInfoList::activateTimers (this=0x242f1c8) at kernel/qeventdispatcher_unix.cpp:611
#45 0x00007f5d14671cb4 in QEventDispatcherUNIX::processEvents (this=0x239cad0, flags=...) at kernel/qeventdispatcher_unix.cpp:930
#46 0x00007f5d13a6bbf8 in QEventDispatcherX11::processEvents (this=0x239cad0, flags=...) at kernel/qeventdispatcher_x11.cpp:152
#47 0x00007f5d1463ec82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#48 0x00007f5d1463eed7 in QEventLoop::exec (this=0x7fff64bb57a0, flags=...) at kernel/qeventloop.cpp:204
#49 0x00007f5d14643f67 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#50 0x00007f5d1925ec36 in kdemain (argc=<optimized out>, argv=<optimized out>) at ../../kwin/main.cpp:541
#51 0x00007f5d18e6276d in __libc_start_main (main=0x400640 <main(int, char**)>, argc=1, ubp_av=0x7fff64bb5f88, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff64bb5f78) at libc-start.c:226
#52 0x0000000000400671 in _start ()

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

Possible duplicates by query: bug 306559, bug 302078, bug 298965, bug 297968, bug 287843.

Reported using DrKonqi
Comment 1 Thomas Lübking 2012-09-11 12:05:58 UTC
> #6  0x00007f5d0c598e81 in ?? () from /usr/lib/nvidia-current/libnvidia-glcore.so.295.40

DO NOT - SERIOUSLY, NOT! - USE THAT DRIVER VERSION!

Downgrade or upgrade but that version has potential to cause physical and permanent damage on your HW. It has been withdrawn by nvidia 2 days after release or so and i frankly wonder why it still shows up.
Was it shipped by ubuntu or did you install it yourself?


Regardless of this
> #11 0x00007f5d1540dc54 in KWin::GLShader::setUniform
there seems a bug in the shader implementation of the x64 nvidia driver, disable "opengl 2 shaders" in the 3rd tab of "kcmshell4 kwincompositing" to work around it

*** This bug has been marked as a duplicate of bug 284332 ***
Comment 2 Marlon Nerling 2012-09-11 13:40:01 UTC
Hallo Thomas.
The nvidia driver 295.40 ist supplied by the package nvidia-current - under "Ubuntu 12.04.1 LTS".
It was a fresh ubuntu install.
The driver was installed throught Ubuntu's Restricted Drivers Manager.
Newly I installed nvidia-current-updates and became the driver 295.49.
 "opengl 2 shaders" is now disable.
Thank you very much. Great Answer!
Comment 3 Thomas Lübking 2012-09-11 18:09:12 UTC
Ok, thaks for the info.
It seems like ubuntu had a bad pick, but the updates include a newer version. [1]

I don't really know how their packages are setup, but if "nvidia-current" is the regular one and joe user is supposed to explicitly select "nvidia-current-updates" to get rid of the 295.40 version, they should rather change that.

[1] http://packages.ubuntu.com/search?keywords=nvidia&searchon=names&suite=precise&section=all