Bug 443128 - Discover crashes in flatpak_dir_update_appstream()
Summary: Discover crashes in flatpak_dir_update_appstream()
Status: RESOLVED DUPLICATE of bug 443745
Alias: None
Product: Discover
Classification: Applications
Component: Flatpak Backend (show other bugs)
Version: 5.22.4
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Dan Leinir Turthra Jensen
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2021-09-29 18:33 UTC by Jim
Modified: 2021-10-26 18:32 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
discover crash in flatpak search (41.64 KB, text/vnd.kde.kcrash-report)
2021-10-26 07:40 UTC, Landgraf132
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jim 2021-09-29 18:33:49 UTC
Application: plasma-discover (5.22.4)

Qt Version: 5.15.2
Frameworks Version: 5.85.0
Operating System: Linux 5.13.19-200.fc34.x86_64 x86_64
Windowing System: X11
Drkonqi Version: 5.22.4
Distribution: Fedora 34 (KDE Plasma)

-- Information about the crash:
- What I was doing when the application crashed: I clicked on the Updates Available icon and Discover crashed while launching. I had no problems updating prior to today(9/29/2021) I'm on Fedora 34 KDE Workstation

- Unusual behavior I noticed: The screen for Discover would appear briefly before crashing.

The crash can be reproduced every time.

-- Backtrace:
Application: Discover (plasma-discover), signal: Aborted

[KCrash Handler]
#4  0x00007f8bab9ad2a2 in raise () at /lib64/libc.so.6
#5  0x00007f8bab9968a4 in abort () at /lib64/libc.so.6
#6  0x00007f8baa466ccc in g_assertion_message_expr.cold () at /lib64/libglib-2.0.so.0
#7  0x00007f8baa4c230f in g_assertion_message_expr () at /lib64/libglib-2.0.so.0
#8  0x00007f8b6c1c1ff3 in _flatpak_dir_get_remote_state () at /lib64/libflatpak.so.0
#9  0x00007f8b6c1c3eae in flatpak_dir_update_appstream () at /lib64/libflatpak.so.0
#10 0x00007f8b6c1d4eea in flatpak_installation_update_appstream_full_sync () at /lib64/libflatpak.so.0
#11 0x00007f8b6c295a36 in FlatpakRefreshAppstreamMetadataJob::run() () at /usr/lib64/qt5/plugins/discover/flatpak-backend.so
#12 0x00007f8babe494a6 in QThreadPrivate::start(void*) () at /lib64/libQt5Core.so.5
#13 0x00007f8baae59299 in start_thread () at /lib64/libpthread.so.0
#14 0x00007f8baba70353 in clone () at /lib64/libc.so.6

Thread 12 (Thread 0x7f8b4b7fe640 (LWP 7465) "QNetworkAccessM"):
#1  0x00007ffefcf649ca in clock_gettime ()
#2  0x00007f8baba37a25 in clock_gettime@GLIBC_2.2.5 () at /lib64/libc.so.6
#3  0x00007f8bac057405 in qt_gettime() () at /lib64/libQt5Core.so.5
#4  0x00007f8bac055d7d in QTimerInfoList::updateCurrentTime() () at /lib64/libQt5Core.so.5
#5  0x00007f8bac0577fd in idleTimerSourceCheck(_GSource*) () at /lib64/libQt5Core.so.5
#6  0x00007f8baa49da15 in g_main_context_check () at /lib64/libglib-2.0.so.0
#7  0x00007f8baa4f138b in g_main_context_iterate.constprop () at /lib64/libglib-2.0.so.0
#8  0x00007f8baa49ac03 in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#9  0x00007f8bac057bee in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#10 0x00007f8bac0051a2 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#11 0x00007f8babe482aa in QThread::exec() () at /lib64/libQt5Core.so.5
#12 0x00007f8babe494a6 in QThreadPrivate::start(void*) () at /lib64/libQt5Core.so.5
#13 0x00007f8baae59299 in start_thread () at /lib64/libpthread.so.0
#14 0x00007f8baba70353 in clone () at /lib64/libc.so.6

Thread 11 (Thread 0x7f8b4affd640 (LWP 7464) "Qt bearer threa"):
#1  0x00007f8baa49cfeb in g_main_context_prepare () at /lib64/libglib-2.0.so.0
#2  0x00007f8baa4f1303 in g_main_context_iterate.constprop () at /lib64/libglib-2.0.so.0
#3  0x00007f8baa49ac03 in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#4  0x00007f8bac057bee in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#5  0x00007f8bac0051a2 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#6  0x00007f8babe482aa in QThread::exec() () at /lib64/libQt5Core.so.5
#7  0x00007f8babe494a6 in QThreadPrivate::start(void*) () at /lib64/libQt5Core.so.5
#8  0x00007f8baae59299 in start_thread () at /lib64/libpthread.so.0
#9  0x00007f8baba70353 in clone () at /lib64/libc.so.6

