Bug 411589

Summary: Crash when using testrunner from Unity3D Engine
Product: [Plasma] kwin Reporter: marc.castells.guell
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: crash Keywords: drkonqi
Priority: NOR    
Version: 5.16.5   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description marc.castells.guell 2019-09-04 13:12:00 UTC
Application: kwin_x11 (5.16.5)

Qt Version: 5.12.3
Frameworks Version: 5.61.0
Operating System: Linux 5.0.0-27-generic x86_64
Distribution: KDE neon User Edition 5.16

-- Information about the crash:
- What I was doing when the application crashed:
With Unity3D engine open (version 2018.4.4f1), if i try to run edit mode test sometimes a crash will occur

The crash can be reproduced sometimes.

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

Thread 7 (Thread 0x7f9aad07d700 (LWP 12957)):
#0  0x00007f9aea4ee9f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7f9aedaa7fb8) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x7f9aedaa7f68, cond=0x7f9aedaa7f90) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x7f9aedaa7f90, mutex=0x7f9aedaa7f68) at pthread_cond_wait.c:655
#3  0x00007f9aed7b1844 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#4  0x00007f9aed7b1889 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#5  0x00007f9aea4e86db in start_thread (arg=0x7f9aad07d700) at pthread_create.c:463
#6  0x00007f9af158488f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7f9aaf4e9700 (LWP 12953)):
#0  0x00007f9af1577cf6 in __GI_ppoll (fds=fds@entry=0x7f9aa8000d28, nfds=nfds@entry=1, timeout=<optimized out>, timeout@entry=0x0, sigmask=sigmask@entry=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:39
#1  0x00007f9aeeacaab1 in ppoll (__ss=<optimized out>, __timeout=<optimized out>, __nfds=<optimized out>, __fds=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/poll2.h:77
#2  qt_ppoll (timeout_ts=0x0, nfds=1, fds=0x7f9aa8000d28) at kernel/qcore_unix.cpp:132
#3  qt_safe_poll (fds=0x7f9aa8000d28, nfds=1, timeout_ts=timeout_ts@entry=0x0) at kernel/qcore_unix.cpp:153
#4  0x00007f9aeeacc1be in QEventDispatcherUNIX::processEvents (this=<optimized out>, flags=...) at kernel/qeventdispatcher_unix.cpp:500
#5  0x00007f9aeea7003a in QEventLoop::exec (this=this@entry=0x7f9aaf4e8d00, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#6  0x00007f9aee8974ca in QThread::exec (this=<optimized out>) at thread/qthread.cpp:531
#7  0x00007f9ae8f06115 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#8  0x00007f9aee898c72 in QThreadPrivate::start (arg=0x55fc9df15120) at thread/qthread_unix.cpp:361
#9  0x00007f9aea4e86db in start_thread (arg=0x7f9aaf4e9700) at pthread_create.c:463
#10 0x00007f9af158488f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7f9abd9d6700 (LWP 12951)):
#0  0x00007f9aea4ee9f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55fc9d208ed8) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x55fc9d208e88, cond=0x55fc9d208eb0) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x55fc9d208eb0, mutex=0x55fc9d208e88) at pthread_cond_wait.c:655
#3  0x00007f9abe4780aa in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#4  0x00007f9abe477dd7 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#5  0x00007f9aea4e86db in start_thread (arg=0x7f9abd9d6700) at pthread_create.c:463
#6  0x00007f9af158488f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7f9ac73dc700 (LWP 12950)):
#0  0x00007f9af1577cf6 in __GI_ppoll (fds=fds@entry=0x7f9ab8000d28, nfds=nfds@entry=1, timeout=<optimized out>, timeout@entry=0x0, sigmask=sigmask@entry=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:39
#1  0x00007f9aeeacaab1 in ppoll (__ss=<optimized out>, __timeout=<optimized out>, __nfds=<optimized out>, __fds=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/poll2.h:77
#2  qt_ppoll (timeout_ts=0x0, nfds=1, fds=0x7f9ab8000d28) at kernel/qcore_unix.cpp:132
#3  qt_safe_poll (fds=0x7f9ab8000d28, nfds=1, timeout_ts=timeout_ts@entry=0x0) at kernel/qcore_unix.cpp:153
#4  0x00007f9aeeacc1be in QEventDispatcherUNIX::processEvents (this=<optimized out>, flags=...) at kernel/qeventdispatcher_unix.cpp:500
#5  0x00007f9aeea7003a in QEventLoop::exec (this=this@entry=0x7f9ac73dbd00, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#6  0x00007f9aee8974ca in QThread::exec (this=<optimized out>) at thread/qthread.cpp:531
#7  0x00007f9ae8f06115 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#8  0x00007f9aee898c72 in QThreadPrivate::start (arg=0x55fc9d4500a0) at thread/qthread_unix.cpp:361
#9  0x00007f9aea4e86db in start_thread (arg=0x7f9ac73dc700) at pthread_create.c:463
#10 0x00007f9af158488f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f9acdd4b700 (LWP 12948)):
#0  QMutex::unlock (this=this@entry=0x55fc9d321590) at thread/qmutex.cpp:335
#1  0x00007f9aeeacbfff in QMutexLocker::unlock (this=<synthetic pointer>) at ../../include/QtCore/../../src/corelib/thread/qmutex.h:219
#2  QMutexLocker::~QMutexLocker (this=<synthetic pointer>, __in_chrg=<optimized out>) at ../../include/QtCore/../../src/corelib/thread/qmutex.h:213
#3  QThreadData::canWaitLocked (this=0x55fc9d321560) at ../../include/QtCore/5.12.3/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:269
#4  QEventDispatcherUNIX::processEvents (this=0x7f9ac8000b20, flags=...) at kernel/qeventdispatcher_unix.cpp:472
#5  0x00007f9aeea7003a in QEventLoop::exec (this=this@entry=0x7f9acdd4acf0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#6  0x00007f9aee8974ca in QThread::exec (this=<optimized out>) at thread/qthread.cpp:531
#7  0x00007f9ae7d76015 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#8  0x00007f9aee898c72 in QThreadPrivate::start (arg=0x7f9ae7fedd80) at thread/qthread_unix.cpp:361
#9  0x00007f9aea4e86db in start_thread (arg=0x7f9acdd4b700) at pthread_create.c:463
#10 0x00007f9af158488f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f9ad8790700 (LWP 12945)):
#0  0x00007f9af1577bf9 in __GI___poll (fds=0x7f9ad878fc28, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f9aee5d4747 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f9aee5d636a in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f9ad9acb578 in QXcbEventQueue::run (this=0x55fc9d069290) at qxcbeventqueue.cpp:228
#4  0x00007f9aee898c72 in QThreadPrivate::start (arg=0x55fc9d069290) at thread/qthread_unix.cpp:361
#5  0x00007f9aea4e86db in start_thread (arg=0x7f9ad8790700) at pthread_create.c:463
#6  0x00007f9af158488f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f9af1c12880 (LWP 12942)):
[KCrash Handler]
#6  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#7  0x00007f9af14a3801 in __GI_abort () at abort.c:79
#8  0x00007f9af149339a in __assert_fail_base (fmt=0x7f9af161a7d8 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x7f9abea7cb60 "!tObj->Immutable || brw->screen->devinfo.gen < 6", file=file@entry=0x7f9abea7cb28 "../src/mesa/drivers/dri/i965/intel_tex_validate.c", line=line@entry=104, function=function@entry=0x7f9abea7cc20 "intel_finalize_mipmap_tree") at assert.c:92
#9  0x00007f9af1493412 in __GI___assert_fail (assertion=0x7f9abea7cb60 "!tObj->Immutable || brw->screen->devinfo.gen < 6", file=0x7f9abea7cb28 "../src/mesa/drivers/dri/i965/intel_tex_validate.c", line=104, function=0x7f9abea7cc20 "intel_finalize_mipmap_tree") at assert.c:101
#10 0x00007f9abe402406 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#11 0x00007f9abe402474 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#12 0x00007f9abe3c52d4 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#13 0x00007f9abe626d98 in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#14 0x00007f9abe6271ac in ?? () from /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#15 0x00007f9aae094a66 in KWin::SceneOpenGL2Window::performPaint (this=this@entry=0x55fc9e1eefb0, mask=mask@entry=1, region=..., data=...) at ./plugins/scenes/opengl/scene_opengl.cpp:1471
#16 0x00007f9aae09bde3 in KWin::SceneOpenGL2::performPaintWindow (this=<optimized out>, w=<optimized out>, mask=<optimized out>, region=..., data=...) at ./plugins/scenes/opengl/scene_opengl.cpp:1064
#17 0x00007f9aae09bf17 in KWin::SceneOpenGL2::finalDrawWindow (this=this@entry=0x55fc9e1847d0, w=w@entry=0x55fc9e1fba10, mask=mask@entry=1, region=..., data=...) at ./plugins/scenes/opengl/scene_opengl.cpp:1046
#18 0x00007f9af10cc486 in KWin::EffectsHandlerImpl::drawWindow (this=this@entry=0x55fc9e189fb0, w=w@entry=0x55fc9e1fba10, mask=mask@entry=1, region=..., data=...) at ./effects.cpp:476
#19 0x00007f9aeddc0a06 in KWin::ContrastEffect::drawWindow (this=this@entry=0x55fc9e5814b0, w=w@entry=0x55fc9e1fba10, mask=mask@entry=1, region=..., data=...) at ./effects/backgroundcontrast/contrast.cpp:468
#20 0x00007f9af10cc41e in KWin::EffectsHandlerImpl::drawWindow (this=this@entry=0x55fc9e189fb0, w=w@entry=0x55fc9e1fba10, mask=mask@entry=1, region=..., data=...) at ./effects.cpp:473
#21 0x00007f9aedd2a9d5 in KWin::BlurEffect::drawWindow (this=this@entry=0x55fc9e4f61a0, w=w@entry=0x55fc9e1fba10, mask=mask@entry=1, region=..., data=...) at ./effects/blur/blur.cpp:617
#22 0x00007f9af10cc41e in KWin::EffectsHandlerImpl::drawWindow (this=this@entry=0x55fc9e189fb0, w=w@entry=0x55fc9e1fba10, mask=mask@entry=1, region=..., data=...) at ./effects.cpp:473
#23 0x00007f9af10ba6e0 in KWin::Scene::finalPaintWindow (this=this@entry=0x55fc9e1847d0, w=w@entry=0x55fc9e1fba10, mask=mask@entry=1, region=..., data=...) at ./scene.cpp:608
#24 0x00007f9af10cc2ad in KWin::EffectsHandlerImpl::paintWindow (this=this@entry=0x55fc9e189fb0, w=w@entry=0x55fc9e1fba10, mask=mask@entry=1, region=..., data=...) at ./effects.cpp:439
#25 0x00007f9aee01e2a0 in KWin::Effect::paintWindow (this=this@entry=0x55fc9e5814b0, w=w@entry=0x55fc9e1fba10, mask=mask@entry=1, region=..., data=...) at ./libkwineffects/kwineffects.cpp:599
#26 0x00007f9af10cc24e in KWin::EffectsHandlerImpl::paintWindow (this=this@entry=0x55fc9e189fb0, w=w@entry=0x55fc9e1fba10, mask=mask@entry=1, region=..., data=...) at ./effects.cpp:436
#27 0x00007f9aee01e2a0 in KWin::Effect::paintWindow (this=this@entry=0x55fc9e4f61a0, w=w@entry=0x55fc9e1fba10, mask=mask@entry=1, region=..., data=...) at ./libkwineffects/kwineffects.cpp:599
#28 0x00007f9af10cc24e in KWin::EffectsHandlerImpl::paintWindow (this=this@entry=0x55fc9e189fb0, w=0x55fc9e1fba10, mask=mask@entry=1, region=..., data=...) at ./effects.cpp:436
#29 0x00007f9af10c0ac5 in KWin::Scene::paintWindow (this=this@entry=0x55fc9e1847d0, w=0x55fc9e1eefb0, mask=1, region=..., quads=...) at ./scene.cpp:480
#30 0x00007f9af10bcd21 in KWin::Scene::paintSimpleScreen (this=this@entry=0x55fc9e1847d0, orig_mask=orig_mask@entry=0, region=...) at ./scene.cpp:374
#31 0x00007f9aae0911d2 in KWin::SceneOpenGL2::paintSimpleScreen (this=this@entry=0x55fc9e1847d0, mask=mask@entry=0, region=...) at ./plugins/scenes/opengl/scene_opengl.cpp:1009
#32 0x00007f9af10bffa7 in KWin::Scene::finalPaintScreen (this=this@entry=0x55fc9e1847d0, mask=mask@entry=0, region=..., data=...) at ./scene.cpp:199
#33 0x00007f9af10cc005 in KWin::EffectsHandlerImpl::paintScreen (this=this@entry=0x55fc9e189fb0, mask=mask@entry=0, region=..., data=...) at ./effects.cpp:396
#34 0x00007f9aee01e1f1 in KWin::Effect::paintScreen (this=this@entry=0x55fc9e5814b0, mask=mask@entry=0, region=..., data=...) at ./libkwineffects/kwineffects.cpp:584
#35 0x00007f9af10cbfad in KWin::EffectsHandlerImpl::paintScreen (this=this@entry=0x55fc9e189fb0, mask=mask@entry=0, region=..., data=...) at ./effects.cpp:393
#36 0x00007f9aee01e1f1 in KWin::Effect::paintScreen (this=this@entry=0x55fc9e4f61a0, mask=mask@entry=0, region=..., data=...) at ./libkwineffects/kwineffects.cpp:584
#37 0x00007f9af10cbfad in KWin::EffectsHandlerImpl::paintScreen (this=this@entry=0x55fc9e189fb0, mask=0, region=..., data=...) at ./effects.cpp:393
#38 0x00007f9af10bfc9e in KWin::Scene::paintScreen (this=this@entry=0x55fc9e1847d0, mask=mask@entry=0x7ffc824e7fd0, damage=..., repaint=..., updateRegion=updateRegion@entry=0x7ffc824e7fb8, validRegion=validRegion@entry=0x7ffc824e7fc0, projection=..., outputGeometry=...) at ./scene.cpp:149
#39 0x00007f9aae097d11 in KWin::SceneOpenGL::paint (this=this@entry=0x55fc9e1847d0, damage=..., toplevels=...) at ./plugins/scenes/opengl/scene_opengl.cpp:707
#40 0x00007f9af10b22d2 in KWin::Compositor::performCompositing (this=0x55fc9d32b2d0) at ./composite.cpp:746
#41 0x00007f9aeeaa239b in QObject::event (this=0x55fc9d32b2d0, e=<optimized out>) at kernel/qobject.cpp:1282
#42 0x00007f9aef86d65c in QApplicationPrivate::notify_helper (this=this@entry=0x55fc9d07b5b0, receiver=receiver@entry=0x55fc9d32b2d0, e=e@entry=0x7ffc824e8480) at kernel/qapplication.cpp:3736
#43 0x00007f9aef874b90 in QApplication::notify (this=0x7ffc824e8730, receiver=0x55fc9d32b2d0, e=0x7ffc824e8480) at kernel/qapplication.cpp:3483
#44 0x00007f9aeea71d18 in QCoreApplication::notifyInternal2 (receiver=0x55fc9d32b2d0, event=0x7ffc824e8480) at kernel/qcoreapplication.cpp:1060
#45 0x00007f9aeeace219 in QTimerInfoList::activateTimers (this=this@entry=0x55fc9d0d2370) at kernel/qtimerinfo_unix.cpp:643
#46 0x00007f9aeeacb64c in QEventDispatcherUNIXPrivate::activateTimers (this=this@entry=0x55fc9d0d22d0) at kernel/qeventdispatcher_unix.cpp:249
#47 0x00007f9aeeacc422 in QEventDispatcherUNIX::processEvents (this=<optimized out>, flags=...) at kernel/qeventdispatcher_unix.cpp:514
#48 0x00007f9ad9acc91e in QXcbUnixEventDispatcher::processEvents (this=0x55fc9d0c4120, flags=...) at qxcbeventdispatcher.cpp:60
#49 0x00007f9aeea7003a in QEventLoop::exec (this=this@entry=0x7ffc824e8640, flags=..., flags@entry=...) at kernel/qeventloop.cpp:225
#50 0x00007f9aeea79170 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1363
#51 0x00007f9af185cf88 in kdemain (argc=<optimized out>, argv=0x7ffc824e88d8) at ./main_x11.cpp:476
#52 0x00007f9af1484b97 in __libc_start_main (main=0x55fc9c4e3720 <main>, argc=3, argv=0x7ffc824e88d8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffc824e88c8) at ../csu/libc-start.c:310
#53 0x000055fc9c4e375a in _start ()

Possible duplicates by query: bug 411216, bug 406671, bug 404166, bug 401491, bug 400358.

Reported using DrKonqi
Comment 1 Vlad Zahorodnii 2019-09-04 13:36:40 UTC
Crash happens in the video driver.