Bug 479185 - plasmashell upstream crashes on launch
Summary: plasmashell upstream crashes on launch
Status: RESOLVED UPSTREAM
Alias: None
Product: plasmashell
Classification: Plasma
Component: generic-crash (show other bugs)
Version: master
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2023-12-30 11:46 UTC by Timur Mangliev
Modified: 2024-01-26 19:07 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:
tigrmango: Wayland+
tigrmango: X11-


Attachments
backtrace from lldb (2.09 KB, text/plain)
2023-12-30 11:46 UTC, Timur Mangliev
Details
backtrace from gdb (9.64 KB, text/x-log)
2023-12-30 11:49 UTC, Timur Mangliev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Timur Mangliev 2023-12-30 11:46:08 UTC
Created attachment 164553 [details]
backtrace from lldb

SUMMARY
Crash is happening somewhere in libQt6Gui.so.6 after the shell is started, i.e. when lldb stopped execution of the shell i had a still image of it and my wallpaper.



STEPS TO REPRODUCE
1. start plasmashell
2. wait a little bit
3. observe crash

OBSERVED RESULT
plasmashell exits with sigsegv

EXPECTED RESULT
plasmashell starts and runs normally

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: upstream
KDE Frameworks Version: upstream
Qt Version: 6.6.1

ADDITIONAL INFORMATION
Comment 1 Timur Mangliev 2023-12-30 11:49:31 UTC
Created attachment 164554 [details]
backtrace from gdb
Comment 2 Nicolas Fella 2023-12-30 16:17:26 UTC
This is almost certainly a Qt bug. https://bugreports.qt.io/browse/QTBUG-72779 looks similar.

Does it still happen after changing the wallpaper?
Comment 3 Nicolas Fella 2023-12-30 16:18:43 UTC
#0  0x00007ffff5f8da7b in fetchTransformedBilinear64<(TextureBlendType)4>(QRgba64*, Operator const*, QSpanData const*, int, int, int) (buffer=0x7fffd8bca740, data=0x7fffde56dc28, y=64, x=0, length=128) at /var/tmp/portage/dev-qt/qtbase-6.6.1-r1/work/qtbase-everywhere-src-6.6.1/src/gui/painting/qdrawhelper.cpp:2799
#1  0x00007ffff5f9c442 in BlendSrcGenericRGB64::fetch(int, int, int, bool) (this=0x7fffd8bc6720, x=0, y=64, len=128, fetchDest=true) at /var/tmp/portage/dev-qt/qtbase-6.6.1-r1/work/qtbase-everywhere-src-6.6.1/src/gui/painting/qdrawhelper.cpp:4079
        process_length = 128
        l = 128
        process_x = 0
        src = <optimized out>
        offset = <optimized out>
        y = 64
        length = <optimized out>
        x = 0
        right = <optimized out>
        fetchDest = true
        c = 64
        handler = {<QBlendBase> = {data = 0x7fffde56dc28, op = @0x7fffffffab18}, dest = 0x7fffd8bc6740, buffer = {{rgba = 0} <repeats 2030 times>, {rgba = 48}, {rgba = 66}, {rgba = 1}, {rgba = 190}, {rgba = 1}, {rgba = 140737320173497}, {rgba = 0}, {rgba = 1095233437696}, {rgba = 140737488329344}, {rgba = 824633720832}, {rgba = 279172874321}, {rgba = 210453397553}, {rgba = 192}, {rgba = 140736829638464}, {rgba = 140736927530440}, {rgba = 140737488329640}, {rgba = 140736923033524}, {rgba = 0}}, src_buffer = {{rgba = 0} <repeats 989 times>, {rgba = 140737353882218}, {rgba = 0}, {rgba = 140736979869696}, {rgba = 133}, {rgba = 1}, {rgba = 2147483647}, {rgba = 140736979869700}, {rgba = 140737035083664}, {rgba = 140737353796264}, {rgba = 0}, {rgba = 0}, {rgba = 0}, {rgba = 0}, {rgba = 0}, {rgba = 0}, {rgba = 9585933150906089685}, {rgba = 93824993553320}, {rgba = 0}, {rgba = 140737353794908}, {rgba = 9585933150906089685}, {rgba = 140737033949120}, {rgba = 1}, {rgba = 140736980051744}, {rgba = 140737034246528}, {rgba = 1}, {rgba = 140737033949120}, {rgba = 140737315144259}, {rgba = 9585933150906089685}, {rgba = 140737310697613}, {rgba = 140733747036160}, {rgba = 140737315144244}, {rgba = 140737040278000}, {rgba = 18356690227379}, {rgba = 140737033955424}, {rgba = 0}, {rgba = 3028680688682928394}, {rgba = 0}, {rgba = 2812225327735506953}, {rgba = 2668110139626031113}, {rgba = 2596052541259581448}, {rgba = 2451936253655320328}, {rgba = 2379597184607061768}, {rgba = 2235481992219461383}, {rgba = 2163423298636350983}, {rgba = 2019026631272039943}, {rgba = 1946969037200492038}, {rgba = 1802852749596230918}, {rgba = 1658737557191853318}, {rgba = 1586398488160371973}, {rgba = 1442282200539333637}, {rgba = 1370224602189661189}, {rgba = 1225827939103474692}, {rgba = 1153769245537141764}, {rgba = 1009654053132763907}, {rgba = 937314984101348099}, {rgba = 793198696480244483}, {rgba = 721141098113794562}, {rgba = 577025910021161474}, {rgba = 504685741461275138}, {rgba = 100729089}, {rgba = 0} <repeats 951 times>, {rgba = 325236571}, {rgba = 140736829646384}, {rgba = 0}, {rgba = 140737354048960}, {rgba = 140736829647732}, {rgba = 0}, {rgba = 29}, {rgba = 0}, {rgba = 128}, {rgba = 140736829646516}, {rgba = 140736829646384}, {rgba = 140737354045480}, {rgba = 0}, {rgba = 140736829646516}, {rgba = 29}, {rgba = 999999800}, {rgba = 9585933150906089685}, {rgba = 1}, {rgba = 1}, {rgba = 2}, {rgba = 140736988328552}, {rgba = 140736829646592}, {rgba = 140736829646516}, {rgba = 140737354051181}, {rgba = 140736923924592}, {rgba = 140736988328512}, {rgba = 0}, {rgba = 4294941304}, {rgba = 0}, {rgba = 0}, {rgba = 4294967297}, {rgba = 0}, {rgba = 0}, {rgba = 0}, {rgba = 2678325236371}, {rgba = 140736988328552}, {rgba = 140736988328512}, {rgba = 4294967296}, {rgba = 9223372036854775807}, {rgba = 140737310723175}, {rgba = 2678}, {rgba = 325236371}, {rgba = 2678325236371}, {rgba = 4294967296}, {rgba = 9585933150906089685}, {rgba = 140737041314808}, {rgba = 140737034246544}, {rgba = 140736924692080}}}
        coverage = 0