Thread 10 (Thread 0x7f8b4bfff640 (LWP 7455) "gdbus"):
#1  0x00007f8baa49cebb in g_main_context_prepare () at /lib64/libglib-2.0.so.0
#2  0x00007f8baa4f1303 in g_main_context_iterate.constprop () at /lib64/libglib-2.0.so.0
#3  0x00007f8baa49ca93 in g_main_loop_run () at /lib64/libglib-2.0.so.0
#4  0x00007f8ba9c98d9a in gdbus_shared_thread_func.lto_priv () at /lib64/libgio-2.0.so.0
#5  0x00007f8baa4cbc42 in g_thread_proxy () at /lib64/libglib-2.0.so.0
#6  0x00007f8baae59299 in start_thread () at /lib64/libpthread.so.0
#7  0x00007f8baba70353 in clone () at /lib64/libc.so.6

Thread 9 (Thread 0x7f8b6d3a6640 (LWP 7453) "gmain"):
#1  0x00007f8baa4f148c in g_main_context_iterate.constprop () at /lib64/libglib-2.0.so.0
#2  0x00007f8baa49ac03 in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#3  0x00007f8baa49ac51 in glib_worker_main () at /lib64/libglib-2.0.so.0
#4  0x00007f8baa4cbc42 in g_thread_proxy () at /lib64/libglib-2.0.so.0
#5  0x00007f8baae59299 in start_thread () at /lib64/libpthread.so.0
#6  0x00007f8baba70353 in clone () at /lib64/libc.so.6

Thread 8 (Thread 0x7f8b85a2f640 (LWP 7447) "QQmlThread"):
#1  0x00007f8baa49a83f in g_main_context_acquire () at /lib64/libglib-2.0.so.0
#2  0x00007f8baa4f1291 in g_main_context_iterate.constprop () at /lib64/libglib-2.0.so.0
#3  0x00007f8baa49ac03 in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#4  0x00007f8bac057bee in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#5  0x00007f8bac0051a2 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#6  0x00007f8babe482aa in QThread::exec() () at /lib64/libQt5Core.so.5
#7  0x00007f8bacc045ec in QQmlThreadPrivate::run() () at /lib64/libQt5Qml.so.5
#8  0x00007f8babe494a6 in QThreadPrivate::start(void*) () at /lib64/libQt5Core.so.5
#9  0x00007f8baae59299 in start_thread () at /lib64/libpthread.so.0
#10 0x00007f8baba70353 in clone () at /lib64/libc.so.6

Thread 7 (Thread 0x7f8b7dc36640 (LWP 7446) "plasma-:disk$3"):
#1  0x00007f8baae5f2c0 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#2  0x00007f8b91df942b in util_queue_thread_func () at /usr/lib64/dri/nouveau_dri.so
#3  0x00007f8b91df8eeb in impl_thrd_routine () at /usr/lib64/dri/nouveau_dri.so
#4  0x00007f8baae59299 in start_thread () at /lib64/libpthread.so.0
#5  0x00007f8baba70353 in clone () at /lib64/libc.so.6

Thread 6 (Thread 0x7f8b86437640 (LWP 7445) "plasma-:disk$2"):
#1  0x00007f8baae5f2c0 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#2  0x00007f8b91df942b in util_queue_thread_func () at /usr/lib64/dri/nouveau_dri.so
#3  0x00007f8b91df8eeb in impl_thrd_routine () at /usr/lib64/dri/nouveau_dri.so
#4  0x00007f8baae59299 in start_thread () at /lib64/libpthread.so.0
#5  0x00007f8baba70353 in clone () at /lib64/libc.so.6

Thread 5 (Thread 0x7f8b908ee640 (LWP 7444) "plasma-:disk$1"):
#1  0x00007f8baae5f2c0 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#2  0x00007f8b91df942b in util_queue_thread_func () at /usr/lib64/dri/nouveau_dri.so
#3  0x00007f8b91df8eeb in impl_thrd_routine () at /usr/lib64/dri/nouveau_dri.so
#4  0x00007f8baae59299 in start_thread () at /lib64/libpthread.so.0
#5  0x00007f8baba70353 in clone () at /lib64/libc.so.6

Thread 4 (Thread 0x7f8b910ef640 (LWP 7443) "plasma-:disk$0"):
#1  0x00007f8baae5f2c0 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#2  0x00007f8b91df942b in util_queue_thread_func () at /usr/lib64/dri/nouveau_dri.so
#3  0x00007f8b91df8eeb in impl_thrd_routine () at /usr/lib64/dri/nouveau_dri.so
#4  0x00007f8baae59299 in start_thread () at /lib64/libpthread.so.0
#5  0x00007f8baba70353 in clone () at /lib64/libc.so.6

