Bug 356141 - virtual desktop ?
Summary: virtual desktop ?
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: scene-opengl (show other bugs)
Version: 5.7.5
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Vlad Zahorodnii
URL:
Keywords: drkonqi
: 347508 366185 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-12-01 05:09 UTC by Boilley Adrien
Modified: 2019-02-15 16:06 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.16.0


Attachments
New crash information added by DrKonqi (12.73 KB, text/plain)
2017-07-11 23:34 UTC, J.Fly
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Boilley Adrien 2015-12-01 05:09:44 UTC
Application: kwin_x11 (5.4.2)

Qt Version: 5.4.2
Operating System: Linux 4.2.0-18-generic x86_64
Distribution: Ubuntu 15.10

-- Information about the crash:
- What I was doing when the application crashed:
Slide to second virtual desktop.

- Unusual behavior I noticed:
The second desktop is totaly black, no icons, no wallpaper, nothing exept mouse pointer.
I don't kno why....

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

Thread 4 (Thread 0x7f5f31d2e700 (LWP 1110)):
#0  0x00007f5f4fd8a743 in select () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f5f4e3db90f in qt_safe_select (nfds=14, fdread=fdread@entry=0x7f5f24000a78, fdwrite=fdwrite@entry=0x7f5f24000d08, fdexcept=fdexcept@entry=0x7f5f24000f98, orig_timeout=orig_timeout@entry=0x0) at kernel/qcore_unix.cpp:75
#2  0x00007f5f4e3dd40e in QEventDispatcherUNIX::select (timeout=0x0, exceptfds=0x7f5f24000f98, writefds=0x7f5f24000d08, readfds=0x7f5f24000a78, nfds=<optimized out>, this=0x7f5f240008c0) at kernel/qeventdispatcher_unix.cpp:320
#3  QEventDispatcherUNIXPrivate::doSelect (this=this@entry=0x7f5f240008e0, flags=..., flags@entry=..., timeout=timeout@entry=0x0) at kernel/qeventdispatcher_unix.cpp:196
#4  0x00007f5f4e3dd93e in QEventDispatcherUNIX::processEvents (this=0x7f5f240008c0, flags=...) at kernel/qeventdispatcher_unix.cpp:607
#5  0x00007f5f4e38675a in QEventLoop::exec (this=this@entry=0x7f5f31d2dd60, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#6  0x00007f5f4e1a43d4 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:503
#7  0x00007f5f48d12f85 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#8  0x00007f5f4e1a92be in QThreadPrivate::start (arg=0x16b0d40) at thread/qthread_unix.cpp:337
#9  0x00007f5f4f3cc6aa in start_thread (arg=0x7f5f31d2e700) at pthread_create.c:333
#10 0x00007f5f4fd93eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7f5f29b72700 (LWP 1128)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f5f4d339114 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#2  0x00007f5f4d339159 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#3  0x00007f5f4f3cc6aa in start_thread (arg=0x7f5f29b72700) at pthread_create.c:333
#4  0x00007f5f4fd93eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7f5f2a373700 (LWP 3905)):
#0  0x00007f5f4fd8a743 in select () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f5f4e3db90f in qt_safe_select (nfds=16, fdread=fdread@entry=0x7f5f20000a78, fdwrite=fdwrite@entry=0x7f5f20000d08, fdexcept=fdexcept@entry=0x7f5f20000f98, orig_timeout=orig_timeout@entry=0x0) at kernel/qcore_unix.cpp:75
#2  0x00007f5f4e3dd40e in QEventDispatcherUNIX::select (timeout=0x0, exceptfds=0x7f5f20000f98, writefds=0x7f5f20000d08, readfds=0x7f5f20000a78, nfds=<optimized out>, this=0x7f5f200008c0) at kernel/qeventdispatcher_unix.cpp:320
#3  QEventDispatcherUNIXPrivate::doSelect (this=this@entry=0x7f5f200008e0, flags=..., flags@entry=..., timeout=timeout@entry=0x0) at kernel/qeventdispatcher_unix.cpp:196
#4  0x00007f5f4e3dd93e in QEventDispatcherUNIX::processEvents (this=0x7f5f200008c0, flags=...) at kernel/qeventdispatcher_unix.cpp:607
#5  0x00007f5f4e38675a in QEventLoop::exec (this=this@entry=0x7f5f2a372d60, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#6  0x00007f5f4e1a43d4 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:503
#7  0x00007f5f48d12f85 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#8  0x00007f5f4e1a92be in QThreadPrivate::start (arg=0x2fd56b0) at thread/qthread_unix.cpp:337
#9  0x00007f5f4f3cc6aa in start_thread (arg=0x7f5f2a373700) at pthread_create.c:333
#10 0x00007f5f4fd93eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f5f5029e840 (LWP 1097)):
[KCrash Handler]
#6  KWin::GLShader::resolveLocations (this=0x0) at ../../libkwineffects/kwinglutils.cpp:419
#7  0x00007f5f49b9b1a2 in KWin::GLShader::setUniform (this=0x0, uniform=uniform@entry=KWin::GLShader::Color, value=...) at ../../libkwineffects/kwinglutils.cpp:480
#8  0x00007f5f49ba12ec in KWin::GLVertexBufferPrivate::bindArrays (this=0x18a3850) at ../../libkwineffects/kwinglutils.cpp:2059
#9  0x00007f5f49ba13e8 in KWin::GLVertexBuffer::bindArrays (this=this@entry=0x163b630) at ../../libkwineffects/kwinglutils.cpp:2346
#10 0x00007f5f4d4efbb6 in KWin::ContrastEffect::doContrast (this=this@entry=0x1f46990, shape=..., screen=..., opacity=1) at ../../effects/backgroundcontrast/contrast.cpp:364
#11 0x00007f5f4d4f00be in KWin::ContrastEffect::drawWindow (this=this@entry=0x1f46990, w=w@entry=0x27f0b20, mask=mask@entry=10, region=..., data=...) at ../../effects/backgroundcontrast/contrast.cpp:342
#12 0x00007f5f4f96722e in KWin::EffectsHandlerImpl::drawWindow (this=0x1ecfe00, w=w@entry=0x27f0b20, mask=mask@entry=10, region=..., data=...) at ../effects.cpp:492
#13 0x00007f5f4d46d6f5 in KWin::BlurEffect::drawWindow (this=this@entry=0x1ede030, w=w@entry=0x27f0b20, mask=mask@entry=10, region=..., data=...) at ../../effects/blur/blur.cpp:417
#14 0x00007f5f4f96722e in KWin::EffectsHandlerImpl::drawWindow (this=0x1ecfe00, w=w@entry=0x27f0b20, mask=mask@entry=10, region=..., data=...) at ../effects.cpp:492
#15 0x00007f5f4d941741 in KWin::Effect::drawWindow (this=this@entry=0x16aff10, w=w@entry=0x27f0b20, mask=mask@entry=10, region=..., data=...) at ../../libkwineffects/kwineffects.cpp:580
#16 0x00007f5f4f96722e in KWin::EffectsHandlerImpl::drawWindow (this=0x1ecfe00, w=w@entry=0x27f0b20, mask=mask@entry=10, region=..., data=...) at ../effects.cpp:492
#17 0x00007f5f4d941741 in KWin::Effect::drawWindow (this=this@entry=0x1f8f950, w=w@entry=0x27f0b20, mask=mask@entry=10, region=..., data=...) at ../../libkwineffects/kwineffects.cpp:580
#18 0x00007f5f4f96722e in KWin::EffectsHandlerImpl::drawWindow (this=0x1ecfe00, w=w@entry=0x27f0b20, mask=mask@entry=10, region=..., data=...) at ../effects.cpp:492
#19 0x00007f5f4f92dcf1 in KWin::Scene::finalPaintWindow (this=<optimized out>, w=w@entry=0x27f0b20, mask=mask@entry=10, region=..., data=...) at ../scene.cpp:607
#20 0x00007f5f4f9670da in KWin::EffectsHandlerImpl::paintWindow (this=0x1ecfe00, w=w@entry=0x27f0b20, mask=mask@entry=10, region=..., data=...) at ../effects.cpp:458
#21 0x00007f5f4d9415e1 in KWin::Effect::paintWindow (this=this@entry=0x1f46990, w=w@entry=0x27f0b20, mask=mask@entry=10, region=..., data=...) at ../../libkwineffects/kwineffects.cpp:550
#22 0x00007f5f4f96707e in KWin::EffectsHandlerImpl::paintWindow (this=0x1ecfe00, w=w@entry=0x27f0b20, mask=mask@entry=10, region=..., data=...) at ../effects.cpp:455
#23 0x00007f5f4d9415e1 in KWin::Effect::paintWindow (this=this@entry=0x1ede030, w=w@entry=0x27f0b20, mask=mask@entry=10, region=..., data=...) at ../../libkwineffects/kwineffects.cpp:550
#24 0x00007f5f4f96707e in KWin::EffectsHandlerImpl::paintWindow (this=0x1ecfe00, w=w@entry=0x27f0b20, mask=mask@entry=10, region=..., data=...) at ../effects.cpp:455
#25 0x00007f5f4d94f844 in KWin::AnimationEffect::paintWindow (this=this@entry=0x16aff10, w=w@entry=0x27f0b20, mask=mask@entry=10, region=..., data=...) at ../../libkwineffects/kwinanimationeffect.cpp:585
#26 0x00007f5f4f96707e in KWin::EffectsHandlerImpl::paintWindow (this=0x1ecfe00, w=w@entry=0x27f0b20, mask=mask@entry=10, region=..., data=...) at ../effects.cpp:455
#27 0x00007f5f4d94f844 in KWin::AnimationEffect::paintWindow (this=this@entry=0x1f8f950, w=w@entry=0x27f0b20, mask=mask@entry=10, region=..., data=...) at ../../libkwineffects/kwinanimationeffect.cpp:585
#28 0x00007f5f4f96707e in KWin::EffectsHandlerImpl::paintWindow (this=0x1ecfe00, w=0x27f0b20, mask=mask@entry=10, region=..., data=...) at ../effects.cpp:455
#29 0x00007f5f4f932fe8 in KWin::Scene::paintWindow (this=this@entry=0x18a3bc0, w=0x2ae3750, mask=10, region=..., quads=...) at ../scene.cpp:479
#30 0x00007f5f4f93267c in KWin::Scene::paintSimpleScreen (this=this@entry=0x18a3bc0, orig_mask=orig_mask@entry=8, region=...) at ../scene.cpp:382
#31 0x00007f5f4f9440a3 in KWin::SceneOpenGL2::paintSimpleScreen (this=this@entry=0x18a3bc0, mask=mask@entry=8, region=...) at ../scene_opengl.cpp:1095
#32 0x00007f5f4f92d6b4 in KWin::Scene::finalPaintScreen (this=0x18a3bc0, mask=mask@entry=8, region=..., data=...) at ../scene.cpp:201
#33 0x00007f5f4f966e5f in KWin::EffectsHandlerImpl::paintScreen (this=0x1ecfe00, mask=mask@entry=8, region=..., data=...) at ../effects.cpp:415
#34 0x00007f5f4d94152f in KWin::Effect::paintScreen (this=this@entry=0x1f46990, mask=mask@entry=8, region=..., data=...) at ../../libkwineffects/kwineffects.cpp:535
#35 0x00007f5f4f966e0a in KWin::EffectsHandlerImpl::paintScreen (this=0x1ecfe00, mask=mask@entry=8, region=..., data=...) at ../effects.cpp:412
#36 0x00007f5f4d94152f in KWin::Effect::paintScreen (this=this@entry=0x1ede030, mask=mask@entry=8, region=..., data=...) at ../../libkwineffects/kwineffects.cpp:535
#37 0x00007f5f4f966e0a in KWin::EffectsHandlerImpl::paintScreen (this=0x1ecfe00, mask=mask@entry=8, region=..., data=...) at ../effects.cpp:412
#38 0x00007f5f4d94152f in KWin::Effect::paintScreen (this=this@entry=0x16aff10, mask=mask@entry=8, region=..., data=...) at ../../libkwineffects/kwineffects.cpp:535
#39 0x00007f5f4f966e0a in KWin::EffectsHandlerImpl::paintScreen (this=0x1ecfe00, mask=mask@entry=8, region=..., data=...) at ../effects.cpp:412
#40 0x00007f5f4d94152f in KWin::Effect::paintScreen (this=this@entry=0x1f8f950, mask=mask@entry=8, region=..., data=...) at ../../libkwineffects/kwineffects.cpp:535
#41 0x00007f5f4f966e0a in KWin::EffectsHandlerImpl::paintScreen (this=0x1ecfe00, mask=8, region=..., data=...) at ../effects.cpp:412
#42 0x00007f5f4f92d32a in KWin::Scene::paintScreen (this=this@entry=0x18a3bc0, mask=mask@entry=0x7ffd87605d90, damage=..., repaint=..., updateRegion=updateRegion@entry=0x7ffd87605d60, validRegion=validRegion@entry=0x7ffd87605d70) at ../scene.cpp:151
#43 0x00007f5f4f949a98 in KWin::SceneOpenGL::paint (this=0x18a3bc0, damage=..., toplevels=...) at ../scene_opengl.cpp:740
#44 0x00007f5f4f9251a3 in KWin::Compositor::performCompositing (this=0x14ef0e0) at ../composite.cpp:712
#45 0x00007f5f4e3ba603 in QObject::event (this=0x14ef0e0, e=<optimized out>) at kernel/qobject.cpp:1267
#46 0x00007f5f4ec56b8c in QApplicationPrivate::notify_helper (this=this@entry=0x1471cd0, receiver=receiver@entry=0x14ef0e0, e=e@entry=0x7ffd876061b0) at kernel/qapplication.cpp:3720
#47 0x00007f5f4ec5c230 in QApplication::notify (this=0x7ffd876063e0, receiver=0x14ef0e0, e=0x7ffd876061b0) at kernel/qapplication.cpp:3503
#48 0x00007f5f4e388f1b in QCoreApplication::notifyInternal (this=0x7ffd876063e0, receiver=0x14ef0e0, event=event@entry=0x7ffd876061b0) at kernel/qcoreapplication.cpp:935
#49 0x00007f5f4e3df09d in QCoreApplication::sendEvent (event=0x7ffd876061b0, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:228
#50 QTimerInfoList::activateTimers (this=0x14a8a78) at kernel/qtimerinfo_unix.cpp:635
#51 0x00007f5f4e3dce40 in QEventDispatcherUNIX::activateTimers (this=this@entry=0x14abce0) at kernel/qeventdispatcher_unix.cpp:549
#52 0x00007f5f4e3dd8b6 in QEventDispatcherUNIX::processEvents (this=0x14abce0, flags=flags@entry=...) at kernel/qeventdispatcher_unix.cpp:611
#53 0x00007f5f39f6505d in QUnixEventDispatcherQPA::processEvents (this=<optimized out>, flags=...) at eventdispatchers/qunixeventdispatcher.cpp:62
#54 0x00007f5f4e38675a in QEventLoop::exec (this=this@entry=0x7ffd87606300, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#55 0x00007f5f4e38e2cc in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1188
#56 0x00007f5f4e6a300c in QGuiApplication::exec () at kernel/qguiapplication.cpp:1510
#57 0x00007f5f4ec53025 in QApplication::exec () at kernel/qapplication.cpp:2956
#58 0x00007f5f5005c4c4 in kdemain (argc=1, argv=0x7ffd87606548) at ../main_x11.cpp:303
#59 0x00007f5f4fcada40 in __libc_start_main (main=0x4007a0 <main(int, char**)>, argc=3, argv=0x7ffd87606548, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffd87606538) at libc-start.c:289
#60 0x00000000004007d9 in _start ()

