Bug 376115 - Kwin crash on 'Magic Lamp' effect
Summary: Kwin crash on 'Magic Lamp' effect
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.9.0
Platform: Neon Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: drkonqi, triaged
Depends on:
Blocks:
 
Reported: 2017-02-06 23:07 UTC by Bart Willems
Modified: 2018-10-28 03:33 UTC (History)
1 user (show)

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 Bart Willems 2017-02-06 23:07:49 UTC
Application: kwin_x11 (5.9.0)

Qt Version: 5.7.1
Frameworks Version: 5.30.0
Operating System: Linux 4.4.0-62-generic x86_64
Distribution: KDE neon User Edition 5.9

-- Information about the crash:
- What I was doing when the application crashed:
I enabled the magic lamp effect and minimised an application.
Kwin crashes every time when I minimize a window with the effect enabled, sometimes the 'enable compositor  on boo' becomes disabled because of it.

The crash can be reproduced every time.

-- Backtrace:
Application: KWin (kwin_x11), signal: Aborted
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f232344f940 (LWP 1526))]

Thread 7 (Thread 0x7f226455e700 (LWP 1716)):
#0  0x00007f2322f3cb5d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f2320e00aaa in qt_safe_poll(pollfd*, unsigned long, timespec const*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007f2320e02392 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007f2320db00ba in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f2320bdff64 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f2320be4b48 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f231cc4a6ba in start_thread (arg=0x7f226455e700) at pthread_create.c:333
#7  0x00007f2322f4882d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 6 (Thread 0x7f23013a2700 (LWP 1698)):
#0  0x00007f2322f3cb5d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f2320e00aaa in qt_safe_poll(pollfd*, unsigned long, timespec const*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007f2320e02392 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007f2320db00ba in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f2320bdff64 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f231bdb8bf5 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#6  0x00007f2320be4b48 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f231cc4a6ba in start_thread (arg=0x7f23013a2700) at pthread_create.c:333
#8  0x00007f2322f4882d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 5 (Thread 0x7f23022e1700 (LWP 1654)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f231ff756f4 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#2  0x00007f231ff75739 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#3  0x00007f231cc4a6ba in start_thread (arg=0x7f23022e1700) at pthread_create.c:333
#4  0x00007f2322f4882d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 4 (Thread 0x7f230333a700 (LWP 1647)):
#0  0x00007f2322f3cb5d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f2320e00aaa in qt_safe_poll(pollfd*, unsigned long, timespec const*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007f2320e02392 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007f2320db00ba in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f2320bdff64 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f231bdb8bf5 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#6  0x00007f2320be4b48 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f231cc4a6ba in start_thread (arg=0x7f230333a700) at pthread_create.c:333
#8  0x00007f2322f4882d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7f2309d89700 (LWP 1607)):
#0  0x00007f2322f3cb5d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f2320e00aaa in qt_safe_poll(pollfd*, unsigned long, timespec const*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007f2320e02392 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007f2320db00ba in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f2320bdff64 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f2323572735 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#6  0x00007f2320be4b48 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f231cc4a6ba in start_thread (arg=0x7f2309d89700) at pthread_create.c:333
#8  0x00007f2322f4882d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7f230b882700 (LWP 1556)):
#0  0x00007f2322f3cb5d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f2322080c62 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f23220828d7 in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f230c530d79 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007f2320be4b48 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f231cc4a6ba in start_thread (arg=0x7f230b882700) at pthread_create.c:333
#6  0x00007f2322f4882d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f232344f940 (LWP 1526)):
[KCrash Handler]
#6  0x00007f2322e77428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#7  0x00007f2322e7902a in __GI_abort () at abort.c:89
#8  0x00007f2322e6fbd7 in __assert_fail_base (fmt=<optimized out>, assertion=assertion@entry=0x7f23205a7c48 "x1 < x2 && y1 < y2 && x1 >= left() && x2 <= right() && y1 >= top() && y2 <= bottom()", file=file@entry=0x7f23205a7bf0 "/workspace/build/libkwineffects/kwineffects.cpp", line=line@entry=979, function=function@entry=0x7f23205a8140 "KWin::WindowQuad KWin::WindowQuad::makeSubQuad(double, double, double, double) const") at assert.c:92
#9  0x00007f2322e6fc82 in __GI___assert_fail (assertion=0x7f23205a7c48 "x1 < x2 && y1 < y2 && x1 >= left() && x2 <= right() && y1 >= top() && y2 <= bottom()", file=0x7f23205a7bf0 "/workspace/build/libkwineffects/kwineffects.cpp", line=979, function=0x7f23205a8140 "KWin::WindowQuad KWin::WindowQuad::makeSubQuad(double, double, double, double) const") at assert.c:101
#10 0x00007f23205960bc in KWin::WindowQuad::makeSubQuad(double, double, double, double) const () from /usr/lib/x86_64-linux-gnu/libkwineffects.so.10
#11 0x00007f2320598b77 in KWin::WindowQuadList::makeGrid(int) const () from /usr/lib/x86_64-linux-gnu/libkwineffects.so.10
#12 0x00007f23200ddf7d in ?? () from /usr/lib/x86_64-linux-gnu/libkwin4_effect_builtins.so.1
#13 0x00007f2322aeaec1 in KWin::EffectsHandlerImpl::prePaintWindow(KWin::EffectWindow*, KWin::WindowPrePaintData&, int) () from /usr/lib/x86_64-linux-gnu/libkwin.so.5
#14 0x00007f2322ab8922 in KWin::Scene::paintGenericScreen(int, KWin::ScreenPaintData) () from /usr/lib/x86_64-linux-gnu/libkwin.so.5
#15 0x00007f2322ad8754 in ?? () from /usr/lib/x86_64-linux-gnu/libkwin.so.5
#16 0x00007f2322abc90d in KWin::Scene::finalPaintScreen(int, QRegion, KWin::ScreenPaintData&) () from /usr/lib/x86_64-linux-gnu/libkwin.so.5
#17 0x00007f2322aead2f in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () from /usr/lib/x86_64-linux-gnu/libkwin.so.5
#18 0x00007f23205924ff in KWin::Effect::paintScreen(int, QRegion, KWin::ScreenPaintData&) () from /usr/lib/x86_64-linux-gnu/libkwineffects.so.10
#19 0x00007f2322aeacda in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () from /usr/lib/x86_64-linux-gnu/libkwin.so.5
#20 0x00007f23205924ff in KWin::Effect::paintScreen(int, QRegion, KWin::ScreenPaintData&) () from /usr/lib/x86_64-linux-gnu/libkwineffects.so.10
#21 0x00007f2322aeacda in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () from /usr/lib/x86_64-linux-gnu/libkwin.so.5
#22 0x00007f23205924ff in KWin::Effect::paintScreen(int, QRegion, KWin::ScreenPaintData&) () from /usr/lib/x86_64-linux-gnu/libkwineffects.so.10
#23 0x00007f2322aeacda in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () from /usr/lib/x86_64-linux-gnu/libkwin.so.5
#24 0x00007f2322abc54e in KWin::Scene::paintScreen(int*, QRegion const&, QRegion const&, QRegion*, QRegion*, QMatrix4x4 const&, QRect const&) () from /usr/lib/x86_64-linux-gnu/libkwin.so.5
#25 0x00007f2322ad4421 in KWin::SceneOpenGL::paint(QRegion, QList<KWin::Toplevel*>) () from /usr/lib/x86_64-linux-gnu/libkwin.so.5
#26 0x00007f2322aae94e in KWin::Compositor::performCompositing() () from /usr/lib/x86_64-linux-gnu/libkwin.so.5
#27 0x00007f2320dddd53 in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#28 0x00007f2321690ecc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#29 0x00007f23216988c6 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#30 0x00007f2320db20c8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#31 0x00007f2320e0468e in QTimerInfoList::activateTimers() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#32 0x00007f2320e02602 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#33 0x00007f230c5a985d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#34 0x00007f2320db00ba in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#35 0x00007f2320db86cc in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#36 0x00007f2323214142 in kdemain () from /usr/lib/x86_64-linux-gnu/libkdeinit5_kwin_x11.so
#37 0x00007f2322e62830 in __libc_start_main (main=0x400710, argc=1, argv=0x7ffcde567e78, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffcde567e68) at ../csu/libc-start.c:291
#38 0x0000000000400749 in _start ()