Thread 3 (Thread 0x7f8b98957640 (LWP 7442) "QDBusConnection"):
#1  0x00007f8baa4f148c in g_main_context_iterate.constprop () at /lib64/libglib-2.0.so.0
#2  0x00007f8baa49ac03 in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#3  0x00007f8bac057bee in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#4  0x00007f8bac0051a2 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#5  0x00007f8babe482aa in QThread::exec() () at /lib64/libQt5Core.so.5
#6  0x00007f8bad56bb6b in QDBusConnectionManager::run() () at /lib64/libQt5DBus.so.5
#7  0x00007f8babe494a6 in QThreadPrivate::start(void*) () at /lib64/libQt5Core.so.5
#8  0x00007f8baae59299 in start_thread () at /lib64/libpthread.so.0
#9  0x00007f8baba70353 in clone () at /lib64/libc.so.6

Thread 2 (Thread 0x7f8b99827640 (LWP 7441) "QXcbEventQueue"):
#1  0x00007f8baadd5f42 in _xcb_conn_wait.part.0 () at /lib64/libxcb.so.1
#2  0x00007f8baadd78fc in xcb_wait_for_event () at /lib64/libxcb.so.1
#3  0x00007f8b999ae0d7 in QXcbEventQueue::run() () at /lib64/libQt5XcbQpa.so.5
#4  0x00007f8babe494a6 in QThreadPrivate::start(void*) () at /lib64/libQt5Core.so.5
#5  0x00007f8baae59299 in start_thread () at /lib64/libpthread.so.0
#6  0x00007f8baba70353 in clone () at /lib64/libc.so.6

Thread 1 (Thread 0x7f8bab6d5940 (LWP 7439) "plasma-discover"):
#1  0x00007f8baae5f2c0 in pthread_cond_wait@@GLIBC_2.3.2 () at /lib64/libpthread.so.0
#2  0x00007f8baadd7cb4 in xcb_wait_for_special_event () at /lib64/libxcb.so.1
#3  0x00007f8b980d0f36 in dri3_wait_for_event_locked () at /lib64/libGLX_mesa.so.0
#4  0x00007f8b980d1b0a in dri3_find_back () at /lib64/libGLX_mesa.so.0
#5  0x00007f8b980d33be in dri3_get_buffer.constprop () at /lib64/libGLX_mesa.so.0
#6  0x00007f8b980d3849 in loader_dri3_get_buffers () at /lib64/libGLX_mesa.so.0
#7  0x00007f8b91dee086 in dri2_allocate_textures () at /usr/lib64/dri/nouveau_dri.so
#8  0x00007f8b91def946 in dri_st_framebuffer_validate () at /usr/lib64/dri/nouveau_dri.so
#9  0x00007f8b91e5580c in st_framebuffer_validate () at /usr/lib64/dri/nouveau_dri.so
#10 0x00007f8b91e55e90 in st_manager_validate_framebuffers () at /usr/lib64/dri/nouveau_dri.so
#11 0x00007f8b91e76a78 in st_validate_state () at /usr/lib64/dri/nouveau_dri.so
#12 0x00007f8b91e7bf39 in st_Clear () at /usr/lib64/dri/nouveau_dri.so
#13 0x00007f8badad6728 in QSGBatchRenderer::Renderer::renderBatches() () at /lib64/libQt5Quick.so.5
#14 0x00007f8badad6e82 in QSGBatchRenderer::Renderer::render() () at /lib64/libQt5Quick.so.5
#15 0x00007f8badac37c4 in QSGRenderer::renderScene(QSGBindable const&) () at /lib64/libQt5Quick.so.5
#16 0x00007f8badac3c63 in QSGRenderer::renderScene(unsigned int) () at /lib64/libQt5Quick.so.5
#17 0x00007f8badb1c825 in QSGDefaultRenderContext::renderNextFrame(QSGRenderer*, unsigned int) () at /lib64/libQt5Quick.so.5
#18 0x00007f8badb772e9 in QQuickWindowPrivate::renderSceneGraph(QSize const&, QSize const&) () at /lib64/libQt5Quick.so.5
#19 0x00007f8badb0f712 in QSGGuiThreadRenderLoop::renderWindow(QQuickWindow*) () at /lib64/libQt5Quick.so.5
#20 0x00007f8badb81acc in QQuickWindow::event(QEvent*) () at /lib64/libQt5Quick.so.5
#21 0x00007f8bacf9e443 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /lib64/libQt5Widgets.so.5
#22 0x00007f8bac006798 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib64/libQt5Core.so.5
#23 0x00007f8bac44b0a4 in QPlatformWindow::windowEvent(QEvent*) () at /lib64/libQt5Gui.so.5
#24 0x00007f8bacfa565a in QApplication::notify(QObject*, QEvent*) () at /lib64/libQt5Widgets.so.5
#25 0x00007f8bac006798 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /lib64/libQt5Core.so.5
#26 0x00007f8bac056e63 in QTimerInfoList::activateTimers() () at /lib64/libQt5Core.so.5
#27 0x00007f8bac0577b4 in idleTimerSourceDispatch(_GSource*, int (*)(void*), void*) () at /lib64/libQt5Core.so.5
#28 0x00007f8baa49d4cf in g_main_context_dispatch () at /lib64/libglib-2.0.so.0
#29 0x00007f8baa4f14f8 in g_main_context_iterate.constprop () at /lib64/libglib-2.0.so.0
#30 0x00007f8baa49ac03 in g_main_context_iteration () at /lib64/libglib-2.0.so.0
#31 0x00007f8bac057b78 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#32 0x00007f8bac0051a2 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /lib64/libQt5Core.so.5
#33 0x00007f8bac00d6e4 in QCoreApplication::exec() () at /lib64/libQt5Core.so.5
#34 0x000055a06ea82660 in main ()
[Inferior 1 (process 7439) detached]