Reported using DrKonqi
Comment 1 Thomas Lübking 2015-12-01 07:48:18 UTC
KWin crashed, the backtrace suggests an imbalance in the shader un/loading (apparently in the contrast effect, but the imbalance could have been caused before)

This however might be a red herring: if plasmashell crashed as well (instead of just moving it to some specific virtual desktop), there might be a problem deeper down the stack.

Can you reproduce this? (Or did you maybe check the process list when this happened?)
Comment 2 Lukáš Karas 2016-11-04 18:21:16 UTC
I got similar stacktrace when I restarted kded5 process and it turn off my external monitor (keep just notebook display).

I have Kubuntu 16.10
kwin 5.7.5
Qt 5.6.1 
Intel graphics card

Backtrace k pádu, na který jsem narazil/a:

Application: KWin (kwin_x11), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fa275910940 (LWP 4388))]

Thread 8 (Thread 0x7fa1d8bff700 (LWP 14354)):
#0  0x00007fa28c3d2ea3 in select () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007fa28a254caf in qt_safe_select (nfds=21, fdread=fdread@entry=0x7fa1c8000a58, fdwrite=fdwrite@entry=0x7fa1c8000ce8, fdexcept=fdexcept@entry=0x7fa1c8000f78, orig_timeout=orig_timeout@entry=0x0) at kernel/qcore_unix.cpp:75
#2  0x00007fa28a256754 in QEventDispatcherUNIX::select (timeout=0x0, exceptfds=0x7fa1c8000f78, writefds=0x7fa1c8000ce8, readfds=0x7fa1c8000a58, nfds=<optimized out>, this=0x7fa1c80b00b0) at kernel/qeventdispatcher_unix.cpp:320
#3  QEventDispatcherUNIXPrivate::doSelect (this=this@entry=0x7fa1c80008c0, flags=..., flags@entry=..., timeout=timeout@entry=0x0) at kernel/qeventdispatcher_unix.cpp:196
#4  0x00007fa28a256c6a in QEventDispatcherUNIX::processEvents (this=0x7fa1c80b00b0, flags=...) at kernel/qeventdispatcher_unix.cpp:607
#5  0x00007fa28a2010fa in QEventLoop::exec (this=this@entry=0x7fa1d8bfec60, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#6  0x00007fa28a026d43 in QThread::exec (this=this@entry=0x559902cdb170) at thread/qthread.cpp:500
#7  0x00007fa284ad7c65 in QQmlThreadPrivate::run (this=0x559902cdb170) at qml/ftw/qqmlthread.cpp:141
#8  0x00007fa28a02bc68 in QThreadPrivate::start (arg=0x559902cdb170) at thread/qthread_unix.cpp:341
#9  0x00007fa28597970a in start_thread (arg=0x7fa1d8bff700) at pthread_create.c:333
#10 0x00007fa28c3dd0af in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 7 (Thread 0x7fa25bfff700 (LWP 9779)):
#0  0x00007fa28c3d2ea3 in select () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007fa28a254caf in qt_safe_select (nfds=17, fdread=fdread@entry=0x7fa1d4000a78, fdwrite=fdwrite@entry=0x7fa1d4000d08, fdexcept=fdexcept@entry=0x7fa1d4000f98, orig_timeout=orig_timeout@entry=0x0) at kernel/qcore_unix.cpp:75
#2  0x00007fa28a256754 in QEventDispatcherUNIX::select (timeout=0x0, exceptfds=0x7fa1d4000f98, writefds=0x7fa1d4000d08, readfds=0x7fa1d4000a78, nfds=<optimized out>, this=0x7fa1d40008c0) at kernel/qeventdispatcher_unix.cpp:320
#3  QEventDispatcherUNIXPrivate::doSelect (this=this@entry=0x7fa1d40008e0, flags=..., flags@entry=..., timeout=timeout@entry=0x0) at kernel/qeventdispatcher_unix.cpp:196
#4  0x00007fa28a256c6a in QEventDispatcherUNIX::processEvents (this=0x7fa1d40008c0, flags=...) at kernel/qeventdispatcher_unix.cpp:607
#5  0x00007fa28a2010fa in QEventLoop::exec (this=this@entry=0x7fa25bffec60, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#6  0x00007fa28a026d43 in QThread::exec (this=this@entry=0x55990577fb10) at thread/qthread.cpp:500
#7  0x00007fa284ad7c65 in QQmlThreadPrivate::run (this=0x55990577fb10) at qml/ftw/qqmlthread.cpp:141
#8  0x00007fa28a02bc68 in QThreadPrivate::start (arg=0x55990577fb10) at thread/qthread_unix.cpp:341
#9  0x00007fa28597970a in start_thread (arg=0x7fa25bfff700) at pthread_create.c:333
#10 0x00007fa28c3dd0af in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 6 (Thread 0x7fa264e28700 (LWP 9778)):
#0  0x00007fa28c3d2ea3 in select () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007fa28a254caf in qt_safe_select (nfds=16, fdread=fdread@entry=0x7fa1cc01eff8, fdwrite=fdwrite@entry=0x7fa1cc01f288, fdexcept=fdexcept@entry=0x7fa1cc01f518, orig_timeout=orig_timeout@entry=0x0) at kernel/qcore_unix.cpp:75
#2  0x00007fa28a256754 in QEventDispatcherUNIX::select (timeout=0x0, exceptfds=0x7fa1cc01f518, writefds=0x7fa1cc01f288, readfds=0x7fa1cc01eff8, nfds=<optimized out>, this=0x7fa1cc0008c0) at kernel/qeventdispatcher_unix.cpp:320
#3  QEventDispatcherUNIXPrivate::doSelect (this=this@entry=0x7fa1cc01ee60, flags=..., flags@entry=..., timeout=timeout@entry=0x0) at kernel/qeventdispatcher_unix.cpp:196
#4  0x00007fa28a256c6a in QEventDispatcherUNIX::processEvents (this=0x7fa1cc0008c0, flags=...) at kernel/qeventdispatcher_unix.cpp:607
#5  0x00007fa28a2010fa in QEventLoop::exec (this=this@entry=0x7fa264e27c60, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#6  0x00007fa28a026d43 in QThread::exec (this=this@entry=0x559903864120) at thread/qthread.cpp:500
#7  0x00007fa284ad7c65 in QQmlThreadPrivate::run (this=0x559903864120) at qml/ftw/qqmlthread.cpp:141
#8  0x00007fa28a02bc68 in QThreadPrivate::start (arg=0x559903864120) at thread/qthread_unix.cpp:341
#9  0x00007fa28597970a in start_thread (arg=0x7fa264e28700) at pthread_create.c:333
#10 0x00007fa28c3dd0af in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 5 (Thread 0x7fa26d44b700 (LWP 5964)):
#0  __libc_enable_asynccancel () at ../sysdeps/unix/sysv/linux/x86_64/cancellation.S:67
#1  0x00007fa28c3d2e95 in select () at ../sysdeps/unix/syscall-template.S:84
#2  0x00007fa28a254caf in qt_safe_select (nfds=13, fdread=fdread@entry=0x7fa260000a78, fdwrite=fdwrite@entry=0x7fa260000d08, fdexcept=fdexcept@entry=0x7fa260000f98, orig_timeout=orig_timeout@entry=0x0) at kernel/qcore_unix.cpp:75
#3  0x00007fa28a256754 in QEventDispatcherUNIX::select (timeout=0x0, exceptfds=0x7fa260000f98, writefds=0x7fa260000d08, readfds=0x7fa260000a78, nfds=<optimized out>, this=0x7fa2600008c0) at kernel/qeventdispatcher_unix.cpp:320
#4  QEventDispatcherUNIXPrivate::doSelect (this=this@entry=0x7fa2600008e0, flags=..., flags@entry=..., timeout=timeout@entry=0x0) at kernel/qeventdispatcher_unix.cpp:196
#5  0x00007fa28a256c6a in QEventDispatcherUNIX::processEvents (this=0x7fa2600008c0, flags=...) at kernel/qeventdispatcher_unix.cpp:607
#6  0x00007fa28a2010fa in QEventLoop::exec (this=this@entry=0x7fa26d44ac60, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#7  0x00007fa28a026d43 in QThread::exec (this=this@entry=0x55990274b6e0) at thread/qthread.cpp:500
#8  0x00007fa284ad7c65 in QQmlThreadPrivate::run (this=0x55990274b6e0) at qml/ftw/qqmlthread.cpp:141
#9  0x00007fa28a02bc68 in QThreadPrivate::start (arg=0x55990274b6e0) at thread/qthread_unix.cpp:341
#10 0x00007fa28597970a in start_thread (arg=0x7fa26d44b700) at pthread_create.c:333
#11 0x00007fa28c3dd0af in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 4 (Thread 0x7fa25b7fe700 (LWP 4450)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fa2893c0574 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#2  0x00007fa2893c05b9 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#3  0x00007fa28597970a in start_thread (arg=0x7fa25b7fe700) at pthread_create.c:333
#4  0x00007fa28c3dd0af in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 3 (Thread 0x7fa267fff700 (LWP 4434)):
#0  0x00007fa28c3d2ea3 in select () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007fa28a254caf in qt_safe_select (nfds=14, fdread=fdread@entry=0x7fa25c000a78, fdwrite=fdwrite@entry=0x7fa25c000d08, fdexcept=fdexcept@entry=0x7fa25c000f98, orig_timeout=orig_timeout@entry=0x0) at kernel/qcore_unix.cpp:75
#2  0x00007fa28a256754 in QEventDispatcherUNIX::select (timeout=0x0, exceptfds=0x7fa25c000f98, writefds=0x7fa25c000d08, readfds=0x7fa25c000a78, nfds=<optimized out>, this=0x7fa25c0008c0) at kernel/qeventdispatcher_unix.cpp:320
#3  QEventDispatcherUNIXPrivate::doSelect (this=this@entry=0x7fa25c0008e0, flags=..., flags@entry=..., timeout=timeout@entry=0x0) at kernel/qeventdispatcher_unix.cpp:196
#4  0x00007fa28a256c6a in QEventDispatcherUNIX::processEvents (this=0x7fa25c0008c0, flags=...) at kernel/qeventdispatcher_unix.cpp:607
#5  0x00007fa28a2010fa in QEventLoop::exec (this=this@entry=0x7fa267ffec60, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#6  0x00007fa28a026d43 in QThread::exec (this=this@entry=0x559901b89fa0) at thread/qthread.cpp:500
#7  0x00007fa284ad7c65 in QQmlThreadPrivate::run (this=0x559901b89fa0) at qml/ftw/qqmlthread.cpp:141
#8  0x00007fa28a02bc68 in QThreadPrivate::start (arg=0x559901b89fa0) at thread/qthread_unix.cpp:341
#9  0x00007fa28597970a in start_thread (arg=0x7fa267fff700) at pthread_create.c:333
#10 0x00007fa28c3dd0af in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 2 (Thread 0x7fa27590c700 (LWP 4399)):
#0  0x00007fa28c3d10bd in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007fa282eda9d6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fa282edaaec in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fa28a2594ab in QEventDispatcherGlib::processEvents (this=0x7fa2700008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:419
#4  0x00007fa28a2010fa in QEventLoop::exec (this=this@entry=0x7fa27590bc50, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#5  0x00007fa28a026d43 in QThread::exec (this=this@entry=0x7fa28ca4ad60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread.cpp:500
#6  0x00007fa28c9d6575 in QDBusConnectionManager::run (this=0x7fa28ca4ad60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:171
#7  0x00007fa28a02bc68 in QThreadPrivate::start (arg=0x7fa28ca4ad60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:341
#8  0x00007fa28597970a in start_thread (arg=0x7fa27590c700) at pthread_create.c:333
#9  0x00007fa28c3dd0af in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 1 (Thread 0x7fa275910940 (LWP 4388)):
[KCrash Handler]
#6  KWin::GLShader::resolveLocations (this=0x0) at ./libkwineffects/kwinglutils.cpp:420
#7  0x00007fa28551d1e2 in KWin::GLShader::setUniform (this=0x0, uniform=uniform@entry=KWin::GLShader::Color, value=...) at ./libkwineffects/kwinglutils.cpp:481
#8  0x00007fa28551ee6b in KWin::GLVertexBufferPrivate::bindArrays (this=0x559901dcc1b0) at ./libkwineffects/kwinglutils.cpp:1883
#9  0x00007fa28551fa98 in KWin::GLVertexBuffer::bindArrays (this=this@entry=0x559901dcc190) at ./libkwineffects/kwinglutils.cpp:2170
#10 0x00007fa289574a76 in KWin::ContrastEffect::doContrast (this=this@entry=0x559904d77f90, shape=..., screen=..., opacity=1) at ./effects/backgroundcontrast/contrast.cpp:419
#11 0x00007fa289575326 in KWin::ContrastEffect::drawWindow (this=this@entry=0x559904d77f90, w=w@entry=0x5599038f1320, mask=mask@entry=10, region=..., data=...) at ./effects/backgroundcontrast/contrast.cpp:397
#12 0x00007fa28bf996be in KWin::EffectsHandlerImpl::drawWindow (this=0x5599024051e0, w=w@entry=0x5599038f1320, mask=mask@entry=10, region=..., data=...) at ./effects.cpp:506
#13 0x00007fa2894f4882 in KWin::BlurEffect::drawWindow (this=this@entry=0x55990241e440, w=w@entry=0x5599038f1320, mask=mask@entry=10, region=..., data=...) at ./effects/blur/blur.cpp:473
#14 0x00007fa28bf996be in KWin::EffectsHandlerImpl::drawWindow (this=0x5599024051e0, w=w@entry=0x5599038f1320, mask=mask@entry=10, region=..., data=...) at ./effects.cpp:506
#15 0x00007fa28bf6a241 in KWin::Scene::finalPaintWindow (this=<optimized out>, w=w@entry=0x5599038f1320, mask=mask@entry=10, region=..., data=...) at ./scene.cpp:607
#16 0x00007fa28bf9956a in KWin::EffectsHandlerImpl::paintWindow (this=0x5599024051e0, w=w@entry=0x5599038f1320, mask=mask@entry=10, region=..., data=...) at ./effects.cpp:472
#17 0x00007fa2899d5151 in KWin::Effect::paintWindow (this=this@entry=0x559904d77f90, w=w@entry=0x5599038f1320, mask=mask@entry=10, region=..., data=...) at ./libkwineffects/kwineffects.cpp:589
#18 0x00007fa28bf9950e in KWin::EffectsHandlerImpl::paintWindow (this=0x5599024051e0, w=w@entry=0x5599038f1320, mask=mask@entry=10, region=..., data=...) at ./effects.cpp:469
#19 0x00007fa2899d5151 in KWin::Effect::paintWindow (this=this@entry=0x55990241e440, w=w@entry=0x5599038f1320, mask=mask@entry=10, region=..., data=...) at ./libkwineffects/kwineffects.cpp:589
#20 0x00007fa28bf9950e in KWin::EffectsHandlerImpl::paintWindow (this=0x5599024051e0, w=0x5599038f1320, mask=mask@entry=10, region=..., data=...) at ./effects.cpp:469
#21 0x00007fa28bf70ad7 in KWin::Scene::paintWindow (this=this@entry=0x559901dcc520, w=0x559909ab3640, mask=10, region=..., quads=...) at ./scene.cpp:479
#22 0x00007fa28bf6f80e in KWin::Scene::paintSimpleScreen (this=this@entry=0x559901dcc520, orig_mask=orig_mask@entry=8, region=...) at ./scene.cpp:382
#23 0x00007fa28bf817f3 in KWin::SceneOpenGL2::paintSimpleScreen (this=this@entry=0x559901dcc520, mask=mask@entry=8, region=...) at ./scene_opengl.cpp:1078
#24 0x00007fa28bf70014 in KWin::Scene::finalPaintScreen (this=0x559901dcc520, mask=mask@entry=8, region=..., data=...) at ./scene.cpp:201
#25 0x00007fa28bf992ef in KWin::EffectsHandlerImpl::paintScreen (this=0x5599024051e0, mask=mask@entry=8, region=..., data=...) at ./effects.cpp:429
#26 0x00007fa2899d509f in KWin::Effect::paintScreen (this=this@entry=0x559904d77f90, mask=mask@entry=8, region=..., data=...) at ./libkwineffects/kwineffects.cpp:574
#27 0x00007fa28bf9929a in KWin::EffectsHandlerImpl::paintScreen (this=0x5599024051e0, mask=mask@entry=8, region=..., data=...) at ./effects.cpp:426
#28 0x00007fa2899d509f in KWin::Effect::paintScreen (this=this@entry=0x55990241e440, mask=mask@entry=8, region=..., data=...) at ./libkwineffects/kwineffects.cpp:574
#29 0x00007fa28bf9929a in KWin::EffectsHandlerImpl::paintScreen (this=0x5599024051e0, mask=8, region=..., data=...) at ./effects.cpp:426
#30 0x00007fa28bf6fc9d in KWin::Scene::paintScreen (this=this@entry=0x559901dcc520, mask=mask@entry=0x7fff30ee8d10, damage=..., repaint=..., updateRegion=updateRegion@entry=0x7fff30ee8ce0, validRegion=validRegion@entry=0x7fff30ee8cf0, projection=...) at ./scene.cpp:151
#31 0x00007fa28bf87c06 in KWin::SceneOpenGL::paint (this=0x559901dcc520, damage=..., toplevels=...) at ./scene_opengl.cpp:731
#32 0x00007fa28bf6281a in KWin::Compositor::performCompositing (this=0x559901a8ab50) at ./composite.cpp:720
#33 0x00007fa28a231653 in QObject::event (this=0x559901a8ab50, e=<optimized out>) at kernel/qobject.cpp:1278
#34 0x00007fa28ab3e8ac in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x559901a8ab50, e=0x7fff30ee9160) at kernel/qapplication.cpp:3804
#35 0x00007fa28ab43d4f in QApplication::notify (this=0x7fff30ee93d0, receiver=0x559901a8ab50, e=0x7fff30ee9160) at kernel/qapplication.cpp:3561
#36 0x00007fa28a2033b0 in QCoreApplication::notifyInternal2 (receiver=0x559901a8ab50, event=event@entry=0x7fff30ee9160) at kernel/qcoreapplication.cpp:1015
#37 0x00007fa28a2583ae in QCoreApplication::sendEvent (event=0x7fff30ee9160, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:225
#38 QTimerInfoList::activateTimers (this=0x5599019e4348) at kernel/qtimerinfo_unix.cpp:637
#39 0x00007fa28a256140 in QEventDispatcherUNIX::activateTimers (this=this@entry=0x5599019d03f0) at kernel/qeventdispatcher_unix.cpp:549
#40 0x00007fa28a256c3b in QEventDispatcherUNIX::processEvents (this=0x5599019d03f0, flags=...) at kernel/qeventdispatcher_unix.cpp:611
#41 0x00007fa274d8294d in QUnixEventDispatcherQPA::processEvents (this=<optimized out>, flags=...) at eventdispatchers/qunixeventdispatcher.cpp:62
#42 0x00007fa28a2010fa in QEventLoop::exec (this=this@entry=0x7fff30ee92c0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#43 0x00007fa28a20990c in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1285
#44 0x00007fa28a54da7c in QGuiApplication::exec () at kernel/qguiapplication.cpp:1602
#45 0x00007fa28ab3b8e5 in QApplication::exec () at kernel/qapplication.cpp:2979
#46 0x00007fa28c6a5206 in kdemain (argc=<optimized out>, argv=0x7fff30ee9558) at ./main_x11.cpp:466
#47 0x00007fa28c2f53f1 in __libc_start_main (main=0x5599006da7e0 <main>, argc=1, argv=0x7fff30ee9558, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff30ee9548) at ../csu/libc-start.c:291
#48 0x00005599006da81a in _start ()
Comment 3 Christoph Feck 2016-11-06 22:25:14 UTC
*** Bug 366185 has been marked as a duplicate of this bug. ***
Comment 4 Christoph Feck 2016-11-06 22:25:47 UTC
*** Bug 347508 has been marked as a duplicate of this bug. ***
Comment 5 J.Fly 2017-07-11 23:34:24 UTC
Created attachment 106567 [details]
New crash information added by DrKonqi

