Bug 426565 - Flatpak: Refuses to remove a faulty remote
Summary: Flatpak: Refuses to remove a faulty remote
Status: RESOLVED FIXED
Alias: None
Product: Discover
Classification: Applications
Component: Flatpak Backend (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR major
Target Milestone: ---
Assignee: Dan Leinir Turthra Jensen
URL: https://github.com/flatpak/flatpak/is...
Keywords: drkonqi
: 443455 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-09-15 14:55 UTC by Patrick Silva
Modified: 2021-10-18 21:54 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.23.1


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2020-09-15 14:55:27 UTC
Application: plasma-discover (5.19.80)

Qt Version: 5.15.0
Frameworks Version: 5.75.0
Operating System: Linux 5.4.0-47-generic x86_64
Windowing system: Wayland
Distribution: KDE neon Unstable Edition

-- Information about the crash:
- What I was doing when the application crashed:
Discover crashes everytime I try to remove winepak flatpak repo in "Settings" page.
https://www.winepak.org/

The crash can be reproduced every time.

-- Backtrace:
Application: Discover (plasma-discover), signal: Segmentation fault
Content of s_kcrashErrorMessage: (null)
[New LWP 34059]
[New LWP 34060]
[New LWP 34061]
[New LWP 34062]
[New LWP 34063]
[New LWP 34064]
[New LWP 34065]
[New LWP 34070]
[New LWP 34071]
[New LWP 34072]
[New LWP 34073]
[New LWP 34084]
[New LWP 34085]
[New LWP 34216]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007fad0c7f796f in __GI___poll (fds=fds@entry=0x7ffcaedee368, nfds=nfds@entry=1, timeout=timeout@entry=1000) at ../sysdeps/unix/sysv/linux/poll.c:29
[Current thread is 1 (Thread 0x7fad084fb900 (LWP 34058))]

Thread 15 (Thread 0x7fac93736700 (LWP 34216)):
#0  0x00007fad0c7f796f in __GI___poll (fds=0x7facac192d60, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fad0b16d1ae in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fad0b16d2e3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007facb67e399d in  () at /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so
#4  0x00007fad0b196931 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fad0bad9609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007fad0c804103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 14 (Thread 0x7fac977ff700 (LWP 34085)):
#0  __GI___libc_read (nbytes=16, buf=0x7fac977fea90, fd=65) at ../sysdeps/unix/sysv/linux/read.c:26
#1  __GI___libc_read (fd=65, buf=0x7fac977fea90, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:24
#2  0x00007fad0b1b589f in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fad0b16ccfe in g_main_context_check () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fad0b16d152 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fad0b16d2e3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007fad0cdc1eab in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7fac70000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#7  0x00007fad0cd661bb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fac977feca0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#8  0x00007fad0cb84082 in QThread::exec() (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#9  0x00007fad0cb8520c in QThreadPrivate::start(void*) (arg=0x5605061c6fb0) at thread/qthread_unix.cpp:342
#10 0x00007fad0bad9609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#11 0x00007fad0c804103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 13 (Thread 0x7fac9673c700 (LWP 34084)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x56050303b560) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x56050303b510, cond=0x56050303b538) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x56050303b538, mutex=0x56050303b510) at pthread_cond_wait.c:638
#3  0x00007fad0cb8b10b in QWaitConditionPrivate::wait(QDeadlineTimer) (deadline=..., this=0x56050303b510) at thread/qwaitcondition_unix.cpp:146
#4  QWaitCondition::wait(QMutex*, QDeadlineTimer) (this=this@entry=0x560502f2bf98, mutex=mutex@entry=0x560502f2bf90, deadline=...) at thread/qwaitcondition_unix.cpp:225
#5  0x00007fad0e991154 in QSGRenderThreadEventQueue::takeEvent(bool) (wait=true, this=0x560502f2bf88) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qdeadlinetimer.h:68
#6  QSGRenderThread::processEventsAndWaitForMore() (this=this@entry=0x560502f2bef0) at scenegraph/qsgthreadedrenderloop.cpp:936
#7  0x00007fad0e9915c9 in QSGRenderThread::run() (this=0x560502f2bef0) at scenegraph/qsgthreadedrenderloop.cpp:1053
#8  0x00007fad0cb8520c in QThreadPrivate::start(void*) (arg=0x560502f2bef0) at thread/qthread_unix.cpp:342
#9  0x00007fad0bad9609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#10 0x00007fad0c804103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 12 (Thread 0x7facdd7fa700 (LWP 34073)):
#0  0x00007fad0eec3d1d in __tls_get_addr () at /lib64/ld-linux-x86-64.so.2
#1  0x00007fad0cb846ea in get_thread_data () at thread/qthread_unix.cpp:220
#2  QThreadData::current(bool) (createIfNecessary=createIfNecessary@entry=true) at thread/qthread_unix.cpp:220
#3  0x00007fad0cdc2575 in postEventSourcePrepare (timeout=0x0, s=0x7facb8003f20) at kernel/qeventdispatcher_glib.cpp:270
#4  postEventSourceCheck(GSource*) (source=0x7facb8003f20) at kernel/qeventdispatcher_glib.cpp:270
#5  0x00007fad0b16cbe1 in g_main_context_check () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007fad0b16d152 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007fad0b16d2e3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#8  0x00007fad0cdc1eab in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7facb8000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#9  0x00007fad0cd661bb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7facdd7f9ca0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#10 0x00007fad0cb84082 in QThread::exec() (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#11 0x00007fad0cb8520c in QThreadPrivate::start(void*) (arg=0x560502cd9590) at thread/qthread_unix.cpp:342
#12 0x00007fad0bad9609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#13 0x00007fad0c804103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 11 (Thread 0x7facddffb700 (LWP 34072)):
#0  0x00007fad0b1ba33d in g_mutex_lock () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007fad0b16c935 in g_main_context_query () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fad0b16d128 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fad0b16d533 in g_main_loop_run () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fad0aec8eda in  () at /lib/x86_64-linux-gnu/libgio-2.0.so.0
#5  0x00007fad0b196931 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007fad0bad9609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#7  0x00007fad0c804103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 10 (Thread 0x7facde7fc700 (LWP 34071)):
#0  __GI___libc_read (nbytes=16, buf=0x7facde7fbbe0, fd=23) at ../sysdeps/unix/sysv/linux/read.c:26
#1  __GI___libc_read (fd=23, buf=0x7facde7fbbe0, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:24
#2  0x00007fad0b1b589f in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fad0b16ccfe in g_main_context_check () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fad0b16d152 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fad0b16d2e3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007fad0b16d331 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007fad0b196931 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#8  0x00007fad0bad9609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#9  0x00007fad0c804103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 9 (Thread 0x7facdeffd700 (LWP 34070)):
#0  __GI___libc_read (nbytes=16, buf=0x7facdeffca90, fd=21) at ../sysdeps/unix/sysv/linux/read.c:26
#1  __GI___libc_read (fd=21, buf=0x7facdeffca90, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:24
#2  0x00007fad0b1b589f in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fad0b16ccfe in g_main_context_check () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fad0b16d152 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fad0b16d2e3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007fad0cdc1eab in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7faccc000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#7  0x00007fad0cd661bb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7facdeffcca0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#8  0x00007fad0cb84082 in QThread::exec() (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#9  0x00007fad0cb8520c in QThreadPrivate::start(void*) (arg=0x560502c60340) at thread/qthread_unix.cpp:342
#10 0x00007fad0bad9609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#11 0x00007fad0c804103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 8 (Thread 0x7facebfff700 (LWP 34065)):
#0  0x00007fad0b16b09d in g_source_ref () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007fad0b16b168 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fad0b16caff in g_main_context_check () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fad0b16d152 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fad0b16d2e3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fad0cdc1eab in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7face0000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#6  0x00007fad0cd661bb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7facebffec60, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#7  0x00007fad0cb84082 in QThread::exec() (this=this@entry=0x560502965fc0) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#8  0x00007fad0e8cc30a in QQuickPixmapReader::run() (this=0x560502965fc0) at util/qquickpixmapcache.cpp:1008
#9  0x00007fad0cb8520c in QThreadPrivate::start(void*) (arg=0x560502965fc0) at thread/qthread_unix.cpp:342
#10 0x00007fad0bad9609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#11 0x00007fad0c804103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 7 (Thread 0x7facfd89e700 (LWP 34064)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x5605022e61f8) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x5605022e61a8, cond=0x5605022e61d0) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x5605022e61d0, mutex=0x5605022e61a8) at pthread_cond_wait.c:638
#3  0x00007facff75297b in cnd_wait (mtx=0x5605022e61a8, cond=0x5605022e61d0) at ../include/c11/threads_posix.h:155
#4  util_queue_thread_func (input=input@entry=0x5605023275f0) at ../src/util/u_queue.c:275
#5  0x00007facff75258b in impl_thrd_routine (p=<optimized out>) at ../include/c11/threads_posix.h:87
#6  0x00007fad0bad9609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#7  0x00007fad0c804103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7facfe09f700 (LWP 34063)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x5605022e61f8) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x5605022e61a8, cond=0x5605022e61d0) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x5605022e61d0, mutex=0x5605022e61a8) at pthread_cond_wait.c:638
#3  0x00007facff75297b in cnd_wait (mtx=0x5605022e61a8, cond=0x5605022e61d0) at ../include/c11/threads_posix.h:155
#4  util_queue_thread_func (input=input@entry=0x560502327af0) at ../src/util/u_queue.c:275
#5  0x00007facff75258b in impl_thrd_routine (p=<optimized out>) at ../include/c11/threads_posix.h:87
#6  0x00007fad0bad9609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#7  0x00007fad0c804103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7facfe8a0700 (LWP 34062)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x5605022e61f8) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x5605022e61a8, cond=0x5605022e61d0) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x5605022e61d0, mutex=0x5605022e61a8) at pthread_cond_wait.c:638
#3  0x00007facff75297b in cnd_wait (mtx=0x5605022e61a8, cond=0x5605022e61d0) at ../include/c11/threads_posix.h:155
#4  util_queue_thread_func (input=input@entry=0x5605025cdf30) at ../src/util/u_queue.c:275
#5  0x00007facff75258b in impl_thrd_routine (p=<optimized out>) at ../include/c11/threads_posix.h:87
#6  0x00007fad0bad9609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#7  0x00007fad0c804103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7facff0a1700 (LWP 34061)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x5605022e61f8) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x5605022e61a8, cond=0x5605022e61d0) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x5605022e61d0, mutex=0x5605022e61a8) at pthread_cond_wait.c:638
#3  0x00007facff75297b in cnd_wait (mtx=0x5605022e61a8, cond=0x5605022e61d0) at ../include/c11/threads_posix.h:155
#4  util_queue_thread_func (input=input@entry=0x5605024b8990) at ../src/util/u_queue.c:275
#5  0x00007facff75258b in impl_thrd_routine (p=<optimized out>) at ../include/c11/threads_posix.h:87
#6  0x00007fad0bad9609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#7  0x00007fad0c804103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7fad061bc700 (LWP 34060)):
#0  0x00007fad0b16972d in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007fad0b16b185 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fad0b16c66b in g_main_context_prepare () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fad0b16d0db in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fad0b16d2e3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fad0cdc1eab in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7facf8000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#6  0x00007fad0cd661bb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fad061bbc80, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#7  0x00007fad0cb84082 in QThread::exec() (this=this@entry=0x56050222ca70) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#8  0x00007fad0da926c9 in QQmlThreadPrivate::run() (this=0x56050222ca70) at qml/ftw/qqmlthread.cpp:155
#9  0x00007fad0cb8520c in QThreadPrivate::start(void*) (arg=0x56050222ca70) at thread/qthread_unix.cpp:342
#10 0x00007fad0bad9609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#11 0x00007fad0c804103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7fad073cd700 (LWP 34059)):
#0  0x00007fad0c7f796f in __GI___poll (fds=0x7fad00005240, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fad0b16d1ae in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fad0b16d2e3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fad0cdc1eab in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7fad00000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007fad0cd661bb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fad073ccc70, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#5  0x00007fad0cb84082 in QThread::exec() (this=this@entry=0x7fad0e3e7d80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#6  0x00007fad0e364f2b in QDBusConnectionManager::run() (this=0x7fad0e3e7d80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:179
#7  0x00007fad0cb8520c in QThreadPrivate::start(void*) (arg=0x7fad0e3e7d80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:342
#8  0x00007fad0bad9609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#9  0x00007fad0c804103 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7fad084fb900 (LWP 34058)):
[KCrash Handler]
#6  0x00007face82798a1 in FlatpakSourcesBackend::removeSource(QString const&) (this=0x560502e9b070, id=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qhash.h:241
#7  0x00007fad0ed088d7 in AbstractSourcesBackend::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=_o@entry=0x560502e9b070, _c=_c@entry=QMetaObject::InvokeMetaMethod, _id=_id@entry=7, _a=_a@entry=0x7ffcaedeee50) at ./obj-x86_64-linux-gnu/libdiscover/DiscoverCommon_autogen/3YJK5W5UP7/moc_AbstractSourcesBackend.cpp:170
#8  0x00007fad0ed0c753 in AbstractSourcesBackend::qt_metacall(QMetaObject::Call, int, void**) (this=0x560502e9b070, _c=QMetaObject::InvokeMetaMethod, _id=7, _a=0x7ffcaedeee50) at ./obj-x86_64-linux-gnu/libdiscover/DiscoverCommon_autogen/3YJK5W5UP7/moc_AbstractSourcesBackend.cpp:260
#9  0x00007fad0da25365 in QQmlObjectOrGadget::metacall(QMetaObject::Call, int, void**) const (this=this@entry=0x7ffcaedef190, type=type@entry=QMetaObject::InvokeMetaMethod, index=<optimized out>, index@entry=12, argv=<optimized out>) at ../../include/QtQml/5.15.0/QtQml/private/../../../../../src/qml/qml/ftw/qflagpointer_p.h:351
#10 0x00007fad0d8ee245 in CallMethod(QQmlObjectOrGadget const&, int, int, int, int*, QV4::ExecutionEngine*, QV4::CallData*, QMetaObject::Call) (object=..., index=<optimized out>, returnType=returnType@entry=1, argCount=<optimized out>, argTypes=<optimized out>, engine=engine@entry=0x560502224940, callArgs=<optimized out>, callType=<optimized out>) at jsruntime/qv4qobjectwrapper.cpp:1301
#11 0x00007fad0d8f0347 in CallPrecise(QQmlObjectOrGadget const&, QQmlPropertyData const&, QV4::ExecutionEngine*, QV4::CallData*, QMetaObject::Call) (object=..., data=..., engine=engine@entry=0x560502224940, callArgs=callArgs@entry=0x7fad0557d6a8, callType=callType@entry=QMetaObject::InvokeMetaMethod) at ../../include/QtQml/5.15.0/QtQml/private/../../../../../src/qml/qml/qqmlpropertydata_p.h:285
#12 0x00007fad0d8f125a in QV4::QObjectMethod::callInternal(QV4::Value const*, QV4::Value const*, int) const (this=<optimized out>, thisObject=<optimized out>, argv=<optimized out>, argc=1) at jsruntime/qv4qobjectwrapper.cpp:2128
#13 0x00007fad0d911271 in QV4::FunctionObject::call(QV4::Value const*, QV4::Value const*, int) const (argc=<optimized out>, argv=<optimized out>, thisObject=<optimized out>, this=<optimized out>) at ../../include/QtQml/5.15.0/QtQml/private/../../../../../src/qml/jsruntime/qv4functionobject_p.h:172
#14 QV4::Moth::VME::interpret(QV4::CppStackFrame*, QV4::ExecutionEngine*, char const*) (frame=0x7ffcaedef480, engine=0x560502224940, code=0x7fad0557d648 "@F\026\005\255\177") at jsruntime/qv4vme_moth.cpp:754
#15 0x00007fad0d9131af in QV4::Moth::VME::exec(QV4::CppStackFrame*, QV4::ExecutionEngine*) (frame=frame@entry=0x7ffcaedef480, engine=engine@entry=0x560502224940) at jsruntime/qv4vme_moth.cpp:463
#16 0x00007fad0d89fdfd in QV4::Function::call(QV4::Value const*, QV4::Value const*, int, QV4::ExecutionContext const*) (this=this@entry=0x560506ef7580, thisObject=<optimized out>, argv=argv@entry=0x7fad0557d600, argc=<optimized out>, context=<optimized out>) at jsruntime/qv4function.cpp:69
#17 0x00007fad0da46607 in QQmlJavaScriptExpression::evaluate(QV4::CallData*, bool*) (this=this@entry=0x560507411ff0, callData=callData@entry=0x7fad0557d5d0, isUndefined=isUndefined@entry=0x0) at ../../include/QtQml/5.15.0/QtQml/private/../../../../../src/qml/jsruntime/qv4value_p.h:343
#18 0x00007fad0d9e92ce in QQmlBoundSignalExpression::evaluate(void**) (this=<optimized out>, a=<optimized out>) at ../../include/QtQml/5.15.0/QtQml/private/../../../../../src/qml/jsruntime/qv4jscall_p.h:95
#19 0x00007fad0d9ea368 in QQmlBoundSignal_callback(QQmlNotifierEndpoint*, void**) (e=0x560507411fa0, a=0x7ffcaedf1190) at ../../include/QtQml/5.15.0/QtQml/private/../../../../../src/qml/qml/qqmlboundsignalexpressionpointer_p.h:69
#20 0x00007fad0da24dcd in QQmlNotifier::emitNotify(QQmlNotifierEndpoint*, void**) (endpoint=<optimized out>, a=a@entry=0x7ffcaedf1190) at qml/qqmlnotifier.cpp:104
#21 0x00007fad0d9c7c7f in QQmlData::signalEmitted(QAbstractDeclarativeData*, QObject*, int, void**) (object=0x560507411890, index=11, a=0x7ffcaedf1190) at qml/qqmlengine.cpp:834
#22 0x00007fad0cd9e135 in doActivate<false>(QObject*, int, void**) (sender=0x560507411890, signal_index=11, argv=0x7ffcaedf1190) at kernel/qobject_p.h:110
#23 0x00007fad0cd97977 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) (sender=sender@entry=0x560507411890, m=m@entry=0x7fad07a232c0 <QQuickAction::staticMetaObject>, local_signal_index=local_signal_index@entry=8, argv=argv@entry=0x7ffcaedf1190) at kernel/qobject.cpp:3946
#24 0x00007fad07937cc6 in QQuickAction::triggered(QObject*) (this=this@entry=0x560507411890, _t1=<optimized out>, _t1@entry=0x0) at .moc/moc_qquickaction_p.cpp:363
#25 0x00007fad079389c6 in QQuickActionPrivate::trigger(QObject*, bool) (this=0x560507411940, source=0x0, doToggle=<optimized out>) at qquickaction.cpp:558
#26 0x00007fad07938a82 in QQuickAction::trigger(QObject*) (this=<optimized out>, source=<optimized out>) at qquickaction.cpp:539
#27 0x00007fad07938cc2 in QQuickAction::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=_o@entry=0x560507411890, _c=_c@entry=QMetaObject::InvokeMetaMethod, _id=_id@entry=13, _a=_a@entry=0x7ffcaedf1590) at .moc/moc_qquickaction_p.cpp:153
#28 0x00007fad079393a3 in QQuickAction::qt_metacall(QMetaObject::Call, int, void**) (this=0x560507411890, _c=QMetaObject::InvokeMetaMethod, _id=13, _a=0x7ffcaedf1590) at .moc/moc_qquickaction_p.cpp:283
#29 0x00007fad0d9c1ae2 in QQmlVMEMetaObject::metaCall(QObject*, QMetaObject::Call, int, void**) () at qml/qqmlvmemetaobject.cpp:1045
#30 0x00007fad0d9c1aa4 in QQmlVMEMetaObject::metaCall(QObject*, QMetaObject::Call, int, void**) () at ../../include/QtQml/5.15.0/QtQml/private/../../../../../src/qml/qml/ftw/qflagpointer_p.h:351
#31 0x00007fad0da25365 in QQmlObjectOrGadget::metacall(QMetaObject::Call, int, void**) const (this=this@entry=0x7ffcaedf1880, type=type@entry=QMetaObject::InvokeMetaMethod, index=<optimized out>, index@entry=18, argv=argv@entry=0x7ffcaedf1590) at ../../include/QtQml/5.15.0/QtQml/private/../../../../../src/qml/qml/ftw/qflagpointer_p.h:351
#32 0x00007fad0d8ee614 in CallMethod(QQmlObjectOrGadget const&, int, int, int, int*, QV4::ExecutionEngine*, QV4::CallData*, QMetaObject::Call) (object=..., index=18, returnType=returnType@entry=43, argCount=argCount@entry=0, argTypes=argTypes@entry=0x0, engine=engine@entry=0x560502224940, callArgs=0x7fad0557d588, callType=QMetaObject::InvokeMetaMethod) at jsruntime/qv4qobjectwrapper.cpp:1319
#33 0x00007fad0d8f0284 in CallPrecise(QQmlObjectOrGadget const&, QQmlPropertyData const&, QV4::ExecutionEngine*, QV4::CallData*, QMetaObject::Call) (object=..., data=..., engine=engine@entry=0x560502224940, callArgs=callArgs@entry=0x7fad0557d588, callType=callType@entry=QMetaObject::InvokeMetaMethod) at ../../include/QtQml/5.15.0/QtQml/private/../../../../../src/qml/qml/qqmlpropertydata_p.h:285
#34 0x00007fad0d8f156f in CallOverloaded (callType=QMetaObject::InvokeMetaMethod, propertyCache=0x7facf81424d0, callArgs=0x7fad0557d588, engine=0x560502224940, data=..., object=...) at jsruntime/qv4qobjectwrapper.cpp:1642
#35 QV4::QObjectMethod::callInternal(QV4::Value const*, QV4::Value const*, int) const (this=<optimized out>, thisObject=<optimized out>, argv=<optimized out>, argc=<optimized out>) at jsruntime/qv4qobjectwrapper.cpp:2130
#36 0x00007fad0d911271 in QV4::FunctionObject::call(QV4::Value const*, QV4::Value const*, int) const (argc=<optimized out>, argv=<optimized out>, thisObject=<optimized out>, this=<optimized out>) at ../../include/QtQml/5.15.0/QtQml/private/../../../../../src/qml/jsruntime/qv4functionobject_p.h:172
#37 QV4::Moth::VME::interpret(QV4::CppStackFrame*, QV4::ExecutionEngine*, char const*) (frame=0x7ffcaedf1b70, engine=0x560502224940, code=0x7fad0557d540 "@(\027\005\255\177") at jsruntime/qv4vme_moth.cpp:754
#38 0x00007fad0d9131af in QV4::Moth::VME::exec(QV4::CppStackFrame*, QV4::ExecutionEngine*) (frame=frame@entry=0x7ffcaedf1b70, engine=engine@entry=0x560502224940) at jsruntime/qv4vme_moth.cpp:463
#39 0x00007fad0d89fdfd in QV4::Function::call(QV4::Value const*, QV4::Value const*, int, QV4::ExecutionContext const*) (this=this@entry=0x560506efac30, thisObject=<optimized out>, argv=argv@entry=0x7fad0557d500, argc=<optimized out>, context=<optimized out>) at jsruntime/qv4function.cpp:69
#40 0x00007fad0da46607 in QQmlJavaScriptExpression::evaluate(QV4::CallData*, bool*) (this=this@entry=0x560507438a70, callData=callData@entry=0x7fad0557d4d0, isUndefined=isUndefined@entry=0x0) at ../../include/QtQml/5.15.0/QtQml/private/../../../../../src/qml/jsruntime/qv4value_p.h:343
#41 0x00007fad0d9e92ce in QQmlBoundSignalExpression::evaluate(void**) (this=<optimized out>, a=<optimized out>) at ../../include/QtQml/5.15.0/QtQml/private/../../../../../src/qml/jsruntime/qv4jscall_p.h:95
#42 0x00007fad0d9ea368 in QQmlBoundSignal_callback(QQmlNotifierEndpoint*, void**) (e=0x5605074389f0, a=0x0) at ../../include/QtQml/5.15.0/QtQml/private/../../../../../src/qml/qml/qqmlboundsignalexpressionpointer_p.h:69
#43 0x00007fad0da24dcd in QQmlNotifier::emitNotify(QQmlNotifierEndpoint*, void**) (endpoint=<optimized out>, a=a@entry=0x0) at qml/qqmlnotifier.cpp:104
#44 0x00007fad0d9c7c7f in QQmlData::signalEmitted(QAbstractDeclarativeData*, QObject*, int, void**) (object=0x56050742c170, index=64, a=0x0) at qml/qqmlengine.cpp:834
#45 0x00007fad0cd9e135 in doActivate<false>(QObject*, int, void**) (sender=0x56050742c170, signal_index=64, argv=0x0) at kernel/qobject_p.h:110
#46 0x00007fad07936a41 in QQuickAbstractButtonPrivate::handleRelease(QPointF const&) (this=0x56050742c230, point=...) at qquickabstractbutton.cpp:182
#47 0x00007fad07955a99 in QQuickControl::mouseReleaseEvent(QMouseEvent*) (this=<optimized out>, event=0x7ffcaedf4160) at /usr/include/x86_64-linux-gnu/qt5/QtGui/qevent.h:128
#48 0x00007fad0e9dccc8 in QQuickItem::event(QEvent*) (this=0x56050742c170, ev=0x7ffcaedf4160) at items/qquickitem.cpp:8128
#49 0x00007fad0de0bcc3 in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=this@entry=0x56050217b8c0, receiver=receiver@entry=0x56050742c170, e=e@entry=0x7ffcaedf4160) at kernel/qapplication.cpp:3671
#50 0x00007fad0de14c70 in QApplication::notify(QObject*, QEvent*) (this=0x7ffcaedf45e0, receiver=0x56050742c170, e=0x7ffcaedf4160) at kernel/qapplication.cpp:3417
#51 0x00007fad0cd676aa in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x56050742c170, event=0x7ffcaedf4160) at ../../include/QtCore/5.15.0/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:325
#52 0x00007fad0e9f6a45 in QQuickWindowPrivate::deliverMouseEvent(QQuickPointerMouseEvent*) (this=this@entry=0x560502209d70, pointerEvent=0x560502c0e420) at items/qquickwindow.cpp:1900
#53 0x00007fad0e9f816f in QQuickWindowPrivate::deliverPointerEvent(QQuickPointerEvent*) (this=this@entry=0x560502209d70, event=0x560502c0e420) at items/qquickwindow.cpp:2488
#54 0x00007fad0e9f9099 in QQuickWindowPrivate::handleMouseEvent(QMouseEvent*) (event=0x7ffcaedf4160, this=0x560502209d70) at items/qquickwindow.cpp:2337
#55 QQuickWindowPrivate::handleMouseEvent(QMouseEvent*) (this=0x560502209d70, event=0x7ffcaedf4160) at items/qquickwindow.cpp:2290
#56 0x00007fad0d1a283d in QWindow::event(QEvent*) (this=this@entry=0x560502279420, ev=ev@entry=0x7ffcaedf4160) at kernel/qwindow.cpp:2433
#57 0x00007fad0e9faabb in QQuickWindow::event(QEvent*) (this=0x560502279420, e=0x7ffcaedf4160) at items/qquickwindow.cpp:1782
#58 0x00007fad0de0bcc3 in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=this@entry=0x56050217b8c0, receiver=receiver@entry=0x560502279420, e=e@entry=0x7ffcaedf4160) at kernel/qapplication.cpp:3671
#59 0x00007fad0de14c70 in QApplication::notify(QObject*, QEvent*) (this=0x7ffcaedf45e0, receiver=0x560502279420, e=0x7ffcaedf4160) at kernel/qapplication.cpp:3417
#60 0x00007fad0cd676aa in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x560502279420, event=0x7ffcaedf4160) at ../../include/QtCore/5.15.0/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:325
#61 0x00007fad0d196f78 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) (e=e@entry=0x7fac7c2176d0) at kernel/qguiapplication.cpp:2214
#62 0x00007fad0d1985b5 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) (e=e@entry=0x7fac7c2176d0) at kernel/qguiapplication.cpp:1946
#63 0x00007fad0d1702cb in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) (flags=...) at kernel/qwindowsysteminterface.cpp:1175
#64 0x00007fad07eacd64 in userEventSourceDispatch(_GSource*, int (*)(void*), void*) () at /lib/x86_64-linux-gnu/libQt5WaylandClient.so.5
#65 0x00007fad0b16cfbd in g_main_context_dispatch () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#66 0x00007fad0b16d240 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#67 0x00007fad0b16d2e3 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#68 0x00007fad0cdc1e92 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x5605021bf930, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#69 0x00007fad0cd661bb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7ffcaedf4500, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#70 0x00007fad0cd6e354 in QCoreApplication::exec() () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#71 0x00005605011aa5c7 in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at ./discover/main.cpp:171
[Inferior 1 (process 34058) detached]

Possible duplicates by query: bug 420259.

Reported using DrKonqi
Comment 1 Nate Graham 2020-09-15 18:40:18 UTC
Can reproduce. Adding https://dl.winepak.org/repo/winepak.flatpakrepo as a repo and then deleting it makes Discover crash.

I can't reproduce with other repos though. Just https://dl.winepak.org/repo/winepak.flatpakrepo.
Comment 2 Nate Graham 2020-09-15 19:02:18 UTC
It is crashing in toRemoveHash.reserve(refs->len);

refs->len seems to be invalid; even trying to print its value crashes Discover.
Comment 3 Aleix Pol 2020-09-16 01:37:42 UTC
Git commit de93217a1f2f5a38f3699fa07a7b6818d80fe252 by Aleix Pol.
Committed on 16/09/2020 at 01:35.
Pushed by apol into branch 'master'.

flatpak: Don't crash if we try to remvoe a fautly remote

Instead of returning an empty list, it returns a nullptr. Account for
that.

M  +55   -51   libdiscover/backends/FlatpakBackend/FlatpakSourcesBackend.cpp

https://invent.kde.org/plasma/discover/commit/de93217a1f2f5a38f3699fa07a7b6818d80fe252
Comment 4 Aleix Pol 2020-09-16 01:45:04 UTC
I managed to reproduce and fix the crash. Now we get an error message that the repository could not be removed. I have the impression that it's an issue in libflatpak, so I reported it there.

Error I get:
 FlatpakSourcesBackend::removeSource|?libDiscoverCommon.so?|AbstractSourcesBackend::qt_metacall could not list refs in repo "winepak" Signature made Fri Jul 20 04:30:34 2018 using RSA key ID A959831C080B608F
BAD signature from " <julian@richen.io>"
Key expired Tue Jun  9 20:16:34 2020

(process:93795): OSTree-CRITICAL **: 03:31:49.130: ostree_repo_open: assertion 'error == NULL || *error == NULL' failed

https://github.com/flatpak/flatpak/issues/3862
Comment 5 Patrick Silva 2020-09-18 21:12:32 UTC
Today Discover 5.20 beta crashed on Arch Linux when I removed Gnome Nightly repo.

https://wiki.gnome.org/Apps/Nightly
Comment 6 Aleix Pol 2021-10-18 21:52:50 UTC
Git commit 97b1a4530c03e84208799786d158a0331dd5ec40 by Aleix Pol Gonzalez, on behalf of Aleix Pol.
Committed on 18/10/2021 at 21:52.
Pushed by apol into branch 'master'.

flatpak: Don't reuse GError instances

It might already be filled and that makes libostree to assert out when
it's the case.

M  +3    -2    libdiscover/backends/FlatpakBackend/FlatpakSourcesBackend.cpp

https://invent.kde.org/plasma/discover/commit/97b1a4530c03e84208799786d158a0331dd5ec40
Comment 7 Aleix Pol 2021-10-18 21:53:13 UTC
Git commit 0f2f62b8412892df23787439c1d1cd4a5b6eeb83 by Aleix Pol Gonzalez, on behalf of Aleix Pol.
Committed on 18/10/2021 at 21:53.
Pushed by apol into branch 'Plasma/5.23'.

flatpak: Don't reuse GError instances

It might already be filled and that makes libostree to assert out when
it's the case.


(cherry picked from commit 97b1a4530c03e84208799786d158a0331dd5ec40)

M  +3    -2    libdiscover/backends/FlatpakBackend/FlatpakSourcesBackend.cpp

https://invent.kde.org/plasma/discover/commit/0f2f62b8412892df23787439c1d1cd4a5b6eeb83
Comment 8 Aleix Pol 2021-10-18 21:54:12 UTC
*** Bug 443455 has been marked as a duplicate of this bug. ***