Bug 266286

Summary: Kwin crach after enabling mouse seeking effect and tying to use it
Product: [Plasma] kwin Reporter: opensuse.lietuviu.kalba
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: crash CC: sven.burmeister
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description opensuse.lietuviu.kalba 2011-02-14 11:26:57 UTC
Application: kwin (4.6.00 (4.6.0))
KDE Platform Version: 4.6.00 (4.6.0)
Qt Version: 4.7.1
Operating System: Linux 2.6.37-20-desktop x86_64
Distribution: "openSUSE 11.4 RC 1 (x86_64)"

-- Information about the crash:
- What I was doing when the application crashed:

I use openSUSE 11.4rc1 with KDE 4.6.0 32 bit. (my language is Lithuanian, so maybe the deskription is not very exact in retranslating names to english)
I go to KDE desktop settings > Desktop effects. Select all effects tab, from Acessibility select Mouse seeking. Apply setting. Press Meta + Ctrl to test new effect.

The crash can be reproduced every time.

-- Backtrace:
Application: KWin (kwin), signal: Aborted
[Current thread is 1 (Thread 0x7f4f63356760 (LWP 22158))]

Thread 2 (Thread 0x7f4f4aa97700 (LWP 22177)):
#0  0x00007f4f5ec2138c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f4f61a1d044 in ?? () from /usr/lib64/libQtScript.so.4
#2  0x00007f4f61a1d079 in ?? () from /usr/lib64/libQtScript.so.4
#3  0x00007f4f5ec1ca3f in start_thread () from /lib64/libpthread.so.0
#4  0x00007f4f62baf67d in clone () from /lib64/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f4f63356760 (LWP 22158)):
[KCrash Handler]
#6  0x00007f4f62b0eab5 in raise () from /lib64/libc.so.6
#7  0x00007f4f62b0ffb6 in abort () from /lib64/libc.so.6
#8  0x00007f4f62b07385 in __assert_fail () from /lib64/libc.so.6
#9  0x00007f4f608d86dd in _XRead () from /usr/lib64/libX11.so.6
#10 0x00007f4f6042e022 in ?? () from /usr/lib64/libGL.so.1
#11 0x00007f4f60435af9 in ?? () from /usr/lib64/libGL.so.1
#12 0x00007f4f6101715e in KWin::GLTexture::load (this=0x946840, image=<value optimized out>, target=<value optimized out>) at /usr/src/debug/kdebase-workspace-4.6.0/kwin/lib/kwinglutils.cpp:392
#13 0x00007f4f4aea649a in KWin::TrackMouseEffect::loadTexture (this=0x9480c0) at /usr/src/debug/kdebase-workspace-4.6.0/kwin/effects/trackmouse/trackmouse.cpp:207
#14 0x00007f4f4aea6695 in KWin::TrackMouseEffect::mouseChanged (this=0x9480c0, modifiers=<value optimized out>) at /usr/src/debug/kdebase-workspace-4.6.0/kwin/effects/trackmouse/trackmouse.cpp:174
#15 0x00007f4f62f26f62 in KWin::EffectsHandlerImpl::mouseChanged (this=<value optimized out>, pos=..., oldpos=..., buttons=..., oldbuttons=..., modifiers=..., oldmodifiers=...) at /usr/src/debug/kdebase-workspace-4.6.0/kwin/effects.cpp:432
#16 0x00007f4f62e803e1 in KWin::Workspace::checkCursorPos (this=0x74d290) at /usr/src/debug/kdebase-workspace-4.6.0/kwin/workspace.cpp:3093
#17 0x00007f4f62e87edd in KWin::Workspace::qt_metacall (this=0x74d290, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffe3505990) at /usr/src/debug/kdebase-workspace-4.6.0/build/kwin/workspace.moc:606
#18 0x00007f4f5efa9def in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#19 0x00007f4f5efa8799 in QObject::event(QEvent*) () from /usr/lib64/libQtCore.so.4
#20 0x00007f4f5e143d14 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#21 0x00007f4f5e14c22a in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#22 0x00007f4f626279e6 in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#23 0x00007f4f5ef94bfc in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#24 0x00007f4f5efc24d8 in ?? () from /usr/lib64/libQtCore.so.4
#25 0x00007f4f5efc2be0 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#26 0x00007f4f5e1e9bac in ?? () from /usr/lib64/libQtGui.so.4
#27 0x00007f4f5ef94052 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#28 0x00007f4f5ef94265 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#29 0x00007f4f5ef986ab in QCoreApplication::exec() () from /usr/lib64/libQtCore.so.4
#30 0x00007f4f62ea4c8a in kdemain (argc=<value optimized out>, argv=0x7fffe3506670) at /usr/src/debug/kdebase-workspace-4.6.0/kwin/main.cpp:542
#31 0x00007f4f62afabfd in __libc_start_main () from /lib64/libc.so.6
#32 0x0000000000400699 in _start () at ../sysdeps/x86_64/elf/start.S:113

