Bug 431518

Summary: nested kwin_wayland with scale crashes
Product: [Plasma] kwin Reporter: Janet Blackquill <uhhadd>
Component: coreAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: crash CC: meven29
Priority: NOR    
Version First Reported In: git master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: backtrace

Description Janet Blackquill 2021-01-12 20:53:32 UTC
Created attachment 134793 [details]
backtrace

nested kwin_wayland with the --scale flag set often crashes when a window is opened.

Reproducing:
1. kwin_wayland --width 1920 --height 1080 --scale 2 &
2. env WAYLAND_DISPLAY=wayland-1 kate
Comment 1 Vlad Zahorodnii 2021-01-14 07:54:14 UTC
What's the host compositor? kwin_x11 or kwin_wayland?
Comment 2 Janet Blackquill 2021-01-14 07:58:12 UTC
kwin_wayland
Comment 3 Vlad Zahorodnii 2021-01-14 08:04:26 UTC
Acccording to the backtrace, kwin crashes when GLTexture calls d->onDamage(). This is strange as onDamage() is noop on wayland.
Comment 4 Méven Car 2021-09-27 07:10:34 UTC
I don't reproduce the crash, although I noticed I didn't get a scale factor applied.

The code involved changed a lot since January this may explain that.