https://bugs.kde.org/show_bug.cgi?id=528989

            Bug ID: 528989
           Summary: A desktop full of widgets can permanently get Plasma
                    to freeze when you add more
    Classification: Plasma
           Product: plasmashell
      Version First 6.7.80
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Containment
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: 1.0

Created attachment 198574
  --> https://bugs.kde.org/attachment.cgi?id=198574&action=edit
widgets on desktop that lead to complete freeze

DESCRIPTION

I currently have a ton of widgets on my desktop for testing (with some space
still free). Trying to add another one (or sometimes even resizing an existing
one) can cause Plasma to lock up and freeze. It will not recover when
restarting (it does seem to do a little replacing, but then ends up spinning
forever). The only way to get out seems to be editing the appletsrc file (well,
maybe also switching to a larger display.

Representative trace while it's spinning:

#0  0x00007fffa2a91409 in GridLayoutManager::isOutOfBounds (this=<optimized
out>, cell=<optimized out>)
    at
/home/wolki/kde/src/plasma-workspace/components/containmentlayoutmanager/gridlayoutmanager.cpp:344
#1  GridLayoutManager::isCellAvailable (this=<optimized out>, cell=<optimized
out>)
    at
/home/wolki/kde/src/plasma-workspace/components/containmentlayoutmanager/gridlayoutmanager.cpp:349
#2  GridLayoutManager::nextAvailableSpace (this=<optimized out>,
item=<optimized out>, minimumSize=<optimized out>, direction=<optimized out>)
    at
/home/wolki/kde/src/plasma-workspace/components/containmentlayoutmanager/gridlayoutmanager.cpp:497
#3  0x00007fffa2a8e665 in AbstractLayoutManager::candidateGeometry
(this=this@entry=0x1c3acd0, item=item@entry=0x440ef20)
    at
/home/wolki/kde/src/plasma-workspace/components/containmentlayoutmanager/abstractlayoutmanager.cpp:52
#4  0x00007fffa2a8eecc in AbstractLayoutManager::positionItem
(this=this@entry=0x1c3acd0, item=item@entry=0x440ef20)
    at
/home/wolki/kde/src/plasma-workspace/components/containmentlayoutmanager/abstractlayoutmanager.cpp:97
#5  0x00007fffa2a924cb in GridLayoutManager::layoutGeometryChanged
(this=0x1c3acd0, newGeometry=<optimized out>, oldGeometry=<optimized out>)
    at
/home/wolki/kde/src/plasma-workspace/components/containmentlayoutmanager/gridlayoutmanager.cpp:117
#6  0x00007fffa2a8a1b7 in operator() (__closure=0x1c3ad30) at
/home/wolki/kde/src/plasma-workspace/components/containmentlayoutmanager/appletslayout.cpp:92
#7  0x00007ffff3ffaa37 in void doActivate<false>(QObject*, int, void**) () at
/lib64/libQt6Core.so.6
#8  0x00007ffff400a9f3 in QTimer::timeout(QTimer::QPrivateSignal) () at
/lib64/libQt6Core.so.6
#9  0x00007ffff3ff6583 in QObject::event(QEvent*) () at /lib64/libQt6Core.so.6
#10 0x00007ffff60ef6fe in QApplicationPrivate::notify_helper(QObject*, QEvent*)
() at /lib64/libQt6Widgets.so.6
#11 0x00007ffff3f854b8 in QCoreApplication::notifyInternal2(QObject*, QEvent*)
() at /lib64/libQt6Core.so.6
#12 0x00007ffff417ece9 in QTimerInfoList::activateTimers() () at
/lib64/libQt6Core.so.6
#13 0x00007ffff42d68d1 in idleTimerSourceDispatch(_GSource*, int (*)(void*),
void*) () at /lib64/libQt6Core.so.6
#14 0x00007ffff2795564 in g_main_context_dispatch_unlocked () at
/lib64/libglib-2.0.so.0
#15 0x00007ffff27969e8 in g_main_context_iterate_unlocked.isra () at
/lib64/libglib-2.0.so.0
#16 0x00007ffff2796b13 in g_main_context_iteration () at
/lib64/libglib-2.0.so.0
#17 0x00007ffff42d6b7d in
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
at /lib64/libQt6Core.so.6
#18 0x00007ffff3f9340b in
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at
/lib64/libQt6Core.so.6
#19 0x00007ffff3f8e752 in QCoreApplication::exec() () at /lib64/libQt6Core.so.6
#20 0x0000000000452506 in main (argc=<optimized out>, argv=<optimized out>) at
/home/wolki/kde/src/plasma-workspace/shell/main.cpp:228

See the attached screenshot for a reproduction setup. In this case, I added the
Kate Sessions widget, and its space was empty before.

When adding the widget with drag&drop, it's apparently not saved and
killing/restarting plasma fixes it (and the widget is not there). When I do it
by clicking in the widget explorer, it gets added and restarting doesn't help

STEPS TO REPRODUCE
1.  Fill the desktop almost completely with widgets
2.  Add something that doesn't fit, at least in the representation it wants in
the size that it wants. (You might also be able to trigger it by doing
something that causes an existing widget to increase its minimum width)

OBSERVED RESULT

Plasma locks up, needs appletsrc editing to be functional again. The loading
indicators stil turn, but neither desktop nor panels can be interacted with.

EXPECTED RESULT

Plasma doesn't lock up

SOFTWARE/OS VERSIONS


Operating System: Fedora Linux 45
KDE Plasma Version: 6.8.80
KDE Frameworks Version: 6.33.0
Qt Version: 6.11.2
Kernel Version: 7.3.3-300.fc45.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × 12th Gen Intel® Core™ i7-1270P
Memory: 32 GiB of RAM (30.9 GiB usable)
Graphics Processor: Intel® Iris® Xe Graphics

ADDITIONAL INFORMATION

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to