Reported using DrKonqi
Comment 1 Thomas Lübking 2011-02-14 16:28:19 UTC
crashes in glGenTextures( 1, &mTexture );

- what GPU/driver combination do you use?
- esp. which mesa version
- is it reproducable?
- does "LIBGL_ALWAYS_INDIRECT=1 kwin --replace &" fix it?
Comment 2 opensuse.lietuviu.kalba 2011-02-14 20:04:26 UTC
Grafic card: Nvidia GeForce Go 6150,
 with nouveau (xorg-x11-driver-video-nouveau 0.0.16_20110115_b795ca6-2.1) driver
Mesa 7.10-2.1
It is allways reproducible.
LIBGL_ALWAYS_INDIRECT=1 kwin --replace &" doesn't fix it.

> LIBGL_ALWAYS_INDIRECT=1 kwin --replace &
[1] 3055
trecias@linux-1r6b:~> OpenGL vendor string:                   Mesa Project
OpenGL renderer string:                 Software Rasterizer
OpenGL version string:                  1.4 (2.1 Mesa 7.10)
Driver:                                 Unknown
GPU class:                              Unknown
OpenGL version:                         1.4
Mesa version:                           7.10
X server version:                       1.9.3
Linux kernel version:                   2.6.37
Direct rendering:                       no
Requires strict binding:                yes
GLSL shaders:                           no
Texture NPOT support:                   limited
kwin(3055): OpenGL Software Rasterizer detected. Falling back to XRender. 
kwin(3055): Failed to initialize compositing, compositing disabled 
kwin(3055): Consult http://techbase.kde.org/Projects/KWin/4.0-release-notes#Setting_up 
kwin(3055) KWin::EffectsHandlerImpl::loadEffect: EffectsHandler::loadEffect : Effect  "kwin4_effect_blur"  is not supported 
kwin(3055) KWin::EffectsHandlerImpl::loadEffect: EffectsHandler::loadEffect : Effect  "kwin4_effect_startupfeedback"  is not supported 
kwin(3055) KWin::EffectsHandlerImpl::loadEffect: EffectsHandler::loadEffect : Effect  "kwin4_effect_screenshot"  is not supported 
kwin: xcb_io.c:657: _XRead: Prielaida „dpy->xcb->reply_data != ((void *)0)“ pažeista.
Application::crashHandler() called with signal 6; recent crashes: 1
KCrash: Application 'kwin' crashing...
KCrash: Attempting to start /usr/lib64/kde4/libexec/drkonqi from kdeinit
sock_file=/home/trecias/.kde4/socket-linux-1r6b.site/kdeinit4__0
Comment 3 opensuse.lietuviu.kalba 2011-02-14 20:09:44 UTC
But it fixed after installing Mesa-nouveau3d package.
Comment 4 Thomas Lübking 2011-02-14 20:25:41 UTC
Please notice that nouveau 3D/GL support is still more or  less experimental, you might encounter other issues. The CSS nvidia driver should do fine (but unless you hit -as i assume?- the ld issue in apprently only OpenSuSE's ld version)
Comment 5 Thomas Lübking 2011-02-21 18:33:02 UTC
*** Bug 266826 has been marked as a duplicate of this bug. ***
Comment 6 S. Burmeister 2011-02-21 18:42:48 UTC
This happens with nvidia as well, i.e. the binary driver.