#2  handleSpans<BlendSrcGenericRGB64>(int, QT_FT_Span_ const*, QSpanData const*, Operator const&)::{lambda(int, int)#1}::operator()(int, int) const (this=0x7fffffffaa90, cStart=<optimized out>, cEnd=128) at /var/tmp/portage/dev-qt/qtbase-6.6.1-r1/work/qtbase-everywhere-src-6.6.1/src/gui/painting/qdrawhelper.cpp:3993
        process_length = 128
        l = 128
        process_x = 0
        src = <optimized out>
        offset = <optimized out>
        y = 64
        length = <optimized out>
        x = 0
        right = <optimized out>
        fetchDest = true
        c = 64
        handler = {<QBlendBase> = {data = 0x7fffde56dc28, op = @0x7fffffffab18}, dest = 0x7fffd8bc6740, buffer = {{rgba = 0} <repeats 2030 times>, {rgba = 48}, {rgba = 66}, {rgba = 1}, {rgba = 190}, {rgba = 1}, {rgba = 140737320173497}, {rgba = 0}, {rgba = 1095233437696}, {rgba = 140737488329344}, {rgba = 824633720832}, {rgba = 279172874321}, {rgba = 210453397553}, {rgba = 192}, {rgba = 140736829638464}, {rgba = 140736927530440}, {rgba = 140737488329640}, {rgba = 140736923033524}, {rgba = 0}}, src_buffer = {{rgba = 0} <repeats 989 times>, {rgba = 140737353882218}, {rgba = 0}, {rgba = 140736979869696}, {rgba = 133}, {rgba = 1}, {rgba = 2147483647}, {rgba = 140736979869700}, {rgba = 140737035083664}, {rgba = 140737353796264}, {rgba = 0}, {rgba = 0}, {rgba = 0}, {rgba = 0}, {rgba = 0}, {rgba = 0}, {rgba = 9585933150906089685}, {rgba = 93824993553320}, {rgba = 0}, {rgba = 140737353794908}, {rgba = 9585933150906089685}, {rgba = 140737033949120}, {rgba = 1}, {rgba = 140736980051744}, {rgba = 140737034246528}, {rgba = 1}, {rgba = 140737033949120}, {rgba = 140737315144259}, {rgba = 9585933150906089685}, {rgba = 140737310697613}, {rgba = 140733747036160}, {rgba = 140737315144244}, {rgba = 140737040278000}, {rgba = 18356690227379}, {rgba = 140737033955424}, {rgba = 0}, {rgba = 3028680688682928394}, {rgba = 0}, {rgba = 2812225327735506953}, {rgba = 2668110139626031113}, {rgba = 2596052541259581448}, {rgba = 2451936253655320328}, {rgba = 2379597184607061768}, {rgba = 2235481992219461383}, {rgba = 2163423298636350983}, {rgba = 2019026631272039943}, {rgba = 1946969037200492038}, {rgba = 1802852749596230918}, {rgba = 1658737557191853318}, {rgba = 1586398488160371973}, {rgba = 1442282200539333637}, {rgba = 1370224602189661189}, {rgba = 1225827939103474692}, {rgba = 1153769245537141764}, {rgba = 1009654053132763907}, {rgba = 937314984101348099}, {rgba = 793198696480244483}, {rgba = 721141098113794562}, {rgba = 577025910021161474}, {rgba = 504685741461275138}, {rgba = 100729089}, {rgba = 0} <repeats 951 times>, {rgba = 325236571}, {rgba = 140736829646384}, {rgba = 0}, {rgba = 140737354048960}, {rgba = 140736829647732}, {rgba = 0}, {rgba = 29}, {rgba = 0}, {rgba = 128}, {rgba = 140736829646516}, {rgba = 140736829646384}, {rgba = 140737354045480}, {rgba = 0}, {rgba = 140736829646516}, {rgba = 29}, {rgba = 999999800}, {rgba = 9585933150906089685}, {rgba = 1}, {rgba = 1}, {rgba = 2}, {rgba = 140736988328552}, {rgba = 140736829646592}, {rgba = 140736829646516}, {rgba = 140737354051181}, {rgba = 140736923924592}, {rgba = 140736988328512}, {rgba = 0}, {rgba = 4294941304}, {rgba = 0}, {rgba = 0}, {rgba = 4294967297}, {rgba = 0}, {rgba = 0}, {rgba = 0}, {rgba = 2678325236371}, {rgba = 140736988328552}, {rgba = 140736988328512}, {rgba = 4294967296}, {rgba = 9223372036854775807}, {rgba = 140737310723175}, {rgba = 2678}, {rgba = 325236371}, {rgba = 2678325236371}, {rgba = 4294967296}, {rgba = 9585933150906089685}, {rgba = 140737041314808}, {rgba = 140737034246544}, {rgba = 140736924692080}}}
        coverage = 0
