Bug 124826 - alt+tab twice make Kwin crash
Summary: alt+tab twice make Kwin crash
Status: RESOLVED DUPLICATE of bug 124511
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Mandriva RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
: 126535 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-04-03 13:08 UTC by Nicolas L.
Modified: 2006-05-02 15:49 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
kwinrc (2.08 KB, text/plain)
2006-04-05 09:41 UTC, Adrian Crossan
Details
John Susi's kwinrc (2.03 KB, text/plain)
2006-04-06 03:39 UTC, John Susi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas L. 2006-04-03 13:08:22 UTC
Version:            (using KDE KDE 3.5.2)
Installed from:    Mandriva RPMs
OS:                Linux

Using host libthread_db library "/lib/tls/libthread_db.so.1".
`shared object read from target memory' has disappeared; keeping its symbols.
[Thread debugging using libthread_db enabled]
[New Thread -1234540320 (LWP 385)]
[KCrash handler]
#6  KWinInternal::Client::isOnAllDesktops (this=0x0) at client.h:682
#7  0xb652db3a in KWinInternal::TabBox::nextPrev (this=0x810aff0, next=true)
    at tabbox.cpp:237
#8  0xb652dcd0 in KWinInternal::Workspace::KDEWalkThroughWindows (
    this=0x8107480, forward=true) at tabbox.cpp:917
#9  0xb652df32 in KWinInternal::Workspace::tabBoxKeyPress (this=0x8107480, 
    keyX=@0xbf8d20bc) at tabbox.cpp:1023
#10 0xb6537a41 in KWinInternal::Workspace::workspaceEvent (this=0x8107480, 
    e=0xbf8d23b8) at events.cpp:236
#11 0xb652a9ab in KWinInternal::Application::x11EventFilter (this=0x0, 
    e=0xbf8d23b8) at main.cpp:154
#12 0xb73c37b0 in qt_set_x11_event_filter ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#13 0xbf8d23b8 in ?? ()
#14 0x00000000 in ?? ()
Comment 1 Adrian Crossan 2006-04-04 00:10:22 UTC
Same problem here (3.5.2; Debian amd64 unstable)

#5  KWinInternal::Workspace::nextFocusChainClient (this=0x5ab420, 
    c=<value optimized out>) at tabbox.cpp:1155
#6  0x00002afad4e47393 in KWinInternal::TabBox::nextPrev (this=0x661840, 
    next=true) at tabbox.cpp:237
#7  0x00002afad4e474a4 in KWinInternal::Workspace::KDEWalkThroughWindows (
    this=0x5ab420, forward=false) at tabbox.cpp:917
#8  etc...
Comment 2 Adrian Crossan 2006-04-04 00:14:06 UTC
This occurs when there are no windows to Alt+Tab through.
Comment 3 Philip Rodrigues 2006-04-04 23:14:50 UTC
Could you both attach your ~/.kde/share/config/kwinrc files please
Comment 4 Adrian Crossan 2006-04-05 09:41:59 UTC
Created attachment 15470 [details]
kwinrc

As requested...
Comment 5 Maciek 2006-04-05 10:12:32 UTC
the same happens here with 3.5.2, when trying alt+tab when there are no windows, kwin crashes.
And this is my kwinrc:

[$Version]
update_info=kwin.upd:kde3.0r1,kwin.upd:kde3.2Xinerama,kwin3_plugin.upd:kde3.2,kwin_focus1.upd:kwin_focus1,kwin_focus2.upd:kwin_focus2

[Desktops]
Name_1=
Name_2=
Name_3=
Name_4=
Number=4

[MouseBindings]
CommandActiveTitlebar1=Raise
CommandActiveTitlebar2=Lower
CommandActiveTitlebar3=Operations menu
CommandAll1=Move
CommandAll2=Toggle raise and lower
CommandAll3=Resize
CommandAllKey=Alt
CommandInactiveTitlebar1=Activate and raise
CommandInactiveTitlebar2=Activate and lower
CommandInactiveTitlebar3=Operations menu
CommandWindow1=Activate, raise and pass click
CommandWindow2=Activate and pass click
CommandWindow3=Activate and pass click

[Notification Messages]
UseTranslucency=false

[PopupInfo]
ShowPopup=false

[Style]
BorderSize=0
ButtonsOnLeft=XAI
ButtonsOnRight=M
CustomButtonPositions=false
PluginLib=kwin3_plastik
ShowToolTips=false

[TabBox]
TraverseAll=false

[Translucency]
ActiveWindowOpacity=100
ActiveWindowShadowSize=200
DockOpacity=80
DockShadowSize=50
InactiveWindowOpacity=75
InctiveWindowShadowSize=100
MovingWindowOpacity=25
RemoveShadowsOnMove=false
RemoveShadowsOnResize=false
ResetKompmgr=false
TranslucentActiveWindows=false
TranslucentDocks=true
TranslucentInactiveWindows=true
TranslucentMovingWindows=false
TreatKeepAboveAsActive=true

[Windows]
AltTabStyle=KDE
AnimateMinimize=true
AnimateMinimizeSpeed=5
AnimateShade=true
AutoRaise=off
AutoRaiseInterval=750
BorderSnapZone=10
ClickRaise=on
DelayFocus=off
DelayFocusInterval=750
ElectricBorderDelay=150
ElectricBorders=0
FocusPolicy=FocusFollowsMouse
FocusStealingPreventionLevel=1
GeometryTip=false
IgnoreFocusStealingClasses=kio_uiserver
MaximizeButtonLeftClickCommand=Maximize
MaximizeButtonMiddleClickCommand=Maximize (vertical only)
MaximizeButtonRightClickCommand=Maximize (horizontal only)
MoveMode=Opaque
Placement=Smart
ResizeMode=Opaque
RollOverDesktops=true
ShadeHover=off
ShadeHoverInterval=250
SnapOnlyWhenOverlapping=false
WindowSnapZone=10
Comment 6 Maciek 2006-04-05 10:15:35 UTC
Forgot basic info: Ubuntu, KDE 3.5.2 installed from .debs
Comment 7 Nicolas L. 2006-04-05 19:48:30 UTC
For me on mandriva with KDE 3.5.1

[$Version]
update_info=kwin.upd:kde3.0r1,kwin.upd:kde3.2Xinerama,kwin3_plugin.upd:kde3.2,kwin_focus1.upd:kwin_focus1,kwin_focus2.upd:kwin_focus2

[Desktops]
Name_1=
Name_2=
Name_3=
Name_4=
Number=4

[Windows]
IgnoreFocusStealingClasses=kio_uiserver
Comment 8 John Susi 2006-04-06 03:39:25 UTC
Created attachment 15490 [details]
John Susi's kwinrc

Confirm on 
 Linux 2.6.15-gentoo-r1 PREEMPT Athlon(tm) XP 1800+ AuthenticAMD GNU/Linux
 KDE 3.5.2

did not happen on 3.5.1 or earliear
Comment 9 Anders Lindén 2006-04-06 16:53:31 UTC
same problem here, KDE 3.5.2 on Gentoo. kwin crashes when pressing alt-tab and no windows exist to tab through.

My .kwinrc:

[$Version]
update_info=kwin.upd:kde3.0r1,kwin.upd:kde3.2Xinerama,kwin_focus1.upd:kwin_focus1,kwin_focus2.upd:kwin_focus2,kwin3_plugin.upd:kde3.2

[Desktops]
Name_1=
Name_2=
Name_3=
Name_4=
Number=4

[MouseBindings]
CommandActiveTitlebar2=Lower
CommandActiveTitlebar3=Operations menu

[Notification Messages]
UseTranslucency=false

[PopupInfo]
ShowPopup=false

[Style]
BorderSize=1
ButtonsOnLeft=M
ButtonsOnRight=IAX
CustomButtonPositions=true
PluginLib=kwin3_polyester
ShowToolTips=true

[TabBox]
TraverseAll=false

[Translucency]
ActiveWindowOpacity=100
ActiveWindowShadowSize=100
DockOpacity=100
DockShadowSize=0
InactiveWindowOpacity=60
InactiveWindowShadowSize=100
MovingWindowOpacity=55
OnlyDecoTranslucent=false
RemoveShadowsOnMove=false
RemoveShadowsOnResize=false
ResetKompmgr=false
TranslucentActiveWindows=true
TranslucentDocks=true
TranslucentInactiveWindows=true
TranslucentMovingWindows=true
TreatKeepAboveAsActive=true

[Windows]
AltTabStyle=KDE
AnimateMinimize=true
AnimateShade=true
AutoRaise=off
AutoRaiseInterval=750
ClickRaise=on
DelayFocus=off
DelayFocusInterval=750
FocusPolicy=FocusFollowsMouse
IgnoreFocusStealingClasses=kio_uiserver
MoveMode=Opaque
MoveResizeMaximizedWindows=true
ResizeMode=Opaque
RollOverDesktops=true
ShadeHover=true
TitlebarDoubleClickCommand=Shade
Comment 10 Theo Spears 2006-04-06 19:01:24 UTC
I have the same issue, kwin reliably crashes on alt+tabbing when no windows open. I didn't notice this before 3.5.2. Debian Unstable.

Backtrace
---
#6  0xb680ce85 in KWinInternal::Workspace::nextFocusChainClient ()
   from /usr/lib/libkdeinit_kwin.so
#7  0xb68190db in KWinInternal::TabBox::createClientList ()
   from /usr/lib/libkdeinit_kwin.so
#8  0xb681f7b8 in KWinInternal::TabBox::reset ()
   from /usr/lib/libkdeinit_kwin.so
#9  0xb6820020 in KWinInternal::Workspace::startKDEWalkThroughWindows ()
   from /usr/lib/libkdeinit_kwin.so
#10 0xb6840e67 in KWinInternal::Workspace::slotWalkThroughWindows ()
   from /usr/lib/libkdeinit_kwin.so
#11 0xb68569f8 in KWinInternal::Workspace::qt_invoke ()
   from /usr/lib/libkdeinit_kwin.so
#12 0xb786a5fc in KGlobalAccelPrivate::activate ()
   from /usr/lib/libkdecore.so.4
#13 0xb78c892f in KGlobalAccelPrivate::x11KeyPress ()
   from /usr/lib/libkdecore.so.4
#14 0xb78c8b6c in KGlobalAccelPrivate::x11Event ()
   from /usr/lib/libkdecore.so.4
#15 0xb78ef56f in KApplication::x11EventFilter ()
   from /usr/lib/libkdecore.so.4
#16 0xb6854c26 in KWinInternal::Application::x11EventFilter ()
   from /usr/lib/libkdeinit_kwin.so
#17 0xb7198423 in qt_set_x11_event_filter () from /usr/lib/libqt-mt.so.3
#18 0xb71a568f in QApplication::x11ProcessEvent () from /usr/lib/libqt-mt.so.3
#19 0xb71bf2a2 in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3
#20 0xb7233255 in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3
#21 0xb723317a in QEventLoop::exec () from /usr/lib/libqt-mt.so.3
#22 0xb721938d in QApplication::exec () from /usr/lib/libqt-mt.so.3
#23 0xb68517ef in kdemain () from /usr/lib/libkdeinit_kwin.so
#24 0xb7f83524 in kdeinitmain () from /usr/lib/kde3/kwin.so


kwinrc
---
[$Version]
update_info=kwin.upd:kde3.0r1,kwin.upd:kde3.2Xinerama,kwin3_plugin.upd:kde3.2,kwin_focus1.upd:kwin_focus1,kwin_focus2.upd:kwin_focus2

[Desktops]
Name_1=
Name_2=
Name_3=
Name_4=
Number=4

[MouseBindings]
CommandActiveTitlebar1=Raise
CommandActiveTitlebar2=Lower
CommandActiveTitlebar3=Operations menu
CommandAll1=Move
CommandAll2=Toggle raise and lower
CommandAll3=Resize
CommandAllKey=Alt
CommandInactiveTitlebar1=Activate and raise
CommandInactiveTitlebar2=Activate and lower
CommandInactiveTitlebar3=Operations menu
CommandWindow1=Activate, raise and pass click
CommandWindow2=Activate and pass click
CommandWindow3=Activate and pass click

[Notification Messages]
UseTranslucency=false

[PopupInfo]
ShowPopup=false

[Style]
BorderSize=1
ButtonsOnLeft=A_M
ButtonsOnRight=X
CustomButtonPositions=true
PluginLib=kwin3_smoothblend
ShowToolTips=true

[TabBox]
TraverseAll=false

[Translucency]
ActiveWindowOpacity=100
ActiveWindowShadowSize=133
DockOpacity=80
DockShadowSize=0
InactiveWindowOpacity=80
InctiveWindowShadowSize=66
MovingWindowOpacity=25
OnlyDecoTranslucent=false
RemoveShadowsOnMove=false
RemoveShadowsOnResize=false
ResetKompmgr=false
TranslucentActiveWindows=false
TranslucentDocks=false
TranslucentInactiveWindows=false
TranslucentMovingWindows=false
TreatKeepAboveAsActive=true

[Windows]
AltTabStyle=KDE
AnimateMinimize=true
AnimateMinimizeSpeed=5
AnimateShade=true
AutoRaise=off
AutoRaiseInterval=750
BorderSnapZone=10
ClickRaise=on
DelayFocus=off
DelayFocusInterval=750
ElectricBorderDelay=150
ElectricBorders=0
FocusPolicy=ClickToFocus
FocusStealingPreventionLevel=1
GeometryTip=false
IgnoreFocusStealingClasses=kio_uiserver
MaximizeButtonLeftClickCommand=Maximize
MaximizeButtonMiddleClickCommand=Maximize (vertical only)
MaximizeButtonRightClickCommand=Maximize (horizontal only)
MoveMode=Opaque
MoveResizeMaximizedWindows=true
Placement=Smart
ResizeMode=Opaque
RollOverDesktops=true
ShadeHover=on
ShadeHoverInterval=250
SnapOnlyWhenOverlapping=false
TitlebarDoubleClickCommand=Minimize
WindowSnapZone=10
Comment 11 Elvis Stansvik 2006-04-07 19:51:30 UTC
I can confirm this issue on FreeBSD 6.1-PRERELEASE/amd64 with KDE 3.5.2 as well. This issue is fixed in kwin/tabbox.cpp v.524823 [1]. I applied the change manually before recompiling kdebase, and the problem is gone.

Regards,
Aron Stansvik

[1] http://websvn.kde.org/branches/KDE/3.5/kdebase/kwin/tabbox.cpp?rev=524823&r1=514048&r2=524823
Comment 12 Jan-Willem van de Meent 2006-04-09 17:37:25 UTC
I can confirm as well. I am using ArchLinux binaries (gcc 4.0.3). 

I'd like to add that crash also occurs when restoring a minimized window using Alt+Tab. 

Issue remains after deleting kwinrc and restarting with a vanilla config.
Comment 13 Jan-Willem van de Meent 2006-04-10 08:42:29 UTC
Forgot to add: I am using 3.5.2 and did not experience the problem with 3.5.1
Comment 14 Stephan Binner 2006-04-10 17:34:43 UTC

*** This bug has been marked as a duplicate of 124511 ***
Comment 15 Jaison Lee 2006-05-02 15:49:53 UTC
*** Bug 126535 has been marked as a duplicate of this bug. ***