kwin_x11 (5.8.7) using Qt 5.6.2

- What I was doing when the application crashed:

Went to add the world clock widget to the desktop, kwin crashed.  I was also attempting to adjust the settings to add the global menu to opensuse 42.3 (yes 42.3 not 42.2)

-- Backtrace (Reduced):
#6  KWin::GLShader::resolveLocations (this=0x0) at /usr/src/debug/kwin-5.8.7/libkwineffects/kwinglutils.cpp:417
#7  0x00007f7c3efb73b2 in KWin::GLShader::setUniform (this=0x0, uniform=uniform@entry=KWin::GLShader::Color, value=...) at /usr/src/debug/kwin-5.8.7/libkwineffects/kwinglutils.cpp:478
#8  0x00007f7c3efb903c in KWin::GLVertexBufferPrivate::bindArrays (this=0x1dfe8d0) at /usr/src/debug/kwin-5.8.7/libkwineffects/kwinglutils.cpp:1880
#9  0x00007f7c3efb9b98 in KWin::GLVertexBuffer::bindArrays (this=this@entry=0x1d9c440) at /usr/src/debug/kwin-5.8.7/libkwineffects/kwinglutils.cpp:2167
#10 0x00007f7c42af9d33 in KWin::ContrastEffect::doContrast (this=this@entry=0x2484050, shape=..., screen=..., opacity=1) at /usr/src/debug/kwin-5.8.7/effects/backgroundcontrast/contrast.cpp:422
Comment 6 Martin Flöser 2017-07-12 05:10:32 UTC
I'm sorry, but 5.4 is no longer maintained by us. If you are able to reproduce with an up to date version (either 5.8 LTS or 5.10) please report a new bug with a new backtrace.
Comment 7 Christoph Feck 2017-07-17 03:43:09 UTC
Martin, the newest backtrace was from 5.8.7.

Reopening, because there is no need to add a new ticket, if this ticket has up-to-date backtrace with line number information.
Comment 8 Vlad Zahorodnii 2019-02-15 13:52:08 UTC
Git commit 0d7415336f0aeed4f85d28761cff78131d20fce6 by Vlad Zagorodniy.
Committed on 15/02/2019 at 13:51.
Pushed by vladz into branch 'master'.

[effects] Make sure that all effects reset the streaming buffer

Summary:
The streaming buffer is shared so we have to reset it before rendering
something. Otherwise, it's basically undefined behavior.

For example, if the streaming buffer had been used for rendering a
geometry with some color, then the Background Contrast effect may crash
in GLVertexBuffer::bindArrays, it all depends on whether there is any
bounded GLShader. To fix that, the buffer has to be reset.

Reviewers: #kwin, davidedmundson

Reviewed By: #kwin, davidedmundson

Subscribers: davidedmundson, kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D19034

M  +1    -0    effects/backgroundcontrast/contrast.cpp
M  +1    -0    effects/blur/blur.cpp

https://commits.kde.org/kwin/0d7415336f0aeed4f85d28761cff78131d20fce6