Bug 399499 - KWin crashes in makeInterleavedArrays
Summary: KWin crashes in makeInterleavedArrays
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.13.5
Platform: Neon Linux
: VHI crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: drkonqi
: 398860 400016 400038 400790 401256 402180 402567 402643 403095 403673 403952 404645 404738 405427 409864 410171 410884 411385 411420 411781 412528 412773 413153 413214 413381 413546 413917 413997 414434 414457 414480 416203 421666 422028 428473 429217 430160 430648 436868 438021 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-10-07 20:36 UTC by Ryan Dotts
Modified: 2022-10-16 00:34 UTC (History)
43 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.21
vlad.zahorodnii: NVIDIA+


Attachments
New crash information added by DrKonqi (16.38 KB, text/plain)
2018-10-27 04:42 UTC, ascaris
Details
New crash information added by DrKonqi (14.15 KB, text/plain)
2018-11-08 16:31 UTC, mich.delbianco
Details
New crash information added by DrKonqi (14.21 KB, text/plain)
2018-11-21 14:56 UTC, ascaris
Details
New crash information added by DrKonqi (13.00 KB, text/plain)
2018-12-07 23:40 UTC, ascaris
Details
Crash report on Kubuntu 19.04 after waking up from sleep (13.80 KB, text/plain)
2019-06-05 19:03 UTC, techxgames
Details
New crash information added by DrKonqi (5.49 KB, text/plain)
2020-09-30 10:10 UTC, Elvis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Dotts 2018-10-07 20:36:49 UTC
Application: kwin_x11 (5.13.5)

Qt Version: 5.11.1
Frameworks Version: 5.50.0
Operating System: Linux 4.15.0-36-generic x86_64
Distribution: KDE neon User Edition 5.13

-- Information about the crash:
- What I was doing when the application crashed:
Booting to desktop
- Custom settings of the application:
Default settings for KWin (recent reformat) that come with KDE Neon 5.13 (neon-useredition-20181004-1723-amd64.iso).  The only related item installed is the latest nvidia binary drivers (390.48) for the GTX 670M.

Initially the desktop appeared to have not booted at all, but switching to tty2 and back restored it.  No unusual behavior since.  This has happened consistantly on several startups.

The crash can be reproduced every time.

-- 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 0x7f1c5d57c840 (LWP 1886))]

