RE: GUI scaling rendered KDevelop useless on Windows 10

Ingvar Tjøstheim <[email protected]> Wed, 15 Sep 2021 13:42:02 +0000
Newsgroups gmane.comp.kde.users.kdevelop
Message-ID <DB9P192MB11610420E8C365E519F30C12B9DB9@DB9P192MB1161.EURP192.PROD.OUTLOOK.COM>
1. I am unable to reproduce the situation at the moment. The upsizing of th=
e GUI in KDevelop has happened over a bit of time. It might have to do with=
 the computer going to sleep with/without the dock, and being a bit more ha=
rd to replicate. I will keep an eye and try different things.

2. > "are you saying that the issue is NOT resolved by restarting KDevelop?=
" - Correct. As mentioned in the initial post: " I have uninstalled and rem=
oted all files in "Program Files" and in "AppData/Local" and reinstalled, b=
ut the problem persists." I mean by this that I tried uninstalling KDevelop=
 and removing any traces of it that I could find. The GUI up-sizing issue p=
ersisted through stopping the program, uninstalling, deleting files, instal=
ling and starting the program again.
As mentioned, force-rebooting Windows 10 somehow brought the GUI back to no=
rmal scale. It has for now resolved the issue completely, and I have not be=
en able to reproduce it. But as the GUI up-scaling happened over time, with=
 me using the computer for other things and plugging/unplugging it from the=
 dock, sleeping and waking the computer, I suspect it will reappear again. =
I will notify if it does, and try to pay more attention to what happens jus=
t before.

3. As you write, quitting KDevelop is not too cumbersome, but this didn't r=
esolve the issue.

4. As of now, I don't know of any other Qt programs I have installed. If th=
e problem reoccurs, perhaps I could try one from this list if any are Qt ba=
sed: https://portableapps.com/apps
Please let me know.

5. I don't think there are 2 GPU. Just an INTEL UHD Graphics card. Processo=
r is i7-10510U, 1.8 GHz

6. Installing Linux would be better, and my preference. It is a work laptop=
, though. I might eventually get dualboot...

-Ingvar


-----Original Message-----
From: Ren=E9 J.V. Bertin <[email protected]>=20
Sent: 15 September 2021 11:05
To: Ingvar Tj=F8stheim <[email protected]>
Cc: [email protected]
Subject: Re: GUI scaling rendered KDevelop useless on Windows 10

On Wednesday September 15 2021 05:43:44 Ingvar Tj=F8stheim wrote:

>I only use one screen at the same time. I have a USB-C dock for the laptop=
, where the monitor is plugged in. I either use the monitor through this, o=
r use the built-in laptop monitor when I disconnect the dock.

IMHO that does make the issue a bit less acute I think, or at least I can't=
 imagine you're dis- and re-connecting the laptop to that dock so frequentl=
y that quitting KDevelop first is too cumbersome.
It would be interesting to know though if you get the same problem when you=
 go for a multihead configuration (make the external the main screen, keep =
the laptop screen active) and move the KDevelop window back and forth betwe=
en the 2 screens.

>I don't have any other KDE or programs. I believe Audacity is Qt, and it i=
s not affected.=20

No, Audacity is based on wxWindows. VirtualPC is based on Qt, though, so is=
 Scribus (just to name 2 pro-quality free apps). There are multiple KDE app=
lications available in MSWin builds: Kate (text editor), Dolphin (file expl=
orer, sadly not with the full range of supported remote filesystems) or dig=
iKam (digital photo album). KDevelop development seems a little slow lately=
 (suits me fine! :)), the other cited apps less so as far as I can tell.

Either way, someone will have to figure out if your issue is specific to KD=
evelop, to KDE (ie. the KF5 frameworks) or if it's a Qt issue. If other KDE=
 apps do exhibit the same issue you could (should...) install the latest Qt=
 5.1x (5.15.2?) through the official installer. This will give you the QtCr=
eator IDE but also Qt's Assistant (doc reader), allowing to determine if a =
"pure" and "official" Qt application exhibits the same issue.

If it doesn't in the latest 5.1x version you could even install additional,=
 older versions through the Maintenance Tool, starting with the version use=
d by KDEvelop's build for MSWin (I have no idea what Qt version that is but=
 you can find it via the "About KDevelop" menu action).

>Yesterday I actually unplugged the dock from the computer and due to other=
 Windows 10 issues had to force-restart the computer. The computer appeared=
 to not want to turn on (black screen) until I had held the power button a =
while. After finally managing to boot the computer with only the laptop scr=
een, KDevelop somehow was restored to normal size.
>If the issue returns, I will try turning the computer off, restarting and =
cycling power, etc, while paying attention to what works and not. I will le=
t you know.

Wait, are you saying that the issue is NOT resolved by restarting KDevelop?=
 If I understand the above correctly, KDevelop probably told you it didn't =
exit properly when you first started it again after the reboot, i.e. it "cr=
ashed". I have no idea how you can make a program to crash/abort on Win10, =
but if you can figure that out it would definitely be of interest because i=
t points to the inappropriate use of cached data used for rendering the UI.=
 IMHO that kind of information shouldn't be cached on disk but that's a sub=
ject for future discussion!

Did the restart solve the issue completely (for now)? In my experience it's=
 not a bad idea to restart MSWin computers regularly, or even turn them off=
 at the end of the day.

>This is a relatively new Lenovo X1 Carbon Gen 8 laptop.

Does it have dual GPUs, i.e. the one inside the CPU and a dedicated/discret=
e video adapter? If it does you also have the option of forcing KDevelop to=
 use either one of the two, and see if that makes a difference. If it does =
that would hint at an issue in the driver for the affected GPU.

You could also just install Linux; the laptop is bound to run better/faster=
 that way ;)

R.