Bug 461269 - konsole mostly slow to display window on start
Summary: konsole mostly slow to display window on start
Status: RESOLVED NOT A BUG
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.26.2
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-01 02:46 UTC by pablo
Modified: 2023-07-06 12:38 UTC (History)
2 users (show)

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


Attachments
WAYLAND_DEBUG with 2s start delay - search for /[ 532235.427] wl_callback@24.done(1214)/ (34.86 KB, text/plain)
2022-11-01 02:46 UTC, pablo
Details
WAYLAND_DEBUG with no observable delay (110.86 KB, text/plain)
2022-11-01 02:47 UTC, pablo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pablo 2022-11-01 02:46:40 UTC
Created attachment 153366 [details]
WAYLAND_DEBUG with 2s start delay - search for /[ 532235.427] wl_callback@24.done(1214)/

SUMMARY
Hi,
Using konsole as a test case, there is a noticeable lag to display the window:

o At first start up
o After some period of time (e.g. a minute) between new window starts

I have captured some WAYLAND_DEBUG=1 output showing lag vs no lag.

This is an excerpt of the debug when I observed the a two second lag:

[ 532235.418] wl_drm@25.format(1448695129)
[ 532235.423] wl_drm@25.capabilities(1)
[ 532235.427] wl_callback@24.done(1214)
#
# After running konsole in another window, the /tail -f/ paused above.  
# No window was displayed for about two seconds.
#
[ 534388.338]  -> wl_display@1.get_registry(new id wl_registry@24)
[ 534388.428]  -> wl_display@1.sync(new id wl_callback@26)
[ 534391.580] wl_display@1.delete_id(26)
[ 534391.586] wl_registry@24.global(1, "wl_compositor", 5)

SET UP
1. Create a new Linux user whose shell is /bin/bash
2. Log in to the new user using Wayland

STEPS TO REPRODUCE
Repeated make the following call, ctrl-D the new window to exit.  To observe the start delay, wait about 30 seconds between the calls:

   WAYLAND_DEBUG=1 konsole >> konsole.wayland_debug 2>&1

OBSERVED RESULT
When a new konsole window is started /shortly/ after a previously started konsole window, there is no observable delay.

However, if there's a 30 second delay between calls, a start delay is observed.

EXPECTED RESULT
The windows should start immediately.  As observed on X11.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.0.5-1-default
(available in About System)
KDE Plasma Version: 5.26.2
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.6

ADDITIONAL INFORMATION
Comment 1 pablo 2022-11-01 02:47:30 UTC
Created attachment 153367 [details]
WAYLAND_DEBUG with no observable delay
Comment 2 pablo 2022-11-01 02:48:41 UTC
Comment on attachment 153366 [details]
WAYLAND_DEBUG with 2s start delay - search for /[ 532235.427] wl_callback@24.done(1214)/

I tail'd the file during the test.  The tail paused and no window was displayed at this point in the output:

[ 532235.409] wl_drm@25.format(842094158)
[ 532235.414] wl_drm@25.format(909203022)
[ 532235.418] wl_drm@25.format(1448695129)
[ 532235.423] wl_drm@25.capabilities(1)
[ 532235.427] wl_callback@24.done(1214)
Comment 3 David Edmundson 2023-07-06 12:38:33 UTC
A delay starting konsole is a konsole bug.

It's probably a DBus timeout rather than anything related.