Bug 470766 - Search bar in Overview causes Desktop to Freeze (X11)
Summary: Search bar in Overview causes Desktop to Freeze (X11)
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: effects-overview (other bugs)
Version First Reported In: 5.27.5
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-08 06:11 UTC by Braelin Michelus
Modified: 2023-06-22 17:26 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Braelin Michelus 2023-06-08 06:11:21 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
Using the search bar in the Overview will 7/10 times cause KWin and/or Plasmashell to crash.
It doesn't happen every time, but if you use it enough, the desktop will freeze.
The compositor clearly dies, as transparency effects disappear, but the whole desktop is still visible,
and the cursor still moves, so I know it's not the display server freezing, but clicking on anything does nothing.
Not the panel, desktop icons. Keyboard shortcuts also do not respond. No task switcher or xkill either.

STEPS TO REPRODUCE
1. Open Overview effcet
2. Type anything into search bar
3. Exit Overview

OBSERVED RESULT

The desktop freezes; stays visible, but icons and keyboard shortcuts do nothing.

EXPECTED RESULT

Search results to display

SOFTWARE/OS VERSIONS

Operating System: Archlinux 
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.106.0
Qt Version: 5.15.9
Kernel Version: 6.3.2-arch1-1 (64-bit)
Graphics Platform: X11
Graphics Processor: Mesa Intel® HD Graphics 610

ADDITIONAL INFORMATION

Bizarrely, if you restart plasmashell (killall plasmashell && kstart5 plasmashell), the desktop will come back, but KWin will not restart. And plasmashell --replace has no effect. So I'm not certain if it's plasmashell, KWin, or both that's crashing.

This is specifically related to the Overview effect, as regular Krunner works fine.

I've experienced this bug ever since my system updated to 5.27.5.
Comment 1 Nate Graham 2023-06-09 19:45:14 UTC
Does it freeze indefinitely? Or does it come back after 30 seconds or so?
Comment 2 Braelin Michelus 2023-06-09 20:04:41 UTC
(In reply to Nate Graham from comment #1)
> Does it freeze indefinitely? Or does it come back after 30 seconds or so?

It will occasionally, but very infrequently. So much so that I've learned not to rely on it.
This is one of the few times where plasmashell/kwin doesn't seem to restore itself.
Only reason I reported this is cause it's such a pain to reboot my system every time this happens, constantly losing work.
Comment 3 Nate Graham 2023-06-09 20:08:39 UTC
It will... what? :) Freeze indefinitely or for about 30 seconds?
Comment 4 Braelin Michelus 2023-06-09 20:13:00 UTC
(In reply to Nate Graham from comment #3)
> It will... what? :) Freeze indefinitely or for about 30 seconds?

Oh, sorry. It will occasionally restore in about 30 seconds. Should have been more clear...
Comment 5 Braelin Michelus 2023-06-09 20:13:19 UTC
(In reply to Braelin Michelus from comment #4)
> (In reply to Nate Graham from comment #3)
> > It will... what? :) Freeze indefinitely or for about 30 seconds?
> 
> Oh, sorry. It will occasionally restore in about 30 seconds. Should have
> been more clear...

Most of the time it's indefinite, tough
Comment 6 Nate Graham 2023-06-09 20:13:44 UTC Comment hidden (spam)
Comment 7 Braelin Michelus 2023-06-09 20:15:46 UTC
(In reply to Nate Graham from comment #6)
> So sometimes is unfreezes after 30 seconds, and sometimes it remains frozen
> forever?

Yes, that's correct.
Comment 8 Braelin Michelus 2023-06-11 00:39:35 UTC
I can provide some additional details.

It seems to specifically be the calculator feature in the search bar that causes plasma to freeze.
That one seems to cause the errant behavior 100% of the time.

Sometimes the desktop will freeze before exiting, and the overview will disappear, leaving behind a blank unresponsive desktop.
Other times you'll need to close the overview before the freeze occurs. Clearing the search entry before exiting has no affect.

Again, sometimes the plasma session will restore within 30 seconds, other times it stays frozen indefinitely.

When the desktop 'freezes', transparency effects will stop and translucent elements become completely opaque.
All windows will disappear, and no inputs will respond. Media playback will audibly continue, but no windows are visible irreguard of whether they were before the freeze.

Attempting to restart the session from a TTY by __restarting SDDM__ results in the next plasma session taking minutes to load, remaining on the splash screen for around 2-4 minutes. Once the desktop does load, everything will work, except KWin will not load.
Attempting to manually start kwin from a terminal with __plasmashell --replace__ has no effect, it will just hang indefinitely.

I can provide a video if that will help.
Comment 9 Braelin Michelus 2023-06-22 17:26:21 UTC
Seems to have been fixed in the 5.27.6 update.