Bug 476806 - Discover crashes in QList on neon unstable
Summary: Discover crashes in QList on neon unstable
Status: RESOLVED FIXED
Alias: None
Product: Discover
Classification: Applications
Component: discover (show other bugs)
Version: 5.27.80
Platform: Neon Linux
: NOR crash
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2023-11-10 20:33 UTC by iodreamify
Modified: 2023-11-12 21:34 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description iodreamify 2023-11-10 20:33:18 UTC
SUMMARY
Discover crashes every time just launching it 

Noticed some output in the terminal: 
libs QList("/usr/lib/x86_64-linux-gnu/qt6/plugins", "/usr/bin")
org.kde.plasma.libdiscover: OdrsReviewsBackend: Fetch ratings: true
invalid kns backend! "/usr/share/knsrcfiles/colorschemes.knsrc" because: "Config group not found! Check your KNSCore installation."
invalid kns backend! "/usr/share/knsrcfiles/gtk_themes.knsrc" because: "Config group not found! Check your KNSCore installation."
invalid kns backend! "/usr/share/knsrcfiles/icons.knsrc" because: "Config group not found! Check your KNSCore installation."
invalid kns backend! "/usr/share/knsrcfiles/kfontinst.knsrc" because: "Config group not found! Check your KNSCore installation."
invalid kns backend! "/usr/share/knsrcfiles/lookandfeel.knsrc" because: "Config group not found! Check your KNSCore installation."
invalid kns backend! "/usr/share/knsrcfiles/plasma-themes.knsrc" because: "Config group not found! Check your KNSCore installation."
invalid kns backend! "/usr/share/knsrcfiles/plasmoids.knsrc" because: "Config group not found! Check your KNSCore installation."
invalid kns backend! "/usr/share/knsrcfiles/sddmtheme.knsrc" because: "Config group not found! Check your KNSCore installation."
invalid kns backend! "/usr/share/knsrcfiles/wallpaper-mobile.knsrc" because: "Config group not found! Check your KNSCore installation."
invalid kns backend! "/usr/share/knsrcfiles/wallpaper.knsrc" because: "Config group not found! Check your KNSCore installation."
invalid kns backend! "/usr/share/knsrcfiles/wallpaperplugin.knsrc" because: "Config group not found! Check your KNSCore installation."
invalid kns backend! "/usr/share/knsrcfiles/xcursor.knsrc" because: "Config group not found! Check your KNSCore installation."
adding empty sources model QStandardItemModel(0x5611b5370980)
QQmlApplicationEngine failed to load component
qrc:/qml/DiscoverWindow.qml:476:19: Type DiscoverDrawer unavailable
qrc:/qml/DiscoverDrawer.qml:161:9: Type ProgressView unavailable
qrc:/qml/ProgressView.qml:7:1: Kirigami.AbstractListItem is not a type
org.kde.plasma.discover: Errors when loading the GUI
ASSERT failure in QList::at: "index out of range", file /usr/include/x86_64-linux-gnu/qt6/QtCore/qlist.h, line 431
29 -- exe=/usr/bin/plasma-discover
17 -- platform=wayland
24 -- appname=plasma-discover
17 -- apppath=/usr/bin
9 -- signal=6
9 -- pid=3334
19 -- appversion=5.27.80
21 -- programname=Discover
31 -- bugaddress=submit@bugs.kde.org
30 -- productname=discover/discover
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = plasma-discover path = /usr/bin pid = 3334
KCrash: Arguments: /usr/bin/plasma-discover 
Aborted (core dumped)