Possible duplicates by query: bug 442709, bug 422987, bug 422983, bug 409987, bug 395762.

Reported using DrKonqi
Comment 1 Aleix Pol 2021-09-30 00:16:33 UTC
Hi Jim, would you be able to run it on a terminal and see if you are getting any error messages? It would help us narrow down what the cause is.
Comment 2 Landgraf132 2021-10-26 07:37:16 UTC
(In reply to Aleix Pol from comment #1)
> Hi Jim, would you be able to run it on a terminal and see if you are getting
> any error messages? It would help us narrow down what the cause is.

kf.kirigami: Units.devicePixelRatio is deprecated (since 5.86 ): This returns 1 when using Qt HiDPI scaling.
adding empty sources model QStandardItemModel(0x561d689dbf00)
do not add a source twice QSharedPointer(0x561d689f40c0) 0x561d687722d0
do not add a source twice QSharedPointer(0x561d689f40c0) 0x561d68772380
org.kde.plasma.libdiscover: Couldn't find a category for  "fwupd-backend"
file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/private/PrivateActionToolButton.qml:74:5: QML Binding: Binding loop detected for property "value"
file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/private/RefreshableScrollView.qml:175:13: QML Binding: Not restoring previous value because restoreMode has not been set.
This behavior is deprecated.
You have to import QtQml 2.15 after any QtQuick imports and set
the restoreMode of the binding to fix this warning.
In Qt < 6.0 the default is Binding.RestoreBinding.
In Qt >= 6.0 the default is Binding.RestoreBindingOrValue.

file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/BasicListItem.qml:279:18: QML QQuickItem*: Binding loop detected for property "implicitWidth"
file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/private/RefreshableScrollView.qml:175:13: QML Binding: Not restoring previous value because restoreMode has not been set.
This behavior is deprecated.
You have to import QtQml 2.15 after any QtQuick imports and set
the restoreMode of the binding to fix this warning.
In Qt < 6.0 the default is Binding.RestoreBinding.
In Qt >= 6.0 the default is Binding.RestoreBindingOrValue.

took really long to fetch FlatpakBackend(0x561d689bedb0)
29 -- exe=/usr/bin/plasma-discover
13 -- platform=xcb
11 -- display=:0
24 -- appname=plasma-discover
17 -- apppath=/usr/bin
10 -- signal=11
10 -- pid=19969
18 -- appversion=5.23.1
49 -- programname=Центр программ Discover
63 -- bugaddress=https://bugs.kde.org/enter_bug.cgi?product=Discover
30 -- productname=discover/discover
12 -- startupid=0
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = plasma-discover path = /usr/bin pid = 19969
KCrash: Arguments: /usr/bin/plasma-discover 
QSocketNotifier: Invalid socket 32 and type 'Read', disabling...
KCrash: Attempting to start /usr/lib/x86_64-linux-gnu/libexec/drkonqi
QSocketNotifier: Invalid socket 106 and type 'Read', disabling...
Comment 3 Landgraf132 2021-10-26 07:40:27 UTC
Created attachment 142897 [details]
discover crash in flatpak search

My report in attachment.
Comment 4 Nate Graham 2021-10-26 16:49:05 UTC
Phew, this one is fixed already in Plasma 5.23.1. :)

*** This bug has been marked as a duplicate of bug 443745 ***
Comment 5 Landgraf132 2021-10-26 18:32:31 UTC
(In reply to Nate Graham from comment #4)
> Phew, this one is fixed already in Plasma 5.23.1. :)
> 
> *** This bug has been marked as a duplicate of bug 443745 ***

I have plasma 5.23.1, the logs are above. The bug is reproduced.