Thread 5 (Thread 0x7f1c2a1ff700 (LWP 2019)):
#0  0x00007f1c55f1b9f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7f1c594bbfb8) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x7f1c594bbf68, cond=0x7f1c594bbf90) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x7f1c594bbf90, mutex=0x7f1c594bbf68) at pthread_cond_wait.c:655
#3  0x00007f1c591c6954 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#4  0x00007f1c591c6999 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#5  0x00007f1c55f156db in start_thread (arg=0x7f1c2a1ff700) at pthread_create.c:463
#6  0x00007f1c5ced988f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7f1c33fff700 (LWP 1998)):
#0  0x00007f1c5cecccf6 in __GI_ppoll (fds=0x7f1c2c000d28, nfds=1, timeout=<optimized out>, sigmask=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:39
#1  0x00007f1c5a2b27a1 in qt_safe_poll(pollfd*, unsigned long, timespec const*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007f1c5a2b3eae in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007f1c5a25adea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f1c5a085b8a in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f1c549a28b5 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#6  0x00007f1c5a090aab in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f1c55f156db in start_thread (arg=0x7f1c33fff700) at pthread_create.c:463
#8  0x00007f1c5ced988f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f1c422e4700 (LWP 1925)):
#0  0x00007f1c5cecccf6 in __GI_ppoll (fds=0x7f1c3400ec88, nfds=1, timeout=<optimized out>, sigmask=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:39
#1  0x00007f1c5a2b27a1 in qt_safe_poll(pollfd*, unsigned long, timespec const*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#2  0x00007f1c5a2b3eae in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007f1c5a25adea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f1c5a085b8a in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f1c53894e45 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#6  0x00007f1c5a090aab in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f1c55f156db in start_thread (arg=0x7f1c422e4700) at pthread_create.c:463
#8  0x00007f1c5ced988f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f1c4477d700 (LWP 1923)):
#0  0x00007f1c5ceccbf9 in __GI___poll (fds=0x7f1c4477cc68, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f1c5bdd2747 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f1c5bdd436a in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f1c45870129 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007f1c5a090aab in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f1c55f156db in start_thread (arg=0x7f1c4477d700) at pthread_create.c:463
#6  0x00007f1c5ced988f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f1c5d57c840 (LWP 1886)):
[KCrash Handler]
#6  0x00007f1c59a3829f in _mm_stream_si128(long long __vector(2)*, long long __vector(2)) (__B=..., __A=0x7f1c30f3bc70) at /usr/lib/gcc/x86_64-linux-gnu/7/include/emmintrin.h:1473
#7  KWin::WindowQuadList::makeInterleavedArrays (this=this@entry=0x7ffeaa338580, type=type@entry=7, vertices=vertices@entry=0x7f1c30f3bc70, textureMatrix=...) at ./libkwineffects/kwineffects.cpp:1283
#8  0x00007f1c3219ba6b in KWin::SceneOpenGL2Window::performPaint (this=this@entry=0x557c1cbdb370, mask=mask@entry=2, region=..., data=...) at ./plugins/scenes/opengl/scene_opengl.cpp:1487
#9  0x00007f1c321a4643 in KWin::SceneOpenGL2::performPaintWindow (this=<optimized out>, w=<optimized out>, mask=<optimized out>, region=..., data=...) at ./plugins/scenes/opengl/scene_opengl.cpp:1108
#10 0x00007f1c321a4777 in KWin::SceneOpenGL2::finalDrawWindow (this=this@entry=0x557c1c9dfab0, w=w@entry=0x557c1cbb3610, mask=mask@entry=2, region=..., data=...) at ./plugins/scenes/opengl/scene_opengl.cpp:1090
#11 0x00007f1c5ca3aa26 in KWin::EffectsHandlerImpl::drawWindow (this=this@entry=0x557c1cafbda0, w=w@entry=0x557c1cbb3610, mask=mask@entry=2, region=..., data=...) at ./effects.cpp:459
#12 0x00007f1c597d50d6 in KWin::ContrastEffect::drawWindow (this=this@entry=0x557c1c855ff0, w=w@entry=0x557c1cbb3610, mask=mask@entry=2, region=..., data=...) at ./effects/backgroundcontrast/contrast.cpp:424
#13 0x00007f1c5ca3a9be in KWin::EffectsHandlerImpl::drawWindow (this=this@entry=0x557c1cafbda0, w=w@entry=0x557c1cbb3610, mask=mask@entry=2, region=..., data=...) at ./effects.cpp:456
#14 0x00007f1c5973ea42 in KWin::BlurEffect::drawWindow (this=this@entry=0x7f1c34012360, w=w@entry=0x557c1cbb3610, mask=mask@entry=2, region=..., data=...) at ./effects/blur/blur.cpp:568
#15 0x00007f1c5ca3a9be in KWin::EffectsHandlerImpl::drawWindow (this=this@entry=0x557c1cafbda0, w=w@entry=0x557c1cbb3610, mask=mask@entry=2, region=..., data=...) at ./effects.cpp:456
#16 0x00007f1c5ca27830 in KWin::Scene::finalPaintWindow (this=this@entry=0x557c1c9dfab0, w=w@entry=0x557c1cbb3610, mask=mask@entry=2, region=..., data=...) at ./scene.cpp:606
#17 0x00007f1c5ca3a84d in KWin::EffectsHandlerImpl::paintWindow (this=this@entry=0x557c1cafbda0, w=w@entry=0x557c1cbb3610, mask=mask@entry=2, region=..., data=...) at ./effects.cpp:422
#18 0x00007f1c59a344a0 in KWin::Effect::paintWindow (this=this@entry=0x557c1c855ff0, w=w@entry=0x557c1cbb3610, mask=mask@entry=2, region=..., data=...) at ./libkwineffects/kwineffects.cpp:598
#19 0x00007f1c5ca3a7ee in KWin::EffectsHandlerImpl::paintWindow (this=this@entry=0x557c1cafbda0, w=w@entry=0x557c1cbb3610, mask=mask@entry=2, region=..., data=...) at ./effects.cpp:419
#20 0x00007f1c59a344a0 in KWin::Effect::paintWindow (this=this@entry=0x7f1c34012360, w=w@entry=0x557c1cbb3610, mask=mask@entry=2, region=..., data=...) at ./libkwineffects/kwineffects.cpp:598
#21 0x00007f1c5ca3a7ee in KWin::EffectsHandlerImpl::paintWindow (this=this@entry=0x557c1cafbda0, w=0x557c1cbb3610, mask=mask@entry=2, region=..., data=...) at ./effects.cpp:419
#22 0x00007f1c5ca2dba2 in KWin::Scene::paintWindow (this=this@entry=0x557c1c9dfab0, w=0x557c1cbdb370, mask=2, region=..., quads=...) at ./scene.cpp:478
#23 0x00007f1c5ca2c91c in KWin::Scene::paintSimpleScreen (this=this@entry=0x557c1c9dfab0, orig_mask=orig_mask@entry=0, region=...) at ./scene.cpp:376
#24 0x00007f1c32198c82 in KWin::SceneOpenGL2::paintSimpleScreen (this=this@entry=0x557c1c9dfab0, mask=mask@entry=0, region=...) at ./plugins/scenes/opengl/scene_opengl.cpp:1053
#25 0x00007f1c5ca2d137 in KWin::Scene::finalPaintScreen (this=this@entry=0x557c1c9dfab0, mask=mask@entry=0, region=..., data=...) at ./scene.cpp:201
#26 0x00007f1c5ca3a5a5 in KWin::EffectsHandlerImpl::paintScreen (this=this@entry=0x557c1cafbda0, mask=mask@entry=0, region=..., data=...) at ./effects.cpp:379
#27 0x00007f1c59a343f1 in KWin::Effect::paintScreen (this=this@entry=0x557c1c855ff0, mask=mask@entry=0, region=..., data=...) at ./libkwineffects/kwineffects.cpp:583
#28 0x00007f1c5ca3a54d in KWin::EffectsHandlerImpl::paintScreen (this=this@entry=0x557c1cafbda0, mask=mask@entry=0, region=..., data=...) at ./effects.cpp:376
#29 0x00007f1c59a343f1 in KWin::Effect::paintScreen (this=this@entry=0x7f1c34012360, mask=mask@entry=0, region=..., data=...) at ./libkwineffects/kwineffects.cpp:583
#30 0x00007f1c5ca3a54d in KWin::EffectsHandlerImpl::paintScreen (this=this@entry=0x557c1cafbda0, mask=0, region=..., data=...) at ./effects.cpp:376
#31 0x00007f1c5ca2ce2e in KWin::Scene::paintScreen (this=this@entry=0x557c1c9dfab0, mask=mask@entry=0x7ffeaa339490, damage=..., repaint=..., updateRegion=updateRegion@entry=0x7ffeaa339478, validRegion=validRegion@entry=0x7ffeaa339480, projection=..., outputGeometry=...) at ./scene.cpp:151
#32 0x00007f1c3219e531 in KWin::SceneOpenGL::paint (this=this@entry=0x557c1c9dfab0, damage=..., toplevels=...) at ./plugins/scenes/opengl/scene_opengl.cpp:702
#33 0x00007f1c5ca1f492 in KWin::Compositor::performCompositing (this=0x557c1c8062b0) at ./composite.cpp:745
#34 0x00007f1c5a28c5fb in QObject::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#35 0x00007f1c5afe9e8c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#36 0x00007f1c5aff145f in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#37 0x00007f1c5a25cab8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#38 0x00007f1c5a2b5f0e in QTimerInfoList::activateTimers() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#39 0x00007f1c5a2b4112 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#40 0x00007f1c458fb16d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#41 0x00007f1c5a25adea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#42 0x00007f1c5a263fa0 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#43 0x00007f1c5d1b1dab in kdemain (argc=<optimized out>, argv=0x7ffeaa339d18) at ./main_x11.cpp:468
#44 0x00007f1c5cdd9b97 in __libc_start_main (main=0x557c1bfe0720 <main>, argc=1, argv=0x7ffeaa339d18, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffeaa339d08) at ../csu/libc-start.c:310
#45 0x0000557c1bfe075a in _start ()

Possible duplicates by query: bug 375624.

Reported using DrKonqi
Comment 1 Martin Flöser 2018-10-20 05:18:57 UTC
*** Bug 400038 has been marked as a duplicate of this bug. ***
Comment 2 David Edmundson 2018-10-22 22:58:51 UTC
*** Bug 398860 has been marked as a duplicate of this bug. ***
Comment 3 David Edmundson 2018-10-22 22:59:06 UTC
*** Bug 400016 has been marked as a duplicate of this bug. ***
Comment 4 ascaris 2018-10-27 04:42:32 UTC
Created attachment 115915 [details]
New crash information added by DrKonqi

kwin_x11 (5.14.1) using Qt 5.11.2

- What I was doing when the application crashed:

Had just resumed from standby and logged in.  The little bug icon was already in the system tray when the lock screen was cleared.  Using proprietary Nvidia drivers.

