Bug 398627 - Tried to install Imagenes and Discover crashed in QSnapdSnap::screenshotCount()
Summary: Tried to install Imagenes and Discover crashed in QSnapdSnap::screenshotCount()
Status: RESOLVED WORKSFORME
Alias: None
Product: Discover
Classification: Applications
Component: Snap Backend (show other bugs)
Version: 5.13.4
Platform: Neon Linux
: NOR crash
Target Milestone: ---
Assignee: Aleix Pol
URL:
Keywords: drkonqi, triaged
Depends on:
Blocks:
 
Reported: 2018-09-14 17:32 UTC by sunit
Modified: 2018-11-12 16:05 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sunit 2018-09-14 17:32:21 UTC
Application: plasma-discover (5.13.4)

Qt Version: 5.11.1
Frameworks Version: 5.50.0
Operating System: Linux 4.15.0-34-generic x86_64
Distribution: KDE neon LTS User Edition 5.12

-- Information about the crash:
- What I was doing when the application crashed:

I was browsung the snap store when I came to know about this application, google photos client. I clicked installed that took me from firefox to Discover where the application was not found. So I went to its settings>missing backends and installed snap backened, then tried again from firefox and this time Discover crashed

The crash can be reproduced every time.

-- Backtrace:
Application: Discover (plasma-discover), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fc64ec2cc80 (LWP 8164))]

