Bug 390123 - Discover 5.12 hangs/freezes a lot
Summary: Discover 5.12 hangs/freezes a lot
Status: RESOLVED FIXED
Alias: None
Product: Discover
Classification: Applications
Component: discover (show other bugs)
Version: 5.12.0
Platform: Ubuntu Linux
: NOR critical
Target Milestone: ---
Assignee: Aleix Pol
URL:
Keywords:
: 390218 390408 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-02-09 03:24 UTC by Nate Graham
Modified: 2018-02-20 15:01 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: KDE Plasma 5.12.1


Attachments
Backtrace - Discove froze after launch (2.23 KB, text/plain)
2018-02-18 11:25 UTC, Øystein Steffensen-Alværvik
Details
Backtrace: Discover froze when searching for app (12.81 KB, text/plain)
2018-02-18 12:05 UTC, Øystein Steffensen-Alværvik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nate Graham 2018-02-09 03:24:15 UTC
I've experienced this hang on my production Kubuntu 17.10 machine a *lot*. Less so on my Neon dev VM, but it happens there too. I see it most often when I click on an app in the list. The delegate turns blue, and then Discover hangs forever.

Here's a sample backtrace, in case it helps at all:

Thread 1 "plasma-discover" received signal SIGINT, Interrupt.
0x00007ffff338574d in poll () at ../sysdeps/unix/syscall-template.S:84
84      ../sysdeps/unix/syscall-template.S: No such file or directory.
(gdb) bt
#0  0x00007ffff338574d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007fffee0ae38c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fffee0ae49c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff3fb56cb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007ffff3f5de2a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007ffff3f66d64 in QCoreApplication::exec() ()
   from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00000000004162a8 in main ()


Different issue, or a dupe of Bug 386992?
Comment 1 Nate Graham 2018-02-09 03:25:12 UTC
I can reproduce this on demand by clicking on Digikam from the Featured page while Discover is still loading.
Comment 2 Nate Graham 2018-02-10 20:28:33 UTC
*** Bug 390218 has been marked as a duplicate of this bug. ***
Comment 3 Nate Graham 2018-02-10 20:31:18 UTC
FWIW, this makes Discover almost unusable for me in 5.12 on Kubuntu. I can't hardly go 30 seconds without a hang.
Comment 4 Aleix Pol 2018-02-12 17:04:57 UTC
Git commit a2d6e79586b8c73f2e2d6bb1262d348eb53f4b52 by Aleix Pol.
Committed on 12/02/2018 at 17:02.
Pushed by apol into branch 'Plasma/5.12'.

Fix freeze when showing the ApplicationPage

Change the strategy to show the screenshots. It sometimes would get the
ListView stuck. Use a Row + Repeater instead.
Also change the scrolling shadows approach because somehow it wouldn't work
with the Row {}

M  +11   -11   discover/qml/ApplicationPage.qml
M  +81   -69   discover/qml/ApplicationScreenshots.qml
M  +1    -0    discover/resources.qrc

https://commits.kde.org/discover/a2d6e79586b8c73f2e2d6bb1262d348eb53f4b52
Comment 5 Nate Graham 2018-02-13 22:37:40 UTC
*** Bug 390408 has been marked as a duplicate of this bug. ***
Comment 6 Øystein Steffensen-Alværvik 2018-02-18 11:25:43 UTC
Created attachment 110776 [details]
Backtrace - Discove froze after launch

Discover still freezes a lot on my system using KDE Frameworks 5.43.0, Qt 5.9.3 on Neon 5.12.1, 64-bit Kernel 4.4.0-112

The freezes seem to happen the most frequently on a new user account I set up (for bug triaging).

In case it helps, I'm attaching a gdb backtrace of one freeze. What I did to make that freeze happen: I simply launched Discover from Kicker and it froze instantly. I had logged in just 5 min ago.

The freezes are rarely reproducible with the same action. Once it froze after clicking Settings, and once it froze when I searched for an app.
Comment 7 Øystein Steffensen-Alværvik 2018-02-18 12:05:21 UTC
Created attachment 110780 [details]
Backtrace: Discover froze when searching for app

(Sorry, that previous backtrace was probably not complete. I'm new to this and trying to learn).

Discover just crashed again. Attaching gdb backtrace (the full one now, I hope).

What I did:
- Launched Discover
- Started typing for an app ('keepass')
- Hit Enter
- Window froze and Discover became unresponsive
Comment 8 Aleix Pol 2018-02-18 17:19:50 UTC
Make sure you have the latest stable PackageKit Qt.
Comment 9 Øystein Steffensen-Alværvik 2018-02-20 15:01:44 UTC
(In reply to Aleix Pol from comment #8)
> Make sure you have the latest stable PackageKit Qt.

Packagekit is 1.1.8-0neon1. I already have an updated system (Neon user edition).