Backtrace: 
#0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=140193316785344) at ./nptl/pthread_kill.c:44
#1  __pthread_kill_internal (signo=6, threadid=140193316785344) at ./nptl/pthread_kill.c:78
#2  __GI___pthread_kill (threadid=140193316785344, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#3  0x00007f81518b3476 in __GI_raise (sig=6) at ../sysdeps/posix/raise.c:26
#4  0x00007f815329564e in KCrash::defaultCrashHandler(int) () from /lib/x86_64-linux-gnu/libKF6Crash.so.6
#5  <signal handler called>
#6  __pthread_kill_implementation (no_tid=0, signo=6, threadid=140193316785344) at ./nptl/pthread_kill.c:44
#7  __pthread_kill_internal (signo=6, threadid=140193316785344) at ./nptl/pthread_kill.c:78
#8  __GI___pthread_kill (threadid=140193316785344, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#9  0x00007f81518b3476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#10 0x00007f81518997f3 in __GI_abort () at ./stdlib/abort.c:79
#11 0x00007f815219bfb7 in qAbort() () from /lib/x86_64-linux-gnu/libQt6Core.so.6
#12 0x00007f8152197465 in ?? () from /lib/x86_64-linux-gnu/libQt6Core.so.6
#13 0x00007f815219c9e3 in QMessageLogger::fatal(char const*, ...) const () from /lib/x86_64-linux-gnu/libQt6Core.so.6
#14 0x00007f815216a968 in qt_assert_x(char const*, char const*, char const*, int) () from /lib/x86_64-linux-gnu/libQt6Core.so.6
#15 0x00005611b306c642 in ?? ()
#16 0x00005611b306d6f7 in ?? ()
#17 0x00005611b307a460 in ?? ()
#18 0x00005611b3072484 in ?? ()
#19 0x00007f815189ad90 in __libc_start_call_main (main=main@entry=0x5611b3070630, argc=argc@entry=1, argv=argv@entry=0x7ffd4e12b128)
    at ../sysdeps/nptl/libc_start_call_main.h:58
#20 0x00007f815189ae40 in __libc_start_main_impl (main=0x5611b3070630, argc=1, argv=0x7ffd4e12b128, init=<optimized out>, fini=<optimized out>, 
    rtld_fini=<optimized out>, stack_end=0x7ffd4e12b118) at ../csu/libc-start.c:392
#21 0x00005611b3073835 in ?? ()


STEPS TO REPRODUCE
1. Launch Discover

OBSERVED RESULT
Crash

EXPECTED RESULT
Doesn't crash

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.27.80
KDE Frameworks Version: 5.245.0
Qt Version: 6.6.0
Kernel Version: 6.2.0-36-generic (64-bit)
Graphics Platform: Wayland
Comment 1 Enrico 2023-11-11 15:29:52 UTC
Same here

[New Thread 0x7fff793ff640 (LWP 3471)]
org.kde.plasma.libdiscover: OdrsReviewsBackend: Fetch ratings: true
adding empty sources model QStandardItemModel(0x5555559f0130)
[New Thread 0x7fff78bfe640 (LWP 3472)]
invalid kns backend! "/usr/share/knsrcfiles/kfontinst.knsrc" because: "Config group not found! Check your KNSCore installation."
invalid kns backend! "/usr/share/knsrcfiles/plasma-themes.knsrc" because: "Config group not found! Check your KNSCore installation."
invalid kns backend! "/usr/share/knsrcfiles/sddmtheme.knsrc" because: "Config group not found! Check your KNSCore installation."
invalid kns backend! "/usr/share/knsrcfiles/xcursor.knsrc" because: "Config group not found! Check your KNSCore installation."
invalid kns backend! "/usr/share/knsrcfiles/icons.knsrc" because: "Config group not found! Check your KNSCore installation."
invalid kns backend! "/usr/share/knsrcfiles/wallpaper.knsrc" because: "Config group not found! Check your KNSCore installation."
invalid kns backend! "/usr/share/knsrcfiles/plasmoids.knsrc" because: "Config group not found! Check your KNSCore installation."
invalid kns backend! "/usr/share/knsrcfiles/lookandfeel.knsrc" because: "Config group not found! Check your KNSCore installation."
invalid kns backend! "/usr/share/knsrcfiles/colorschemes.knsrc" because: "Config group not found! Check your KNSCore installation."
invalid kns backend! "/usr/share/knsrcfiles/wallpaperplugin.knsrc" because: "Config group not found! Check your KNSCore installation."
invalid kns backend! "/usr/share/knsrcfiles/gtk_themes.knsrc" because: "Config group not found! Check your KNSCore installation."
invalid kns backend! "/usr/share/knsrcfiles/wallpaper-mobile.knsrc" because: "Config group not found! Check your KNSCore installation."
[New Thread 0x7fff63fff640 (LWP 3473)]
QQmlApplicationEngine failed to load component
qrc:/qml/DiscoverWindow.qml:476:19: Type DiscoverDrawer unavailable
qrc:/qml/DiscoverDrawer.qml:161:9: Type ProgressView unavailable
qrc:/qml/ProgressView.qml:7:1: Kirigami.AbstractListItem is not a type
org.kde.plasma.discover: Errors when loading the GUI
ASSERT failure in QList::at: "index out of range", file /usr/include/x86_64-linux-gnu/qt6/QtCore/qlist.h, line 431

