anametologin / krohnkite

A dynamic tiling extension for KWin
MIT License
248 stars 13 forks source link

kwin_wayland crash in specific situations using binary tree layout #50

Closed alexankitty closed 4 weeks ago

alexankitty commented 1 month ago

Symptom When opening and closing windows at around 5-6 windows, it appears the tiler starts getting mixed up and moves windows back and forth in quick succession, followed by crashing kwin.

How to Reproduce (steps are not exact)

  1. Launch multiple windows using binary tree layout
  2. At around 5 or 6 windows, maybe more or less, start opening and closing windows
  3. kwin will crash along with all open applications.

Expected behavior It probably shouldn't crash and instead gracefully handle a situation where it can't decide what window goes where.

Environment

Notes Attached below are the logs. systemdlogs.txt

anametologin commented 1 month ago

Can you disable Krohnkite, reboot and try do the same open and close windows fast... And one more, it's virtual machine? what video are you have?

alexankitty commented 1 month ago

I think for sure this is a Krohnkite issue. I've literally never had this issue until I started using it today. No it's not a virtual machine, I'm running on bare metal. I have two GPUs, an Nvidia RTX 3090 for my main, and an AMD Radeon RX6700XT for my secondary.

I can try rebooting and recreating it that way without it enabled, but the way I saw the windows move back and forth for a brief period of a couple seconds before hard crashing kwin_wayland and showing me a black screen leads me to believe it has something to do with the binary tree tiling. I also don't get this behavior with any of the other tiling layouts.

anametologin commented 1 month ago

I cannot confirm kwin crash. I found in your 170k lines log file (your faith in my powers is boundless) multiple lines: kwin_wayland_wrapper: Key repeat discarded, Wayland compositor doesn't seem to be processing events fast enough! so I need you make a little experiment:

  1. Disable all kwin scripts and reboot.
  2. Open on one monitor btop or htop or any task manager, btop is better, filter plasmashell process
  3. Set own shortcut or use default Ctrl+Alt+t to open fast 30 Kde consoles and close their one by one by close window shortcut.
  4. After closing all Konsoles I need to know how many the plasmashell process will consume processor time and and did opening and closing these windows affect the overall performance.