-- Backtrace (Reduced):
#6  0x00007f9e7d9c9d7f in _mm_stream_si128(long long __vector(2)*, long long __vector(2)) (__B=..., __A=0x7f9e5415e940) at /usr/lib/gcc/x86_64-linux-gnu/7/include/emmintrin.h:1473
#7  KWin::WindowQuadList::makeInterleavedArrays (this=this@entry=0x7fff93ae8e18, type=type@entry=7, vertices=vertices@entry=0x7f9e5415e940, textureMatrix=...) at ./libkwineffects/kwineffects.cpp:1313
#8  0x00007f9e554eaa5b in KWin::SceneOpenGL2Window::performPaint (this=this@entry=0x565280d58640, mask=mask@entry=10, region=..., data=...) at ./plugins/scenes/opengl/scene_opengl.cpp:1487
#9  0x00007f9e554f3f13 in KWin::SceneOpenGL2::performPaintWindow (this=<optimized out>, w=<optimized out>, mask=<optimized out>, region=..., data=...) at ./plugins/scenes/opengl/scene_opengl.cpp:1108
#10 0x00007f9e554f4047 in KWin::SceneOpenGL2::finalDrawWindow (this=this@entry=0x565280efab00, w=w@entry=0x56528113cba0, mask=mask@entry=10, region=..., data=...) at ./plugins/scenes/opengl/scene_opengl.cpp:1090
Comment 5 Vlad Zahorodnii 2018-11-07 10:10:15 UTC
*** Bug 400790 has been marked as a duplicate of this bug. ***
Comment 6 mich.delbianco 2018-11-08 16:31:11 UTC
Created attachment 116184 [details]
New crash information added by DrKonqi

kwin_x11 (5.12.6) using Qt 5.9.5

- What I was doing when the application crashed:
resuming from suspension to ram (stand-by)
- Unusual behavior I noticed:
alpha layer becomes noisy (windows using opengl or desktop icons with didascaly), i think this is caused by nvidia driver miscommunication
- Custom settings of the application:
nvidia driver 390.77

-- Backtrace (Reduced):
#6  0x00007f0e604fd2af in KWin::WindowQuadList::makeInterleavedArrays(unsigned int, KWin::GLVertex2D*, QMatrix4x4 const&) const () from /usr/lib/x86_64-linux-gnu/libkwineffects.so.11
[...]
#10 0x00007f0e634f2956 in KWin::EffectsHandlerImpl::drawWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () from /usr/lib/x86_64-linux-gnu/libkwin.so.5
#11 0x00007f0e604f9620 in KWin::Effect::drawWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () from /usr/lib/x86_64-linux-gnu/libkwineffects.so.11
#12 0x00007f0e634f28ee in KWin::EffectsHandlerImpl::drawWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () from /usr/lib/x86_64-linux-gnu/libkwin.so.5
[...]
#14 0x00007f0e634f28ee in KWin::EffectsHandlerImpl::drawWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () from /usr/lib/x86_64-linux-gnu/libkwin.so.5
Comment 7 Vlad Zahorodnii 2018-11-21 09:09:07 UTC
*** Bug 401256 has been marked as a duplicate of this bug. ***
Comment 8 ascaris 2018-11-21 14:56:55 UTC
Created attachment 116449 [details]
New crash information added by DrKonqi

kwin_x11 (5.14.3) using Qt 5.11.2

- What I was doing when the application crashed:

Resuming from standby.  As soon as I finished entering the unlock password, the ladybug icon indicating the kwin crash was already there in the systray.

-- Backtrace (Reduced):
#6  0x00007f5286d83d7f in _mm_stream_si128(long long __vector(2)*, long long __vector(2)) (__B=..., __A=0x7f51b2e46460) at /usr/lib/gcc/x86_64-linux-gnu/7/include/emmintrin.h:1473
#7  KWin::WindowQuadList::makeInterleavedArrays (this=this@entry=0x7ffc7277e3a8, type=type@entry=7, vertices=vertices@entry=0x7f51b2e46460, textureMatrix=...) at ./libkwineffects/kwineffects.cpp:1313
#8  0x00007f51cb0daa5b in KWin::SceneOpenGL2Window::performPaint (this=this@entry=0x55588e5842b0, mask=mask@entry=2, region=..., data=...) at ./plugins/scenes/opengl/scene_opengl.cpp:1487
#9  0x00007f51cb0e3f13 in KWin::SceneOpenGL2::performPaintWindow (this=<optimized out>, w=<optimized out>, mask=<optimized out>, region=..., data=...) at ./plugins/scenes/opengl/scene_opengl.cpp:1108
#10 0x00007f51cb0e4047 in KWin::SceneOpenGL2::finalDrawWindow (this=this@entry=0x555890876be0, w=w@entry=0x55588dfda1c0, mask=mask@entry=2, region=..., data=...) at ./plugins/scenes/opengl/scene_opengl.cpp:1090
Comment 9 ascaris 2018-12-07 23:40:16 UTC
Created attachment 116743 [details]
New crash information added by DrKonqi

kwin_x11 (5.14.4) using Qt 5.11.2

- What I was doing when the application crashed:

Just resumed from sleep.  Oddly, it only happens when I am using any window decoration theme OTHER than Breeze.  When I use Breeze, this crash doesn't happen, and the icon captions do not get corrupted as they do with the others.

-- Backtrace (Reduced):
#6  0x00007f33ceb24d7f in _mm_stream_si128(long long __vector(2)*, long long __vector(2)) (__B=..., __A=0x7f33a4adda50) at /usr/lib/gcc/x86_64-linux-gnu/7/include/emmintrin.h:1473
#7  KWin::WindowQuadList::makeInterleavedArrays (this=this@entry=0x7ffdab2c7c10, type=type@entry=7, vertices=vertices@entry=0x7f33a4adda50, textureMatrix=...) at ./libkwineffects/kwineffects.cpp:1313
#8  0x00007f33a5fa7a5b in KWin::SceneOpenGL2Window::performPaint (this=this@entry=0x563f2f01d990, mask=mask@entry=2, region=..., data=...) at ./plugins/scenes/opengl/scene_opengl.cpp:1487
#9  0x00007f33a5fb0f13 in KWin::SceneOpenGL2::performPaintWindow (this=<optimized out>, w=<optimized out>, mask=<optimized out>, region=..., data=...) at ./plugins/scenes/opengl/scene_opengl.cpp:1108
#10 0x00007f33a5fb1047 in KWin::SceneOpenGL2::finalDrawWindow (this=this@entry=0x563f2f041a50, w=w@entry=0x563f2eb1a3c0, mask=mask@entry=2, region=..., data=...) at ./plugins/scenes/opengl/scene_opengl.cpp:1090
Comment 10 Vlad Zahorodnii 2018-12-16 19:01:24 UTC
*** Bug 402180 has been marked as a duplicate of this bug. ***
Comment 11 Vlad Zahorodnii 2018-12-28 12:07:03 UTC
*** Bug 402643 has been marked as a duplicate of this bug. ***
Comment 12 David Edmundson 2018-12-30 23:38:46 UTC
*** Bug 402567 has been marked as a duplicate of this bug. ***
Comment 13 Vlad Zahorodnii 2019-01-11 10:36:06 UTC
*** Bug 403095 has been marked as a duplicate of this bug. ***
Comment 14 David Edmundson 2019-01-28 09:10:42 UTC
*** Bug 403673 has been marked as a duplicate of this bug. ***
Comment 15 Vlad Zahorodnii 2019-02-05 10:49:56 UTC
*** Bug 403952 has been marked as a duplicate of this bug. ***
Comment 16 Vlad Zahorodnii 2019-02-21 15:43:16 UTC
*** Bug 404645 has been marked as a duplicate of this bug. ***
Comment 17 Vlad Zahorodnii 2019-03-06 08:30:24 UTC
*** Bug 404738 has been marked as a duplicate of this bug. ***
Comment 18 Vlad Zahorodnii 2019-03-13 14:55:32 UTC
*** Bug 405427 has been marked as a duplicate of this bug. ***
Comment 19 techxgames 2019-06-05 19:03:37 UTC
Created attachment 120605 [details]
Crash report on Kubuntu 19.04 after waking up from sleep

