Bug 502103 - Graphics glitches with fractional scaling on Wayland
Summary: Graphics glitches with fractional scaling on Wayland
Status: REPORTED
Alias: None
Product: kolourpaint
Classification: Applications
Component: general (show other bugs)
Version: 24.12.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: kolourpaint-support
URL:
Keywords: wayland-only
Depends on:
Blocks:
 
Reported: 2025-03-28 02:19 UTC by iodreamify
Modified: 2025-04-07 15:31 UTC (History)
1 user (show)

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


Attachments
kolourpaint glitches (48.80 KB, image/png)
2025-03-28 02:19 UTC, iodreamify
Details
konsole text glitches (11.02 KB, image/png)
2025-03-28 02:22 UTC, iodreamify
Details

Note You need to log in before you can comment on or make changes to this bug.
Description iodreamify 2025-03-28 02:19:57 UTC
Created attachment 179802 [details]
kolourpaint glitches

SUMMARY
I'm getting various graphics glitches with 1.25x scaling (or any fractional scaling factor inbetween 100-200%) 

One symptom is in kolourpaint if i use the selection tool to select something and then shrink back the rectangle(see screenshot) . If i open kolourpaint in xwayland mode with "Legacy X11 applications = scaled by the system" the bug is there. But with "apply scaling themselves" bug is gone.

This also happens with Pinta but curiously does not happen with Gimp or Drawing. 

The other one is with coloured text characters in konsole. Originally reported  here but with no resolution and i assume they're related: https://bugs.kde.org/show_bug.cgi?id=491562 Similar x11 behavior as with kolourpaint.  

Possibly related: https://bugs.kde.org/show_bug.cgi?id=466373

STEPS TO REPRODUCE
1. set fractional scaling to 1.25 
2. open kolourpaint 
3. drag a selection with selection tool and shrink it

OBSERVED RESULT
visual artifacts

EXPECTED RESULT
no visual artifacts

Operating System: Arch Linux 
KDE Plasma Version: 6.3.3
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.2
Kernel Version: 6.13.8-arch1-1 (64-bit)
Graphics Platform: Wayland
Graphics Processor 1: AMD Radeon 660M
Product Name: ASUS TUF Gaming A15 FA507NU_FA507NU
Comment 1 iodreamify 2025-03-28 02:22:44 UTC
Created attachment 179804 [details]
konsole text glitches
Comment 2 iodreamify 2025-03-28 02:32:16 UTC
Oh and forgot to mention in all cases the glitch disappears if i resize the window a tiny bit or force it to redraw.
Comment 3 Nate Graham 2025-03-28 23:00:08 UTC
> If i open kolourpaint in xwayland mode with "Legacy X11 applications = scaled by the system" the bug is there

This isn't really supported or recommended; why are you forcing Kolourpaint into XWayland mode? It has native Wayland support so that should be used instead. If it works as a native Wayland app, isn't that preferable to use?
Comment 4 iodreamify 2025-03-28 23:04:29 UTC
(In reply to Nate Graham from comment #3)
> > If i open kolourpaint in xwayland mode with "Legacy X11 applications = scaled by the system" the bug is there
> 
> This isn't really supported or recommended; why are you forcing Kolourpaint
> into XWayland mode? It has native Wayland support so that should be used
> instead. If it works as a native Wayland app, isn't that preferable to use?

Sorry for the confusion, I only mentioned the xwayland tests because i thought that might help track down the bug because i noticed the bug was also happening there alongside the default Wayland code path. I do not usually use apps in xwayland mode if they support Wayland.
Comment 5 iodreamify 2025-03-28 23:06:58 UTC
The title to this bug incorrect now because these glitches happen mainly in Wayland mode, not in xwayland. The Xwayland stuff i mentioned was in addition to this and may be disregarded if it's not helpful.
Comment 6 Nate Graham 2025-03-31 16:14:29 UTC
Gotcha, thanks.

These look like app-specific issues; let's track Kolourpaint here. Can you open a new bug report about Konsole, and put it in the "see also" field of this one? Thanks!