Thread 1 "plasma-discover" received signal SIGABRT, Aborted.
__pthread_kill_implementation (no_tid=0, signo=6, threadid=140737234980032) at ./nptl/pthread_kill.c:44
44      ./nptl/pthread_kill.c: No such file or directory.
(gdb) bt full
#0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=140737234980032) at ./nptl/pthread_kill.c:44
        tid = <optimized out>
        ret = 0
        pd = 0x7ffff0e5ccc0
        old_mask = {__val = {0, 140737300286473, 0, 140737310307206, 8, 345, 140737488343984, 140737311869064, 140737488344080, 6092975491041880576, 93824997401184, 18446744073709551256, 2, 6092975491041880576, 140737488344144, 
            6092975491041880576}}
        ret = <optimized out>
        pd = <optimized out>
        old_mask = <optimized out>
        ret = <optimized out>
        tid = <optimized out>
        ret = <optimized out>
        resultvar = <optimized out>
        resultvar = <optimized out>
        __arg3 = <optimized out>
        __arg2 = <optimized out>
        __arg1 = <optimized out>
        _a3 = <optimized out>
        _a2 = <optimized out>
        _a1 = <optimized out>
        __futex = <optimized out>
        resultvar = <optimized out>
        __arg3 = <optimized out>
        __arg2 = <optimized out>
        __arg1 = <optimized out>
        _a3 = <optimized out>
        _a2 = <optimized out>
        _a1 = <optimized out>
        __futex = <optimized out>
        __private = <optimized out>
        __oldval = <optimized out>
        result = <optimized out>
#1  __pthread_kill_internal (signo=6, threadid=140737234980032) at ./nptl/pthread_kill.c:78
No locals.
#2  __GI___pthread_kill (threadid=140737234980032, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
No locals.
#3  0x00007ffff4c42476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
        ret = <optimized out>
#4  0x00007ffff4c287f3 in __GI_abort () at ./stdlib/abort.c:79
        save_stage = 1
        act = {__sigaction_handler = {sa_handler = 0x7fffffffd6d8, sa_sigaction = 0x7fffffffd6d8}, sa_mask = {__val = {140737301816992, 140737301800448, 140737300132266, 140737488344304, 140737488344416, 3, 140737313074388, 114, 
              93824996912688, 93824997401168, 93824997401184, 114, 9223372036854775814, 93824997139968, 93824997139984, 114}}, sa_flags = 1488349696, sa_restorer = 0x0}
        sigs = {__val = {32, 6092975491041880576, 0, 93824997139984, 93824997036144, 140737488344184, 93824997139968, 93824997139984, 114, 6092975491041880576, 140737313849184, 18446744073709551256, 2, 3, 140737488344448, 
            140737488344336}}
#5  0x00007ffff58d6fb7 in qAbort() () from /lib/x86_64-linux-gnu/libQt6Core.so.6
No symbol table info available.
#6  0x00007ffff58d2465 in ?? () from /lib/x86_64-linux-gnu/libQt6Core.so.6
No symbol table info available.
#7  0x00007ffff58d79e3 in QMessageLogger::fatal(char const*, ...) const () from /lib/x86_64-linux-gnu/libQt6Core.so.6
No symbol table info available.
#8  0x00007ffff58a5968 in qt_assert_x(char const*, char const*, char const*, int) () from /lib/x86_64-linux-gnu/libQt6Core.so.6
No symbol table info available.
#9  0x0000555555573642 in ?? ()
No symbol table info available.
#10 0x00005555555746f7 in ?? ()
No symbol table info available.
#11 0x0000555555581460 in ?? ()
No symbol table info available.
#12 0x0000555555579484 in ?? ()
No symbol table info available.
#13 0x00007ffff4c29d90 in __libc_start_call_main (main=main@entry=0x555555577630, argc=argc@entry=1, argv=argv@entry=0x7fffffffdd58) at ../sysdeps/nptl/libc_start_call_main.h:58
        self = <optimized out>
        result = <optimized out>
--Type <RET> for more, q to quit, c to continue without paging--
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {0, 8043348545341632831, 140737488346456, 93824992376368, 93824992757624, 140737354125376, -8043348544354242241, -8043324035088240321}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 
              0x1, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 1}}}
        not_first_call = <optimized out>
