Bug 268384 - Kwin crash on Taskbar Thumbnails
Summary: Kwin crash on Taskbar Thumbnails
Status: RESOLVED DUPLICATE of bug 257794
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-13 16:14 UTC by Michal Pekař
Modified: 2011-03-13 22:40 UTC (History)
0 users

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


Attachments
Backtrace (24.00 KB, text/plain)
2011-03-13 17:37 UTC, Michal Pekař
Details
Patch to pot. fix the mysterious __cxa_rethrow bug (4.05 KB, patch)
2011-03-13 21:33 UTC, Thomas Lübking
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michal Pekař 2011-03-13 16:14:47 UTC
Application: kwin (4.6.00 (4.6.0) "release 6")
KDE Platform Version: 4.6.00 (4.6.0) "release 6"
Qt Version: 4.7.1
Operating System: Linux 2.6.37.1-1.2-desktop i686
Distribution: "openSUSE 11.4 (i586)"

-- Information about the crash:
- What I was doing when the application crashed:
Anytime when thumbnail taskbar effect is active (and composing is active) when cursor move over taskabar the kwin crash.

The crash can be reproduced every time.

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

Thread 2 (Thread 0xae76cb70 (LWP 7888)):
#0  0xffffe424 in __kernel_vsyscall ()
#1  0xb6150105 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb7512aec in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libc.so.6
#3  0xb6ba9e17 in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0xb6cc01a0) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#4  0xb6ba9e5f in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=0xb6cc01a0) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#5  0xb614bb05 in start_thread () from /lib/libpthread.so.0
#6  0xb7504d5e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb0cf5940 (LWP 7863)):
[KCrash Handler]
#7  0xffffe424 in __kernel_vsyscall ()
#8  0xb745c8df in raise () from /lib/libc.so.6
#9  0xb745e220 in abort () from /lib/libc.so.6
#10 0xb565795d in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/libstdc++.so.6
#11 0xb56556b3 in ?? () from /usr/lib/libstdc++.so.6
#12 0xb56556ef in std::terminate() () from /usr/lib/libstdc++.so.6
#13 0xb56558ba in __cxa_rethrow () from /usr/lib/libstdc++.so.6
#14 0xb62c25a7 in QEventLoop::exec (this=0xbfe30ae4, flags=...) at kernel/qeventloop.cpp:214
#15 0xb62c6f90 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#16 0xb57ce104 in QApplication::exec () at kernel/qapplication.cpp:3719
#17 0xb75eebc7 in kdemain (argc=3, argv=0xbfe30e24) at /usr/src/debug/kdebase-workspace-4.6.0/kwin/main.cpp:542
#18 0x0804860b in main (argc=3, argv=0xbfe30e24) at /usr/src/debug/kdebase-workspace-4.6.0/build/kwin/kwin_dummy.cpp:3

Possible duplicates by query: bug 268321, bug 268218, bug 268185, bug 268179, bug 268173.

Reported using DrKonqi
Comment 1 Thomas Lübking 2011-03-13 16:45:05 UTC
probably a direct dupe of #257794, sharing the same problem that likely leads us to bug #241163 :-(

Does it happen _every_ time? Ie. can you reproduce it for sure?
can you follow the instructions in comment #6 on bug #241163 ?

*** This bug has been marked as a duplicate of bug 257794 ***
Comment 2 Michal Pekař 2011-03-13 17:37:17 UTC
Created attachment 57923 [details]
Backtrace
Comment 3 Michal Pekař 2011-03-13 17:40:35 UTC
(In reply to comment #1)
> probably a direct dupe of #257794, sharing the same problem that likely leads
> us to bug #241163 :-(
> 
> Does it happen _every_ time? Ie. can you reproduce it for sure?
> can you follow the instructions in comment #6 on bug #241163 ?
> 
> *** This bug has been marked as a duplicate of bug 257794 ***

Yes,it happen every time (so I must disable this effect).
On konsole I get only this:

OpenGL vendor string:                   NVIDIA Corporation
OpenGL renderer string:                 GeForce 7600 GT/AGP/SSE2
OpenGL version string:                  2.1.2 NVIDIA 270.29
OpenGL shading language version string: 1.20 NVIDIA via Cg compiler
Driver:                                 NVIDIA
Driver version:                         270.29
GPU class:                              NV40/G70
OpenGL version:                         2.1.2
GLSL version:                           1.20
X server version:                       1.9.3
Linux kernel version:                   2.6.37
Direct rendering:                       yes
Requires strict binding:                no
GLSL shaders:                           limited
Texture NPOT support:                   yes
Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.

terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Application::crashHandler() called with signal 6; recent crashes: 1
KCrash: Application 'kwin' crashing...
KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
sock_file=/home/mikep/.kde4/socket-agent007/kdeinit4__0

Backtrace from gdb is attached.
Comment 4 Thomas Lübking 2011-03-13 19:49:21 UTC
> Backtrace from gdb is attached.
FI-NA-LLY! - Thanks alot :-)

The crash arises from the lanczos filter shader loading.
For the moment set the scale method to "smooth" ("kcmshell4 kwincompositing" / "Advanced" tab)

Please report asap whether this effectively works around it for you. If not, please check whether you get another backtrace.

Thanks alot again.
Comment 5 Thomas Lübking 2011-03-13 19:55:35 UTC
update:
looks like glGetShaderiv(vertexshader, GL_INFO_LOG_LENGTH, &logarraysize); probably reports logarraysize <= 0 on your system, can you compile kwin from sources to inject a debug out? (but we should have a sanity check anyway...)
Comment 6 Martin Flöser 2011-03-13 20:07:58 UTC
initializing the variables with 0 would probably not hurt.

@Michal: in case you come to any Open Source conference I am present remember 
me to pay you a beer :-)
Comment 7 Thomas Lübking 2011-03-13 21:33:24 UTC
Created attachment 57938 [details]
Patch to pot. fix the mysterious __cxa_rethrow bug

Patch for testing attached (re/inits values, checks fo "0" and yells a GL_ERROR)
Comment 8 Michal Pekař 2011-03-13 22:10:38 UTC
(In reply to comment #4)
> > Backtrace from gdb is attached.
> FI-NA-LLY! - Thanks alot :-)
> 
> The crash arises from the lanczos filter shader loading.
> For the moment set the scale method to "smooth" ("kcmshell4 kwincompositing" /
> "Advanced" tab)
> 
> Please report asap whether this effectively works around it for you. If not,
> please check whether you get another backtrace.
> 
> Thanks alot again.

:-) No problem. And "smooth" settings works. Nice :-)

Sorry, currently I have not prepared my system for compiling KDE parts, so I cannot test your patch. Maybe later.

@Martin: Thanks :-)
Comment 9 Thomas Lübking 2011-03-13 22:40:59 UTC
Nevermind, you've already done a lot.
I'll just take over the patch to the main bug report.
And thanks again - this bug really bugged us quite some :)