Bug 448306 - Sometimes scale isn't applied on login Wayland
Summary: Sometimes scale isn't applied on login Wayland
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (other bugs)
Version First Reported In: 5.23.5
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
: 447981 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-01-12 11:05 UTC by Eric Edlund
Modified: 2023-08-17 12:52 UTC (History)
3 users (show)

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


Attachments
Kwin opens to the side, and the notification for the screen shot I just took is on the bottom of the screen (2.04 MB, image/png)
2022-01-12 11:05 UTC, Eric Edlund
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Edlund 2022-01-12 11:05:42 UTC
Created attachment 145357 [details]
Kwin opens to the side, and the notification for the screen shot I just took is on the bottom of the screen

SUMMARY
It would appear the scale isn't consistently being applied on login

STEPS TO REPRODUCE
1. Wayland session, scale 150%
2. Relog multiple times (I can reproduce consistently with 3 logins)
3. Run krunner (if it's broken, krunner will appear on the side of the screen, see picture)

OBSERVED RESULT
Krunner isn't centered
In grid view, the borders between desktops is gone

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Neon 5.23 User Edition
(available in About System)
KDE Plasma Version: 5.23.5
KDE Frameworks Version: 5.89.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
I could not reproduce this on x11 or on wayland with scaling set to 100%.
When the desktop is misscaled, changing it in the system settings corrects it.
Notifications are also cropped out of the bottom of the screen.
This never happens on first login after boot
Comment 1 Eric Edlund 2022-01-13 16:00:03 UTC
*** Bug 447981 has been marked as a duplicate of this bug. ***
Comment 2 David Edmundson 2022-02-10 14:36:57 UTC
Does restarting plasmashell (from a konsole plasmashell --replace) fix it?

Can I have output of "WAYLAND_DEBUG=1 qtdiag"    (maybe called qtdial-qt5)
Comment 3 Nate Graham 2022-02-10 14:41:28 UTC
Possibly related to or a duplicate of Bug 449212.
Comment 4 Eric Edlund 2022-02-10 16:03:03 UTC
I opened konsole, ran WAYLAND_DEBUG=1, then ran qtdiag:

QOpenGLFunctions created with non-current context
Segmentation fault

That output is the same when it's working.
Replacing plasma shell doesn't work
Comment 5 Eric Edlund 2022-02-10 16:11:36 UTC
Wait, it does fix it after a minute or two.
Comment 6 Eric Edlund 2022-02-10 22:18:46 UTC
Last bit of output arround the time it fixes it's self:
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
QFont::setPointSizeF: Point size <= 0 (0.000000), must be greater than 0
QFont::setPointSizeF: Point size <= 0 (0.000000), must be greater than 0
trying to show an empty dialog
file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/plasma/components/ModelContextMenu.qml:38:1: QML ModelContextMenu: Accessible must be attached to an Item
Comment 7 Zamundaaa 2023-08-17 12:00:53 UTC
Does this still happen on 5.27?
Comment 8 Eric Edlund 2023-08-17 12:52:09 UTC
I haven't seen it in a few months.