Bug 485273 - KDE6 Bug about session restore under X11: konsole windows seem to be shrinked randomly a little after boot
Summary: KDE6 Bug about session restore under X11: konsole windows seem to be shrinked...
Status: REPORTED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 24.02.0
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-09 12:45 UTC by JMB9
Modified: 2024-04-29 08:37 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description JMB9 2024-04-09 12:45:29 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY
I am using automatic session save when logging out for many years with Kubuntu and KDE neon systems.
It worked perfectly with KDE5 - and no longer with KDE6.
First I spotted Bug 483615 under Wayland - where session save/restor is totally broken.
But on X11 it _seemed_ to work - but there is a nasty regression which does not keep the size of all windows.
Which window and when it is reduced seems random.


STEPS TO REPRODUCE
1. Create several konsole windows in desired size and location (e.g. in alignment)
2. configure "Session Restore: On last logout" 
3. reboot (several times)

OBSERVED RESULT
konsole windows are shrinked - e.g. from 80x24 -> 79x?? and even -> 78x?? - and
thus no more aligned/touching but separate.

EXPECTED RESULT
All windows are identical in size and position as they were before logout/reboot/halt.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma:   KDE neon 6.0.3
(available in About System)
KDE Plasma Version: 6.0.3
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.3

ADDITIONAL INFORMATION
Kernel:  Linux 6.5.0-27
Session:  X11
Desktop: 8 virtal desks in a row, in total more than 72 konsole windows open in a session
                 (see screenshot at https://www.jmb-edu.de/images/Typical_Virtual_Desktop_KDE_neon_6_0_3_X11_JMB.png)

System was installed as User Edition with Plasma 5.27.2 and updated several times - not in KDE neon 6.0.3.
The bug seems to be a regression of KDE 6 - but not absolutely sure on this ...
Comment 1 JMB9 2024-04-09 13:01:54 UTC
I am working on my KDE system with 6.0.3 since more than two weeks and was astonished that my 'vi' does not have 80 colums
a line - but 79 - at first I resized all 79-er windows to 80 by increasing width - but after reboot some changed to 79 again - some
keep 80.
I got a little lazy as this random pattern stayed that way - and correcting all konsole windows (well over 72 - see my screenshot
of konsole windows below with just title and scroll bar {no menu bar etc.} for konsole windows and with 8 virtual desks in a row -
which is my working pattern for years) and now found the 1rst ones with on 78 columns - so it is reduced every reboot randomly.
I was thinking of wrong rounding taken place - but this complete random pattern seems unlikely to be produced by rounding
problems alone ... it seems very strange ...
I depend on all konsole windows having 80 columns - I think I am currently using 22-25 lines, so this differs just for using the space
as is visible in my screenshot:
       https://www.jmb-edu.de/images/Typical_Virtual_Desktop_KDE_neon_6_0_3_X11_JMB.png

Unfortunately this is extremely annoying for me and if there are pieces if information / data useful to get the reason
for this regression I would be happy to help (I worked as Unix expert in IT industry) when getting some guiding info
how to gain them.
Comment 2 JMB9 2024-04-10 10:44:40 UTC
Side question which stops me from really testing the problem:
With the 1st problem in Wayland (Bug 483615) I experimented with
konsole parameters:
konsole --qwindowgeometry 400x400+50+50 --workdir '/home2/jmb/mytex/presentation_jmb/' --hide-menubar --hide-tabbar --notransparency --qwindowtitle 'JMB_Term_1' &

But even 'konsole --help-all' seem to not give complete parameters
(e.g. how one can create konsole windows on all virtual desktops present;
 are there absolute coordinate or can the virtual desk be specified ???).
      https://docs.kde.org/stable5/en/konsole/konsole/konsole.pdf
seem just for KDE5 - so maybe one could give a hint where to get information
about creating konsole windows with all parameters necessary (which was possible
long ago ... I started before Linux 1.0 was released and this was normal way
for worstation use in sciences - and KDE has much more features so this
should be possible - and otherwise a save session and restore session could
not work at all).

As this could not be tested I am still not sure if this could be a
window manager / compositor / windowsing library problem or
really a console problem.
But people developing konsole could tell.

Im not sure if the 8 virtual screen (6x 4k in a row) could be part
of the problem - but as I use this setting for several years with KDE5, 
it would be a regression of KDE6. Additionally I hope and expect that KDE is
prepared for standardized resolutions 8k and 16k ... so 6x 4k should not
be a problem.

Maybe this problem is related with the bigger problems using Wayland
(the above mentioned Bug 483615) - where even positions are completely ignored
and can not be restored.
Comment 3 Oleksandr Natalenko 2024-04-29 08:37:48 UTC
Does it still happen if you set QT_SCALE_FACTOR_ROUNDING_POLICY=RoundPreferFloor environment variable (https://bugs.kde.org/show_bug.cgi?id=479891)?