#14 0x00007ffff4c29e40 in __libc_start_main_impl (main=0x555555577630, argc=1, argv=0x7fffffffdd58, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffdd48) at ../csu/libc-start.c:392
No locals.
#15 0x000055555557a835 in ?? ()
No symbol table info available.
Comment 2 Bharadwaj Raju 2023-11-12 08:25:38 UTC
Can you install debugging symbols and try again? I believe the relevant package on KDE Neon is "plasma-discover-dbgsym".

See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Thanks
Comment 3 Enrico 2023-11-12 08:35:43 UTC
Hello, I've installed the debug symbols and... now Discover works. I cannot reproduce the bug anymore :-|
Comment 4 Bharadwaj Raju 2023-11-12 09:03:18 UTC
Did Discover get updated while the symbols were being installed, possibly?
Comment 5 Enrico 2023-11-12 10:08:21 UTC
Yes, it seems  that the package has been updated. Here below the apt history.log of the dbgsym installation 

Start-Date: 2023-11-12  09:31:04
Commandline: /usr/bin/apt install plasma-discover-dbgsym
Requested-By: enrico (1000)
Install: libonig5:amd64 (6.9.7.1-2build1, automatic), libprotobuf-c1:amd64 (1.3.3-1ubuntu2.1, automatic), libftdi1-2:amd64 (1.5-5build3, automatic), jq:amd64 (1.6-2.1ubuntu3, automatic), libflashrom1:amd64 (1.2-5build1, automatic), libjq1:amd64 (1.6-2.1ubuntu3, automatic), plasma-discover-dbgsym:amd64 (5.27.9+p22.04+vunstable+git20231112.0036-0)
Upgrade: kf6-kconfigwidgets:amd64 (0.0+p22.04+vunstable+git20231108.0755-0, 0.0+p22.04+vunstable+git20231110.0101-0), kf6-kservice:amd64 (0.0+p22.04+vunstable+git20231108.0215-0, 0.0+p22.04+vunstable+git20231112.0151-0), kf6-kconfig:amd64 (0.0+p22.04+vunstable+git20231109.0102-0, 0.0+p22.04+vunstable+git20231112.0133-0), kde-config-updates:amd64 (5.27.9+p22.04+vunstable+git20231031.0254-0, 5.27.9+p22.04+vunstable+git20231112.0036-0), libfwupd2:amd64 (1.7.9-1~22.04.3, 1.9.7-1+22.04+jammy+unstable+build1), plasma-discover-common:amd64 (5.27.9+p22.04+vunstable+git20231031.0254-0, 5.27.9+p22.04+vunstable+git20231112.0036-0), kf6-kbookmarks:amd64 (0.0+p22.04+vunstable+git20231108.0642-0, 0.0+p22.04+vunstable+git20231110.0238-0), kf6-kiconthemes:amd64 (0.0+p22.04+vunstable+git20231108.0228-0, 0.0+p22.04+vunstable+git20231110.0123-0), kf6-kwallet:amd64 (0.0+p22.04+vunstable+git20231108.0250-0, 0.0+p22.04+vunstable+git20231112.0047-0), plasma-discover-backend-snap:amd64 (5.27.9+p22.04+vunstable+git20231031.0254-0, 5.27.9+p22.04+vunstable+git20231112.0036-0), kf6-kio:amd64 (0.0+p22.04+vunstable+git20231109.0424-0, 0.0+p22.04+vunstable+git20231112.0203-0), kf6-kwidgetsaddons:amd64 (0.0+p22.04+vunstable+git20231109.0106-0, 0.0+p22.04+vunstable+git20231112.0133-0), plasma-discover:amd64 (5.27.9+p22.04+vunstable+git20231031.0254-0, 5.27.9+p22.04+vunstable+git20231112.0036-0), fwupd:amd64 (1.7.9-1~22.04.3, 1.9.7-1+22.04+jammy+unstable+build1), plasma-discover-backend-flatpak:amd64 (5.27.9+p22.04+vunstable+git20231031.0254-0, 5.27.9+p22.04+vunstable+git20231112.0036-0)
Remove: libfwupdplugin5:amd64 (1.7.9-1~22.04.3)
End-Date: 2023-11-12  09:32:09
Comment 6 guimarcalsilva 2023-11-12 20:42:47 UTC
I updated Neon Unstable today and Discover is not crashing for me anymore.
Comment 7 iodreamify 2023-11-12 21:34:33 UTC
Same here, doesn't crash anymore after update.
 
Discover v 5.81.0
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.81.0
KDE Frameworks Version: 5.245.0
Qt Version: 6.6.0
Kernel Version: 6.2.0-36-generic (64-bit)
Graphics Platform: Wayland