Bug 432150

Summary: Discover crashed when closed after searches
Product: [Applications] Discover Reporter: Patrick Silva <bugseforuns>
Component: discoverAssignee: Dan Leinir Turthra Jensen <leinir>
Status: RESOLVED UPSTREAM    
Severity: crash CC: aleixpol, kde, nate
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Patrick Silva 2021-01-26 11:43:42 UTC
SUMMARY
I opened Discover, searched for 2 apps (filezilla and supertuxkart) and opened the
description pages of their flatpak versions, switched to another app and a few minutes later I closed Discover with middle click on task manager, then Plasma shown a crash notification.

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.21.80
KDE Frameworks Version: 5.79.0
Qt Version: 5.15.2
Graphics Platform: Wayland

Application: Discover (plasma-discover), signal: Segmentation fault
Content of s_kcrashErrorMessage: [Current thread is 1 (Thread 0x7fee1ac0de40 (LWP 14745))]
[New LWP 14766]
[New LWP 14767]
[New LWP 14768]
[New LWP 14769]
[New LWP 14770]
[New LWP 14771]
[New LWP 14780]
[New LWP 14793]
[New LWP 14809]
[New LWP 14816]
[New LWP 14822]
[New LWP 14831]
[New LWP 14928]
[New LWP 14962]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55dcf258ca20) at ../sysdeps/nptl/futex-internal.h:183

