Bug 298671 - KWin crashes when doing "present windows"
Summary: KWin crashes when doing "present windows"
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: effects-present-windows (show other bugs)
Version: git master
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL: https://git.reviewboard.kde.org/r/120...
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-23 15:03 UTC by Alex Fiestas
Modified: 2021-01-03 04:34 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
thomas.luebking: ReviewRequest+


Attachments
Backtrace (3.37 KB, application/octet-stream)
2012-04-23 15:03 UTC, Alex Fiestas
Details
New crash information added by DrKonqi (4.68 KB, text/plain)
2014-01-07 11:59 UTC, Jannis Liapis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Fiestas 2012-04-23 15:03:17 UTC
This happens to me from time to time (not very often) but always with the same backtrace when I'm triggering present windows via a hot edge.

Reproducible: Always

Actual Results:  
 

Expected Results:
Comment 1 Alex Fiestas 2012-04-23 15:03:39 UTC
Created attachment 70598 [details]
Backtrace
Comment 2 Martin Flöser 2012-04-23 16:00:34 UTC
From backtrace (please don't attach them):

Application: KWin (kwin), signal: Segmentation fault
Using host libthread_db library "/lib/libthread_db.so.1".
[KCrash Handler]
#6  0x00007f6b53d6e30d in QObject::parent (this=<optimized out>) at /usr/include/QtCore/qobject.h:273
#7  0x00007f6b53d689f9 in KWin::EffectWindow::geometry (this=<optimized out>) at /home/afiestas/cod3s/cpp/kde/source/kde-workspace/kwin/libkwineffects/kwineffects.cpp:309
#8  0x00007f6b3ce7f3e3 in KWin::PresentWindowsEffect::calculateWindowTransformationsNatural (this=this@entry=0x1671ad0, windowlist=..., screen=screen@entry=0, motionManager=...) at /home/afiestas/cod3s/cpp/kde/source/kde-workspace/kwin/effects/presentwindows/presentwindows.cpp:1245
#9  0x00007f6b3ce8014d in KWin::PresentWindowsEffect::calculateWindowTransformations (this=0x1671ad0, windowlist=..., screen=0, motionManager=..., external=true) at /home/afiestas/cod3s/cpp/kde/source/kde-workspace/kwin/effects/presentwindows/presentwindows.cpp:990
#10 0x00007f6b3ce8a91a in KWin::PresentWindowsEffectProxy::calculateWindowTransformations (this=0x1671ae0, windows=..., screen=0, manager=...) at /home/afiestas/cod3s/cpp/kde/source/kde-workspace/kwin/effects/presentwindows/presentwindows_proxy.cpp:39
#11 0x00007f6b3ce9b4bb in KWin::DesktopGridEffect::slotWindowAdded (this=0x1673240, w=<optimized out>) at /home/afiestas/cod3s/cpp/kde/source/kde-workspace/kwin/effects/desktopgrid/desktopgrid.cpp:397
#12 0x00007f6b52be13ff in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#13 0x00007f6b53d65a92 in KWin::EffectsHandler::windowAdded (this=<optimized out>, _t1=0x20d0b80) at /home/afiestas/cod3s/cpp/kde/build/kde-workspace/kwin/libkwineffects/kwineffects.moc:434
#14 0x00007f6b52be13ff in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#15 0x00007f6b57611fc2 in KWin::Toplevel::windowShown (this=this@entry=0x20845c0, _t1=_t1@entry=0x20845c0) at /home/afiestas/cod3s/cpp/kde/build/kde-workspace/kwin/toplevel.moc:341
#16 0x00007f6b5761200f in KWin::Toplevel::setReadyForPainting (this=0x20845c0) at /home/afiestas/cod3s/cpp/kde/source/kde-workspace/kwin/toplevel.cpp:339
#17 0x00007f6b575d25a8 in KWin::Client::syncEvent (this=0x20845c0, e=<optimized out>) at /home/afiestas/cod3s/cpp/kde/source/kde-workspace/kwin/events.cpp:1560
#18 0x00007f6b575d4a71 in KWin::Workspace::workspaceEvent (this=0x1427600, e=0x7fffc8a63cd0) at /home/afiestas/cod3s/cpp/kde/source/kde-workspace/kwin/events.cpp:473
#19 0x00007f6b575c9099 in KWin::Application::x11EventFilter (this=0x7fffc8a641d0, e=0x7fffc8a63cd0) at /home/afiestas/cod3s/cpp/kde/source/kde-workspace/kwin/main.cpp:368
#20 0x00007f6b51dcf03c in ?? () from /usr/lib/libQtGui.so.4
#21 0x00007f6b51ddcc8b in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/libQtGui.so.4
#22 0x00007f6b51e041e9 in ?? () from /usr/lib/libQtGui.so.4
#23 0x00007f6b52bcaf8f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#24 0x00007f6b52bcb218 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#25 0x00007f6b52bcfbf8 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#26 0x00007f6b575ca8a9 in kdemain (argc=3, argv=0x7fffc8a64318) at /home/afiestas/cod3s/cpp/kde/source/kde-workspace/kwin/main.cpp:557
#27 0x00007f6b50750455 in __libc_start_main () from /lib/libc.so.6
#28 0x00000000004008d1 in _start ()
Comment 3 Martin Flöser 2012-04-23 16:02:08 UTC
The backtrace says it's DesktopGrid and not PresentWindows. What's correct?

The backtrace also indicates that a window got added while Desktop Grid was active. Is that possible?
Comment 4 Alex Fiestas 2012-04-23 16:31:33 UTC
Oh yes, DesktopGrid + PresentWindows.

I don't know if a window got added. it may be a MessageBox from Kontact but can't really tell for sure.
Comment 5 Thomas Lübking 2013-06-27 19:15:52 UTC
This could have been the m_closeWindow.

a) do you still get the crash?
b) do you recall whether you did or do you still use the closebutton?
Comment 6 Alex Fiestas 2013-06-28 09:56:10 UTC
This happen a few weeks ago so I have no memory of it :/ will update next time I have the crash.
Comment 7 Jannis Liapis 2014-01-07 11:59:22 UTC
Created attachment 84495 [details]
New crash information added by DrKonqi