This is also happening after waking up from sleep on my Kubuntu 19.04 PC

Operating System: Kubuntu 19.04
KDE Plasma Version: 5.15.5
KDE Frameworks Version: 5.57.0
Qt Version: 5.12.2
Kernel Version: 5.0.0-16-generic
OS Type: 64-bit
Processors: 4 × Intel® Core™ i5-6500 CPU @ 3.20GHz
Memory: 15.6 GiB of RAM
GPU: GeForce GTX 1060 6GB (NVIDIA 430 driver)
Comment 20 Nate Graham 2019-07-25 13:23:20 UTC
*** Bug 409864 has been marked as a duplicate of this bug. ***
Comment 21 Nate Graham 2019-07-25 13:23:25 UTC
*** Bug 410171 has been marked as a duplicate of this bug. ***
Comment 22 Frederik Gladhorn 2019-08-12 07:02:15 UTC
I would guess this is an alignment issue, see the Intel Intrinsics Guide:
https://software.intel.com/sites/landingpage/IntrinsicsGuide/#text=load_si128&expand=5191,3063,5661,3343
Load 128-bits of integer data from memory into dst using a non-temporal memory hint. mem_addr must be aligned on a 16-byte boundary or a general-protection exception may be generated.

In other words: we should check the alignment of dstP as far as I can tell.
Comment 23 Frederik Gladhorn 2019-08-13 07:14:12 UTC
I guess my previous comment can be discarded, looking at the backtraces, the pointers seem to be aligned, this is puzzling. I cannot reproduce it.
Comment 24 Vlad Zahorodnii 2019-08-14 20:14:39 UTC
*** Bug 410884 has been marked as a duplicate of this bug. ***
Comment 25 Vlad Zahorodnii 2019-08-27 05:33:09 UTC
@Frederik My guess is that we don't reset GLVertexBuffer::streamingBuffer() on a graphics reset.
Comment 26 David Edmundson 2019-08-28 11:30:57 UTC
*** Bug 411385 has been marked as a duplicate of this bug. ***
Comment 27 David Edmundson 2019-08-28 11:35:36 UTC
I did some more graphics reset patches in Qt and I think our handling is wrong.

The reset flag is set on until you call makeCurrent a second time, then it's cleared.

We have a tonne of places, especially screen change handling code, that calls makeCurrent without a graphics reset check. My theory is that if we get in here, we could have a reset that we don't handle.

I'll flood my kwin with qDebug and see if I can trigger that happening.
Comment 28 David Edmundson 2019-08-28 22:12:11 UTC
Edit: I was talking nonsense.
Comment 29 Unknown 2019-08-28 22:55:40 UTC
I’ve moved on from Plasma since I started using a notebook. I’m going to close this issue for now.
Comment 30 David Edmundson 2019-08-29 13:59:25 UTC
*** Bug 411420 has been marked as a duplicate of this bug. ***
Comment 31 David Edmundson 2019-09-03 14:16:39 UTC
Shot in the dark, but is anyone who can readibly reproduce this bug going to Akademy?
Comment 32 Vlad Zahorodnii 2019-09-10 07:32:38 UTC
*** Bug 411781 has been marked as a duplicate of this bug. ***
Comment 33 Vlad Zahorodnii 2019-10-02 08:36:25 UTC
*** Bug 412528 has been marked as a duplicate of this bug. ***
Comment 34 David Edmundson 2019-10-12 13:59:19 UTC
*** Bug 412773 has been marked as a duplicate of this bug. ***
Comment 35 David Edmundson 2019-10-20 00:28:39 UTC
*** Bug 413214 has been marked as a duplicate of this bug. ***
Comment 36 David Edmundson 2019-10-20 00:28:43 UTC
*** Bug 413153 has been marked as a duplicate of this bug. ***
Comment 37 David Edmundson 2019-10-20 00:43:38 UTC
Can someone who can reproduce this run


QT_LOGGING_RULES="kwin_scene_opengl.debug=true;libkwinglutils.debug=true'" kwin_x11 --replace