Thread 11 (Thread 0x7fc5fffff700 (LWP 8179)):
#0  0x00007fc64a1a6bf9 in __GI___poll (fds=0x7fc5f40018a0, nfds=1, timeout=105533) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fc644716439 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fc64471654c in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fc64aae6a9b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007fc64aa8adea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fc64a8b5b8a in QThread::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fc64a8c0aab in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fc6468b16db in start_thread (arg=0x7fc5fffff700) at pthread_create.c:463
#8  0x00007fc64a1b388f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 10 (Thread 0x7fc606aa6700 (LWP 8176)):
#0  0x00007fc64a1a6bf9 in __GI___poll (fds=0x5614cf9d0a20, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fc644716439 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fc6447167d2 in g_main_loop_run () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fc60ea67f66 in  () at /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007fc64473de05 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fc6468b16db in start_thread (arg=0x7fc606aa6700) at pthread_create.c:463
#6  0x00007fc64a1b388f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 9 (Thread 0x7fc6072a7700 (LWP 8175)):
#0  0x00007fc64a1a20b4 in __GI___libc_read (fd=22, buf=0x7fc6072a6ce0, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:27
#1  0x00007fc64475a980 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fc644715f27 in g_main_context_check () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fc6447163e0 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fc64471654c in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fc644716591 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007fc64473de05 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007fc6468b16db in start_thread (arg=0x7fc6072a7700) at pthread_create.c:463
#8  0x00007fc64a1b388f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 8 (Thread 0x7fc60ffff700 (LWP 8174)):
#0  0x00007fc6468b7ed9 in futex_reltimed_wait_cancelable (private=<optimized out>, reltime=0x7fc60fffec30, expected=0, futex_word=0x7fc614005f34) at ../sysdeps/unix/sysv/linux/futex-internal.h:142
#1  0x00007fc6468b7ed9 in __pthread_cond_wait_common (abstime=0x7fc60fffed00, mutex=0x7fc614005ee0, cond=0x7fc614005f08) at pthread_cond_wait.c:533
#2  0x00007fc6468b7ed9 in __pthread_cond_timedwait (cond=0x7fc614005f08, mutex=0x7fc614005ee0, abstime=0x7fc60fffed00) at pthread_cond_wait.c:667
#3  0x00007fc64a8c1850 in QWaitCondition::wait(QMutex*, unsigned long) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007fc64a8b825d in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fc64a8c0aab in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fc6468b16db in start_thread (arg=0x7fc60ffff700) at pthread_create.c:463
#7  0x00007fc64a1b388f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 7 (Thread 0x7fc61cda4700 (LWP 8173)):
#0  0x00007fc6447159f6 in g_main_context_prepare () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007fc64471636b in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fc64471654c in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fc64aae6a9b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007fc64aa8adea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fc64a8b5b8a in QThread::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fc64a8c0aab in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fc6468b16db in start_thread (arg=0x7fc61cda4700) at pthread_create.c:463
#8  0x00007fc64a1b388f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7fc61e325700 (LWP 8172)):
#0  0x00007fc64a1a20b4 in __GI___libc_read (fd=15, buf=0x7fc61e324b90, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:27
#1  0x00007fc64475a980 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fc644715f27 in g_main_context_check () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fc6447163e0 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fc64471654c in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fc64aae6a9b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fc64aa8adea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fc64a8b5b8a in QThread::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007fc64a8c0aab in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007fc6468b16db in start_thread (arg=0x7fc61e325700) at pthread_create.c:463
#10 0x00007fc64a1b388f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7fc61f3e4700 (LWP 8171)):
#0  0x00007fc64a1a6bf9 in __GI___poll (fds=0x7fc6180055a0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fc644716439 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fc64471654c in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fc64aae6a9b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007fc64aa8adea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fc64a8b5b8a in QThread::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fc64dcb0906 in  () at /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#7  0x00007fc64a8c0aab in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007fc6468b16db in start_thread (arg=0x7fc61f3e4700) at pthread_create.c:463
#9  0x00007fc64a1b388f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7fc62ec07700 (LWP 8169)):
#0  0x00007ffd6a1e4b50 in clock_gettime ()
#1  0x00007fc64a1c2ea6 in __GI___clock_gettime (clock_id=1, tp=0x7fc62ec06af0) at ../sysdeps/unix/clock_gettime.c:115
#2  0x00007fc64aae63a1 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007fc64aae4bd9 in QTimerInfoList::updateCurrentTime() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007fc64aae51b5 in QTimerInfoList::timerWait(timespec&) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fc64aae67fe in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fc644715998 in g_main_context_prepare () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007fc64471636b in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#8  0x00007fc64471654c in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#9  0x00007fc64aae6a9b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007fc64aa8adea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#11 0x00007fc64a8b5b8a in QThread::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#12 0x00007fc64b45a8b5 in  () at /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#13 0x00007fc64a8c0aab in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#14 0x00007fc6468b16db in start_thread (arg=0x7fc62ec07700) at pthread_create.c:463
#15 0x00007fc64a1b388f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7fc62fe18700 (LWP 8168)):
#0  0x00007fc64475bcf9 in g_mutex_lock () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007fc6447152e0 in g_main_context_acquire () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fc6447162f5 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fc64471654c in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fc64aae6a9b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fc64aa8adea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007fc64a8b5b8a in QThread::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007fc64c7b3e45 in  () at /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#8  0x00007fc64a8c0aab in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#9  0x00007fc6468b16db in start_thread (arg=0x7fc62fe18700) at pthread_create.c:463
#10 0x00007fc64a1b388f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7fc63c1d5700 (LWP 8167)):
#0  0x00007fc64a1a6bf9 in __GI___poll (fds=0x7fc63c1d4ca8, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007fc6444ad747 in  () at /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007fc6444af36a in xcb_wait_for_event () at /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007fc63f196129 in  () at /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007fc64a8c0aab in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007fc6468b16db in start_thread (arg=0x7fc63c1d5700) at pthread_create.c:463
#6  0x00007fc64a1b388f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7fc64ec2cc80 (LWP 8164)):
[KCrash Handler]
#6  0x00007fc60e77af96 in g_type_check_instance_cast () at /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0
#7  0x00007fc60efaa0a5 in QSnapdSnap::screenshotCount() const () at /usr/lib/x86_64-linux-gnu/libsnapd-qt.so.1
#8  0x00007fc60f1d43ab in  () at /usr/lib/x86_64-linux-gnu/qt5/plugins/discover/snap-backend.so
#9  0x00007fc64d93ef60 in ResourcesProxyModel::removeDuplicates(QVector<AbstractResource*>&) () at /usr/lib/x86_64-linux-gnu/plasma-discover/libDiscoverCommon.so
#10 0x00007fc64d93f613 in ResourcesProxyModel::sortedInsertion(QVector<AbstractResource*> const&) () at /usr/lib/x86_64-linux-gnu/plasma-discover/libDiscoverCommon.so
#11 0x00007fc64d941b52 in ResourcesProxyModel::addResources(QVector<AbstractResource*> const&) () at /usr/lib/x86_64-linux-gnu/plasma-discover/libDiscoverCommon.so
#12 0x00007fc64aabbbef in QMetaObject::activate(QObject*, int, int, void**) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#13 0x00007fc64d95b932 in ResultsStream::resourcesFound(QVector<AbstractResource*> const&) () at /usr/lib/x86_64-linux-gnu/plasma-discover/libDiscoverCommon.so
#14 0x00007fc64d939bd0 in AggregatedResultsStream::emitResults() () at /usr/lib/x86_64-linux-gnu/plasma-discover/libDiscoverCommon.so
#15 0x00007fc64aabbbef in QMetaObject::activate(QObject*, int, int, void**) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#16 0x00007fc64aac8867 in QTimer::timeout(QTimer::QPrivateSignal) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#17 0x00007fc64aac8bc8 in QTimer::timerEvent(QTimerEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#18 0x00007fc64aabc5fb in QObject::event(QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#19 0x00007fc64c0a3e8c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#20 0x00007fc64c0ab45f in QApplication::notify(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#21 0x00007fc64aa8cab8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#22 0x00007fc64aae5f0e in QTimerInfoList::activateTimers() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#23 0x00007fc64aae66d1 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#24 0x00007fc644716287 in g_main_context_dispatch () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007fc6447164c0 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007fc64471654c in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007fc64aae6a7f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#28 0x00007fc63f220ed1 in  () at /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#29 0x00007fc64aa8adea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#30 0x00007fc64aa93fa0 in QCoreApplication::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#31 0x00005614ce2154f8 in  ()
#32 0x00007fc64a0b3b97 in __libc_start_main (main=0x5614ce214c20, argc=2, argv=0x7ffd6a161c98, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffd6a161c88) at ../csu/libc-start.c:310
#33 0x00005614ce21577a in _start ()