Thread 15 (Thread 0x7fedaf7fe700 (LWP 14962)):
#0  __GI___libc_read (nbytes=16, buf=0x7fedaf7fd9d0, fd=26) at ../sysdeps/unix/sysv/linux/read.c:26
#1  __GI___libc_read (fd=26, buf=buf@entry=0x7fedaf7fd9d0, nbytes=nbytes@entry=16) at ../sysdeps/unix/sysv/linux/read.c:24
#2  0x00007fee1db9389f in read (__nbytes=16, __buf=0x7fedaf7fd9d0, __fd=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/unistd.h:44
#3  g_wakeup_acknowledge (wakeup=0x7fede40aba40) at ../../../glib/gwakeup.c:210
#4  0x00007fee1db4acfe in g_main_context_check (context=context@entry=0x7feda0004600, max_priority=2147483647, fds=fds@entry=0x7feda0047860, n_fds=n_fds@entry=1) at ../../../glib/gmain.c:3825
#5  0x00007fee1db4b152 in g_main_context_iterate (context=context@entry=0x7feda0004600, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:4044
#6  0x00007fee1db4b2e3 in g_main_context_iteration (context=0x7feda0004600, may_block=may_block@entry=1) at ../../../glib/gmain.c:4108
#7  0x00007fee1f79ffbb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7feda0000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#8  0x00007fee1f7441ab in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fedaf7fdbe0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#9  0x00007fee1f55ea12 in QThread::exec() (this=this@entry=0x55dcf81808a0) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#10 0x00007fee212b338a in QQuickPixmapReader::run() (this=0x55dcf81808a0) at util/qquickpixmapcache.cpp:1024
#11 0x00007fee1f55fbac in QThreadPrivate::start(void*) (arg=0x55dcf81808a0) at thread/qthread_unix.cpp:329
#12 0x00007fee1e4f8609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#13 0x00007fee1f1e1293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 14 (Thread 0x7fed9cff9700 (LWP 14928)):
#0  0x00007fee1f1d4aff in __GI___poll (fds=0x7fedecf65fe0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fee1db4b1ae in g_main_context_poll (priority=<optimized out>, n_fds=1, fds=0x7fedecf65fe0, timeout=<optimized out>, context=0x7fed77421070) at ../../../glib/gmain.c:4346
#2  g_main_context_iterate (context=context@entry=0x7fed77421070, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:4042
#3  0x00007fee1db4b2e3 in g_main_context_iteration (context=context@entry=0x7fed77421070, may_block=may_block@entry=1) at ../../../glib/gmain.c:4108
#4  0x00007fee00f0c99d in dconf_gdbus_worker_thread (user_data=0x7fed77421070) at ../gdbus/dconf-gdbus-thread.c:82
#5  0x00007fee1db74931 in g_thread_proxy (data=0x7fede4059980) at ../../../glib/gthread.c:807
#6  0x00007fee1e4f8609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#7  0x00007fee1f1e1293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 13 (Thread 0x7fedf3fff700 (LWP 14831)):
[KCrash Handler]
#6  wl_surface_damage (height=30, width=1378, y=0, x=0, wl_surface=Python Exception <class 'gdb.MemoryError'> Cannot access memory at address 0x18: 
#7  QtWayland::wl_surface::damage(int, int, int, int) (this=0x10, x=0, y=0, width=1378, height=30) at qwayland-wayland.cpp:1322
#8  0x00007fee1d96e9dc in QtWaylandClient::QWaylandWindow::damage(QRect const&) (this=<optimized out>, rect=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qrect.h:266
#9  0x00007fee1d982121 in QtWaylandClient::QWaylandAbstractDecoration::contentImage() (this=0x7fede84716d0) at qwaylandabstractdecoration.cpp:135
#10 0x00007fee18afbbbd in QtWaylandClient::DecorationsBlitter::blit(QtWaylandClient::QWaylandEglWindow*) (window=0x55dcf5341770, this=<optimized out>) at ../../../../hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp:204
#11 QtWaylandClient::QWaylandGLContext::swapBuffers(QPlatformSurface*) (this=0x55dcf276afd0, surface=<optimized out>) at ../../../../hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp:480
#12 0x00007fee1fb69b31 in QOpenGLContext::swapBuffers(QSurface*) (this=0x55dcf22d37a0, surface=<optimized out>) at kernel/qopenglcontext.cpp:1120
#13 0x00007fee21374e8c in QSGRenderThread::syncAndRender(QImage*) (this=0x55dcf3b1bf80, grabImage=0x0) at scenegraph/qsgthreadedrenderloop.cpp:870
#14 0x00007fee21378c47 in QSGRenderThread::run() (this=0x55dcf3b1bf80) at scenegraph/qsgthreadedrenderloop.cpp:1043
#15 0x00007fee1f55fbac in QThreadPrivate::start(void*) (arg=0x55dcf3b1bf80) at thread/qthread_unix.cpp:329
#16 0x00007fee1e4f8609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#17 0x00007fee1f1e1293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 12 (Thread 0x7fedae6cc700 (LWP 14822)):
#0  0x00007fee1f1d4aff in __GI___poll (fds=0x7feda40052b0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fee1db4b1ae in g_main_context_poll (priority=<optimized out>, n_fds=1, fds=0x7feda40052b0, timeout=<optimized out>, context=0x7fed98000c20) at ../../../glib/gmain.c:4346
#2  g_main_context_iterate (context=context@entry=0x7fed98000c20, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:4042
#3  0x00007fee1db4b2e3 in g_main_context_iteration (context=0x7fed98000c20, may_block=may_block@entry=1) at ../../../glib/gmain.c:4108
#4  0x00007fee1f79ffbb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7fed98000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#5  0x00007fee1f7441ab in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fedae6cbc20, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#6  0x00007fee1f55ea12 in QThread::exec() (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#7  0x00007fee1f55fbac in QThreadPrivate::start(void*) (arg=0x55dcf22af1e0) at thread/qthread_unix.cpp:329
#8  0x00007fee1e4f8609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#9  0x00007fee1f1e1293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 11 (Thread 0x7fedf0ba3700 (LWP 14816)):
#0  __GI___libc_read (nbytes=16, buf=0x7fedf0ba2a10, fd=55) at ../sysdeps/unix/sysv/linux/read.c:26
#1  __GI___libc_read (fd=55, buf=buf@entry=0x7fedf0ba2a10, nbytes=nbytes@entry=16) at ../sysdeps/unix/sysv/linux/read.c:24
#2  0x00007fee1db9389f in read (__nbytes=16, __buf=0x7fedf0ba2a10, __fd=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/unistd.h:44
#3  g_wakeup_acknowledge (wakeup=0x7fede40ab700) at ../../../glib/gwakeup.c:210
#4  0x00007fee1db4acfe in g_main_context_check (context=context@entry=0x7fedb4000c20, max_priority=2147483647, fds=fds@entry=0x7fedb40c0a70, n_fds=n_fds@entry=1) at ../../../glib/gmain.c:3825
#5  0x00007fee1db4b152 in g_main_context_iterate (context=context@entry=0x7fedb4000c20, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:4044
#6  0x00007fee1db4b2e3 in g_main_context_iteration (context=0x7fedb4000c20, may_block=may_block@entry=1) at ../../../glib/gmain.c:4108
#7  0x00007fee1f79ffbb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7fedb4000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#8  0x00007fee1f7441ab in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fedf0ba2c20, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#9  0x00007fee1f55ea12 in QThread::exec() (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#10 0x00007fee1f55fbac in QThreadPrivate::start(void*) (arg=0x55dcf3cf0fd0) at thread/qthread_unix.cpp:329
#11 0x00007fee1e4f8609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#12 0x00007fee1f1e1293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 10 (Thread 0x7fedf1732700 (LWP 14809)):
#0  0x00007fee1f1d4aff in __GI___poll (fds=0x55dcf3a721e0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fee1db4b1ae in g_main_context_poll (priority=<optimized out>, n_fds=1, fds=0x55dcf3a721e0, timeout=<optimized out>, context=0x55dcf3a723d0) at ../../../glib/gmain.c:4346
#2  g_main_context_iterate (context=0x55dcf3a723d0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:4042
#3  0x00007fee1db4b533 in g_main_loop_run (loop=0x55dcf3a724c0) at ../../../glib/gmain.c:4241
#4  0x00007fee1d708eda in gdbus_shared_thread_func (user_data=0x55dcf3a723a0) at ../../../gio/gdbusprivate.c:279
#5  0x00007fee1db74931 in g_thread_proxy (data=0x55dcf3a50580) at ../../../glib/gthread.c:807
#6  0x00007fee1e4f8609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#7  0x00007fee1f1e1293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 9 (Thread 0x7fedf27ad700 (LWP 14793)):
#0  g_main_context_check (context=context@entry=0x7fedb8000c20, max_priority=2147483647, fds=fds@entry=0x7fedb8004610, n_fds=n_fds@entry=1) at ../../../glib/gmain.c:3874
#1  0x00007fee1db4b152 in g_main_context_iterate (context=context@entry=0x7fedb8000c20, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:4044
#2  0x00007fee1db4b2e3 in g_main_context_iteration (context=0x7fedb8000c20, may_block=may_block@entry=1) at ../../../glib/gmain.c:4108
#3  0x00007fee1f79ffbb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7fedb8000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007fee1f7441ab in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fedf27acc20, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#5  0x00007fee1f55ea12 in QThread::exec() (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#6  0x00007fee1f55fbac in QThreadPrivate::start(void*) (arg=0x55dcf3a50d00) at thread/qthread_unix.cpp:329
#7  0x00007fee1e4f8609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#8  0x00007fee1f1e1293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 8 (Thread 0x7fedf37fe700 (LWP 14780)):
#0  0x00007fee1f1d4aff in __GI___poll (fds=0x7fedec00b240, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fee1db4b1ae in g_main_context_poll (priority=<optimized out>, n_fds=1, fds=0x7fedec00b240, timeout=<optimized out>, context=0x7fedec00b6c0) at ../../../glib/gmain.c:4346
#2  g_main_context_iterate (context=context@entry=0x7fedec00b6c0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:4042
#3  0x00007fee1db4b2e3 in g_main_context_iteration (context=0x7fedec00b6c0, may_block=may_block@entry=1) at ../../../glib/gmain.c:4108
#4  0x00007fee1db4b331 in glib_worker_main (data=<optimized out>) at ../../../glib/gmain.c:5996
#5  0x00007fee1db74931 in g_thread_proxy (data=0x7fedec00b800) at ../../../glib/gthread.c:807
#6  0x00007fee1e4f8609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#7  0x00007fee1f1e1293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 7 (Thread 0x7fee119b9700 (LWP 14771)):
#0  0x00007fee1f1d4aff in __GI___poll (fds=0x7fedf4004e60, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fee1db4b1ae in g_main_context_poll (priority=<optimized out>, n_fds=1, fds=0x7fedf4004e60, timeout=<optimized out>, context=0x7fedf4000c20) at ../../../glib/gmain.c:4346
#2  g_main_context_iterate (context=context@entry=0x7fedf4000c20, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:4042
#3  0x00007fee1db4b2e3 in g_main_context_iteration (context=0x7fedf4000c20, may_block=may_block@entry=1) at ../../../glib/gmain.c:4108
#4  0x00007fee1f79ffbb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7fedf4000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#5  0x00007fee1f7441ab in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fee119b8c00, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#6  0x00007fee1f55ea12 in QThread::exec() (this=this@entry=0x55dcf221d6b0) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#7  0x00007fee2040ffa9 in QQmlThreadPrivate::run() (this=0x55dcf221d6b0) at qml/ftw/qqmlthread.cpp:155
#8  0x00007fee1f55fbac in QThreadPrivate::start(void*) (arg=0x55dcf221d6b0) at thread/qthread_unix.cpp:329
#9  0x00007fee1e4f8609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#10 0x00007fee1f1e1293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7fee121ba700 (LWP 14770)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55dcf22101ac) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55dcf2210158, cond=0x55dcf2210180) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55dcf2210180, mutex=0x55dcf2210158) at pthread_cond_wait.c:638
#3  0x00007fee13717e6b in  () at /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#4  0x00007fee13717a6b in  () at /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#5  0x00007fee1e4f8609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007fee1f1e1293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7fee03fff700 (LWP 14769)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55dcf22101ac) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55dcf2210158, cond=0x55dcf2210180) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55dcf2210180, mutex=0x55dcf2210158) at pthread_cond_wait.c:638
#3  0x00007fee13717e6b in  () at /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#4  0x00007fee13717a6b in  () at /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#5  0x00007fee1e4f8609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007fee1f1e1293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7fee129bb700 (LWP 14768)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55dcf22101ac) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55dcf2210158, cond=0x55dcf2210180) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55dcf2210180, mutex=0x55dcf2210158) at pthread_cond_wait.c:638
#3  0x00007fee13717e6b in  () at /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#4  0x00007fee13717a6b in  () at /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#5  0x00007fee1e4f8609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007fee1f1e1293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7fee131bc700 (LWP 14767)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55dcf22101a8) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55dcf2210158, cond=0x55dcf2210180) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55dcf2210180, mutex=0x55dcf2210158) at pthread_cond_wait.c:638
#3  0x00007fee13717e6b in  () at /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#4  0x00007fee13717a6b in  () at /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
#5  0x00007fee1e4f8609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007fee1f1e1293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7fee19d14700 (LWP 14766)):
#0  __GI___libc_read (fd=7, buf=buf@entry=0x7fee19d139e0, nbytes=nbytes@entry=16) at ../sysdeps/unix/sysv/linux/read.c:26
#1  0x00007fee1db9389f in read (__nbytes=16, __buf=0x7fee19d139e0, __fd=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/unistd.h:44
#2  g_wakeup_acknowledge (wakeup=0x55dcf1ffeec0) at ../../../glib/gwakeup.c:210
#3  0x00007fee1db4acfe in g_main_context_check (context=context@entry=0x7fee14000c20, max_priority=2147483647, fds=fds@entry=0x7fee14005240, n_fds=n_fds@entry=1) at ../../../glib/gmain.c:3825
#4  0x00007fee1db4b152 in g_main_context_iterate (context=context@entry=0x7fee14000c20, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:4044
#5  0x00007fee1db4b2e3 in g_main_context_iteration (context=0x7fee14000c20, may_block=may_block@entry=1) at ../../../glib/gmain.c:4108
#6  0x00007fee1f79ffbb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7fee14000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#7  0x00007fee1f7441ab in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fee19d13bf0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#8  0x00007fee1f55ea12 in QThread::exec() (this=this@entry=0x7fee20dc5d80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#9  0x00007fee20d41f4b in QDBusConnectionManager::run() (this=0x7fee20dc5d80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:179
#10 0x00007fee1f55fbac in QThreadPrivate::start(void*) (arg=0x7fee20dc5d80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:329
#11 0x00007fee1e4f8609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#12 0x00007fee1f1e1293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7fee1ac0de40 (LWP 14745)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x55dcf258ca20) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x55dcf258c9d0, cond=0x55dcf258c9f8) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x55dcf258c9f8, mutex=0x55dcf258c9d0) at pthread_cond_wait.c:638
#3  0x00007fee1f565d1b in QWaitConditionPrivate::wait(QDeadlineTimer) (deadline=..., this=0x55dcf258c9d0) at thread/qwaitcondition_unix.cpp:146
#4  QWaitCondition::wait(QMutex*, QDeadlineTimer) (this=<optimized out>, mutex=0x55dcf3b1bfd8, deadline=...) at thread/qwaitcondition_unix.cpp:225
#5  0x00007fee21375951 in QSGThreadedRenderLoop::handleObscurity(QSGThreadedRenderLoop::Window*) (this=this@entry=0x55dcf234c0b0, w=0x55dcf258fc20) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qdeadlinetimer.h:68
#6  0x00007fee21375a5a in QSGThreadedRenderLoop::hide(QQuickWindow*) (this=0x55dcf234c0b0, window=0x55dcf2236bc0) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:570
#7  0x00007fee1fb32e1d in QWindow::event(QEvent*) (this=this@entry=0x55dcf2236bc0, ev=ev@entry=0x7ffc4de217d0) at kernel/qwindow.cpp:2438
#8  0x00007fee213e2aab in QQuickWindow::event(QEvent*) (this=0x55dcf2236bc0, e=0x7ffc4de217d0) at items/qquickwindow.cpp:1902
#9  0x00007fee2078adc3 in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=this@entry=0x55dcf2005ab0, receiver=receiver@entry=0x55dcf2236bc0, e=e@entry=0x7ffc4de217d0) at kernel/qapplication.cpp:3632
#10 0x00007fee20793bb8 in QApplication::notify(QObject*, QEvent*) (this=0x7ffc4de22730, receiver=0x55dcf2236bc0, e=0x7ffc4de217d0) at kernel/qapplication.cpp:3156
#11 0x00007fee1f74569a in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x55dcf2236bc0, event=0x7ffc4de217d0) at ../../include/QtCore/5.15.2/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:325
#12 0x00007fee1fb32a16 in QWindowPrivate::setVisible(bool) (this=0x55dcf2074460, visible=<optimized out>) at kernel/qwindow.cpp:412
#13 0x00007fee1fb31e71 in QWindowPrivate::destroy() (this=0x55dcf2074460) at kernel/qwindow.cpp:1986
#14 0x00007fee1fb32ebc in QWindow::event(QEvent*) (this=this@entry=0x55dcf2236bc0, ev=ev@entry=0x7ffc4de21bc0) at kernel/qwindow.cpp:2401
#15 0x00007fee213e2aab in QQuickWindow::event(QEvent*) (this=0x55dcf2236bc0, e=0x7ffc4de21bc0) at items/qquickwindow.cpp:1902
#16 0x00007fee2078adc3 in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=this@entry=0x55dcf2005ab0, receiver=receiver@entry=0x55dcf2236bc0, e=e@entry=0x7ffc4de21bc0) at kernel/qapplication.cpp:3632
#17 0x00007fee20793bb8 in QApplication::notify(QObject*, QEvent*) (this=0x7ffc4de22730, receiver=0x55dcf2236bc0, e=0x7ffc4de21bc0) at kernel/qapplication.cpp:3156
#18 0x00007fee1f74569a in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x55dcf2236bc0, event=0x7ffc4de21bc0) at ../../include/QtCore/5.15.2/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:325
#19 0x00007fee1fb24395 in QGuiApplicationPrivate::processCloseEvent(QWindowSystemInterfacePrivate::CloseEvent*) () at /usr/include/c++/9/bits/atomic_base.h:413
#20 0x00007fee1fb28b7c in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) (e=0x55dcf9aaa650) at kernel/qguiapplication.cpp:2046
#21 0x00007fee1fb00c95 in QWindowSystemInterfacePrivate::handleWindowSystemEvent<QWindowSystemInterface::SynchronousDelivery>(QWindowSystemInterfacePrivate::WindowSystemEvent*) (ev=0x55dcf9aaa650) at kernel/qwindowsysteminterface.cpp:106
#22 0x00007fee1b69bff5 in ffi_call_unix64 () at ../src/x86/unix64.S:101
#23 0x00007fee1b69b40a in ffi_call_int (cif=<optimized out>, fn=<optimized out>, rvalue=<optimized out>, avalue=<optimized out>, closure=<optimized out>) at ../src/x86/ffi64.c:669
#24 0x00007fee1d8e43a8 in wl_closure_invoke (closure=0x55dcfb89afa0, flags=1, target=<optimized out>, opcode=1, data=<optimized out>) at ../src/connection.c:1018
#25 0x00007fee1d8e0c48 in dispatch_event (display=display@entry=0x55dcf200c640, queue=<optimized out>) at ../src/wayland-client.c:1445
#26 0x00007fee1d8e221c in dispatch_queue (queue=0x55dcf200c710, display=0x55dcf200c640) at ../src/wayland-client.c:1591
#27 wl_display_dispatch_queue_pending (display=0x55dcf200c640, queue=0x55dcf200c710) at ../src/wayland-client.c:1833
#28 0x00007fee1d8e2280 in wl_display_dispatch_pending (display=<optimized out>) at ../src/wayland-client.c:1896
#29 0x00007fee1d967f9f in QtWaylandClient::QWaylandDisplay::flushRequests() (this=0x55dcf1fe3ea0) at qwaylanddisplay.cpp:221
#30 0x00007fee1f77c6f0 in doActivate<false>(QObject*, int, void**) (sender=0x55dcf207c040, signal_index=3, argv=0x7ffc4de22170) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:395
#31 0x00007fee1f775a87 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (sender=sender@entry=0x55dcf207c040, m=m@entry=0x7fee1f9dfb60 <QSocketNotifier::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffc4de22170) at kernel/qobject.cpp:3946
#32 0x00007fee1f780733 in QSocketNotifier::activated(QSocketDescriptor, QSocketNotifier::Type, QSocketNotifier::QPrivateSignal) (this=this@entry=0x55dcf207c040, _t1=..., _t2=<optimized out>, _t3=...) at .moc/moc_qsocketnotifier.cpp:178
#33 0x00007fee1f780ed3 in QSocketNotifier::event(QEvent*) (this=0x55dcf207c040, e=0x7ffc4de22440) at kernel/qsocketnotifier.cpp:302
#34 0x00007fee2078adc3 in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=this@entry=0x55dcf2005ab0, receiver=receiver@entry=0x55dcf207c040, e=e@entry=0x7ffc4de22440) at kernel/qapplication.cpp:3632
#35 0x00007fee20793bb8 in QApplication::notify(QObject*, QEvent*) (this=0x7ffc4de22730, receiver=0x55dcf207c040, e=0x7ffc4de22440) at kernel/qapplication.cpp:3156
#36 0x00007fee1f74569a in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x55dcf207c040, event=0x7ffc4de22440) at ../../include/QtCore/5.15.2/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:325
#37 0x00007fee1f7a0ba5 in socketNotifierSourceDispatch(GSource*, GSourceFunc, gpointer) (source=0x55dcf2037d70) at kernel/qeventdispatcher_glib.cpp:107
#38 0x00007fee1db4afbd in g_main_dispatch (context=0x55dcf20415a0) at ../../../glib/gmain.c:3309
#39 g_main_context_dispatch (context=context@entry=0x55dcf20415a0) at ../../../glib/gmain.c:3974
#40 0x00007fee1db4b240 in g_main_context_iterate (context=context@entry=0x55dcf20415a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:4047
#41 0x00007fee1db4b2e3 in g_main_context_iteration (context=0x55dcf20415a0, may_block=may_block@entry=1) at ../../../glib/gmain.c:4108
#42 0x00007fee1f79ffa2 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x55dcf207bfa0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#43 0x00007fee1f7441ab in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7ffc4de22650, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#44 0x00007fee1f74c354 in QCoreApplication::exec() () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#45 0x000055dcf0bee65d in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at ./discover/main.cpp:184
[Inferior 1 (process 14745) detached]
Comment 1 Nate Graham 2021-01-26 18:39:48 UTC
#6  wl_surface_damage (height=30, width=1378, y=0, x=0, wl_surface=Python Exception <class 'gdb.MemoryError'> Cannot access memory at address 0x18: 
#7  QtWayland::wl_surface::damage(int, int, int, int) (this=0x10, x=0, y=0, width=1378, height=30) at qwayland-wayland.cpp:1322
#8  0x00007fee1d96e9dc in QtWaylandClient::QWaylandWindow::damage(QRect const&) (this=<optimized out>, rect=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qrect.h:266
#9  0x00007fee1d982121 in QtWaylandClient::QWaylandAbstractDecoration::contentImage() (this=0x7fede84716d0) at qwaylandabstractdecoration.cpp:135
#10 0x00007fee18afbbbd in QtWaylandClient::DecorationsBlitter::blit(QtWaylandClient::QWaylandEglWindow*) (window=0x55dcf5341770, this=<optimized out>) at ../../../../hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp:204
#11 QtWaylandClient::QWaylandGLContext::swapBuffers(QPlatformSurface*) (this=0x55dcf276afd0, surface=<optimized out>) at ../../../../hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp:480
#12 0x00007fee1fb69b31 in QOpenGLContext::swapBuffers(QSurface*) (this=0x55dcf22d37a0, surface=<optimized out>) at kernel/qopenglcontext.cpp:1120
#13 0x00007fee21374e8c in QSGRenderThread::syncAndRender(QImage*) (this=0x55dcf3b1bf80, grabImage=0x0) at scenegraph/qsgthreadedrenderloop.cpp:870
#14 0x00007fee21378c47 in QSGRenderThread::run() (this=0x55dcf3b1bf80) at scenegraph/qsgthreadedrenderloop.cpp:1043
Comment 2 Vlad Zahorodnii 2021-01-27 08:45:38 UTC
[KCrash Handler]
#6  wl_surface_damage (height=30, width=1378, y=0, x=0, wl_surface=Python Exception <class 'gdb.MemoryError'> Cannot access memory at address 0x18: 
#7  QtWayland::wl_surface::damage(int, int, int, int) (this=0x10, x=0, y=0, width=1378, height=30) at qwayland-wayland.cpp:1322
#8  0x00007fee1d96e9dc in QtWaylandClient::QWaylandWindow::damage(QRect const&) (this=<optimized out>, rect=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qrect.h:266

The crash is in QPA. Discover still might be at fault though, but the likelihood of that is slim.
Comment 3 Nate Graham 2021-02-25 21:20:44 UTC
Crashed in damage tracking?

#8  0x00007fee1d96e9dc in QtWaylandClient::QWaylandWindow::damage(QRect const&) (this=<optimized out>, rect=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qrect.h:266
Comment 4 David Edmundson 2021-05-21 15:42:03 UTC
Please don't move things to kwin that are not kwin.
Comment 5 Nate Graham 2021-05-21 15:53:01 UTC
If I knew it wasn't related to KWin, I wouldn't have moved it.
Comment 6 Aleix Pol 2021-05-24 01:55:11 UTC
This crash is not in our codebase, it could happen to any app using Qt. I looked at the code and it doesn't look like the backtrace is all that useful, since it's calling a null pointer that it didn't use to be.

If you find the issue again, please reopen. Especially if you can reproduce, but I don't think it makes much sense to track it under Discover anyway.