#3  0x00007ffff5f9c57e in handleSpans<BlendSrcGenericRGB64>(int, QT_FT_Span_ const*, QSpanData const*, Operator const&)::{lambda()#1}::operator()() const (this=0x7fffde2b4688) at /var/tmp/portage/dev-qt/qtbase-6.6.1-r1/work/qtbase-everywhere-src-6.6.1/src/gui/painting/qdrawhelper.cpp:4015
        _this = 0x7fffde2b4680
#4  QRunnable::QGenericRunnable::Helper<handleSpans<BlendSrcGenericRGB64>(int, QT_FT_Span_ const*, QSpanData const*, Operator const&)::{lambda()#1}>::impl(QRunnable::QGenericRunnable::HelperBase::Op, QRunnable::QGenericRunnable::HelperBase*, void*) (op=<optimized out>, that=0x7fffde2b4680, arg=<optimized out>) at include/QtCore/../../../qtbase-everywhere-src-6.6.1/src/corelib/thread/qrunnable.h:73
        _this = 0x7fffde2b4680
#5  0x00007ffff5693002 in QThreadPoolThread::run() (this=0x7fffe4eed980) at /var/tmp/portage/dev-qt/qtbase-6.6.1-r1/work/qtbase-everywhere-src-6.6.1/src/corelib/thread/qthreadpool.cpp:66
        page = <optimized out>
        r = 0x7fffde2b4c90
        locker = {m_mutex = 0x7fffe55ab3f8, m_isLocked = false}