Reported using DrKonqi
Comment 1 blackfireburn 2018-09-18 16:25:07 UTC
if you open konsole and run 
plasma-discover

do you see snapd errors? 

I have something very similar on 5.13.5 neon 
I have to uninstall plasma-discover-backend-snap before discover is usable again. 

when i run it from konsole i get 
(process:10007): GLib-CRITICAL **: g_byte_array_remove_range: assertion 'index_ + length <= array->len' failed

(process:10007): Snapd-WARNING **: Ignoring unexpected response

repeatedly. and discover is hung during this time.
Comment 2 sunit 2018-09-18 16:35:30 UTC
(In reply to blackfireburn from comment #1)
> if you open konsole and run 
> plasma-discover
> 
> do you see snapd errors? 
> 
> I have something very similar on 5.13.5 neon 
> I have to uninstall plasma-discover-backend-snap before discover is usable
> again. 
> 
> when i run it from konsole i get 
> (process:10007): GLib-CRITICAL **: g_byte_array_remove_range: assertion
> 'index_ + length <= array->len' failed
> 
> (process:10007): Snapd-WARNING **: Ignoring unexpected response
> 
> repeatedly. and discover is hung during this time.

I tried running plasma-discover from konsole and it was fine. Actually discover is functioning normal when I open it, its just that when I am browsing snap store from some browser and then try to install snap from there, discover crashes. it is just trivial for me because I always use command line apt or snap to install packages, so it is not an urgent issue, its just that its not working as expected.
running from terminal, just some qml warnings threw up, I think it is related to themes or some ui elements, no snap backend error. Should I put the output? (sorry I'm so very new here)
Comment 3 Aleix Pol 2018-10-08 11:36:26 UTC
If you can still reproduce, would it be possible to have one of the assert with debug symbols installed?

I can't reproduce on neon, I fear it may be a bug in libsnapd-qt that has already been fixed.
Comment 4 Andrew Crouthamel 2018-10-27 04:11:14 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Bug Janitor Service 2018-11-12 16:05:14 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!