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

--- Comment #4 from darktemp...@basealt.ru ---
I'm not sure when plasma-5.18.0 or later would be available in Linux distro I'm
using, but for now I've built plasma-workspace 5.18.1 and plasma-desktop
5.18.1, everything else remaining at version 5.17.5, and issue still reproduces
for me.

I've tried bisecting plasma-workspace and found nothing, after that I tried
bisecting plasma-desktop, and found that first commit when issue appears for me
is:

https://phabricator.kde.org/D22035

My current guess is that somewhere in QML pointer to object deleted from C++
code remains and is used at some point, leading to crash.

I've tried removing following line:
https://cgit.kde.org/plasma-workspace.git/tree/components/containmentlayoutmanager/appletslayout.cpp?id=9b75c5c79621cf90eed71ea4472bc28faf7585c3#n664

and adding 'QQmlEngine::setObjectOwnership(container,
QQmlEngine::JavaScriptOwnership);' before 'container->setVisible(false);' on
line 697. I couldn't reproduce crash after that yet, but it introduced other
issues: when I removed widget via menu from right mouse button, the rectangle
which contained the widget data remained, and it had to be removed via
'customize layout' menu item from right mouse button menu, and even after that
placing new widgets around areas where other widgets were just removed had some
weird issues, looking like it was still considered as used screen space. So, it
didn't work as solution for me.

Also reverting mentioned commit in plasma-desktop fixed issue for me, but I
consider it only as hack and workaround and not a proper solution since it also
reverts a lot of improvements to widgets made in plasma 5.17.0 and later.

I didn't find a proper solution yet, and help with this issue would be welcome.

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

Reply via email to