#6  0x00007ffff5690068 in QThreadPrivate::start(void*)::$_0::operator()() const (this=<optimized out>) at /var/tmp/portage/dev-qt/qtbase-6.6.1-r1/work/qtbase-everywhere-src-6.6.1/src/corelib/thread/qthread_unix.cpp:324
        thr = 0x7fffe4eed980
        data = <optimized out>
        __cb = {__f = 0x7ffff56901a0 <QThreadPrivate::finish(void*)>, __x = 0x7fffe4eed980, __next = 0x0}
#7  (anonymous namespace)::terminate_on_exception<QThreadPrivate::start(void*)::$_0>(QThreadPrivate::start(void*)::$_0&&) (t=<optimized out>) at /var/tmp/portage/dev-qt/qtbase-6.6.1-r1/work/qtbase-everywhere-src-6.6.1/src/corelib/thread/qthread_unix.cpp:260
        __cb = {__f = 0x7ffff56901a0 <QThreadPrivate::finish(void*)>, __x = 0x7fffe4eed980, __next = 0x0}
#8  QThreadPrivate::start(void*) (arg=0x7fffe4eed980) at /var/tmp/portage/dev-qt/qtbase-6.6.1-r1/work/qtbase-everywhere-src-6.6.1/src/corelib/thread/qthread_unix.cpp:283
        __cb = {__f = 0x7ffff56901a0 <QThreadPrivate::finish(void*)>, __x = 0x7fffe4eed980, __next = 0x0}
#9  0x00007ffff7febc8b in start (p=0x7fffd8bce8a0) at src/thread/pthread_create.c:203
        args = 0x7fffd8bce8a0
#10 0x00007ffff7fee523 in __clone () at /lib/ld-musl-x86_64.so.1
Comment 4 Nicolas Fella 2023-12-30 16:19:00 UTC
https://bugreports.qt.io/browse/QTBUG-119902 is also similar
Comment 5 Timur Mangliev 2023-12-31 05:13:19 UTC
(In reply to Nicolas Fella from comment #2)
> This is almost certainly a Qt bug.
> https://bugreports.qt.io/browse/QTBUG-72779 looks similar.
> 
> Does it still happen after changing the wallpaper?

When I tried to change the wallpaper I discovered that the wallpaper page in systemsettings is also broken
Comment 6 Timur Mangliev 2023-12-31 06:21:35 UTC
Through the use of strace and a lot of restarting systemsettings I found out that offending wallpapers are: 
Elarun  FlyingKonqui  IceCold  Kay  Next  Patak  Volna

Also, plasmashell refused to start because of something in my ~/.local/share/icons
Comment 7 Timur Mangliev 2023-12-31 06:24:37 UTC
Plasmashell launches but when I attempt to RMB on anything or hover over some icons, it crashes and/or exits abnormally
Comment 8 Jonas Rakebrandt 2024-01-09 13:45:43 UTC
(In reply to Timur Mangliev from comment #7)
> Plasmashell launches but when I attempt to RMB on anything or hover over
> some icons, it crashes and/or exits abnormally

I think I'm experiencing the same issue (also on Gentoo using upstream master build).
Plasmashell crashes when opening "right click" context menus (right click anywhere, left click some systray icons e.g. steam, using the keyboard's "context menu button" on the desktop, etc.) with the messages:
> layershellqt: Cannot attach popup of unknown type
> xdg_wm_base@3: error 3: no xdg_popup parent surface has been specified
> The Wayland connection experienced a fatal error: Protocol error
Comment 9 Bernard 2024-01-26 19:07:18 UTC
(In reply to Jonas Rakebrandt from comment #8)
> (In reply to Timur Mangliev from comment #7)
> > Plasmashell launches but when I attempt to RMB on anything or hover over
> > some icons, it crashes and/or exits abnormally
> 
> I think I'm experiencing the same issue (also on Gentoo using upstream
> master build).
> Plasmashell crashes when opening "right click" context menus (right click
> anywhere, left click some systray icons e.g. steam, using the keyboard's
> "context menu button" on the desktop, etc.) with the messages:
> > layershellqt: Cannot attach popup of unknown type
> > xdg_wm_base@3: error 3: no xdg_popup parent surface has been specified
> > The Wayland connection experienced a fatal error: Protocol error

The author made a newer issue for this here: https://bugs.kde.org/show_bug.cgi?id=479679 but it was marked as fixed for some reason