from a terminal trigger a crash and then paste the whole output here please.
Comment 38 Vlad Zahorodnii 2019-10-24 08:54:14 UTC
*** Bug 413381 has been marked as a duplicate of this bug. ***
Comment 39 Gennadiy 2019-10-24 14:12:14 UTC
(In reply to David Edmundson from comment #37)
> Can someone who can reproduce this run
> from a terminal trigger a crash and then paste the whole output here please.

sudo QT_LOGGING_RULES="kwin_scene_opengl.debug=true;libkwinglutils.debug=true'" kwin_x11 --replace
[sudo] password for : 
qt.core.logging: Ignoring malformed logging rule: 'libkwinglutils.debug=true'"'
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
kwin_xkbcommon: XKB: couldn't find a Compose file for locale "en_GB.UTF-8,"

QPainter::begin: Paint device returned engine == 0, type: 3
QPainter::setRenderHint: Painter must be active to set rendering hints
QPainter::setWindow: Painter not active
QPainter::setClipRect: Painter not active
QPainter::save: Painter not active
QPainter::setRenderHint: Painter must be active to set rendering hints
QPainter::setPen: Painter not active
QPainter::setBrush: Painter not active
QPainter::setClipRect: Painter not active
QPainter::drawRects: Painter not active
QPainter::restore: Unbalanced save/restore
QPainter::save: Painter not active
QPainter::setRenderHint: Painter must be active to set rendering hints
QPainter::setBrush: Painter not active
QPainter::setPen: Painter not active
QPainter::drawRects: Painter not active
QPainter::restore: Unbalanced save/restore
QPainter::begin: Paint device returned engine == 0, type: 3
QPainter::setRenderHint: Painter must be active to set rendering hints
QPainter::setWindow: Painter not active
QPainter::setClipRect: Painter not active
QPainter::save: Painter not active
QPainter::setRenderHint: Painter must be active to set rendering hints
QPainter::setPen: Painter not active
QPainter::setBrush: Painter not active
QPainter::setClipRect: Painter not active
QPainter::drawRects: Painter not active
QPainter::restore: Unbalanced save/restore
QPainter::save: Painter not active
QPainter::setRenderHint: Painter must be active to set rendering hints
QPainter::setBrush: Painter not active
QPainter::setPen: Painter not active
QPainter::drawRects: Painter not active
QPainter::restore: Unbalanced save/restore
QPainter::begin: Paint device returned engine == 0, type: 3
QPainter::setRenderHint: Painter must be active to set rendering hints
QPainter::setWindow: Painter not active
QPainter::setClipRect: Painter not active
QPainter::save: Painter not active
QPainter::setRenderHint: Painter must be active to set rendering hints
QPainter::setPen: Painter not active
QPainter::setBrush: Painter not active
QPainter::setClipRect: Painter not active
QPainter::drawRects: Painter not active
QPainter::restore: Unbalanced save/restore
QPainter::save: Painter not active
QPainter::setRenderHint: Painter must be active to set rendering hints
QPainter::setBrush: Painter not active
QPainter::setPen: Painter not active
QPainter::drawRects: Painter not active
QPainter::restore: Unbalanced save/restore
OpenGL vendor string:                   NVIDIA Corporation
OpenGL renderer string:                 GeForce 940MX/PCIe/SSE2
OpenGL version string:                  4.6.0 NVIDIA 430.50
OpenGL shading language version string: 4.60 NVIDIA
Driver:                                 NVIDIA
Driver version:                         430.50
GPU class:                              Unknown
OpenGL version:                         4.6
GLSL version:                           4.60
X server version:                       1.20.4
Linux kernel version:                   5.2
Requires strict binding:                no
GLSL shaders:                           yes
Texture NPOT support:                   yes
Virtual Machine:                        no
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1590, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1591, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1592, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1594, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1596, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1597, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1600, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1601, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1602, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1604, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1606, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1607, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 1694, resource id: 113246239, major code: 3 (GetWindowAttributes), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1695, resource id: 113246239, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 1718, resource id: 23068677, major code: 18 (ChangeProperty), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1868, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1869, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1874, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1875, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1922, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1923, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1924, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1926, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1928, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1929, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 4997, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 4998, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 4999, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 5000, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 5001, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 5002, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 5003, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 21446, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 21911, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 21912, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 21913, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 21914, resource id: 0, major code: 14 (GetGeometry), minor code: 0
kf5.kcoreaddons.kdirwatch: Cannot watch QRC-like path ":/icons/hicolor/index.theme"
file:///usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/windowswitcher/WindowSwitcher.qml:44:19: QML ScrollView: Binding loop detected for property "height"
file:///usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/windowswitcher/WindowSwitcher.qml:44:19: QML ScrollView: Binding loop detected for property "height"
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 23891, resource id: 113247936, major code: 3 (GetWindowAttributes), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 23895, resource id: 113247936, major code: 3 (GetWindowAttributes), minor code: 0
Comment 40 David Edmundson 2019-10-24 14:43:29 UTC
There's no need to run things as root.

>qt.core.logging: Ignoring malformed logging rule: 'libkwinglutils.debug=true'"'

Heh, my fault

QT_LOGGING_RULES="kwin_scene_opengl.debug=true;libkwinglutils.debug=true" kwin_x11 --replace
Comment 41 Gennadiy 2019-10-24 15:01:57 UTC
(In reply to David Edmundson from comment #40)
> There's no need to run things as root.
> 
> >qt.core.logging: Ignoring malformed logging rule: 'libkwinglutils.debug=true'"'
> 
> Heh, my fault
And I, in turn, didn't check what was being run as su :)) 

>QT_LOGGING_RULES="kwin_scene_opengl.debug=true;libkwinglutils.debug=true" kwin_x11 --replace

QT_LOGGING_RULES="kwin_scene_opengl.debug=true;libkwinglutils.debug=true" kwin_x11 --replace
kwin_xkbcommon: XKB: couldn't find a Compose file for locale "en_GB.UTF-8,"

Module 'org.kde.kwin.decoration' does not contain a module identifier directive - it cannot be protected from external registrations.
kwin_scene_opengl: Initializing OpenGL compositing
OpenGL vendor string:                   NVIDIA Corporation
OpenGL renderer string:                 GeForce 940MX/PCIe/SSE2
OpenGL version string:                  4.6.0 NVIDIA 430.50
OpenGL shading language version string: 4.60 NVIDIA
Driver:                                 NVIDIA
Driver version:                         430.50
GPU class:                              Unknown
OpenGL version:                         4.6
GLSL version:                           4.60
X server version:                       1.20.4
Linux kernel version:                   5.2
Requires strict binding:                no
GLSL shaders:                           yes
Texture NPOT support:                   yes
Virtual Machine:                        no
kwin_scene_opengl: 0x0: OpenGL debug output initialized
kwin_scene_opengl: Initializing fences for synchronization with the X command stream
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 1 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_DYNAMIC_DRAW) will use SYSTEM HEAP memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 1 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_DYNAMIC_DRAW) has been mapped WRITE_ONLY in SYSTEM HEAP memory (fast).
kwin_scene_opengl: OpenGL 2 compositing successfully initialized
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 2 (bound to GL_ELEMENT_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20084: Texture state usage warning: The texture object (0) bound to texture image unit 0 does not have a defined base level and cannot be used for texture mapping.
kwin_scene_opengl: 0x20092: Program/shader state performance warning: Vertex shader in program 1 is being recompiled based on GL state.
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1350, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1351, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1352, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1354, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1356, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1357, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1360, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1361, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1362, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1364, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1366, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1367, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 1438, resource id: 85983260, major code: 3 (GetWindowAttributes), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1439, resource id: 85983260, major code: 14 (GetGeometry), minor code: 0
kwin_scene_opengl: 0x20084: Texture state usage warning: The texture object (0) bound to texture image unit 0 does not have a defined base level and cannot be used for texture mapping.
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1563, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1564, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1567, resource id: 0, major code: 14 (GetGeometry), minor code: 0
kwin_scene_opengl: 0x20084: Texture state usage warning: The texture object (0) bound to texture image unit 0 does not have a defined base level and cannot be used for texture mapping.
kwin_scene_opengl: 0x20092: Program/shader state performance warning: Vertex shader in program 10 is being recompiled based on GL state.
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 6045, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 6050, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 6051, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 6052, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 6108, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 6109, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 6113, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 6114, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 6115, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 6136, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 6137, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 6142, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 6143, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 6146, resource id: 0, major code: 14 (GetGeometry), minor code: 0
file:///usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/windowswitcher/WindowSwitcher.qml:44:19: QML ScrollView: Binding loop detected for property "height"
file:///usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/windowswitcher/WindowSwitcher.qml:44:19: QML ScrollView: Binding loop detected for property "height"
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 7585, resource id: 85983758, major code: 3 (GetWindowAttributes), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 7589, resource id: 85983758, major code: 3 (GetWindowAttributes), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 7590, resource id: 85983758, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 7942, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 8090, resource id: 85983766, major code: 20 (GetProperty), minor code: 0
kwin_scene_opengl: Triple buffering detection: "Available"  - Mean block time: 0.770832 ms
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 61538, resource id: 0, major code: 14 (GetGeometry), minor code: 0
Comment 42 David Edmundson 2019-10-24 15:06:33 UTC
That was running up to the point of the crash?
Comment 43 Gennadiy 2019-10-24 16:09:33 UTC
(In reply to David Edmundson from comment #42)
> That was running up to the point of the crash?

Sorry, seems like I am stupid enough. Looks like this time I caught the crash, didn't I?

QT_LOGGING_RULES="kwin_scene_opengl.debug=true;libkwinglutils.debug=true" kwin_x11 --replace 
kwin_xkbcommon: XKB: couldn't find a Compose file for locale "en_GB.UTF-8,"

Module 'org.kde.kwin.decoration' does not contain a module identifier directive - it cannot be protected from external registrations.
kwin_scene_opengl: Initializing OpenGL compositing
OpenGL vendor string:                   NVIDIA Corporation
OpenGL renderer string:                 GeForce 940MX/PCIe/SSE2
OpenGL version string:                  4.6.0 NVIDIA 430.50
OpenGL shading language version string: 4.60 NVIDIA
Driver:                                 NVIDIA
Driver version:                         430.50
GPU class:                              Unknown
OpenGL version:                         4.6
GLSL version:                           4.60
X server version:                       1.20.4
Linux kernel version:                   5.2
Requires strict binding:                no
GLSL shaders:                           yes
Texture NPOT support:                   yes
Virtual Machine:                        no
kwin_scene_opengl: 0x0: OpenGL debug output initialized
kwin_scene_opengl: Initializing fences for synchronization with the X command stream
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 1 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_DYNAMIC_DRAW) will use SYSTEM HEAP memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 1 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_DYNAMIC_DRAW) has been mapped WRITE_ONLY in SYSTEM HEAP memory (fast).
kwin_scene_opengl: OpenGL 2 compositing successfully initialized
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 2 (bound to GL_ELEMENT_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20084: Texture state usage warning: The texture object (0) bound to texture image unit 0 does not have a defined base level and cannot be used for texture mapping.
kwin_scene_opengl: 0x20092: Program/shader state performance warning: Vertex shader in program 1 is being recompiled based on GL state.
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1350, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1351, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1352, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1354, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1356, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1357, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1360, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1361, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1362, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1364, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1366, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1367, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 1438, resource id: 71303196, major code: 3 (GetWindowAttributes), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1439, resource id: 71303196, major code: 14 (GetGeometry), minor code: 0
kwin_scene_opengl: 0x20084: Texture state usage warning: The texture object (0) bound to texture image unit 0 does not have a defined base level and cannot be used for texture mapping.
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1570, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1571, resource id: 0, major code: 14 (GetGeometry), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1572, resource id: 0, major code: 14 (GetGeometry), minor code: 0
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 1 (bound to GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB (0), GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB (1), and GL_ARRAY_BUFFER_ARB, usage hint is GL_DYNAMIC_DRAW) stored in HOST MEMORY has been updated.
kwin_scene_opengl: 0x20092: Program/shader state performance warning: Fragment shader in program 16 is being recompiled based on GL state.
kwin_scene_opengl: 0x20092: Program/shader state performance warning: Vertex shader in program 16 is being recompiled based on GL state.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 1 (bound to GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB (0), GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB (1), and GL_ARRAY_BUFFER_ARB, usage hint is GL_DYNAMIC_DRAW) stored in SYSTEM HEAP memory has been updated.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 1 (bound to GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB (0), GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB (1), and GL_ARRAY_BUFFER_ARB, usage hint is GL_DYNAMIC_DRAW) will use SYSTEM HEAP memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 1 (bound to GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB (0), GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING_ARB (1), and GL_ARRAY_BUFFER_ARB, usage hint is GL_DYNAMIC_DRAW) will use SYSTEM HEAP memory as the source for buffer object operations.
kwin_scene_opengl: 0x20092: Program/shader state performance warning: Fragment shader in program 19 is being recompiled based on GL state.
kwin_scene_opengl: 0x20092: Program/shader state performance warning: Vertex shader in program 19 is being recompiled based on GL state.
kwin_scene_opengl: 0x20092: Program/shader state performance warning: Fragment shader in program 25 is being recompiled based on GL state.
kwin_scene_opengl: 0x20092: Program/shader state performance warning: Vertex shader in program 25 is being recompiled based on GL state.
Application::crashHandler() called with signal 11; recent crashes: 1
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = kwin_x11 path = /usr/bin pid = 2366
KCrash: Arguments: /usr/bin/kwin_x11 --replace 
KCrash: Attempting to start /usr/lib/x86_64-linux-gnu/libexec/drkonqi from kdeinit
sock_file=/run/user/1000/kdeinit5__0
kwin_xkbcommon: XKB: couldn't find a Compose file for locale "en_GB.UTF-8,"

Module 'org.kde.kwin.decoration' does not contain a module identifier directive - it cannot be protected from external registrations.
kwin_scene_opengl: Initializing OpenGL compositing
OpenGL vendor string:                   NVIDIA Corporation
OpenGL renderer string:                 GeForce 940MX/PCIe/SSE2
Comment 44 David Edmundson 2019-10-24 16:27:49 UTC
That's perfect, thanks.

What's important above is the line we don't see in this output:

qCWarning(LIBKWINGLUTILS) << "GL error: context lost";
Comment 45 Gennadiy 2019-10-24 17:03:48 UTC
Maybe I haven't got some debug packages? I have had libkwinglutils11-dbgsym and some more qt5 dbgsym packages, but should I have something special?
Comment 46 Mateus N. Coelho 2019-10-25 14:36:16 UTC
(In reply to David Edmundson from comment #37)
> Can someone who can reproduce this run
> 
> 
> QT_LOGGING_RULES="kwin_scene_opengl.debug=true;libkwinglutils.debug=true'"
> kwin_x11 --replace
> 
> from a terminal trigger a crash and then paste the whole output here please.

qt.core.logging: Ignoring malformed logging rule: 'libkwinglutils.debug=true''
Module 'org.kde.kwin.decoration' does not contain a module identifier directive - it cannot be protected from external registrations.
kwin_scene_opengl: Initializing OpenGL compositing
OpenGL vendor string:                   NVIDIA Corporation
OpenGL renderer string:                 GeForce MX130/PCIe/SSE2
OpenGL version string:                  4.6.0 NVIDIA 430.26
OpenGL shading language version string: 4.60 NVIDIA
Driver:                                 NVIDIA
Driver version:                         430.26
GPU class:                              Unknown
OpenGL version:                         4.6
GLSL version:                           4.60
X server version:                       1.20.4
Linux kernel version:                   5.0
Requires strict binding:                no
GLSL shaders:                           yes
Texture NPOT support:                   yes
Virtual Machine:                        no
kwin_scene_opengl: 0x0: OpenGL debug output initialized
kwin_scene_opengl: Initializing fences for synchronization with the X command stream
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 1 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_DYNAMIC_DRAW) will use SYSTEM HEAP memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 1 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_DYNAMIC_DRAW) has been mapped WRITE_ONLY in SYSTEM HEAP memory (fast).
kwin_scene_opengl: OpenGL 2 compositing successfully initialized
kf5.kcoreaddons.desktopparser: Property type "Url" is not a known QVariant type. Found while parsing property definition for "X-KWin-Video-Url" in "/usr/share/kservicetypes5/kwineffect.desktop"
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 2 (bound to GL_ELEMENT_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20084: Texture state usage warning: The texture object (0) bound to texture image unit 0 does not have a defined base level and cannot be used for texture mapping.
kwin_scene_opengl: 0x20092: Program/shader state performance warning: Vertex shader in program 1 is being recompiled based on GL state.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
QXcbConnection: XCB error: 3 (BadWindow), sequence: 5797, resource id: 31457300, major code: 18 (ChangeProperty), minor code: 0
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 3 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: Attempting to reset compositing.
kwin_scene_opengl: Initializing OpenGL compositing
OpenGL vendor string:                   NVIDIA Corporation
OpenGL renderer string:                 GeForce MX130/PCIe/SSE2
OpenGL version string:                  4.6.0 NVIDIA 430.26
OpenGL shading language version string: 4.60 NVIDIA
Driver:                                 NVIDIA
Driver version:                         430.26
GPU class:                              Unknown
OpenGL version:                         4.6
GLSL version:                           4.60
X server version:                       1.20.4
Linux kernel version:                   5.0
Requires strict binding:                no
GLSL shaders:                           yes
Texture NPOT support:                   yes
Virtual Machine:                        no
kwin_scene_opengl: 0x0: OpenGL debug output initialized
kwin_scene_opengl: Initializing fences for synchronization with the X command stream
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 1 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_DYNAMIC_DRAW) will use SYSTEM HEAP memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 1 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_DYNAMIC_DRAW) has been mapped WRITE_ONLY in SYSTEM HEAP memory (fast).
kwin_scene_opengl: OpenGL 2 compositing successfully initialized
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 2 (bound to GL_ELEMENT_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
BlurConfig::instance called after the first use - ignoring
kwin_scene_opengl: 0x20084: Texture state usage warning: The texture object (0) bound to texture image unit 0 does not have a defined base level and cannot be used for texture mapping.
kwin_scene_opengl: 0x20092: Program/shader state performance warning: Vertex shader in program 1 is being recompiled based on GL state.
CoverSwitchConfig::instance called after the first use - ignoring
QXcbConnection: XCB error: 3 (BadWindow), sequence: 6880, resource id: 92274692, major code: 18 (ChangeProperty), minor code: 0
DesktopGridConfig::instance called after the first use - ignoring
QXcbConnection: XCB error: 3 (BadWindow), sequence: 7098, resource id: 94371844, major code: 18 (ChangeProperty), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 7300, resource id: 96468996, major code: 18 (ChangeProperty), minor code: 0
FlipSwitchConfig::instance called after the first use - ignoring
KscreenConfig::instance called after the first use - ignoring
PresentWindowsConfig::instance called after the first use - ignoring
SheetConfig::instance called after the first use - ignoring
SlideConfig::instance called after the first use - ignoring
SlidingPopupsConfig::instance called after the first use - ignoring
ZoomConfig::instance called after the first use - ignoring
kwin_scene_opengl: Attempting to reset compositing.
QXcbConnection: XCB error: 3 (BadWindow), sequence: 8319, resource id: 31457313, major code: 18 (ChangeProperty), minor code: 0
kwin_scene_opengl: Initializing OpenGL compositing
OpenGL vendor string:                   NVIDIA Corporation
OpenGL renderer string:                 GeForce MX130/PCIe/SSE2
OpenGL version string:                  4.6.0 NVIDIA 430.26
OpenGL shading language version string: 4.60 NVIDIA
Driver:                                 NVIDIA
Driver version:                         430.26
GPU class:                              Unknown
OpenGL version:                         4.6
GLSL version:                           4.60
X server version:                       1.20.4
Linux kernel version:                   5.0
Requires strict binding:                no
GLSL shaders:                           yes
Texture NPOT support:                   yes
Virtual Machine:                        no
kwin_scene_opengl: 0x0: OpenGL debug output initialized
kwin_scene_opengl: Initializing fences for synchronization with the X command stream
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 1 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_DYNAMIC_DRAW) will use SYSTEM HEAP memory as the source for buffer object operations.
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 1 (bound to GL_ARRAY_BUFFER_ARB, usage hint is GL_DYNAMIC_DRAW) has been mapped WRITE_ONLY in SYSTEM HEAP memory (fast).
kwin_scene_opengl: OpenGL 2 compositing successfully initialized
kwin_scene_opengl: 0x20071: Buffer detailed info: Buffer object 2 (bound to GL_ELEMENT_ARRAY_BUFFER_ARB, usage hint is GL_STATIC_DRAW) will use VIDEO memory as the source for buffer object operations.
kwin_scene_opengl: 0x20084: Texture state usage warning: The texture object (0) bound to texture image unit 0 does not have a defined base level and cannot be used for texture mapping.
kwin_scene_opengl: 0x20092: Program/shader state performance warning: Vertex shader in program 1 is being recompiled based on GL state.
BlurConfig::instance called after the first use - ignoring
CoverSwitchConfig::instance called after the first use - ignoring
DesktopGridConfig::instance called after the first use - ignoring
FlipSwitchConfig::instance called after the first use - ignoring
KscreenConfig::instance called after the first use - ignoring
PresentWindowsConfig::instance called after the first use - ignoring
SheetConfig::instance called after the first use - ignoring
SlideConfig::instance called after the first use - ignoring
SlidingPopupsConfig::instance called after the first use - ignoring
ZoomConfig::instance called after the first use - ignoring
QXcbConnection: XCB error: 3 (BadWindow), sequence: 11511, resource id: 90178286, major code: 3 (GetWindowAttributes), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 11512, resource id: 90178286, major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 11515, resource id: 90178286, major code: 3 (GetWindowAttributes), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 11516, resource id: 90178286, major code: 14 (GetGeometry), minor code: 0
Comment 47 Vlad Zahorodnii 2019-10-31 11:03:57 UTC
*** Bug 413546 has been marked as a duplicate of this bug. ***
Comment 48 diminombre@gmail.com 2019-11-10 17:01:29 UTC
After last Update KDE Neon 5.17.2
the folders and files names on desktop now looks fine (not strange colors and pixels)
the kwin keep crashing and restarting after reactive from suspend, but the names now are better.
Comment 49 Vlad Zahorodnii 2019-11-18 12:46:43 UTC
*** Bug 413997 has been marked as a duplicate of this bug. ***
Comment 50 Vlad Zahorodnii 2019-11-18 13:54:40 UTC
*** Bug 413917 has been marked as a duplicate of this bug. ***
Comment 51 Vlad Zahorodnii 2019-11-25 06:45:53 UTC
*** Bug 414480 has been marked as a duplicate of this bug. ***
Comment 52 Vlad Zahorodnii 2019-11-25 06:50:21 UTC
*** Bug 414457 has been marked as a duplicate of this bug. ***
Comment 53 Vlad Zahorodnii 2019-11-25 06:51:10 UTC
*** Bug 414434 has been marked as a duplicate of this bug. ***
Comment 54 Vlad Zahorodnii 2019-12-15 13:36:44 UTC
Alright, the streaming vertex buffer should be okay after a graphics reset since the GlxBackend destroys it, which leaves with another option - perhaps kwin attempts to render something before it has a chance to process the Scene::resetCompositing signal. I have ordered an NVIDIA video card, so hopefully I'll be able to investigate this problem more thoroughly soon.
Comment 55 Vlad Zahorodnii 2020-01-08 00:00:11 UTC
So, I've been running nvidia for quite a while and haven't managed to reproduce the crash yet. Each time a graphics reset occurs, KWin recovers from it successfully. :(

I'm not sure whether I should be happy or sad about it.
Comment 56 David Edmundson 2020-01-10 14:51:19 UTC
Git commit 212d87a32ef15b9baf6102060639c06fa580e965 by David Edmundson.
Committed on 10/01/2020 at 14:24.
Pushed by davidedmundson into branch 'master'.

[scenes/opengl] Remove outdated hack to reset vertex buffers

Summary:
Scene opengl has a callback for when we have a GL error. One of the
handlers for an error calls scheduleVboReInit the history shows it was a
forerunner to the GLX_NV_robustness_video_memory_purge but resetting
only one tiny part based on debug output.

When we get here we schedule a reset of the vertex buffer, via a timer.
When the timer is caled we have no idea what GL context was last
current, if it's not the currect context then the main scene
GLVertexBuffer will be deleted but not correctly re-initialised.

We have two very common crashes with a corrupted
GLVertexBuffer::streamingBuffer() which would match up perfectly.

Given that we now have a proper mechanism to reset the entire scene, we
don't need this timer based hack and resolve that problem.
Related: bug 372305

Reviewers: #kwin

Subscribers: kwin

Tags: #kwin

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

M  +0    -31   plugins/scenes/opengl/scene_opengl.cpp

https://commits.kde.org/kwin/212d87a32ef15b9baf6102060639c06fa580e965
Comment 57 David Edmundson 2020-01-10 14:52:05 UTC
Note, I could not reproduce this crash and this fix is based on a strong theory. 

If we get a duplicate with Plasma 5.18beta or newer, please reopen.
Comment 58 Vlad Zahorodnii 2020-01-13 23:04:07 UTC
*** Bug 416203 has been marked as a duplicate of this bug. ***
Comment 59 Vlad Zahorodnii 2020-05-18 08:38:09 UTC
*** Bug 421666 has been marked as a duplicate of this bug. ***
Comment 60 Vlad Zahorodnii 2020-05-29 14:15:38 UTC
*** Bug 422028 has been marked as a duplicate of this bug. ***
Comment 61 Elvis 2020-09-30 10:10:02 UTC
Created attachment 132020 [details]
New crash information added by DrKonqi

kwin_x11 (5.19.4) using Qt 5.14.2

- What I was doing when the application crashed:The laptop  had suspended and upon relogin, the Kwin crashed, Chrome and other software had render issues too.

-- Backtrace (Reduced):
#4  0x00007f472f45244f in _mm_stream_si128(long long __vector(2)*, long long __vector(2)) (__B=..., __A=0x7f4700ac65f0) at /usr/lib/gcc/x86_64-linux-gnu/7/include/emmintrin.h:1474
#5  KWin::WindowQuadList::makeInterleavedArrays (this=this@entry=0x7f4714032760, type=type@entry=7, vertices=vertices@entry=0x7f4700ac65f0, textureMatrix=...) at ./libkwineffects/kwineffects.cpp:1158
#6  0x00007f471027b5b0 in KWin::OpenGLWindow::performPaint (this=0x5618a779cd50, mask=<optimized out>, region=..., _data=...) at ./plugins/scenes/opengl/scene_opengl.cpp:1471
#7  0x00007f471027160a in KWin::SceneOpenGL2::performPaintWindow (this=<optimized out>, w=0x5618a75f0350, mask=<optimized out>, region=..., data=...) at ./plugins/scenes/opengl/scene_opengl.cpp:1063
#8  0x00007f4732c27f21 in KWin::EffectsHandlerImpl::drawWindow (this=0x5618a75d0950, w=<optimized out>, mask=<optimized out>, region=..., data=...) at ./effects.cpp:480
Comment 62 Nate Graham 2020-10-30 14:41:37 UTC
*** Bug 428473 has been marked as a duplicate of this bug. ***
Comment 63 Nate Graham 2021-01-05 15:48:04 UTC
Tons of dupes, bumping priority.
Comment 64 Nate Graham 2021-01-05 15:48:13 UTC
*** Bug 430648 has been marked as a duplicate of this bug. ***
Comment 65 Nate Graham 2021-05-10 23:29:12 UTC
*** Bug 436868 has been marked as a duplicate of this bug. ***
Comment 66 Vlad Zahorodnii 2021-06-07 07:48:37 UTC
*** Bug 438021 has been marked as a duplicate of this bug. ***
Comment 67 David Edmundson 2021-09-21 14:01:22 UTC
*** Bug 429217 has been marked as a duplicate of this bug. ***
Comment 68 kde.org 2021-11-04 21:27:29 UTC
*** Bug 430160 has been marked as a duplicate of this bug. ***
Comment 69 Nate Graham 2022-07-14 13:33:59 UTC
No reports from a Plasma version newer than 5.20. I think we consider it to have been fixed in 5.21 or a newer version.