kwin (4.11.3) on KDE Platform 4.11.3 using Qt 4.8.5

- What I was doing when the application crashed:

tried to use present windows kwin effect and kwin crashed

-- Backtrace (Reduced):
#6  0x00007fddf193f9a9 in KWin::EffectWindow::geometry (this=this@entry=0x2c4b6c0) at /usr/src/debug/kde-workspace-4.11.3/kwin/libkwineffects/kwineffects.cpp:690
#7  0x00007fddcddce6ef in KWin::PresentWindowsEffect::calculateWindowTransformationsNatural (this=this@entry=0x1abbec0, windowlist=..., screen=0, motionManager=...) at /usr/src/debug/kde-workspace-4.11.3/kwin/effects/presentwindows/presentwindows.cpp:1231
#8  0x00007fddcddd1bdd in KWin::PresentWindowsEffect::calculateWindowTransformations (this=0x1abbec0, windowlist=..., screen=screen@entry=0, motionManager=..., external=external@entry=true) at /usr/src/debug/kde-workspace-4.11.3/kwin/effects/presentwindows/presentwindows.cpp:976
#9  0x00007fddcddd8395 in KWin::PresentWindowsEffectProxy::calculateWindowTransformations (this=0x1abbed0, windows=..., screen=screen@entry=0, manager=...) at /usr/src/debug/kde-workspace-4.11.3/kwin/effects/presentwindows/presentwindows_proxy.cpp:39
#10 0x00007fddcdde6bee in KWin::DesktopGridEffect::slotWindowAdded (this=0x19ac000, w=0x2c7c410) at /usr/src/debug/kde-workspace-4.11.3/kwin/effects/desktopgrid/desktopgrid.cpp:392
Comment 8 Thomas Lübking 2014-01-07 15:54:44 UTC
Same issue as with original report: the call is actually coming out of the desktop grid effect (invoking presentwindows for post layouting)
--> did you really try present windows, or did you invoke the desktop grid (shows all virtual desktops)

And is the issue reproducible? (As you said "tried")
Comment 9 Justin Zobel 2020-12-04 05:12:13 UTC
Thank you for the report, Alex.

As it has been a while since this was reported, can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved.

I have set the bug status to "needsinfo" pending your response, please change back to "reported" or "resolved/worksforme" when you respond, thank you.
Comment 10 Bug Janitor Service 2020-12-19 04:34:43 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 11 Bug Janitor Service 2021-01-03 04:34:12 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!