Bug 467768

Summary: Kate crashes Wayland completely upon launch
Product: [Applications] kate Reporter: spittingverse <spittingverse>
Component: applicationAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DOWNSTREAM    
Severity: crash CC: christoph
Priority: NOR    
Version First Reported In: 22.12.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: gdp output

Description spittingverse@gmail.com 2023-03-25 03:52:09 UTC
Created attachment 157559 [details]
gdp output

SUMMARY
Kate crashes Wayland. It does not happen every time. I tried this 10 times, and Wayland froze 7 of those times. This happened only today and has never occurred before. This issue is reproducible even after multiple reboots.

STEPS TO REPRODUCE
1. Login to KDE plasma Wayland.
2. Launch Kate from either command line or application menu 
3. Applications cannot be recovered and the only thing to do other than a restart is to switch to a tty and kill kwin_wayland

OBSERVED RESULT
Kate freezes Kwin Wayland completely and permanently. As in, I cannot move my mouse and there is no response to any keyboard input other than switching to other ttys.

EXPECTED RESULT
Kate should launch and function normally. Even if it crashes, it should not take down all my processes with it.

Operating System: Arch Linux 
KDE Plasma Version: 5.27.3
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8
Kernel Version: 6.2.8-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 5600 6-Core Processor
Memory: 15.5 GiB of RAM
Graphics Processor: AMD Radeon RX 6650 XT
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: B550M DS3H AC
System Version: -CF

ADDITIONAL INFORMATION
Attached is the output of sudo gdb -pid $(pidof kwin_wayland) -batch -ex "set logging file kwin_wayland.gdb" -ex "set logging on" -ex "set print thread-events off" -ex  "thread apply all backtrace" -ex "quit"
Comment 1 Christoph Cullmann 2023-03-25 17:44:54 UTC
I use Kate on Wayland daily, this seems to be no Kate but some distro issue.
Please report that to Arch or see if some update fixes it.