Possible duplicates by query: bug 374265, bug 374147, bug 374038, bug 359869.

Reported using DrKonqi
Comment 1 Martin Flöser 2017-02-07 05:58:13 UTC
Unfortunately the backtrace is lacking debug symbols. If you are able to 
reproduce please install the debug packages provided by your 
distribution (please ask the distribution support channel on how to 
install them) and attach a new backtrace.
Comment 2 Grief 2017-03-02 17:22:58 UTC
(In reply to Martin Gräßlin from comment #1)
> Unfortunately the backtrace is lacking debug symbols. If you are able to 
> reproduce please install the debug packages provided by your 
> distribution (please ask the distribution support channel on how to 
> install them) and attach a new backtrace.

I can confirm the issue. Please let me know how to collect information you need
Comment 3 Grief 2017-03-02 17:43:00 UTC
I cannot see any crash logs, the screen gets blank with rare artifacts and I can see the following in the dmesg log:

[  192.029859] [drm:vmw_cmd_dx_destroy_shader [vmwgfx]] *ERROR* Could not find shader to remove.
[  192.029866] [drm:vmw_execbuf_process [vmwgfx]] *ERROR* Invalid SVGA3D command: 1202
Comment 4 Grief 2017-03-04 00:42:30 UTC
I have a workaround!
TL;DR: do `export SVGA_VGPU10=0` anywhere so it would be applied to all 3D apps.

reference: https://bugs.launchpad.net/stellarium/+bug/1577494

here (https://github.com/ros-simulation/gazebo_ros_pkgs/issues/457) man says that this in probably the issue in app itself, not it vmware, but this is doubtable

also here (https://www.mesa3d.org/vmware-guest.html) page says that the variable from above "may be useful to work around application bugs (such as incorrect use of the OpenGL 3.x core profile).", so it might be the reason
Comment 5 Andrew Crouthamel 2018-09-28 02:39:08 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 set the bug status 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 6 Andrew Crouthamel 2018-10-28 03:33:27 UTC
Dear Bug Submitter,

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!